/* 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(2rem, 5vw, 3rem); letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; margin: 0 0 .6em; }
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 { background: var(--surface); border-bottom: 1px solid var(--outline); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.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); }
@media (max-width: 420px) { .nav a { padding: 10px 9px; font-size: .9rem; } }
.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 { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--secondary); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } .hero { padding: 80px 0 64px; } }
.hero-art { justify-self: center; width: min(300px, 64vw); background: #fff; border-radius: 32px; padding: 20px; box-shadow: 0 12px 40px rgba(23, 74, 126, .14); border: 1px solid var(--outline); }
.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; }
.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); }

/* 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; } }
