:root {
  --ink: #102342;
  --muted: #60708a;
  --line: #dce4ef;
  --surface: #ffffff;
  --wash: #f4f7fb;
  --blue: #103b78;
  --blue-dark: #092b5e;
  --blue-soft: #e8f0ff;
  --accent: #53c7b8;
  --success: #20a878;
  --max: 72rem;
  font-family: "Avenir Next Rounded", "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); }
body, button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; top: .75rem; left: .75rem; transform: translateY(-200%); z-index: 20; padding: .7rem 1rem; border-radius: .6rem; background: var(--blue); color: white; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, white 92%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.topbar { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue-dark); }
.brand-mark { width: 2rem; height: 2rem; border-radius: .62rem; box-shadow: 0 5px 12px rgba(16, 59, 120, .2); }
.desktop-nav { display: flex; align-items: center; gap: 1.4rem; color: #465873; font-size: .94rem; font-weight: 650; }
.desktop-nav a, .footer-links a { text-decoration: none; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--blue); }
.menu-button { display: none; border: 0; border-radius: .65rem; background: var(--wash); color: var(--blue); padding: .55rem .7rem; font-weight: 750; }
.mobile-nav { display: none; padding: 0 0 1rem; }
.mobile-nav[data-open] { display: grid; gap: .35rem; }
.mobile-nav a { text-decoration: none; padding: .8rem; border-radius: .6rem; font-weight: 650; }
.mobile-nav a:hover { background: var(--wash); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .75rem 1.05rem; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 5px 0 var(--blue-dark), 0 10px 20px rgba(16, 59, 120, .14); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue); border: 1px solid #bfccdf; background: white; box-shadow: 0 3px 0 #d3ddeb; }
.button-small { min-height: 2.5rem; padding: .55rem .85rem; font-size: .88rem; }

.hero { overflow: hidden; padding: clamp(4rem, 9vw, 7.75rem) 0 4rem; background: linear-gradient(180deg, #fff 0%, #f6f9fe 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(20rem, 1.08fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 10ch; margin-bottom: 1.35rem; font-size: clamp(3.2rem, 6vw, 5.5rem); letter-spacing: -.075em; line-height: .96; }
h2 { max-width: 17ch; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.055em; line-height: 1.03; }
h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }
.supporting { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1rem; }
.device-stage { position: relative; min-height: 37rem; display: grid; place-items: center; }
.device-halo { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #dfeaff 0%, rgba(223, 234, 255, 0) 70%); }
.phone-shot { position: relative; width: min(100%, 20.5rem); border: 7px solid #fff; border-radius: 2.25rem; box-shadow: 0 26px 55px rgba(15, 47, 95, .18); }

.section { padding: clamp(4rem, 9vw, 7.75rem) 0; }
.section-tint { background: var(--wash); }
.section-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(18rem, 1fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-intro p { max-width: 33rem; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.35rem; background: white; box-shadow: 0 4px 0 #dfe7f3; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #dfe7f3; }
.feature-number { display: inline-grid; width: 2rem; height: 2rem; margin-bottom: 1.65rem; place-items: center; border-radius: .58rem; background: var(--blue-soft); color: var(--blue); font-size: .82rem; font-weight: 800; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .94rem; }

.story { display: grid; grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.story.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr); }
.story.reverse .story-copy { order: 2; }
.story-copy p { max-width: 30rem; color: var(--muted); font-size: 1.05rem; line-height: 1.62; }
.shot-wrap { display: grid; place-items: center; min-height: 34rem; padding: 2rem; border-radius: 2rem; background: linear-gradient(150deg, #f3f7ff, #edf4ff); overflow: hidden; }
.shot-wrap .phone-shot { width: min(100%, 20rem); }
.story.reverse .shot-wrap { background: linear-gradient(150deg, #f7faff, #e5efff); }
.preview-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.preview-tabs button { padding: .55rem .72rem; border: 1px solid var(--line); border-radius: .65rem; background: white; color: #50617a; font-size: .86rem; font-weight: 700; }
.preview-tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: white; }
.preview-panel { margin-top: 1rem; }
.preview-panel[hidden] { display: none; }

.predictor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; background: white; box-shadow: 0 7px 0 #dce6f5, 0 16px 34px rgba(14, 44, 89, .08); }
.predictor-top { padding: 1.65rem; background: var(--blue); color: white; }
.predictor-top p { margin: 0; color: #cddcf5; }
.predictor-rows { padding: .5rem 1.65rem; }
.predictor-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.predictor-row:last-child { border-bottom: 0; }
.predictor-row span { color: var(--muted); font-size: .95rem; }
.predictor-row strong { color: var(--blue); font-size: 1.5rem; }
.predictor-row:last-child strong { color: #0b927c; }
.grade-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(17rem, 1.18fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.download { text-align: center; background: var(--blue); color: white; }
.download h2 { margin-inline: auto; }
.download p { max-width: 35rem; margin: 0 auto 1.6rem; color: #d8e5fb; font-size: 1.08rem; line-height: 1.6; }
.download .button { color: var(--blue); background: white; }
.availability { margin-top: 1rem !important; font-size: .9rem !important; }

.site-footer { padding: 3.5rem 0 2rem; background: #081c3d; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand { color: white; }
.site-footer p { max-width: 18rem; color: #b9c9e3; line-height: 1.55; }
.footer-title { margin: 0 0 .75rem; color: #94abd0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: .55rem; color: #e4edfc; font-size: .95rem; }
.footer-bottom { padding-top: 1.4rem; border-top: 1px solid rgba(202, 220, 248, .18); color: #9db1d0; font-size: .85rem; }

.legal { padding: 4.5rem 0 6rem; background: var(--wash); }
.legal-card { max-width: 52rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 1.25rem; background: white; }
.legal-card h1 { max-width: none; font-size: clamp(2.45rem, 5vw, 4rem); }
.legal-card h2 { max-width: none; margin-top: 2.5rem; font-size: 1.45rem; letter-spacing: -.035em; }
.legal-card p, .legal-card li { color: #43536b; line-height: 1.7; }
.legal-card li + li { margin-top: .5rem; }
.legal-date { margin-bottom: 2.5rem; color: var(--muted) !important; }
.legal-callout { padding: 1rem 1.15rem; border-left: 3px solid var(--blue); border-radius: 0 .6rem .6rem 0; background: var(--blue-soft); color: #345172 !important; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.support-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--wash); }
.support-card p { margin: 0; font-size: .94rem; }

@media (max-width: 760px) {
  .shell { width: min(var(--max), calc(100% - 2rem)); }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding-top: 3.75rem; }
  .hero-grid, .section-intro, .story, .story.reverse, .grade-layout { grid-template-columns: 1fr; }
  .story.reverse .story-copy { order: initial; }
  .device-stage { min-height: 29rem; }
  .phone-shot { width: min(82vw, 20rem); }
  .feature-grid, .footer-grid, .support-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .shot-wrap { min-height: 28rem; padding: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 3.1rem; }
  .feature-grid, .support-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .section { padding: 4.25rem 0; }
  .predictor-rows { padding-inline: 1.1rem; }
  .predictor-top { padding: 1.2rem; }
  .predictor-row { gap: .75rem; }
}
