/* BritzLife website. Colour tokens match the app (devcrux/BritzLife src/theme/tokens.ts). */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #0F1B2D;
  --body: #4A5363;
  --muted: #5B6474;
  --border: #E3E6EB;
  --line: #EEF0F3;
  --soft: #E8EEFB;
  --soft-ink: #1F3B8F;
  --primary: #1F3B8F;
  --primary-hover: #19317A;
  --on-primary: #FFFFFF;
  --navy: #1F3B8F;
  --navy-deep: #0F1B2D;
  --gold: #F2C14E;
  --gold-hover: #E9B436;
  --red: #C8102E;
  --ok-bg: #DCFCE7;
  --ok-ink: #14532D;
  --ok: #16A34A;
  --bad-bg: #FEE2E2;
  --bad-ink: #7F1D1D;
  --bad: #DC2626;
  --track: #E3E6EB;
  --focus: #1F3B8F;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 27, 45, .25);
  --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, .45);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --surface: #151E2E;
    --ink: #EEF2F8;
    --body: #B8C1CF;
    --muted: #9AA4B5;
    --border: #263248;
    --line: #1F2A3D;
    --soft: #1C2B4D;
    --soft-ink: #A9C1FF;
    --primary: #4F72D9;
    --primary-hover: #5F80E0;
    --ok-bg: #12351F;
    --ok-ink: #86EFAC;
    --bad-bg: #3F1515;
    --bad-ink: #FCA5A5;
    --track: #263248;
    --focus: #A9C1FF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
