/* Page-specific patterns for the inner marketing and growth pages (v2).
   Shared patterns live in site.css; this file only adds what a page needs.
   Every colour is a token, except inside the always-dark phone frames. */

/* ============================================================ inner hero */
/* A hero with the page's proof on the right, so there is no empty column. */
.phero__grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 1024px) { .phero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--space-16); } }
.phero__grid .phero__inner { max-width: 40rem; }
.phero__art { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); min-width: 0; }
.phero__art figcaption, .phero__note { font-size: var(--text-xs); color: var(--text-subtle); text-align: center; }
.phero--compact { padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.phero--compact h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
@media (max-width: 479px) { .phero .s-btn-row .s-btn { width: 100%; } }
/* A plain section straight after a hero does not need a second full gap. */
.phero + .sx:not(.sx--alt):not(.sx--ink):not(.sx--flush-top) { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }

/* Breadcrumbs with real touch targets */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); font-size: var(--text-sm); color: var(--text-subtle); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.crumbs a:hover { color: var(--text-strong); text-decoration-color: currentColor; }
.crumbs [aria-current="page"] { color: var(--text); }

/* ============================================================ real frames */
/* A finished frame in a phone-shaped stage. The stage is always dark. */
.phone { position: relative; flex: none; width: min(100%, 16.5rem); aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 1.75rem; background: #1A232A; border: 6px solid #0C1114;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-xl); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone--sm { width: min(100%, 12rem); border-radius: 1.4rem; border-width: 5px; }
.fan { display: flex; justify-content: center; align-items: flex-end; padding-block: var(--space-4) var(--space-2); }
.fan .phone { width: clamp(7.5rem, 5rem + 9vw, 12.5rem); }
.fan .phone + .phone { margin-left: clamp(-3.5rem, -1rem - 4vw, -2rem); }
.fan .phone:nth-child(1) { transform: rotate(-6deg) translateY(0.75rem); }
.fan .phone:nth-child(2) { z-index: 1; width: clamp(8.5rem, 6rem + 10vw, 14rem); }
.fan .phone:nth-child(3) { transform: rotate(6deg) translateY(0.75rem); }
.frames--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frames--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.frames figcaption b { display: block; color: var(--text-strong); font-weight: var(--font-semibold); }
@media (max-width: 767px) { .frames--3 figure, .frames--5 figure { flex-basis: 46%; } }

/* ============================================================ product mocks */
/* The video page while it works: the stages a real job reports. */
.jobwin { width: 100%; max-width: 30rem; }
.jobwin__body { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-5); align-items: center; padding: var(--space-5); }
.jobwin__body .stage--reel { width: 100%; max-height: none; box-shadow: var(--shadow-md); }
.jobwin__side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.jobwin__eta { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: var(--border-w) solid var(--border);
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-subtle); }
@media (max-width: 419px) { .jobwin__body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-4); padding: var(--space-4); } }
.steplist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.steplist li { display: flex; align-items: center; gap: var(--space-3); color: var(--text-subtle); min-width: 0; }
.steplist li::before { content: ""; flex: none; box-sizing: border-box; width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 2px solid var(--border-strong); }
.steplist li.is-done { color: var(--text); }
.steplist li.is-done::before { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.7rem no-repeat; }
[data-theme="dark"] .steplist li.is-done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0E11' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.steplist li.is-on { color: var(--text-strong); font-weight: var(--font-semibold); }
.steplist li.is-on::before { border-color: var(--accent); border-right-color: transparent; animation: stage-spin 1.1s linear infinite; }
@keyframes stage-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steplist li.is-on::before { animation: none; } }

/* A chat with the editor. */
.chatmock { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-md); width: 100%; max-width: 28rem; }
.chatmock__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3);
  border-bottom: var(--border-w) solid var(--border); font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-subtle); letter-spacing: 0.04em; }
.chatmock .bub { font-size: var(--text-sm); line-height: 1.45; }
.chatmock__vers { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); border-top: var(--border-w) solid var(--border); }
.chatmock__vers span { font-family: var(--font-mono); font-size: var(--text-2xs); padding: 0.3rem 0.6rem; border-radius: var(--radius-full);
  border: var(--border-w) solid var(--border); color: var(--text-muted); }
