:root {
  --bg: #f7faff;
  --paper: rgba(255, 255, 255, 0.92);
  --ink: #071a4c;
  --body: #22325f;
  --muted: #3f4f73;
  --line: rgba(7, 26, 76, 0.12);
  --brand: #073dce;
  --brand-2: #11c3c7;
  --brand-3: #061c78;
  --brand-4: #66d900;
  --soft: #eef5ff;
  --soft-2: #e9fbfc;
  --lime-soft: #f1ffe2;
  --shadow: 0 24px 70px rgba(7, 26, 76, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, #f7faff 0%, #eef5ff 46%, #e9fbfc 100%)
    fixed;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  letter-spacing: 0;
}
.logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;
  background: url("app-icon.png") center / cover no-repeat;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(7, 61, 206, 0.22);
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.logo span:last-child { font-size: 1.05rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(7, 61, 206, 0.18);
}
.button:hover, .nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
button.button {
  cursor: pointer;
  font: inherit;
}
.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  border-color: rgba(7, 61, 206, 0.28);
  box-shadow: none;
}
.button.soft {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.app-store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.app-store-badge img {
  display: block;
  width: 132px;
  height: auto;
}

main { overflow: hidden; }
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  padding: 78px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}
h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
}
.slim h1 { font-size: clamp(2.55rem, 4.4vw, 4.6rem); }
h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}
h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--body);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.46;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.9rem;
}
.phone-card {
  position: relative;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 26px;
}
.app-panel {
  min-height: 560px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-3) 38%, var(--soft) 38%, var(--soft-2) 100%);
  overflow: hidden;
  border: 10px solid #141414;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.app-top {
  color: #fff;
  padding: 36px 24px 64px;
}
.app-top small {
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 750;
}
.app-top strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: 0;
}
.practice-card {
  margin: -40px 18px 0;
  padding: 20px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}
.practice-card p { margin: 0; color: var(--muted); }
.practice-card .question {
  margin: 10px 0 18px;
  color: var(--ink);
  font-weight: 780;
  font-size: 1.06rem;
}
.choice {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  font-weight: 650;
}
.choice.correct {
  background: var(--lime-soft);
  border-color: rgba(102, 217, 0, 0.46);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px;
}
.metric {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
}
.metric strong { display: block; font-size: 1.18rem; }
.metric span { color: var(--muted); font-size: 0.78rem; }

.section {
  padding: 72px 0;
}
section[id] {
  scroll-margin-top: 92px;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section-header p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); }
.card ul, .content ul, .content ol { color: var(--muted); padding-left: 22px; }
.card li, .content li { margin: 8px 0; }
.badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--brand-3);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}
.dark-band {
  background: linear-gradient(135deg, var(--brand-3), #08205f 62%, #073dce);
  color: #fff;
  padding: 74px 0;
}
.dark-band .eyebrow {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--brand-3);
}
.dark-band .lead, .dark-band p { color: rgba(255,255,255,0.76); }
.dark-band .card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.dark-band .card p, .dark-band .card ul { color: rgba(255,255,255,0.72); }
.dark-band .button { background: #fff; color: var(--ink); border-color: #fff; }
.dark-band .button.secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,0.42); }

.example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 18px 0;
}
.example .label {
  color: var(--brand);
  font-weight: 820;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.example strong { display: block; margin-top: 8px; font-size: 1.12rem; }
.example p { color: var(--muted); margin-bottom: 0; }
.example-solution {
  margin-top: 16px;
}
.example-solution summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(7, 61, 206, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}
.example-solution summary::-webkit-details-marker { display: none; }
.example-solution[open] summary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.formula {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 740;
  overflow-wrap: anywhere;
}
.content {
  max-width: 850px;
}
.content p { color: var(--muted); font-size: 1.05rem; }
.content h2 { margin-top: 48px; margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.content h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.45rem; }
.content a { text-decoration: underline; text-underline-offset: 3px; }
.content a.button,
.content a.button:hover,
.content a.button:focus-visible,
.content a.nav-cta,
.content a.app-store-badge,
.content a.app-store-badge:hover,
.content a.app-store-badge:focus-visible,
a.button,
a.button:hover,
a.button:focus-visible,
a.nav-cta,
a.nav-cta:hover,
a.nav-cta:focus-visible,
a.mobile-sticky-cta,
a.mobile-sticky-cta:hover,
a.mobile-sticky-cta:focus-visible {
  text-decoration: none;
}
.callout {
  border-left: 4px solid var(--brand-2);
  background: #eaf8ff;
  padding: 18px 20px;
  border-radius: 0 16px 16px 0;
  margin: 26px 0;
  color: var(--muted);
}
.breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: underline; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: rgba(238, 245, 255, 0.86);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 28px;
}
.footer-grid strong { color: var(--ink); }
.footer-grid a { display: block; margin-top: 8px; color: var(--muted); }
.footer-grid .app-store-badge {
  display: inline-flex;
  margin-top: 12px;
  color: inherit;
}
.footer-grid .app-store-badge:hover {
  text-decoration: none;
}
.small { font-size: 0.92rem; color: var(--muted); }