cite { font-style: italic; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; box-shadow: var(--shadow-md); transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:not(:disabled):hover { background: var(--primary-hover); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .97rem;
}
.nav-menu a:not(.btn):hover { background: var(--soft); color: var(--soft-ink); }
.nav-cta { margin-left: 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-menu a:not(.btn) { padding: 14px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% 10%, #2A4FB8 0%, transparent 60%), linear-gradient(160deg, #1F3B8F 0%, #142A6B 55%, #0F1B2D 100%);
  color: #DCE4F5; padding: 56px 0 72px;
}
.hero-flag {
  position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 60px), #fff calc(50% - 60px), #fff calc(50% + 60px), transparent calc(50% + 60px)),
    linear-gradient(0deg, transparent calc(50% - 60px), #fff calc(50% - 60px), #fff calc(50% + 60px), transparent calc(50% + 60px)),
    linear-gradient(33deg, transparent calc(50% - 40px), #fff calc(50% - 40px), #fff calc(50% + 40px), transparent calc(50% + 40px)),
    linear-gradient(-33deg, transparent calc(50% - 40px), #fff calc(50% - 40px), #fff calc(50% + 40px), transparent calc(50% + 40px));
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; }
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero .lead { font-size: 1.15rem; max-width: 34em; color: #DCE4F5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-weight: 600; font-size: .9rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, .25); }
.hero-note { margin-top: 18px; font-size: .95rem; color: #C3CEE6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-buttons-center { justify-content: center; }
@media (min-width: 1024px) {
  .hero .store-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 236px)); }
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: 14px; background: #0B0F17; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s;
}
.store-btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .85; letter-spacing: .01em; }
.store-btn:hover { background: #000; border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.store-btn:active { transform: translateY(0) scale(.98); }
.store-btn:focus-visible { outline-color: var(--gold); }

/* Hero demo (phone) */
.hero-demo { display: flex; justify-content: center; }
.demo { position: relative; margin: 0; padding: 18px 40px 56px; }
.phone {
  position: relative; width: 300px; height: 612px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2B3446, #0B0F17); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #0B0F17; border-radius: 20px; z-index: 3; }
.screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: #F5F6F8; color: #0F1B2D; padding: 58px 16px 16px; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.4;
}
.app-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.app-title { font-size: 14px; }
.timer { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #E8EEFB; color: #1F3B8F; font-variant-numeric: tabular-nums; font-size: 12px; }
.app-progress { margin-top: 12px; font-size: 11.5px; color: #5B6474; font-weight: 600; }
.app-progress .bar { margin-top: 6px; height: 6px; background: #E3E6EB; border-radius: 999px; overflow: hidden; }
.app-progress .bar span { display: block; height: 100%; background: #1F3B8F; border-radius: inherit; transition: width .6s var(--ease); }
.q-stage { position: relative; flex: 1; margin-top: 14px; }
.q-card { position: absolute; inset: 0; transition: transform .5s var(--ease), opacity .4s; }
.q-card.is-entering { transform: translateX(40px); opacity: 0; }
.q-card.is-leaving { transform: translateX(-40px); opacity: 0; }
.q-hint { font-size: 11px; font-weight: 700; color: #1F3B8F; text-transform: uppercase; letter-spacing: .06em; }
.q-text { margin-top: 6px; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: #0F1B2D; }
.q-options { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px;
  background: #fff; border: 2px solid #E3E6EB; border-radius: 12px; font-weight: 600; font-size: 13px;
  transition: border-color .25s, background-color .25s, transform .2s var(--ease);
}
.opt-key {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #EEF0F3; color: #4A5363; font-size: 11.5px; font-weight: 800; transition: background-color .25s, color .25s;
}
.opt.is-picked { border-color: #1F3B8F; background: #E8EEFB; transform: scale(1.015); }
.opt.is-picked .opt-key { background: #1F3B8F; color: #fff; }
.opt.is-correct { border-color: #16A34A; background: #DCFCE7; }
.opt.is-correct .opt-key { background: #16A34A; color: #fff; }
.opt.is-wrong { border-color: #DC2626; background: #FEE2E2; animation: shake .4s; }
.opt.is-wrong .opt-key { background: #DC2626; color: #fff; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.app-actions { padding-top: 10px; }
.app-btn {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px;
  background: #1F3B8F; color: #fff; font-weight: 700; font-size: 14px; transition: transform .15s, background-color .2s, opacity .2s;
}
.app-btn.is-disabled { opacity: .45; }
.app-btn.is-pressed { transform: scale(.95); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 18px 24px;
  background: #fff; border-radius: 22px 22px 35px 35px; box-shadow: 0 -12px 30px -10px rgba(15, 27, 45, .3);
  transform: translateY(105%); transition: transform .45s var(--ease);
}
.sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: #E3E6EB; margin: -6px auto 12px; }
.sheet.is-open { transform: none; }
.sheet-title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sheet-title::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10.5 17 18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sheet.is-wrong .sheet-title { color: #7F1D1D; }
.sheet.is-wrong .sheet-title::before { background: #DC2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.sheet:not(.is-wrong) .sheet-title { color: #14532D; }
.sheet-body { margin-top: 6px; color: #4A5363; font-size: 13px; }

.result {
  position: absolute; inset: 0; z-index: 4; background: #F5F6F8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.result.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.result .ring { position: relative; width: 150px; height: 150px; }
.result .ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #14532D; }
.result-title { margin-top: 16px; font-size: 22px; font-weight: 800; color: #0F1B2D; }
.result-sub { margin-top: 4px; color: #5B6474; font-weight: 600; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #E3E6EB; stroke-width: 12; }
.ring-fill { fill: none; stroke: #16A34A; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.2s var(--ease); }

.tap {
  position: absolute; z-index: 5; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(31, 59, 143, .25); border: 2px solid rgba(31, 59, 143, .55);
  opacity: 0; pointer-events: none; transition: transform .7s var(--ease), opacity .3s;
}
.tap.is-visible { opacity: 1; }
.tap.is-tapping { animation: tap .35s; }
@keyframes tap { 50% { scale: .7; background: rgba(31, 59, 143, .45); } }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #fff; color: #0F1B2D; border-radius: 16px; box-shadow: var(--shadow-md); padding: 12px 16px; font-weight: 700;
  animation: bob 6s ease-in-out infinite;
}
.float-pass { top: 130px; right: -78px; flex-direction: column; align-items: flex-start; gap: 0; }
.float-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5B6474; }
.float-value { font-size: 26px; font-weight: 800; color: #1F3B8F; font-variant-numeric: tabular-nums; }
.float-streak { left: -84px; bottom: 150px; font-size: 14px; animation-delay: -3s; }
.float-streak svg { color: #fff; background: #16A34A; border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.demo-toggle {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.demo-toggle:hover { background: rgba(255, 255, 255, .2); }
.demo-toggle:focus-visible { outline-color: var(--gold); }
.demo-toggle .i-play, .demo-toggle[aria-pressed="true"] .i-pause { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: block; }

/* Facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--border); }
.facts-list { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts-list li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 8px; }
.facts-list li + li { border-left: 1px solid var(--border); }
.facts-list strong { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts-list span { color: var(--muted); font-size: .93rem; font-weight: 500; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-left { text-align: left; margin: 0; }
.kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--soft-ink); } }
.section-lead { margin-top: 14px; font-size: 1.1rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature-grid > .feature { grid-column: span 2; }
.feature-grid > .feature-half { grid-column: span 3; }
.feature {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature p { font-size: 1rem; }
.feature-grid > .feature-wide { grid-column: span 6; }
.feature-wide { flex-direction: row; align-items: center; gap: 40px; }
.feature-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--soft-ink); margin-bottom: 4px; }
.mini-exam { flex: 0 0 340px; display: grid; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-md); font-weight: 600; color: var(--ink); font-size: .95rem; }
.mini-row.is-current { outline: 2px solid var(--primary); outline-offset: -2px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag-bad { background: var(--bad-bg); color: var(--bad-ink); }
.tag-soft { background: var(--soft); color: var(--soft-ink); }

.flip { margin-top: auto; padding-top: 12px; perspective: 900px; height: 150px; }
.flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 18px; border-radius: var(--r-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font-weight: 700; color: var(--ink); line-height: 1.35;
}
.flip-front { background: var(--soft); }
.flip-back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.flip-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }

.gauge { position: relative; width: 132px; height: 132px; margin: auto auto 0; padding-top: 8px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .ring-track { stroke: var(--track); }
.gauge .ring-fill { stroke: var(--primary); }
.gauge span { position: absolute; inset: 8px 0 0; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.gauge.is-in .gauge-fill { stroke-dashoffset: 56.5; }

/* Quiz */
.try-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.try-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.try-points li { position: relative; padding-left: 32px; }
.try-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10.5 17 18 8' fill='none' stroke='%231F3B8F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.quiz { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.quiz-count { font-weight: 700; color: var(--muted); font-size: .95rem; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots span { width: 28px; height: 6px; border-radius: 99px; background: var(--track); transition: background-color .3s; }
.quiz-dots span.is-current { background: var(--primary); }
.quiz-dots span.is-right { background: var(--ok); }
.quiz-dots span.is-wrong { background: var(--bad); }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-question { padding: 0; font-size: clamp(1.2rem, 2.4vw, 1.4rem); font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.quiz-hint { margin-top: 6px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.quiz-options { display: grid; gap: 10px; margin-top: 18px; }
.quiz-option { position: relative; display: block; }
.quiz-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-option label {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); font-weight: 600; transition: border-color .2s, background-color .2s, transform .15s var(--ease);
}
.quiz-option label:hover { border-color: var(--primary); }
.quiz-option .opt-key { background: var(--line); color: var(--body); width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
.quiz-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz-option input:checked + label { border-color: var(--primary); background: var(--soft); }
.quiz-option input:checked + label .opt-key { background: var(--primary); color: #fff; }
.quiz-option input:disabled + label { cursor: default; }
.quiz-option input:disabled + label:hover { border-color: var(--border); }
.quiz-option.is-correct input + label { border-color: var(--ok); background: var(--ok-bg); color: var(--ok-ink); }
.quiz-option.is-correct input + label .opt-key { background: var(--ok); color: #fff; }
.quiz-option.is-wrong input + label { border-color: var(--bad); background: var(--bad-bg); color: var(--bad-ink); animation: shake .4s; }
.quiz-option.is-wrong input + label .opt-key { background: var(--bad); color: #fff; }
.opt-mark { margin-left: auto; font-size: .82rem; font-weight: 800; }
.quiz-feedback:not(:empty) {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface);
  border-left: 4px solid var(--ok); animation: rise .35s var(--ease);
}
.quiz-feedback.is-wrong { border-left-color: var(--bad); }
.quiz-feedback strong { display: block; color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.quiz-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.quiz-done { text-align: center; padding: 12px 0; animation: rise .4s var(--ease); }
.quiz-done:focus { outline: none; }
.quiz-done-score { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.quiz-done-text { margin-top: 6px; font-size: 1.05rem; }
.quiz-done-actions { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.quiz-noscript { margin-top: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.step h3 { margin: 18px 0 8px; }
.step p { font-size: 1rem; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 1.15rem;
}

/* Devices */
.device-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device { padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--bg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.device svg { color: var(--primary); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .device svg { color: var(--soft-ink); } }
.device h3 { font-size: 1.05rem; }
.device p { color: var(--muted); font-size: .95rem; }

/* Check lists */
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10.5 17 18 8' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--primary); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.05rem; border-radius: var(--r-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; }

/* CTA */
.cta { padding: clamp(64px, 9vw, 104px) 0; background: linear-gradient(160deg, #1F3B8F 0%, #0F1B2D 100%); color: #DCE4F5; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-mark { border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.cta h2 { color: #fff; max-width: 16em; }
.cta p { margin-top: 12px; font-size: 1.1rem; }

/* Footer */
.site-footer { background: #0B1220; color: #9AA4B5; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #DCE4F5; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 340px; display: grid; gap: 12px; }
.brand-light { color: #fff; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .18); }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1F2A3D; font-size: .88rem; }

/* Scroll reveal (only when JS has marked the page as ready) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero .lead { margin-inline: auto; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-buttons { justify-content: center; }
  .hero-note { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid > .feature, .feature-grid > .feature-half { grid-column: auto; }
  .feature-grid > .feature-wide { grid-column: span 2; }
  .feature-grid > .feature:last-child { grid-column: span 2; }
  .mini-exam { flex-basis: 300px; }
  .try-grid { grid-template-columns: 1fr; gap: 32px; max-width: 680px; margin-inline: auto; }
  .section-head-left { text-align: center; }
  .try-points { justify-items: center; }
  .device-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { padding: 36px 0 48px; }
  .facts-list { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts-list li + li { border-left: 0; }
  .facts-list li:nth-child(even) { border-left: 1px solid var(--border); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > .feature-wide, .feature-grid > .feature:last-child { grid-column: auto; }
  .feature-wide { flex-direction: column; align-items: stretch; gap: 20px; }
  .mini-exam { flex-basis: auto; }
  .footer-nav { align-items: flex-start; }
  .try-points { justify-items: start; text-align: left; }
  .quiz-dots span { width: 18px; }
}
@media (max-width: 420px) {
  .demo { padding: 12px 0 56px; }
  .phone { width: 280px; height: 580px; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .device-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) { .float-card { display: none; } }

/* Reduced motion: no movement, no looping. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .float-card { animation: none; }
}

/* Windows High Contrast */
@media (forced-colors: active) {
  .opt.is-correct, .quiz-option.is-correct input + label { border-style: double; border-width: 4px; }
  .opt.is-wrong, .quiz-option.is-wrong input + label { border-style: dashed; }
}

/* Inner pages */
.narrow { max-width: 820px; }
.page-hero { padding: clamp(48px, 8vw, 88px) 0 8px; }
.page-hero-center { text-align: center; padding-bottom: clamp(64px, 10vw, 120px); }
.page-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.section-tight { padding-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--body); text-decoration: none;
}
a.contact-card { transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.contact-card strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
a.contact-card span:last-child { color: var(--primary); font-weight: 700; word-break: break-word; }
@media (prefers-color-scheme: dark) { a.contact-card span:last-child { color: var(--soft-ink); } }
.contact-tips .checks { margin: 0; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
