/* Secondary marketing pages (how-it-works, pricing, use cases). Same tokens and components as the landing
   (site.css); this file only adds the page frame: top line, hero, stage spacing, tables, closing band. No JS. */
.pg { overflow-x: hidden; }
.ptop { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; font-weight: 600; font-size: var(--step-small); }
.ptop-links { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.ptop-links a.link { display: inline-flex; min-height: 44px; align-items: center; }
.ptop-links [aria-current="page"] { text-decoration-color: currentColor; }
.ptop-cta { min-height: 44px; padding: 0 1.2rem; font-size: var(--step-small); }
.wordmark { min-height: 44px; }

/* hero */
.ph { padding-top: clamp(4rem, 9vw, 8rem); }
.ph-h { font-size: clamp(40px, 7vw, 108px); line-height: 0.92; max-width: 20ch; }
.ph-lead { margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.ph-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ph-actions .link-plain { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* loop bar (how it works): reuse .bar; the labels are anchors */
.pbar-wrap { padding-top: 0; }
.pbar-wrap .bar { margin-top: clamp(48px, 6vw, 88px); }
.seg-n a { text-decoration: none; }
.seg-n a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.pstages { padding-bottom: 0; }
.pstages .stage:first-child { margin-top: clamp(64px, 8vw, 120px); }
.stage-text .plist { margin: 24px 0 0; padding-left: 1.2rem; max-width: 42ch; }
.stage-text .plist li + li { margin-top: 0.5em; }
.stage-text p .button { margin-top: 4px; }
.stage-text .link-plain, .frag-note .link-plain { text-underline-offset: 0.18em; }
.nobr { white-space: nowrap; }
.pg code { font-family: inherit; font-size: inherit; font-variant-numeric: tabular-nums; background: var(--surface-2); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.shots .k { white-space: nowrap; }
.frag-note strong { font-weight: 600; color: var(--ink); }

/* attribution table: tone steps, no lines */
.ptable { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: var(--step-body); text-align: left; }
.ptable thead th { padding: 0 14px 8px; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.ptable tbody th, .ptable tbody td { padding: 14px; background: var(--surface-2); vertical-align: top; line-height: 1.3; }
.ptable tbody th { font-weight: 600; border-radius: var(--radius) 0 0 var(--radius); }
.ptable tbody td:last-child { border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); white-space: nowrap; }
@media (max-width: 47.99em) {
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ptable tbody tr { background: var(--surface-2); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
  .ptable tbody th, .ptable tbody td, .ptable tbody td:last-child { background: none; padding: 2px 0; border-radius: 0; font-size: 16px; white-space: normal; }
  .ptable code { white-space: normal; word-break: break-all; }
}

/* "what it leaves alone": three plain notes */
.pnotes { padding-top: var(--section); }
.pnotes-h { max-width: 14ch; }
.pnote-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pnote { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.pnote h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
@media (max-width: 63.99em) { .pnote-list { grid-template-columns: 1fr; margin-top: 36px; } }

/* pricing: the violet chapter follows the hero directly */
.pchapter { margin-top: var(--section); }
.pfaq { padding-bottom: 0; }

/* closing band */
.pcta { margin-top: var(--section-xl); padding-block: clamp(72px, 9vw, 130px) 56px; }
.pcta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: end; }
.pcta-h { grid-column: 1 / span 8; font-size: var(--step-head); line-height: 0.9; }
.pcta-sub { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; }
.pcta-act { grid-column: 1 / -1; }
.pcta .button { background: var(--field-2-ink); color: var(--field-2); min-height: 56px; }
.pcta-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; }
.pcta-links .link { display: inline-flex; min-height: 44px; align-items: center; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .pcta .button:hover { background: #2a2a36; } }
@media (max-width: 63.99em) {
  .pcta-h { grid-column: 1 / -1; font-size: 11vw; }
  .pcta-sub { grid-column: 1 / -1; font-size: var(--step-body); }
  .pcta .button { width: 100%; }
}

@media (max-width: 48em) {
  /* Phones: the two page links fit; the Request access pill lives in the page body (and it crushed the links). */
  .ptop { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 10px; padding-bottom: 10px; }
  .ptop-links { gap: 0; margin-right: -10px; }
  .ptop-links a.link { padding: 0 10px; font-size: 16px; }
  .ptop-cta { display: none; }
  .ph { padding-top: 40px; }
  .ph-lead { font-size: var(--step-body); margin-top: 22px; }
  .ph-actions { margin-top: 24px; }
  .pstages .stage:first-child { margin-top: 56px; }
  .stage-text { position: static; }
  .stage-frag { margin-top: 28px; }
}
@media (max-width: 40em) { .ph-h { font-size: 9.4vw; } .ph-actions .button { width: 100%; } }
@media (min-width: 48em) and (max-width: 63.99em) {
  .stage-text { position: static; }
}

/* comparison pages (/vs/*): prose column, dated sources line, tone-step table, pick cards */
.vsec { padding-top: var(--section); }
.vsec-h { text-wrap: balance; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.vprose { margin-top: 28px; max-width: 62ch; }
.vprose p + p, .vprose ul + p, .vprose p + ul { margin-top: 1em; }
.vprose ul { padding-left: 1.2rem; }
.vprose li + li { margin-top: 0.4em; }
.vsrc { margin-top: 36px; padding: 18px 22px; background: var(--surface-2); max-width: 62ch; font-size: var(--step-small); line-height: 1.5; }
.vsrc strong { font-weight: 600; color: var(--ink); }
.vtable { width: 100%; margin-top: 36px; border-collapse: separate; border-spacing: 0 6px; font-size: var(--step-body); text-align: left; }
.vtable .num { white-space: nowrap; }
.vtable .unit { color: var(--muted); }
.vtable thead th { padding: 0 14px 8px; font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.vtable tbody th, .vtable tbody td { padding: 14px; background: var(--surface-2); vertical-align: top; line-height: 1.3; }
.vtable tbody th { width: 20%; font-weight: 600; border-radius: var(--radius) 0 0 var(--radius); }
.vtable tbody td { width: 40%; }
.vtable tbody td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.vtable .ns { color: var(--muted); }
@media (max-width: 47.99em) {
  .vtable, .vtable tbody, .vtable tr, .vtable th, .vtable td { display: block; }
  .vtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vtable tbody tr { background: var(--surface-2); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
  .vtable tbody th, .vtable tbody td, .vtable tbody td:last-child { width: auto; background: none; padding: 4px 0; border-radius: 0; font-size: 16px; }
  .vtable tbody th { font-size: var(--step-lead); padding-bottom: 8px; }
  .vtable td::before { content: attr(data-label); display: block; font-size: var(--step-small); color: var(--muted); }
}
.vpick { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vpick li { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.vpick h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.vpick a.link-plain { display: inline-block; margin-top: 14px; font-weight: 600; min-height: 44px; line-height: 44px; margin-top: 4px; }
.vhub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 63.99em) { .vpick, .vhub { grid-template-columns: 1fr; } }
@media (max-width: 40em) { .vsec-h { font-size: 8.4vw; max-width: none; } }
.vfaq { padding-bottom: 0; }
.vprose .pic { margin: 0 0 28px; max-width: 420px; }

/* free tools: Reel hook generator (/tools/reel-hook-generator). Tone steps only, one accent action, 44px+ targets. */
.t-tool { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-top: 2rem; }
.t-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.1rem; }
.t-form { display: grid; gap: 16px; }
.t-field { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.t-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.t-input, .t-select { display: block; width: 100%; min-height: 56px; background: var(--surface-2); border: 0; border-radius: var(--radius); padding: 0 18px; color: var(--ink); font: 600 var(--step-lead)/1.2 var(--font-text); letter-spacing: -0.02em; caret-color: var(--accent); }
.t-input::placeholder { color: var(--muted); font-weight: 400; }
.t-select { appearance: none; -webkit-appearance: none; font-size: 18px; font-weight: 400; letter-spacing: 0; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c3c5cf' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.t-input:focus-visible, .t-select:focus-visible, .t-btn:focus-visible, .t-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border-radius: var(--pill); background: var(--surface-2); color: var(--ink); font: 600 var(--step-body)/1 var(--font-text); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.t-btn-main { background: var(--accent); color: var(--accent-ink); }
.t-btn:active, .t-copy:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .t-btn:hover { background: #2a2a38; } .t-btn-main:hover { background: var(--accent-strong); } }
.t-help { color: var(--muted); font-size: var(--step-small); line-height: 1.5; max-width: 52ch; }
.t-nojs { display: none; color: var(--ink); margin-top: 1rem; max-width: 52ch; }
html:not(.js) .t-nojs { display: block; }
html:not(.js) .t-form { display: none; }

.t-results { margin-top: 2.5rem; }
.t-status { font-size: var(--step-body); font-weight: 600; margin-bottom: 1rem; max-width: 60ch; scroll-margin-top: 72px; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.t-hook { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.t-kind { color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.t-text { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.t-why { color: var(--muted); font-size: var(--step-small); line-height: 1.5; }
.t-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-len { color: var(--muted); font-size: var(--step-small); }
.t-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 92px; padding: 0 1.1rem; border-radius: var(--pill); background: var(--surface-2); color: var(--ink); font: 600 var(--step-small)/1 var(--font-text); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.t-copy[data-copied] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .t-copy:hover { background: #2a2a38; } .t-copy[data-copied]:hover { background: var(--accent); } }
@media (min-width: 50em) { .t-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .js .t-hook { animation: t-rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); } }
@keyframes t-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.t-shapes { margin: 1rem 0 0; display: grid; gap: 0.35rem; max-width: 66ch; }
.t-shapes dt { font-weight: 600; margin-top: 0.9rem; }
.t-shapes dd { margin: 0; }
.t-faq { margin-top: 1rem; max-width: 66ch; }
.t-close { margin-top: clamp(3rem, 6vw, 4.5rem); }
.t-close-h { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 0.8rem; text-wrap: balance; }
.g-body .t-close h2 { margin-top: 0; font-size: clamp(24px, 2.6vw, 32px); }
@media (max-width: 40em) { .t-row { grid-template-columns: 1fr; } .t-tool { padding: 18px; } .t-actions { flex-wrap: nowrap; } .t-btn { white-space: nowrap; padding: 0 1.2rem; } .t-btn-main { flex: 2 1 auto; } .t-btn:not(.t-btn-main) { flex: 1 1 auto; } .g-actions a { width: 100%; justify-content: center; } }
.t-faq { display: grid; gap: 10px; }
.t-faq .qa[open] { background: var(--surface-2); color: var(--ink); }
.t-faq .qa summary { min-height: 56px; padding: 12px 20px; font-size: var(--step-body); }
.t-faq .qa p { padding: 0 20px 18px; max-width: 60ch; }
.t-tool ~ .t-results { } .g-wide > .g-dek { text-wrap: pretty; max-width: 40ch; }
@media (min-width: 50em) { .t-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } .t-form > .t-field:first-child, .t-form > .t-actions, .t-form > .t-help { grid-column: 1 / -1; } .t-form > .t-row { display: contents; } }
.t-select option { background: var(--surface-2); color: var(--ink); }
.t-btn, .t-copy, .t-input, .t-select { touch-action: manipulation; }
.g-body h2[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .t-btn, .t-copy { transition: none; } }

/* automation levels (how it works): full-width block under the approval stage; reuses .ptable tone steps */
.alevels { margin-top: clamp(40px, 5vw, 72px); max-width: 64rem; }
.alevels-h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 48px 0 14px; }
.alevels-h:first-child { margin-top: 0; }
.alevels-p { max-width: 56ch; margin-bottom: 20px; }
.alevels-list { list-style: disc; margin: 0 0 20px; padding-left: 1.2rem; max-width: 56ch; }
.alevels-list li + li { margin-top: 0.5em; }
.ptable-levels tbody th { width: 18%; white-space: nowrap; }
.ptable-levels tbody td { width: 41%; }
.ptable-levels tbody td:last-child { color: var(--muted); white-space: normal; }
@media (max-width: 48em) {
  .ptable-levels tbody th { width: auto; white-space: normal; font-size: var(--step-lead); padding-bottom: 6px; }
  .ptable-levels tbody td { width: auto; }
  .ptable-levels td::before { content: attr(data-label); display: block; font-size: var(--step-small); color: var(--muted); }
  .ptable-levels tbody td + td { padding-top: 8px; }
}
