/* FindBack AI website. Colors are the app's tokens (mobile/src/theme/tokens.ts); every text pair meets WCAG 2.1 AA. */
:root {
  --primary: #174A7E;
  --primary-dark: #113A64;
  --secondary: #007A82;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #EEF2F6;
  --tint: #E8F1F8;
  --outline: #C9D2DC;
  --text: #0F172A;
  --muted: #475569;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; margin: 0 0 .45em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--outline); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--outline); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 719px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .site-header nav { display: none; width: 100%; }
  .site-header nav.is-open { display: block; }
  .header-row { flex-wrap: wrap; }
  .nav { flex-direction: column; gap: 2px; padding: 6px 0 10px; }
  .nav a { display: block; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand b, .footer-brand b { color: var(--secondary); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; min-height: 44px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
.eyebrow, .kicker { font-size: 1rem; font-weight: 700; color: var(--secondary); margin: 0 0 .5em; }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--secondary); border-radius: 2px; margin-right: 10px; vertical-align: .3em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero { padding: 48px 0 40px; background:
  radial-gradient(60% 50% at 85% 10%, rgba(0, 122, 130, .14) 0%, rgba(0, 122, 130, 0) 70%),
  linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 64px; } }
.hero-copy .lead { max-width: 52ch; }

/* The return, demonstrated (the one bold element on the page) */
.demo { background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -30px rgba(17, 58, 100, .35); }
.demo-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.demo-stage { position: relative; }
.demo-ends { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.demo-end { display: inline-flex; align-items: center; gap: 8px; }
.avatar { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--tint); color: var(--primary); font-weight: 800; font-size: .85rem; }
.avatar.owner { background: #E3F4F5; color: var(--secondary); }
.demo-track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 0 15px 16px; }
.demo-fill { height: 100%; width: 8%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 3px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.demo-card { border: 1px solid var(--outline); border-radius: 14px; padding: 14px 16px; background: var(--bg); min-height: 150px; }
.demo-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.demo-icon { width: 44px; height: 44px; color: var(--primary); }
.demo-title { margin: 0; font-weight: 800; }
.demo-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.demo-badge { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); white-space: nowrap; }
.demo-badge.ok { background: #E3F4F5; color: var(--secondary); }
.demo-body { margin: 0; font-size: .98rem; }
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 14px 0 10px; }
.demo-step { width: 100%; min-height: 40px; border: 1px solid var(--outline); background: var(--surface); border-radius: 10px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.demo-step.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.demo-step.is-done { border-color: var(--secondary); color: var(--secondary); }
.demo-privacy { margin: 0; font-size: .88rem; color: var(--muted); }
.demo-privacy s { margin-left: 6px; text-decoration-color: var(--secondary); text-decoration-thickness: 2px; }
.demo-card.is-swapping { opacity: 0; transform: translateY(6px); }
.demo-card { transition: opacity .25s ease, transform .25s ease; }
@media (prefers-reduced-motion: reduce) { .demo-card, .demo-fill { transition: none; } }

/* How it works: a sequence, so it is drawn as one */
.process { display: grid; gap: 18px; counter-reset: step; position: relative; }
@media (min-width: 960px) { .process { grid-template-columns: repeat(4, 1fr); } .process::before { content: ""; position: absolute; left: 36px; right: 36px; top: 18px; height: 2px; background: var(--outline); } }
.process-step { position: relative; padding-top: 4px; }
.process-step .step-num { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.process-step p { color: var(--muted); font-size: .98rem; margin: 0; }
.page-head { padding: 48px 0 8px; }
.page-head .lead { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--primary); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--tint); }
.note { font-size: .92rem; color: var(--muted); }
.actions + .note { margin-top: 16px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; }
.section.alt .card { box-shadow: 0 10px 30px -22px rgba(17, 58, 100, .35); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--secondary); border-bottom: 3px solid var(--secondary); transform: rotate(-45deg); }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--text); margin: .2em 0 0; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan .per { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.plan.featured { border: 2px solid var(--primary); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); }

