/* Shared site chrome (header, footer) and the building blocks of the public pages.
   Extends app.css: same tokens, same buttons, same phone frame. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; }
img { max-width: 100%; }

/* header, footer and the account bar are styled by site.js itself (self-contained) */

/* ---------- page building blocks ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 860px; }
.sec { padding-block: clamp(72px, 10vw, 144px); }
.sec.tight { padding-block: clamp(56px, 7vw, 96px); }
.sec + .sec.ruled, .ruled { border-top: 1px solid var(--line); }
@media (max-width: 700px) { .wrap { padding-inline: 16px; } }

.h-display { font-size: clamp(50px, 8.4vw, 124px); line-height: .94; letter-spacing: -.022em; text-wrap: balance; }
.h-xl { font-size: clamp(40px, 5.6vw, 80px); line-height: .98; letter-spacing: -.018em; text-wrap: balance; }
.h-l { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; }
.h-display em, .h-xl em, .h-l em { font-style: italic; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--soft); max-width: 46ch; margin: 0; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; }
.eyebrow + .h-xl, .eyebrow + .h-display, .eyebrow + .h-l { margin-top: 18px; }
.h-xl + .lede, .h-display + .lede, .h-l + .lede { margin-top: 22px; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; }
.tlink { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
.tlink:hover { text-decoration-color: var(--ink); }
.fine { font: 400 12px/1.6 var(--mono); color: var(--soft); letter-spacing: .02em; }

/* a plain ruled list of facts ("what is included") */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 15ch) 1fr; gap: 6px 20px; }
.facts li b { font-weight: 500; }
.facts li span { color: var(--soft); }
.facts.one li { grid-template-columns: 1fr; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* questions */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; font: 400 clamp(22px, 2.3vw, 28px)/1.15 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--soft); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; max-width: 62ch; color: var(--soft); font-size: 16px; }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* closing call to action, used at the foot of every public page */
.closer { background: var(--accent); color: var(--accent-ink); }
.closer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.closer .lede { color: rgba(246, 243, 234, .72); }
.closer .btn.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.closer .btn.primary:hover { background: #fff; }
.closer .btn:not(.primary) { border-color: rgba(246, 243, 234, .35); color: var(--accent-ink); }
.closer .btn:not(.primary):hover { border-color: var(--accent-ink); }
.closer :focus-visible { outline-color: var(--accent-ink); }
.closer .thumbs { display: flex; gap: 14px; align-items: flex-end; }
.closer .thumbs .phone { width: 118px; border-radius: 20px; padding: 4px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.closer .thumbs .phone > .screen { inset: 4px; border-radius: 16px; }
.closer .thumbs .phone:nth-child(2) { width: 150px; }
@media (max-width: 900px) { .closer .wrap { grid-template-columns: 1fr; } .closer .thumbs { display: none; } }

/* page head for the inner pages */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(36px, 5vw, 64px); }

/* long-form text: about, terms, privacy */
.prose { font-size: 17px; line-height: 1.65; max-width: 66ch; min-width: 0; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 2em 0 .55em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 15px/1.4 var(--ui); letter-spacing: 0; margin: 1.6em 0 .4em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.15em; }
.prose li { margin: 0 0 .45em; }
.prose a { text-underline-offset: 3px; }
.ph { background: #ece5cf; border-radius: 4px; padding: 0 4px; font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
.draft { border: 1px solid var(--warn); color: var(--warn); border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.5; max-width: 66ch; background: rgba(154, 59, 42, .05); }
.draft b { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: clamp(72px, 9vw, 128px); }
.legal-toc { position: sticky; top: 24px; font-size: 13px; }
.legal-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; counter-reset: t; }
.legal-toc li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; }
.legal-toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--soft); padding-top: 2px; }
.legal-toc a { text-decoration: none; color: var(--soft); }
.legal-toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .legal-toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 16px; } }

/* keep the footer off the fold on short app pages */
.site-sub + main { min-height: 56vh; }
