/* AdaptiveReps site. Colors and type match the app (src/constants/theme.ts). */
:root {
  --bg: #0E1116;
  --bg-2: #12161C;
  --card: #171B22;
  --card-2: #2A303A;
  --line: #232934;
  --line-2: #2C3340;
  --text: #F2F4F7;
  --muted: #A9B1BD;
  --faint: #8B94A3;
  --lime: #C6F432;
  --lime-hover: #E2FF7A;
  --lime-bg: #18200C;
  --blue: #5AA9FF;
  --orange: #FF8A3D;
  --warn-bg: #2A2410;
  --warn: #FFE7A3;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }
.wrap-narrow { max-width: 1000px; }
.wrap-text { max-width: 860px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.staging-bar {
  background: var(--warn-bg); color: var(--warn); font-size: 14px; text-align: center;
  padding: 8px 16px; border-bottom: 1px solid #4A3F1A;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,17,22,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-only-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: none; background: transparent; color: var(--text); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--card); }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, 4vw) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-only-mobile { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; text-decoration: none; border-radius: 999px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 1.2; text-align: center; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { background: var(--lime-hover); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #1d232c; color: var(--text); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); text-decoration: none; padding: 10px 22px; border-radius: 14px; min-height: 54px; }
.store-badge:hover { background: #fff; color: var(--bg); }
.store-badge.dark { background: var(--bg); color: var(--text); }
.store-badge.dark:hover { background: #1d232c; color: var(--text); }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .small { font-size: 11px; }
.store-badge .big { font-size: 19px; font-weight: 600; }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lime); }
.eyebrow .blue { color: var(--blue); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); }
.h-hero { font-size: clamp(40px, 6vw, 62px); line-height: 1.02; letter-spacing: -1.8px; }
.h-page { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -1.4px; }
.h-section { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -1px; }
.h-card { font-size: 22px; }
.ph { color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 0 6px; font-weight: 500; white-space: nowrap; }

/* Layout helpers */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-sm { padding-top: 64px; padding-bottom: 64px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-4.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .cols-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .order-first-mobile { order: -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-4.plans, .grid-4.cards { grid-template-columns: minmax(0, 1fr); }
}

.card { background: var(--card); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-line { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p, .card-line p { color: var(--muted); font-size: 16px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--bg); background: var(--lime); width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--lime); }
.dot.blue { background: var(--blue); }
.dot.orange { background: var(--orange); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: none; margin-top: 3px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .lead { max-width: 520px; }

/* Phone mock-ups */
.phone-wrap { display: flex; justify-content: center; min-width: 0; }
.phone { width: 300px; max-width: 100%; border-radius: 46px; border: 10px solid var(--line); background: var(--bg); padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px rgba(0,0,0,0.45); font-size: 15px; }
.phone.wide { width: 320px; gap: 12px; }
.phone .tile { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.phone .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.phone .ex { display: flex; justify-content: space-between; font-size: 13px; }
.phone .ex span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.phone .pill { background: var(--lime); color: var(--bg); font-weight: 600; text-align: center; border-radius: 999px; padding: 11px; font-size: 15px; }
.phone .pill.grey { background: var(--card-2); color: var(--text); font-weight: 500; }
.phone .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phone .stat { background: var(--card); border-radius: 14px; padding: 12px; }
.phone .stat b { display: block; font-family: var(--display); font-size: 20px; }
.phone .stat span { font-size: 12px; color: var(--muted); }
.phone .note { background: var(--warn-bg); border-radius: 14px; padding: 12px; font-size: 13px; color: var(--warn); }
.phone .change { background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.phone .choice { display: flex; gap: 8px; }
.phone .choice button { flex: 1; border: none; font: inherit; font-size: 13px; padding: 9px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.phone .choice .yes { background: var(--lime); color: var(--bg); font-weight: 600; }
.phone .choice .no { background: var(--card-2); color: var(--text); }
.phone .change.done { opacity: 0.85; }
.phone .change .result { font-size: 13px; font-weight: 600; }

/* Stat strip */
.strip { padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--muted); }
.strip b { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--text); }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
th { text-align: left; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; padding: 16px 20px; }
td { padding: 16px 20px; border-top: 1px solid var(--line-2); vertical-align: top; }
tr.us { background: var(--lime-bg); }
td.yes { color: var(--lime); }
td.no { color: var(--faint); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pricing */
.plan { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.best { border: 2px solid var(--lime); background: var(--lime-bg); padding: 27px 23px; }
.plan h2 { font-size: 22px; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; }
.plan .per { color: var(--muted); font-size: 17px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; flex-grow: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.badge { align-self: flex-start; background: var(--lime); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .hl { color: var(--lime); font-size: 15px; font-weight: 500; }
.plan .hl.orange { color: var(--orange); }

/* Quotes */
.quote { margin: 0; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-size: 17px; }
.quote figcaption { font-size: 14px; color: var(--faint); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-2); padding: 6px 0 14px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-family: var(--display); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* CTA band */
.cta { background: var(--lime); color: var(--bg); }
.cta a:not(.store-badge):not(.btn) { color: var(--bg); }
.cta-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -1.2px; }
.cta-box { background: var(--lime); color: var(--bg); border-radius: var(--r-lg); padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-box h2 { font-size: 28px; }
.panel { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }

/* Bars */
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-line { display: flex; align-items: center; gap: 12px; }
.bar { height: 28px; border-radius: 6px; flex: none; }
.bar-val { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* Link cards */
.link-card { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 18px 20px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.link-card:hover { border-color: var(--muted); color: var(--text); }
.link-card .t { font-weight: 600; }
.link-card .d { font-size: 14px; color: var(--muted); }
.link-card.soon { opacity: 0.6; pointer-events: none; }

/* Tools */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 56px; height: 56px; border-radius: var(--r-md); border: none; background: var(--card-2); color: var(--text); font-size: 28px; cursor: pointer; flex: none; }
.stepper button:hover { background: #343b47; }
.stepper input { flex-grow: 1; min-width: 0; width: 100%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 44px; background: transparent; border: none; color: var(--text); font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; }
.input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font: inherit; font-size: 18px; padding: 12px 14px; min-height: 48px; width: 100%; }
.input:focus { border-color: var(--lime); outline: none; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: none; background: transparent; color: var(--muted); font: inherit; font-size: 15px; padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--text); font-weight: 600; }
.zone { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.zone-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.zone-range { font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.zone-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.zone-fill { height: 8px; border-radius: 999px; }
.zone .use { font-size: 14px; color: var(--muted); }
.big-num { font-family: var(--display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.result-hero { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -1px; margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: #D4D9E0; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer-grid { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.footer-name { color: var(--text); font-weight: 600; font-size: 16px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }
.footer-h { color: var(--text); font-weight: 600; }
.footer-legal { padding-bottom: 40px; font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: 14px; font-size: 15px; font-weight: 500; max-width: calc(100% - 32px); width: max-content; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 200; }
.quote .ph { white-space: normal; display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 18px; } .nav-actions .btn-sm { padding: 10px 14px; } }
.big-num { white-space: nowrap; }