.screen-card {
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  gap: 16px 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(7, 26, 76, 0.08);
}
.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 2778;
  object-fit: contain;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}
.screen-card-copy {
  align-self: center;
}
.screen-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.18rem;
}
.screen-card p {
  margin: 0;
  color: var(--muted);
}

.mobile-sticky-cta {
  display: none;
}

.app-preview-card {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 251, 252, 0.78)),
    var(--paper);
  box-shadow: var(--shadow);
}
.app-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}
.app-preview-header img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(7, 61, 206, 0.18);
}
.app-preview-header span {
  display: block;
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}
.app-preview-header strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}
.app-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(7, 26, 76, 0.12);
}

@media (max-width: 880px) {
  .nav {
    position: relative;
    min-height: auto;
    padding: 12px 0;
    display: block;
  }
  .logo {
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding-right: 112px;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .logo span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .nav-links {
    display: flex;
    gap: 16px;
    width: calc(100% + 40px);
    margin: 10px -20px 0;
    padding: 0 20px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:not(.nav-cta) {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .nav-links .nav-cta {
    display: inline-flex;
    flex: 0 0 auto;
    position: absolute;
    top: 12px;
    right: 0;
    width: 98px;
    min-height: 40px;
    padding: 0 14px;
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-size: 0.92rem;
  }
  .hero { padding: 54px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .phone-card, .app-preview-card { max-width: 430px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .section-header p { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  h2 { font-size: clamp(1.9rem, 7vw, 3rem); }
}

@media (max-width: 520px) {
  body { padding-bottom: 76px; }
  .container, .nav {
    width: auto;
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }
  .nav {
    display: block;
    position: relative;
  }
  .logo {
    min-height: 40px;
    padding-right: 112px;
  }
  .nav-links {
    width: calc(100% + 28px);
    margin: 10px -14px 0;
    padding: 0 14px 2px;
  }
  h1 { max-width: 10.5ch; }
  .hero-actions .button { width: 100%; }
  .app-store-badge {
    justify-content: center;
    width: 100%;
  }
  .phone-card, .app-preview-card { padding: 14px; }
  .app-preview-image {
    max-height: none;
    object-fit: contain;
  }
  .app-panel { min-height: 520px; border-width: 8px; }
  .metrics { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .screen-card img {
    border-radius: 18px;
  }
  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(7, 61, 206, 0.28);
  }
  .mobile-sticky-cta:hover { text-decoration: none; }
}

@media (max-width: 340px) {
  .nav {
    gap: 8px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .logo span:last-child { font-size: 0.88rem; }
  .nav-links .nav-cta {
    width: 92px;
    padding: 0 10px;
    font-size: 0.86rem;
  }
}

.app-search-card {
  position: relative;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 26px;
}
.app-search-card h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.app-search-card p { color: var(--muted); margin: 0 0 16px; }
.search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 760;
}
.search-pill span:first-child { color: var(--muted); font-weight: 600; }
.share-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}
.share-box h3 { font-size: 1.45rem; margin-bottom: 10px; letter-spacing: 0; }
.share-note {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--muted);
}
.share-copy {
  white-space: pre-line;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
  font-weight: 650;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.share-button {
  min-height: 40px;
  padding: 0 16px;
}
@media (max-width: 880px) { .app-search-card { max-width: 520px; } }
@media (max-width: 520px) {
  .app-search-card { padding: 14px; }
  .search-pill { align-items: flex-start; border-radius: 22px; flex-direction: column; }
  .share-button { width: 100%; }
}
