/* Prompters Anonymous — landing page layout. Components come from
   components.css; colours, type and spacing from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--amber-text); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: 0.95em; padding: 1px 5px; border-radius: var(--radius-sm); background: var(--bg-sunk); border: var(--stroke-hair) solid var(--rule); }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--space-6); }
@media (max-width: 600px) { .wrap { padding-inline: var(--space-4); } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: var(--space-2) var(--space-3); background: var(--amber); color: var(--on-amber); }
.skip:focus { left: 8px; }
:focus-visible { outline: var(--stroke-strong) solid var(--focus); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: var(--stroke-hair) solid var(--rule); }
.top__in { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.brand img { width: 36px; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top__cta { padding-block: var(--space-2); }
@media (max-width: 760px) { .nav { display: none; } .top__cta { margin-left: auto; } .brand span { font-size: 18px; } }

/* ---------- shared section pieces ---------- */
section { padding-block: var(--space-16); }
@media (max-width: 600px) { section { padding-block: var(--space-12); } }
.section-head { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-8); }
.eyebrow { color: var(--amber-text); }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.section-lead { font-size: 19px; line-height: 30px; color: var(--ink); max-width: 64ch; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-16) var(--space-12); border-bottom: var(--stroke-hair) solid var(--rule); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8) var(--space-12); align-items: center; }
.hero__words { display: grid; gap: var(--space-6); min-width: 0; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.95; text-wrap: balance; }
.hero__hi { display: block; font-size: clamp(44px, 6.4vw, 88px); }
.hero__confession { display: block; margin-top: var(--space-3); font-size: clamp(34px, 4.6vw, 62px); min-height: 2em; }
.blank { display: inline-block; min-width: 3.2ch; border-bottom: 0.08em solid var(--ink-muted); line-height: 0.8; vertical-align: baseline; }
.blank .pa-cursor { width: 0.45em; height: 0.8em; vertical-align: -0.02em; margin-left: 0.1em; }
.hero__lead { font-size: 21px; line-height: 32px; max-width: 58ch; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__small { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.hero__chip { --chip-size: clamp(180px, 24vw, 300px); }
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__chip { grid-row: 1; justify-self: start; --chip-size: 120px; }
}
.confession-out { animation: conf-out 260ms ease-in both; }
.confession-in { animation: conf-in 320ms ease-out both; }
@keyframes conf-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes conf-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- the share ---------- */
.share { background: var(--bg-raised); border-bottom: var(--stroke-hair) solid var(--rule); }
.share__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
.share__col { display: grid; gap: var(--space-4); align-content: start; }
.share__col .section-title { font-size: clamp(32px, 4vw, 44px); margin-bottom: var(--space-2); }
.share__col p { max-width: 58ch; }
@media (max-width: 760px) { .share__in { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- how it works ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8) var(--space-12); align-items: start; }
@media (max-width: 900px) { .how__grid { grid-template-columns: 1fr; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.points li { position: relative; padding-left: var(--space-6); max-width: 60ch; }
.points li::before { content: "›"; position: absolute; left: 0; top: 0; color: var(--amber-text); font-family: var(--font-mono); font-weight: 700; }
.points strong { display: block; color: var(--ink); }
.how__term, .feels > * { min-width: 0; }
.feels-title { margin: var(--space-12) 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.feels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 900px) { .feels { grid-template-columns: 1fr; } }
.pa-term { max-width: none; }
.pa-term__body { font-size: 14px; line-height: 21px; }
.statusline { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; padding: var(--space-2) var(--space-4); border-top: var(--stroke-hair) solid var(--rule); background: var(--bg-raised); font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ansi-08-bright-black); }
.statusline b { color: var(--ansi-03-yellow); }

/* ---------- steps ---------- */
.steps { background: var(--bg-raised); border-block: var(--stroke-hair) solid var(--rule); }
.pa-ladder__note { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-12); }
.chips-row img { width: 96px; }
.steps__more { margin-top: var(--space-6); }

/* ---------- faq ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8) var(--space-12); }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }
.faq__list { display: grid; border-top: var(--stroke-hair) solid var(--rule); }
.faq details { border-bottom: var(--stroke-hair) solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; font-weight: 700; font-size: 19px; line-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-text); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--space-4); max-width: 62ch; }

/* ---------- install ---------- */
.install { background: var(--bg-raised); border-top: var(--stroke-hair) solid var(--rule); }
.install__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); max-width: 820px; }
.install__steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); }
.install__n { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 0.9; color: var(--amber-text); }
.install__body { display: grid; gap: var(--space-3); min-width: 0; }
.install__body h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.install__body p { font-size: 15px; line-height: 23px; color: var(--ink-muted); max-width: 60ch; }
.install__note { margin-top: var(--space-8); font-size: 15px; color: var(--ink-muted); }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-12); border-top: var(--stroke-hair) solid var(--rule); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: end; justify-content: space-between; }
.foot__sign { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 8vw, 96px); line-height: 0.9; text-transform: uppercase; color: var(--amber-text); }
.foot__meta { display: grid; gap: var(--space-1); font-size: 14px; line-height: 21px; color: var(--ink-muted); max-width: 48ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .confession-out, .confession-in { animation: none; }
}

/* alignment fixes */
.faq .section-head { align-self: start; align-content: start; }
@media (min-width: 900px) { .pa-ladder__note { min-height: calc(23px * 3); } }
@media (max-width: 480px) { .pa-term__body { font-size: 11.5px; line-height: 18px; padding: var(--space-3); } }
.promptline { padding: var(--space-2) var(--space-4) var(--space-3); font-family: var(--font-mono); font-size: 14px; line-height: 21px; color: var(--term-fg); }