.chatmock__vers span.is-on { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-text); }

/* A project list, as an agency sees it. */
.projmock { width: 100%; max-width: 30rem; }
.projmock__list { list-style: none; padding: var(--space-2); display: flex; flex-direction: column; }
.projmock__list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); min-width: 0; }
.projmock__list li + li { border-top: var(--border-w) solid var(--border-subtle); }
.projmock__dot { flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); background: var(--dot); }
.projmock__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.projmock__text b { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projmock__text span { font-size: var(--text-2xs); color: var(--text-subtle); font-family: var(--font-mono); }

/* The decisions an edit records, one row each. */
.declog { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: var(--border-w) solid var(--border); }
.declog li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: baseline;
  padding: var(--space-4) 0; border-bottom: var(--border-w) solid var(--border); }
.declog time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-subtle); }
.declog q { quotes: none; color: var(--text); line-height: 1.5; }
.declog .pill { justify-self: end; white-space: nowrap; }
@media (max-width: 559px) { .declog li { grid-template-columns: 3.75rem minmax(0, 1fr); } .declog .pill { grid-column: 2; justify-self: start; } }

/* Proportional time bar for the processing stages. */
.timebar { display: flex; gap: 3px; height: 2.5rem; }
.timebar span { flex: var(--g) 1 0; min-width: 6px; border-radius: var(--radius-xs); background: var(--accent-subtle); box-shadow: inset 0 0 0 1px var(--accent-border); }
.timebar span:nth-child(even) { background: color-mix(in srgb, var(--accent-subtle) 60%, var(--accent) 22%); }
.timelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-2) var(--space-6); list-style: none; padding: 0; font-size: var(--text-sm); }
.timelist li { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-2); border-bottom: var(--border-w) solid var(--border-subtle); color: var(--text-muted); }
.timelist b { font-family: var(--font-mono); font-weight: var(--font-medium); color: var(--text-strong); white-space: nowrap; }

/* ============================================================ cards */
.card2__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  background: var(--accent-subtle); color: var(--accent-text); }
.card2__icon--cut { background: var(--cut-subtle); color: var(--cut-text); }
.card2__go { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: var(--font-semibold); font-size: var(--text-sm); color: var(--accent-text); }
.card2__go svg { transition: transform var(--duration-fast) var(--ease-default); }
.card2--link:hover .card2__go svg { transform: translateX(3px); }
.card2__meta { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-subtle); }
a.card2:focus-visible { outline: var(--border-w-thick) solid var(--accent); outline-offset: 3px; border-radius: var(--radius-xl); }
.card2--flat { background: transparent; }
.sx--alt .card2--flat { background: var(--bg); }

/* Big numbers for a plan. */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-3); }
.spec { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.spec b { font-family: var(--font-display); font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: var(--font-extrabold);
  letter-spacing: -0.03em; line-height: 1.05; color: var(--text-strong); }
.spec span { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; }
.spec--rec { border: 2px solid var(--accent); }

/* Numbered list with round markers. */
.numlist { list-style: none; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: var(--space-4); }
.numlist > li { counter-increment: n; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-4); align-items: start; line-height: 1.55; }
.numlist > li::before { content: counter(n); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent-text); font-family: var(--font-mono); font-weight: var(--font-semibold); font-size: var(--text-sm); }
.numlist > li b { display: block; color: var(--text-strong); }
.numlist > li span { color: var(--text-muted); }

/* Recording types as chips. */
.chipgrid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chipgrid li { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-4);
  border: var(--border-w) solid var(--border); border-radius: var(--radius-full); background: var(--surface); font-size: var(--text-sm); color: var(--text); }
.chipgrid svg { color: var(--accent-text); width: 1rem; height: 1rem; flex: none; }
.chipgrid a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; }
.chipgrid li:has(a) { padding: 0 var(--space-4); }
.chipgrid li:has(a:hover) { border-color: var(--accent); }

