/* Cursus — marketing site. System fonts (SF Pro / New York on Apple devices), no external resources. */
:root {
  color-scheme: light dark;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --surface: #ffffff;
  --ink: #14262d;
  --ink-2: #4b5e64;
  --ink-3: #7a898c;
  --hair: #dcd8cc;
  --blue: #1a5478;
  --blue-2: #2a6f99;
  --deep: #0d2b3a;
  --deep-2: #12384b;
  --gold: #e3b04b;
  --mint: #3f8f6a;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1220px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --phone-radius: 34px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1a22; --paper-2: #10232d; --surface: #132a35; --ink: #eef2f1; --ink-2: #b4c2c4; --ink-3: #8a9a9d;
    --hair: #20394a; --blue: #7cc0e6; --blue-2: #9fd3f0; --deep: #071319; --deep-2: #0d2330; --mint: #6cc79c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); }
p { margin: 0; text-wrap: pretty; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.badge { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Phones: real screenshots in a quiet frame. */
.phone { border-radius: var(--phone-radius); background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 28px 60px -28px rgba(13, 43, 58, .45); }

/* Header */
.top { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.3rem/1 var(--display); }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); font-size: .9375rem; font-weight: 500; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav .lang { border: 1px solid var(--hair); padding: 6px 12px; border-radius: 10px; color: var(--ink); }
@media (max-width: 860px) { .top nav a:not(.lang) { display: none; } }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 5vw, 64px) var(--gutter) clamp(72px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.3rem + 5.2vw, 5.4rem); max-width: 11.5ch; }
.lede { font-size: clamp(1.07rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); margin-top: 26px; max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; min-height: 52px; background: #0b0b0c; color: #fff; border-radius: 13px; text-decoration: none; font-weight: 600; font-size: 1.12rem; line-height: 1.05; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.store small { display: block; font-size: .68rem; font-weight: 500; opacity: .85; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); color: #fff; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; } .store:hover { color: #000; } }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.note { margin-top: 20px; font-size: .92rem; color: var(--ink-3); }

.hero-art { position: relative; margin: 0; min-height: 520px; display: grid; place-items: center; }
.halo { position: absolute; inset: 6% 2% 4%; border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%; background: radial-gradient(60% 60% at 40% 35%, color-mix(in srgb, var(--blue) 30%, transparent), transparent 70%), radial-gradient(50% 50% at 70% 75%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 70%); filter: blur(6px); }
.hero-art .phone { position: relative; width: min(46%, 280px); }
.phone-front { transform: translate(-28%, 4%) rotate(-3deg); z-index: 2; animation: rise 1s var(--ease) both; }
.phone-back { position: absolute !important; transform: translate(34%, -6%) rotate(4deg); opacity: .96; animation: rise 1s .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding: 12px 0 30px; }
  .hero-art .phone { width: min(52%, 250px); }
}