/* Plan period toggle (institutions) */
.period { display: inline-flex; border: 1px solid var(--outline); border-radius: 999px; padding: 4px; background: var(--surface); margin: 4px 0 22px; }
.period-btn { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.period-btn small { font-weight: 600; margin-left: 6px; color: var(--secondary); }
.period-btn.is-on { background: var(--text); color: #fff; }
.period-btn.is-on small { color: #9FE3E8; }
.plans .plan .price { transition: opacity .2s ease; }

/* Quick answers (support) */
.faq { max-width: 72ch; }
.faq details { border: 1px solid var(--outline); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--secondary); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--outline); vertical-align: top; }
thead th { background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* Long-form (legal, support) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.toc { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.meta { color: var(--muted); font-size: .95rem; }
.callout { border-left: 4px solid var(--secondary); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; }

/* Footer */
.site-footer { background: #0F2A47; color: #E2E8F0; margin-top: 0; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .2em; }
.site-footer .footer-brand b { color: #5FD3DA; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #CBD5E1; margin: 0 0 .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; overflow-wrap: anywhere; }
.site-footer address { font-style: normal; margin-top: 1em; }
.footer-base { border-top: 1px solid #2C4766; padding-top: 16px; padding-bottom: 24px; font-size: .9rem; color: #CBD5E1; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header nav, .skip, .site-footer { display: none; } body { background: #fff; } }

/* What a return costs (2026-11-02) */
.estimate label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.estimate input, .estimate select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border: 1px solid var(--outline); border-radius: 10px; background: #fff; min-height: 44px; }
.estimate input:focus, .estimate select:focus { outline: 3px solid var(--primary); outline-offset: 1px; }
.estimate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.estimate .btn { width: 100%; margin: 4px 0 10px; }
.estimate-results { margin: 8px 0 12px; }
.estimate-option { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--outline); }
.estimate-option:last-child { border-bottom: 1px solid var(--outline); }
.estimate-option b { white-space: nowrap; }
.estimate-option small { display: block; color: var(--muted); }
/* Compact variant (Increment 26 department lookup): one ZIP field with a normal-sized button beside it. */
.estimate-row.compact { grid-template-columns: minmax(140px, 220px) auto; align-items: end; }
.estimate-row.compact .btn { width: auto; margin: 0 0 12px; padding-left: 28px; padding-right: 28px; }
@media (max-width: 480px) { .estimate-row { grid-template-columns: 1fr; } .estimate-row.compact { grid-template-columns: 1fr; } .estimate-row.compact .btn { width: 100%; } }

/* Adopted from the category audit (2026-11-03): two-sided entry, product on the page, who-it's-for tiles, mechanism strip */
.btn.primary.alt { background: var(--secondary); border-color: var(--secondary); }
.btn.primary.alt:hover { background: #00636A; border-color: #00636A; }
.nav-signin { border: 1px solid var(--outline); }
.sides { padding-top: 40px; }
.side h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.side-steps { padding-left: 1.2em; margin: 0 0 1em; }
.side-steps li { margin-bottom: .7em; color: var(--muted); }
.side-steps strong { color: var(--text); }

.mock { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(17, 58, 100, .35); font-size: .92rem; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--outline); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--outline); }
.mock-bar b { margin-left: 10px; font-weight: 700; color: var(--muted); }
.mock-row { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--outline); align-items: center; }
.mock-row.head { font-weight: 700; color: var(--muted); background: var(--bg); }
.mock-row i { font-style: normal; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: #E3F4F5; color: var(--secondary); }
.pill.warn { background: #FFF4E5; color: #8A4B00; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px; color: var(--muted); font-size: .85rem; }

.tiles { display: grid; gap: 14px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 18px 20px; }
.tile b { display: block; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: .95rem; }
.tile:hover, .tile:focus-visible { border-color: var(--primary); }

.strip-section { padding: 28px 0; background: var(--text); color: #E2E8F0; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 28px; }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip b { display: block; color: #fff; margin-bottom: 4px; }
.strip span { font-size: .92rem; color: #CBD5E1; }