/* A list of links that look like links. */
.linklist { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: var(--border-w) solid var(--border); }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 3.25rem;
  border-bottom: var(--border-w) solid var(--border); font-weight: var(--font-semibold); color: var(--text-strong); }
.linklist a { justify-content: flex-start; }
.linklist a span { margin-left: auto; text-align: right; font-weight: var(--font-normal); color: var(--text-subtle); font-size: var(--text-sm); }
.linklist a > svg:last-child { margin-left: auto; }
.linklist a span + svg { margin-left: 0; }
@media (max-width: 479px) { .linklist a span { display: none; } .linklist a span + svg { margin-left: auto; } }
.linklist a svg { flex: none; color: var(--accent-text); transition: transform var(--duration-fast) var(--ease-default); }
.linklist a:hover { color: var(--accent-text); }
.linklist a:hover svg { transform: translateX(3px); }

/* Inline link row under a block, with real touch targets. */
.linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-6); }
.linkrow .s-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: var(--font-medium); }
.s-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* ============================================================ compare table */
.cmp2 { min-width: 40rem; font-size: var(--text-sm); }
.cmp2 th, .cmp2 td { padding: var(--space-4); vertical-align: top; line-height: 1.5; }
.cmp2 thead th { font-family: var(--font-display); font-size: var(--text-lg); text-transform: none; letter-spacing: -0.01em; color: var(--text-strong); }
.cmp2 tbody th { width: 22%; }
.cmp2 .is-us { background: var(--accent-subtle); }
.cmp2 thead .is-us { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.cmp2 .yes { display: inline-flex; align-items: flex-start; gap: var(--space-2); color: var(--text); }
.cmp2 .yes svg { flex: none; color: var(--success); margin-top: 0.1rem; }
.cmp2 .no { color: var(--text-subtle); }

/* ============================================================ forms */
/* product.css styles every form label as a column; marketing forms set their own. */
.surface-marketing form label.s-field { margin-bottom: 0; }
.surface-marketing form .s-check { flex-direction: row; margin-bottom: 0; color: var(--text); }
.surface-marketing form button { margin-top: 0; }
.form2 { background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-2xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: flex; flex-direction: column; gap: var(--space-5); box-shadow: var(--shadow-sm); min-width: 0; }
.form2 .s-input, .form2 .s-select, .form2 .s-textarea { height: 2.875rem; font-size: var(--text-base); }
.form2 .s-textarea { height: auto; }
.form2 .s-btn--primary { align-self: flex-start; }
.form2 [role="status"]:not(:empty), .form2 [role="alert"] { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--success-subtle); color: var(--text); }
.form2 [role="alert"] { background: var(--error-subtle); }
@media (max-width: 479px) { .form2 .s-btn--primary { align-self: stretch; } }
.topicnote { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--accent-subtle); color: var(--text); font-size: var(--text-sm); }
.topicnote svg { color: var(--accent-text); flex: none; margin-top: 0.1rem; }

/* Result of a quick estimate. */
.result2 { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-2xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: flex; flex-direction: column; gap: var(--space-4); }
.result2 h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.result2 ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-muted); }
.result2 li { display: flex; gap: var(--space-2); }
.result2 li svg { flex: none; color: var(--accent-text); margin-top: 0.15rem; }

/* Calculator output */
.calcout { position: relative; }
.calcout .kv { grid-template-columns: minmax(0, 1fr) auto; padding-top: var(--space-4); border-top: var(--border-w) solid var(--border); }
.calcout .kv dd { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-strong); text-align: right; }
.calcout__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.calcout__cta .s-btn--primary { order: -1; }
.calcout #rec-tier { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); letter-spacing: -0.035em; line-height: 1; color: var(--accent-text); }

/* ============================================================ status */
.statusbox { display: flex; gap: var(--space-5); align-items: flex-start; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-2xl); border: var(--border-w) solid var(--border); background: var(--surface); }
.statusbox__dot { flex: none; width: 1rem; height: 1rem; margin-top: 0.55rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px var(--success-subtle); }
.statusbox--warn .statusbox__dot { background: var(--warning); box-shadow: 0 0 0 6px var(--warning-subtle); }
.statusbox h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); letter-spacing: -0.02em; }
.statusbox p { color: var(--text-muted); margin-top: var(--space-2); }