/* Feature sections */
.feature { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy > p:not(.kicker) { color: var(--ink-2); margin-top: 22px; font-size: 1.1rem; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg) translateY(-3px); }
.feature-shots { display: flex; justify-content: center; gap: clamp(14px, 3vw, 32px); }
.feature-shots .phone { width: min(46%, 300px); }
.feature-shots .offset { margin-top: clamp(40px, 7vw, 96px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
}

/* Results band */
.results { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #eef4f6; }
.results-inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.results .kicker { color: #9fd3f0; }
.results .badge { color: #fff; }
.results-copy p:not(.kicker) { color: #c4d4da; margin-top: 22px; font-size: 1.08rem; }
.results-shot { margin: 0; }
.results-shot .phone { width: 100%; max-width: 300px; margin-inline: auto; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
@media (max-width: 1020px) { .results-inner { grid-template-columns: 1fr 1fr; } .results-copy { grid-column: 1 / -1; } }
@media (max-width: 640px) { .results-inner { grid-template-columns: 1fr; } }

.simulator { background: #fbfaf7; color: #14262d; border-radius: 24px; padding: 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.demo-label { font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #7a898c; margin-bottom: 14px; }
.sim-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e3dfd4; }
.sim-caption { display: block; font-size: .78rem; color: #6b7b7f; }
.sim-course { font: 650 1.25rem/1.2 var(--body); }
.sim-letter { text-align: right; }
.sim-letter span { display: block; font: 700 2.4rem/1 var(--display); color: #1a5478; }
.sim-letter small { color: #4b5e64; font-variant-numeric: tabular-nums; }
.sim-rows { list-style: none; margin: 0; padding: 0; }
.sim-rows li { display: grid; grid-template-columns: 1fr auto 46px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ece8de; font-size: .95rem; }
.sim-rows b { font-variant-numeric: tabular-nums; }
.sim-rows em { font-style: normal; color: #7a898c; font-size: .82rem; text-align: right; }
.sim-slider { grid-template-columns: 1fr 46px !important; }
.sim-slider label { grid-column: 1 / -1; font-weight: 500; }
.sim-slider output { color: #1a5478; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-slider input { width: 100%; accent-color: #1a5478; min-height: 32px; }
.sim-foot { padding-top: 16px; }
.sim-foot strong { font: 700 2.2rem/1 var(--display); color: #1a5478; font-variant-numeric: tabular-nums; margin-right: 4px; }
.sim-foot small { color: #6b7b7f; }
.sim-foot p { margin-top: 10px; font-size: .82rem; color: #6b7b7f; }

/* Student card */
.card-section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.card-copy > p:not(.kicker):not(.fine) { color: var(--ink-2); margin-top: 22px; font-size: 1.1rem; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--paper); font-weight: 700; font-size: .85rem; }
.fine { margin-top: 24px; font-size: .88rem; color: var(--ink-3); }
.card-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.card-phone { width: min(56%, 290px); transform: translateX(26%) rotate(3deg); }
.id-card { position: absolute; left: 4%; top: 12%; z-index: 2; width: min(58%, 290px); background: #fff; color: #111; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(13, 43, 58, .55); transform: rotate(-5deg); display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 12px; }
.id-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 16px; background: linear-gradient(135deg, #1a5478, #23668f); color: #fff; font-weight: 650; font-size: .95rem; text-align: left; }
.id-emblem { width: 26px; height: 30px; border-radius: 4px 4px 12px 12px; background: conic-gradient(#f2c14e 0 25%, #fff 0 50%, #f2c14e 0 75%, #fff 0); opacity: .95; }
.id-band { width: 100%; background: #f2c14e; font-size: .72rem; padding: 6px 8px; font-weight: 500; }
.id-photo { width: 40%; aspect-ratio: 3 / 4; margin-top: 14px; border-radius: 8px; background: linear-gradient(180deg, #e9ecef, #d9dee2); position: relative; overflow: hidden; }
.id-photo::after { content: ""; position: absolute; left: 30%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: #c3cad0; box-shadow: 0 60px 0 18px #c3cad0; }
.id-name { margin-top: 12px; font-size: 1.15rem; letter-spacing: .02em; }
.id-given { font-size: .95rem; color: #333; }
.id-title { margin-top: 6px; font-weight: 650; font-size: .85rem; }
.id-number { font: 600 .9rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
.id-bars { margin-top: 10px; width: 78%; height: 42px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px, #111 12px 13px, #fff 13px 16px); }
.id-copy { margin-top: 8px; font-size: .58rem; color: #999; }
@media (max-width: 860px) {
  .card-section { grid-template-columns: 1fr; }
  .card-stage { min-height: 460px; }
}

/* Privacy */
.promise { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--hair); }
.promise-head { max-width: 40em; }
.promise-head p:not(.kicker) { color: var(--ink-2); margin-top: 18px; font-size: 1.1rem; }
.promise dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin: clamp(32px, 5vw, 56px) 0 0; }
.promise dt { font: 650 1.2rem/1.25 var(--display); margin-bottom: 8px; }
.promise dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.promise dl > div { padding-top: 18px; border-top: 2px solid var(--blue); }
.independence { margin-top: 44px; font-size: .86rem; color: var(--ink-3); max-width: 70em; }
@media (max-width: 960px) { .promise dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise dl { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 120px); }
.faq h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--blue); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Closing + footer */
.closing { text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); background: var(--paper-2); display: grid; justify-items: center; gap: 22px; }
.closing img { border-radius: 18px; box-shadow: 0 18px 40px -20px rgba(13, 43, 58, .5); }
.closing h2 { max-width: 16ch; }
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; color: var(--ink-2); font-size: .92rem; }
.foot-brand p { margin-top: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

/* Scroll reveal (only when JS runs and motion is welcome). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
