:root {
  --ink: #101820;
  --ink-soft: #40505d;
  --muted: #687783;
  --white: #fff;
  --sky-50: #f5fbff;
  --sky-100: #e8f7ff;
  --sky-200: #c9ecff;
  --sky-400: #4fbbe9;
  --sky-500: #1896cf;
  --sky-600: #0877aa;
  --green: #c9f3dc;
  --green-deep: #11623f;
  --peach: #ffdcc8;
  --yellow: #ffe78a;
  --border: #dbe8ee;
  --shadow: 0 18px 48px rgba(15, 65, 90, .13);
  --shell: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 16px; border-radius: 10px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; }

.topbar { height: 68px; position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; padding-top: env(safe-area-inset-top); background: rgba(255,255,255,.92); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: border-color 180ms ease, box-shadow 180ms ease; }
.topbar.scrolled { border-color: rgba(16,24,32,.08); box-shadow: 0 8px 24px rgba(12,51,70,.08); }
.topbar-inner { height: 100%; position: relative; display: flex; align-items: center; justify-content: flex-start; }
.brand { min-width: 120px; min-height: 48px; position: absolute; left: 50%; display: flex; align-items: center; justify-content: center; transform: translateX(-50%); }
.brand img { width: 126px; height: 44px; object-fit: contain; }
.menu-button { width: 48px; height: 48px; position: relative; z-index: 2; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--sky-50); cursor: pointer; }
.menu-button span { width: 22px; height: 2px; display: block; border-radius: 2px; background: currentColor; transition: transform 200ms ease, opacity 160ms ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { height: calc(100dvh - 68px); position: fixed; inset: 68px 0 auto; z-index: 95; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px calc(30px + env(safe-area-inset-bottom)); background: var(--white); opacity: 0; visibility: hidden; transform: translateX(-100%); transition: transform 220ms ease-out, opacity 180ms ease-out, visibility 180ms; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-menu > a:not(.button) { min-height: 54px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 700; }
.mobile-menu .menu-sign-in { margin-top: 8px; justify-content: center; border: 1px solid var(--border); border-radius: 14px; }
.mobile-menu .button { margin-top: 8px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 14px; color: var(--white); background: var(--ink); font-weight: 800; line-height: 1.15; cursor: pointer; transition: opacity 160ms ease, transform 160ms ease; }
.button:active { opacity: .84; transform: scale(.98); }
.button-large { width: 100%; min-height: 56px; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.quiet-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; color: var(--sky-600); font-size: 14px; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: 116px 0 58px; text-align: center; background: radial-gradient(circle at 90% 10%, rgba(255,231,138,.5), transparent 26%), linear-gradient(145deg, #f8fdff, var(--sky-100)); }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--sky-600); font-size: 11px; font-weight: 850; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.eyebrow { padding: 8px 11px; border: 1px solid rgba(8,119,170,.15); border-radius: 99px; background: rgba(255,255,255,.72); }
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { max-width: 540px; margin: 0 auto 20px; font-size: clamp(2.9rem, 13vw, 5.4rem); font-weight: 900; }
.hero h1 span { color: var(--sky-600); }
.hero-copy { max-width: 540px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.payment-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; color: var(--green-deep); font-size: 12px; font-weight: 800; }
.payment-note svg { width: 18px; height: 18px; }
.quick-proof { border-bottom: 1px solid var(--border); background: var(--white); }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-row span { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; border-right: 1px solid var(--border); color: var(--muted); font-size: 10px; text-align: center; }
.proof-row span:last-child { border: 0; }
.proof-row b { color: var(--ink); font-size: 14px; }

.section { padding: 76px 0; }
.section-heading { max-width: 560px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(2.15rem, 10vw, 3.6rem); font-weight: 880; }
.section-heading > p { margin-bottom: 0; color: var(--muted); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.heading-row h2 { margin-bottom: 0; }
.swipe-hint { flex: 0 0 auto; margin-bottom: 7px; color: var(--sky-600); font-size: 12px; font-weight: 800; }

.start-cards { display: grid; gap: 0; }
.start-card { display: grid; grid-template-columns: 54px 1fr; gap: 15px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 10px 30px rgba(17,65,88,.08); }
.upload-card { background: var(--sky-50); }
.library-card { background: #f5fff9; }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--sky-600); background: var(--sky-200); }
.library-card .icon-box { color: var(--green-deep); background: var(--green); }
.icon-box svg { width: 25px; height: 25px; }
.start-card small, .subject-card small { display: block; margin-bottom: 3px; color: var(--sky-600); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.start-card h3 { margin-bottom: 5px; font-size: 19px; }
.start-card p { margin: 0; color: var(--muted); font-size: 13px; }
.or { height: 32px; position: relative; display: grid; place-items: center; }
.or::before { content: ""; width: 1px; height: 100%; background: var(--border); }
.or span { position: absolute; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--white); font-size: 11px; font-weight: 800; }

.subject-section { overflow: hidden; background: var(--sky-50); }
.subject-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 390px); gap: 14px; overflow-x: auto; padding: 0 max(16px, calc((100vw - var(--shell))/2)) 18px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.subject-track::-webkit-scrollbar { display: none; }
.subject-card { overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--white); box-shadow: 0 12px 34px rgba(16,65,88,.1); scroll-snap-align: center; }
.subject-card img { width: 100%; height: auto; aspect-ratio: 800 / 533; object-fit: contain; background: var(--sky-100); }
.subject-card > div { min-height: 200px; padding: 24px; }
.subject-card h3 { margin-bottom: 10px; font-size: 24px; }
.subject-card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps-section { background: var(--white); }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { min-height: 118px; display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); }
.steps li > span { align-self: start; color: var(--sky-500); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.steps h3 { margin-bottom: 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.ai-section { color: var(--white); background: var(--ink); }
.light-heading .kicker { color: var(--sky-300); }
.light-heading > p { color: #b7c3ca; }
.ai-card { max-width: 460px; margin-inline: auto; padding: 22px; border-radius: 24px; color: var(--ink); background: var(--white); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ai-card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 800; }
.ai-card-top b { padding: 5px 9px; border-radius: 99px; color: var(--green-deep); background: var(--green); font-size: 10px; }
.score-ring { width: 142px; height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 24px auto; border: 12px solid var(--sky-200); border-top-color: var(--sky-500); border-radius: 50%; }
.score-ring strong { font-size: 32px; line-height: 1; }
.score-ring small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.answer-row { min-height: 56px; display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 10px 12px; border-radius: 14px; background: var(--sky-50); }
.answer-row svg { width: 22px; height: 22px; flex: 0 0 auto; }
.answer-row span { color: var(--muted); font-size: 11px; }
.answer-row b { display: block; color: var(--ink); font-size: 12px; }
.correct svg { color: var(--green-deep); }
.review svg { color: #9a5b00; }
.ai-card button { width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 13px; color: var(--white); background: var(--ink); font-weight: 800; cursor: pointer; }

.role-list { display: grid; gap: 12px; }
.role-list article { display: grid; grid-template-columns: 54px 1fr; gap: 15px; padding: 18px; border-bottom: 1px solid var(--border); }
.role-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--sky-600); background: var(--sky-100); }
.role-icon svg { width: 24px; height: 24px; }
.role-icon.green { color: var(--green-deep); background: var(--green); }
.role-icon.peach { color: #91401e; background: var(--peach); }
.role-icon.yellow { color: #765700; background: var(--yellow); }
.role-list h3 { margin-bottom: 5px; font-size: 19px; }
.role-list p { margin: 0; color: var(--muted); font-size: 13px; }

.progress-section { background: var(--sky-50); }
.progress-card { padding: 24px 20px 22px; border: 1px solid var(--border); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.progress-title { display: flex; justify-content: space-between; gap: 15px; }
.progress-title small { display: block; color: var(--muted); font-size: 10px; }
.progress-title strong { font-size: 15px; }
.progress-title > span { align-self: center; padding: 6px 9px; border-radius: 10px; color: var(--green-deep); background: var(--green); font-size: 12px; font-weight: 850; }
.bars { height: 180px; display: flex; align-items: end; justify-content: space-around; gap: 10px; margin-top: 24px; padding: 0 8px 25px; border-bottom: 1px solid var(--border); }
.bars i { width: 36px; height: var(--bar); position: relative; border-radius: 10px 10px 3px 3px; background: linear-gradient(var(--sky-400), var(--sky-600)); }
.bars i:last-child { background: linear-gradient(#4cc88d, var(--green-deep)); }
.bars span { position: absolute; top: calc(100% + 8px); left: 50%; color: var(--muted); font-size: 9px; font-style: normal; transform: translateX(-50%); }

.pricing-section { background: var(--white); }
.price-card { padding: 30px 24px; border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(145deg, #fff, var(--sky-50)); box-shadow: var(--shadow); }
.price-label { color: var(--sky-600); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.price-card h2 { margin: 7px 0 10px; font-size: 38px; }
.price-card > p { color: var(--muted); }
.price-card ul { display: grid; gap: 11px; margin: 24px 0 28px; padding: 0; list-style: none; }
.price-card li { display: flex; gap: 9px; color: var(--ink-soft); font-size: 14px; }
.price-card li::before { content: "✓"; color: var(--green-deep); font-weight: 900; }
.price-note { display: block; margin-top: 12px; color: var(--green-deep); font-weight: 800; text-align: center; }

.faq-section { background: var(--sky-50); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--sky-600); background: var(--sky-100); font-size: 20px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 42px 22px 0; color: var(--muted); font-size: 14px; }
.support-link { min-height: 52px; display: flex; align-items: center; justify-content: center; margin-top: 28px; color: var(--sky-600); font-weight: 800; }

.final-cta { padding: 72px 0; color: var(--white); background: var(--sky-600); text-align: center; }
.final-cta .kicker { color: var(--sky-100); }
.final-cta h2 { margin-bottom: 15px; font-size: clamp(2.45rem, 11vw, 4rem); }
.final-cta p { color: #d9f3ff; }
.final-cta small { display: block; margin-top: 12px; color: var(--sky-100); font-weight: 750; }

.footer { padding: 60px 0 calc(110px + env(safe-area-inset-bottom)); color: var(--white); background: var(--ink); }
.footer img { width: 145px; height: 50px; margin-bottom: 16px; object-fit: contain; filter: brightness(0) invert(1); }
.footer p { max-width: 340px; color: #aebbc3; font-size: 13px; }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 28px 0; }
.footer nav a { min-height: 44px; display: flex; align-items: center; color: #c4d0d6; font-size: 13px; }
.footer-email { min-height: 44px; display: inline-flex; align-items: center; color: var(--sky-300); font-size: 13px; font-weight: 800; }
.footer .copyright { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #2b3942; color: #71818b; font-size: 10px; }

.sticky-action { min-height: 72px; position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 9px 9px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: var(--white); background: rgba(16,24,32,.95); box-shadow: 0 14px 35px rgba(0,0,0,.28); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translateY(120%); transition: transform 220ms ease, opacity 180ms ease, visibility 180ms; }
.sticky-action.show { opacity: 1; visibility: visible; transform: translateY(0); }
.sticky-action small { display: block; color: #aebbc3; font-size: 9px; }
.sticky-action strong { display: block; font-size: 11px; }
.sticky-action a { min-width: 112px; min-height: 48px; display: grid; place-items: center; padding: 0 15px; border-radius: 12px; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 850; }

@media (min-width: 680px) {
  .shell { width: min(calc(100% - 64px), var(--shell)); }
  .hero { padding-top: 140px; }
  .hero .button-large { width: auto; min-width: 260px; }
  .start-cards { grid-template-columns: 1fr 40px 1fr; align-items: center; }
  .or { width: 40px; height: 100%; }
  .or::before { width: 100%; height: 1px; }
  .subject-track { grid-auto-columns: 390px; padding-left: max(32px, calc((100vw - var(--shell))/2)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .role-list { grid-template-columns: 1fr 1fr; }
  .footer nav { grid-template-columns: repeat(5, auto); justify-content: start; gap: 12px 25px; }
  .sticky-action { width: min(calc(100% - 32px), 560px); inset-inline: 50%; transform: translate(-50%, 120%); }
  .sticky-action.show { transform: translate(-50%, 0); }
}

@media (orientation: landscape) and (max-height: 520px) {
  .mobile-menu { overflow-y: auto; }
  .mobile-menu > a:not(.button) { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
