/* surfari.app. Tokens from app/src/theme/tokens.js (PRD 1.1, 1.1.1, 1.5): navy band #092341,
   page #F4F6FA, CTA #3774FF (white text on it only at 18.66px bold, else #125AFF), WQI band
   fills, Poppins for text, Saira for numbers. Mobile first. */
:root {
  --navy: #092341; --navy-2: #0B2A4E; --navy-line: #123A68; --navy-deep: #061A33;
  --page: #F4F6FA; --card: #FFFFFF; --line: #E3E8F0; --ink: #0E2338; --sub: #5B6B82;
  --cta: #3774FF; --cta-ink: #125AFF; --pro: #6E35E1;
  --poor: #FF3B30; --fair: #FF7E15; --good: #C6E223; --great: #19E364; --epic: #3774FF;
  --r: 16px; --gutter: 16px;
  --text: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --num: 'Saira', 'Poppins', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cta-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #47F7FE; outline-offset: 2px; border-radius: 6px; }

main { flex: 1 0 auto; }

/* header */
.top { background: var(--navy); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--navy-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.logo .mark { width: 28px; height: auto; }
.logo-sm { font-size: 17px; } .logo-sm .mark { width: 24px; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: #C9D6EA; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.top-nav a:hover { color: #fff; background: var(--navy-2); }

/* buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 24px; border: 0;
  background: var(--cta-ink); color: #fff; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: #0B4FE6; }
.btn-lg { min-height: 54px; font-size: 18px; font-weight: 700; padding: 0 32px; border-radius: 27px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-line { background: transparent; color: var(--cta-ink); box-shadow: inset 0 0 0 1.5px var(--cta-ink); }
.btn-line:hover { background: rgba(18, 90, 255, .06); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.center .badges { justify-content: center; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; min-width: 170px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge > span { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; line-height: 1.1; }
.badge small { font-size: 11px; font-weight: 400; opacity: .8; }
.badge.is-soon { opacity: .95; cursor: default; }
.badge.is-soon > span { opacity: .55; }
.badge em { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px;
  border-radius: 10px; background: #F9A825; color: #2B1B00; }
.on-dark .badge { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* hero */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(img/hero-800.jpg) center 40% / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 51, .55) 0%, rgba(6, 26, 51, .78) 55%, var(--navy-deep) 100%); }
.hero-in { position: relative; padding-top: 40px; padding-bottom: 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8FE9FF; }
.hero h1 { font-size: 40px; font-weight: 700; margin-top: 12px; max-width: 13ch; }
.lead { font-size: 17px; color: #D5E1F2; margin-top: 16px; max-width: 34em; }
.hero-where { margin-top: 18px; font-size: 14px; color: #A9BBD6; }
.open-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding: 10px 10px 10px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 14px; }
.open-banner[hidden] { display: none; }

/* illustrative app card */
.phone { margin-top: 36px; max-width: 340px; }
.phone-card { background: linear-gradient(160deg, #0D3A6E 0%, var(--navy) 70%); border-radius: 24px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--navy-line); }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.pc-chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 12px; background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--navy-line); }
.pc-ring { position: relative; width: 150px; margin: 14px auto 6px; }
.pc-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 48px/1 var(--num); padding-bottom: 14px; }
.pc-band { position: absolute; left: 0; right: 0; bottom: 38px; text-align: center; font-size: 13px; font-weight: 600; color: var(--great); }
.pc-win { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(249, 168, 37, .12); color: #FFD27A; }
.pc-win b { font: 600 15px/1 var(--num); color: #fff; }
.pc-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 14px; }
.pc-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; }
.b-fair { background: var(--fair); } .b-good { background: var(--good); } .b-great { background: var(--great); }
.phone-note { margin-top: 8px; font-size: 11px; color: #7F93B2; text-align: center; }

/* sections */
.sec { padding: 56px 0; }
.sec h2 { font-size: 26px; font-weight: 700; max-width: 22ch; }
.sec-lead { margin-top: 12px; color: var(--sub); max-width: 36em; }
.sec-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat h3 { font-size: 18px; font-weight: 600; margin-top: 14px; }
.feat p { margin-top: 6px; color: var(--sub); font-size: 15px; }
.feat-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: #EAF1FF; color: var(--cta-ink); flex: none; }
.feat-ic svg { width: 24px; height: 24px; }

.scale { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.band { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--page); }
.band-bar { width: 14px; height: 28px; border-radius: 7px; }
.band-name { font-weight: 600; }
.band-range { color: var(--sub); font-size: 18px; }
.band-poor .band-bar { background: var(--poor); } .band-fair .band-bar { background: var(--fair); } .band-good .band-bar { background: var(--good); }
.band-great .band-bar { background: var(--great); } .band-epic .band-bar { background: var(--epic); }

.split { display: grid; gap: 28px; }
.days { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.day { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.day.is-free { background: #EAF1FF; color: var(--cta-ink); }
.day.is-pro { background: #F1EBFF; color: var(--pro); box-shadow: inset 0 0 0 1px #E2D7F9; }
.day:first-child::after { content: 'Today'; font: 600 10px/1 var(--text); }

.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { margin: 0 auto; }
.cta p { color: #C9D6EA; margin: 12px auto 0; max-width: 32em; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta .badges { justify-content: center; }
.cta .btn-ghost { margin-top: 20px; }

/* inner pages */
.page { padding: 40px 0 64px; }
.page h1 { font-size: 32px; font-weight: 700; }
.page h2 { font-size: 20px; font-weight: 600; margin-top: 36px; }
.page p { margin-top: 12px; }
.lead-dark { color: var(--sub); font-size: 17px; }
.mail-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.mail-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mail-card small { color: var(--sub); font-size: 13px; }
.mail-card b { font-size: 17px; font-weight: 600; color: var(--cta-ink); overflow-wrap: anywhere; }
.mail-card > svg, .doc-list a > svg:last-child { width: 20px; height: 20px; color: #9AA8BC; flex: none; }
.ticks { padding: 0; margin: 12px 0 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; margin-top: 10px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2.5px solid var(--cta-ink); border-bottom: 2.5px solid var(--cta-ink); transform: rotate(-45deg); }
.doc-list { list-style: none; padding: 0; margin: 14px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-decoration: none; color: var(--ink); font-weight: 500; }
.doc-list a:hover { background: #F8FAFD; }
.doc-list a > svg:first-child { width: 22px; height: 22px; color: var(--cta-ink); flex: none; }
.doc-list a > span { flex: 1; display: flex; flex-direction: column; }
.doc-state { font-size: 13px; font-weight: 400; color: var(--sub); }
.doc-state:empty { display: none; }
.crumb { margin: 0 0 16px !important; font-size: 14px; }
.crumb a { text-decoration: none; font-weight: 500; }
.crumb a::before { content: '\2039\00a0'; }

/* legal reader */
.legal-meta { color: var(--sub); font-size: 14px; }
.legal-body { margin-top: 8px; }
.legal-body h2 { font-size: 20px; margin-top: 32px; }
.legal-body p { margin-top: 14px; }
.legal-body ul { margin: 12px 0 0; padding-left: 22px; }
.legal-body li { margin-top: 6px; }
.state { margin-top: 28px; padding: 28px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: center; }
.state h2 { margin-top: 12px !important; font-size: 18px; }
.state p { color: var(--sub); }
.state .feat-ic { margin: 0 auto; }
.state .btn { margin-top: 18px; }
.legal-state:empty { display: none; }
.state-loading { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #DCE5F5; border-top-color: var(--cta); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* open and not found */
.page-open { padding-top: 56px; }
.open-mark .mark, .open-mark svg { width: 64px; height: auto; margin: 0 auto 20px; }
.page-open .btn-lg { margin-top: 24px; }
.open-noapp { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.open-noapp h2 { margin-top: 0; }
.nf-num { font-size: 72px; line-height: 1; color: #C6D3E8; margin-bottom: 12px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px !important; }

/* footer */
.foot { background: var(--navy); color: #A9BBD6; padding: 32px 0 40px; }
.foot-in { display: grid; gap: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: #DCE6F4; text-decoration: none; font-size: 14px; }
.foot-nav a:hover { text-decoration: underline; }
.foot-copy { font-size: 13px; }
.foot-copy a { color: #A9BBD6; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-bg { background-image: url(img/hero.jpg); }
  .hero h1 { font-size: 56px; }
  .lead { font-size: 19px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .band { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .band-bar { width: 100%; height: 10px; border-radius: 5px; }
  .sec { padding: 80px 0; }
  .sec h2 { font-size: 34px; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot-nav { justify-content: flex-end; }
  .foot-copy { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero-in { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
  .hero-in > :not(.phone) { grid-column: 1; }
  .phone { grid-column: 2; grid-row: 1 / span 7; margin: 0 0 0 auto; width: 340px; }
  .feats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spin { animation: none; } }