/* ============================================================ long documents */
.doclayout { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) {
  .doclayout { grid-template-columns: 15rem minmax(0, 42.5rem); gap: var(--space-16); }
  .toc { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}
.toc { font-size: var(--text-sm); }
.toc__title { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--space-3); }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; }
.toc > ol > li > a { font-weight: var(--font-semibold); color: var(--text-strong); }
.toc a { display: flex; align-items: center; min-height: 2.5rem; padding: var(--space-1) var(--space-3); border-left: 2px solid var(--border); color: var(--text-muted); line-height: 1.35; }
.toc a:hover { color: var(--text-strong); border-left-color: var(--accent); }
.toc ol ol a { padding-left: var(--space-6); font-size: var(--text-xs); min-height: 2.25rem; }
@media (max-width: 1023px) {
  .toc { padding: var(--space-4); border: var(--border-w) solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
  .toc ol ol { display: none; }
  .toc > ol { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
  .toc > ol > li > a { border: var(--border-w) solid var(--border); border-radius: var(--radius-full); min-height: 2.75rem; padding-inline: var(--space-4); }
}
.prose2 h2[id], .prose2 h3[id], .docpart[id] { scroll-margin-top: calc(var(--header-h) + var(--space-6)); }
.docpart + .docpart { margin-top: var(--space-16); padding-top: var(--space-12); border-top: var(--border-w) solid var(--border); }
.docpart__head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.docpart__head h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; margin: 0; }
.prose2 .docpart__head + h3 { margin-top: 0; }

/* Help guide steps */
.docsteps { list-style: none; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: var(--space-4); }
.docsteps > li { counter-increment: s; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-2) var(--space-5);
  background: var(--surface); border: var(--border-w) solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); }
.docsteps > li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--accent); color: var(--text-on-accent); font-family: var(--font-mono); font-weight: var(--font-semibold); }
.docsteps h2 { font-size: var(--text-xl); letter-spacing: -0.015em; align-self: center; }
.docsteps p { color: var(--text-muted); line-height: 1.6; }

/* 404 search */
.nfsearch { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; width: 100%; max-width: 34rem; }
.nfsearch .s-field { flex: 1 1 16rem; text-align: left; }
.nfsearch .s-input { height: 3rem; font-size: var(--text-base); }
.nfsearch .s-btn { height: 3rem; }

/* Small helpers */
.kv--loose { gap: var(--space-4) var(--space-8); font-size: var(--text-base); }
.kv--loose dd { color: var(--text); }
.kv--loose dd a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.sx__foot { margin-top: var(--space-8); }
.note2 { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; max-width: 44rem; }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.stack2 { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.center2 { display: flex; justify-content: center; }

/* Compact tables that fit a phone without scrolling. */
.tbl2 th, .tbl2 td { padding: var(--space-3) var(--space-2); }
.tbl2 th:first-child, .tbl2 td:first-child { padding-left: 0; }
.tbl2 th[scope="row"] { white-space: normal; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); font-family: var(--font-sans);
  font-weight: var(--font-semibold); color: var(--text-strong); }
.tbl2 td { white-space: nowrap; }
.timebar span { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.timebar i { font-style: normal; font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent-text); white-space: nowrap; }
.nb { white-space: nowrap; }
.prose2 .docpart > * + * { margin-top: var(--space-5); }
.prose2 .docpart > h3 { margin-top: var(--space-10); }
.prose2 .docpart > .docpart__head + h3 { margin-top: 0; }
.prose2 code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-inset); padding: 0.1em 0.35em; border-radius: var(--radius-xs);
  border: var(--border-w) solid var(--border-subtle); }
.prose2 .docpart__head .tc { font-size: var(--text-xs); }
.swipehint { display: none; }
@media (max-width: 639px) { .swipehint { display: block; margin-top: var(--space-3); } }
