/* Inner pages on the homepage shell (home.css supplies tokens, header, footer, buttons and display type).
   This file adds the content components: page heads, sections, prose, rows, FAQ, tables, forms,
   the appointment page and the QR poster. Same white ground, Figtree, teal and hairlines as the homepage. */

body.inner { background: var(--white); }
.inner-main { min-height: 50vh; }
.nav-links a[aria-current="page"] { color: var(--teal); }
/* Four page links plus the partner mark need room: keep links on one line, thin out below 1024px. */
.inner .nav-links a { white-space: nowrap; }
@media (max-width: 1023px) {
  .inner .nav-links { gap: 18px; }
  .inner .nav-links a { font-size: 15px; }
  .inner .partner { display: none; }
}

/* ── Type (the content pages' spellings, sized to match the homepage scale) ── */
.display { font-weight: 500; font-size: clamp(34px, 2.6vw + 12px, 52px); line-height: 1.06; letter-spacing: -.026em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(28px, 1.8vw + 14px, 40px); line-height: 1.1; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.lead { font-size: clamp(17px, .3vw + 15px, 19px); line-height: 1.55; color: var(--ink-2); margin: 0; }
.body { font-size: 17px; line-height: 1.6; margin: 0; }
.small { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.caption { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.measure { max-width: 680px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.link { color: var(--teal); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--teal-deep); }

/* ── Buttons: identical to the homepage; .primary/.secondary are the inner pages' spellings ── */
.btn.primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { min-width: 180px; }

/* ── Page head and sections ── */
.page-head { padding: 40px 0 0; }
@media (min-width: 720px) { .page-head { padding: 72px 0 0; } }
.page-head .lead { margin-top: 18px; max-width: 720px; }
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.section.tight { padding-top: 0; }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 14px; }
.section-body { margin-top: 36px; }
@media (min-width: 720px) { .section-body { margin-top: 48px; } }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* ── Prose (legal pages, explanations) ── */
.prose-wide { max-width: 760px; }
.prose-wide h2 { font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 12px; }
.prose-wide h2:first-child { margin-top: 0; }
.prose-wide p, .prose-wide li { font-size: 17px; line-height: 1.6; }
.prose-wide p { margin: 0 0 14px; }
.prose-wide ul { padding-left: 20px; margin: 0 0 14px; }
.prose-wide li { margin: 6px 0; }
.prose-wide a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-wide b { font-weight: 600; }

/* ── Rows with a WhatsApp example on the right ── */
.list-rows .row { display: grid; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 720px) { .list-rows .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.list-rows .row:last-child { border-bottom: 1px solid var(--line); }
.list-rows .row .h3 { font-size: 19px; }
.list-rows .row .body { font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.list-rows .bubble { display: inline-block; position: static; max-width: 520px; background: #D9FDD3; color: #111B21; border-radius: 10px; border-top-right-radius: 2px; padding: 9px 12px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }

/* ── FAQ ── */
.section-body.faq details { border-top: 1px solid var(--line); }
.section-body.faq details:last-child { border-bottom: 1px solid var(--line); }
.section-body.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 18px; }
.section-body.faq summary::-webkit-details-marker { display: none; }
.section-body.faq summary::after { content: '+'; font-weight: 400; color: var(--ink-2); flex: none; }
.section-body.faq details[open] summary::after { content: '–'; }
.section-body.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 720px; }

/* ── Data-flow steps, tables, people ── */
.flow { display: grid; gap: 12px; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.flow-step b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.flow-step.teal { background: var(--teal); color: rgba(255, 255, 255, .85); border-color: var(--teal); }
.flow-step.teal b { color: var(--white); }
.kv-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.kv-table th, .kv-table td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.kv-table th { font-weight: 500; width: 40%; padding-right: 24px; }
.kv-table td { color: var(--ink-2); }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 1px solid var(--line); }
.people { display: grid; gap: 32px; }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.person .h3 { font-size: 22px; }
.person .role { color: var(--ink-2); font-size: 15px; margin: 4px 0 12px; }
.person .body { font-size: 16px; }
.placeholder { background: var(--teal-tint); border-radius: 4px; padding: 0 5px; }
.roadmap li { color: var(--ink-2); }
.roadmap li b { color: var(--ink); font-weight: 500; }

/* ── Closing band (sage) ── */
.cta-band { background: var(--sage); border-radius: var(--r-card); padding: 40px 24px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 56px; } }
.cta-band .cta-row .btn { min-width: 0; }

/* ── Forms (contact page): same fields as the sign-up page ── */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--shadow-float); }
@media (max-width: 599px) { .card { padding: 22px 18px; } }
.field { display: block; margin-top: 18px; }
.field:first-child { margin-top: 0; }
.label { display: flex; justify-content: space-between; align-items: baseline; font: 500 15px/20px var(--font); color: var(--ink); margin-bottom: 8px; }
.label .opt { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.input { display: block; width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--grey-ui-line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 17px/24px var(--font); transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
textarea.input { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: #98A59F; }
.input:hover { border-color: #B8C3BC; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 10px 0 0; }
.hint b { font-weight: 600; color: var(--ink); }
.err { color: var(--error); font-size: 14.5px; line-height: 1.45; margin: 12px 0 0; }
.card .actions { display: block; margin-top: 22px; }
.card .actions .btn { width: 100%; height: 56px; font-size: 17px; }
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } }
.aside-card { background: var(--sage); border-radius: var(--r-card); padding: 24px; }
.aside-card > * + * { margin-top: 12px; }
.aside-card .h3 { font-size: 18px; }

/* ── Appointment page (/a/<token>): teal panel while live, sage once past or cancelled ── */
.narrow { max-width: 560px; margin: 0 auto; padding: 40px 0 8px; }
@media (min-width: 720px) { .narrow { padding-top: 56px; } }
.panel { background: var(--teal); color: var(--white); border-radius: var(--r-card); padding: 28px 24px; }
.panel.muted { background: var(--sage); color: var(--ink); }
.eyebrow { font-size: 14px; font-weight: 500; opacity: .82; margin: 0 0 10px; }
.panel .h1 { font-weight: 500; font-size: clamp(26px, 5vw, 34px); line-height: 1.12; letter-spacing: -.022em; margin: 0; }
.panel .when { font-weight: 500; font-size: 20px; line-height: 1.3; margin: 14px 0 0; }
.panel .when-time { font-size: 17px; opacity: .82; margin: 2px 0 16px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.solid { background: var(--white); color: var(--teal); }
.pill.outline { border: 1px solid currentColor; }
.panel.muted .pill.solid { background: var(--teal); color: var(--white); }
.kv { margin: 24px 0 0; display: grid; gap: 14px; }
.kv div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.narrow .actions { display: block; margin-top: 24px; }
.narrow .btn { width: 100%; height: 56px; font-size: 17px; }
.narrow .actions + .btn { margin-top: 12px; }
.narrow .hint { text-align: center; margin-top: 12px; }

/* ── QR poster (/qr) ── */
.qr-poster { text-align: center; max-width: 640px; margin: 0 auto; padding: 48px 0 16px; }
.qr-poster .lead { margin-top: 16px; }
.qr-poster img { width: min(70vw, 360px); height: auto; margin: 32px auto 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--white); }
.qr-poster .url { font-weight: 600; font-size: 22px; margin-top: 16px; color: var(--teal); }
.qr-poster .caption { margin-top: 28px; }
@media print { .nav-bar, .foot { display: none !important; } .qr-poster { padding-top: 0; } }
