/* TnP Student — website. Same palette as the app (lib/core/theme.dart). */
:root {
  --navy-ink: #0e1120;
  --navy-deep: #161a2b;
  --navy: #262b40;
  --coral: #fb7b4a;
  --crimson: #ee3344;
  --indigo: #5b5bd6;
  --success: #16a34a;
  --grad: linear-gradient(135deg, var(--coral), var(--crimson));

  --bg: #f5f6fa;
  --bg-tint: #eef0f7;
  --card: #ffffff;
  --text: #151827;
  --muted: #6b7280;
  --border: #e6e8f0;
  --shadow: 0 24px 48px -24px rgba(22, 26, 43, 0.25);

  --radius: 18px;
  --wrap: 1100px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d101c;
    --bg-tint: #11152a;
    --card: #161a2a;
    --text: #eceef5;
    --muted: #9aa0b4;
    --border: #262b3f;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 820px); }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn:active { transform: scale(.97); }
.btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn small { font-weight: 500; font-size: 12.5px; opacity: .8; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; gap: 8px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { padding: 13px 22px; font-size: 15.5px; }
.btn--lg svg { width: 20px; height: 20px; }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(238, 51, 68, .6); }
.btn--grad:hover { box-shadow: 0 18px 38px -12px rgba(238, 51, 68, .75); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); margin-top: 28px; }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled { background: rgba(14, 17, 32, .78); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: color .2s; }
.nav__links a:hover { color: #fff; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* --------------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #1c2036 0%, var(--navy-ink) 100%);
  min-height: 100svh; display: flex; align-items: center;
  padding: 84px 0 40px;
}
.hero > .wrap { width: min(100% - 32px, var(--wrap)); }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(238,51,68,.45), transparent 65%); }
.aurora span:nth-child(2) { width: 460px; height: 460px; left: -160px; top: 30%; background: radial-gradient(circle, rgba(251,123,74,.35), transparent 65%); animation-delay: -5s; }
.aurora span:nth-child(3) { width: 420px; height: 420px; left: 40%; bottom: -220px; background: radial-gradient(circle, rgba(91,91,214,.35), transparent 65%); animation-delay: -9s; }
.aurora--soft span { opacity: .7; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero { min-height: 0; display: block; padding: 92px 0 56px; } .hero__grid { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* Sized by viewport width AND height so the whole hero fits one laptop screen. */
.hero h1 { font-size: clamp(30px, min(4.1vw, 6.4vh), 54px); font-weight: 800; margin-top: 16px; }
.lead { margin-top: 14px; font-size: clamp(15px, 1.25vw, 17px); color: rgba(255,255,255,.72); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: #34d399; }

.qr {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: 380px;
  padding: 10px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.qr[hidden] { display: none; }
.qr__code { flex: none; background: #fff; padding: 6px; border-radius: 10px; width: 84px; height: 84px; }
.qr__code img, .qr__code canvas { width: 72px !important; height: 72px !important; }
.qr strong { display: block; }
.qr strong { font-size: 14px; }
.qr p { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 2px; }

/* -------------------------------------------------------------- Phone frame */
.phone {
  position: relative; border-radius: 36px; padding: 8px;
  background: linear-gradient(145deg, #2b3050, #10131f);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone::before { /* camera notch */
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 17px; border-radius: 10px; background: #0b0d16; z-index: 2;
}
.phone img { border-radius: 29px; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; background: #0b0d16; }

.hero__visual { position: relative; justify-self: center; width: clamp(220px, calc((100svh - 150px) * .44), 300px); }
@media (max-width: 960px) { .hero__visual { width: min(250px, 66vw); } }
.phone--hero { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.float-card {
  position: absolute; border-radius: 18px; color: var(--text); background: var(--card);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08);
}
.float-card--notif {
  left: -70px; top: 52px; width: 260px; padding: 10px 12px; font-size: 12.5px;
  animation: notif-in 1s cubic-bezier(.2,.9,.3,1.3) .6s both, float 7s ease-in-out 1.6s infinite;
}
.notif__app { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.notif__app img { border-radius: 5px; }
.notif__app .bell { margin-left: auto; animation: ring 2.4s ease-in-out 1.6s infinite; display: inline-block; }
.notif__title { font-weight: 800; margin-top: 6px; }
.notif__body { color: var(--muted); margin-top: 2px; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-24px) scale(.9); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } }

.float-card--stat {
  right: -52px; bottom: 70px; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  animation: notif-in 1s cubic-bezier(.2,.9,.3,1.3) 1.1s both, float 8s ease-in-out 2s infinite reverse;
}
.float-card--stat strong { display: block; font-size: 14px; }
.float-card--stat small { color: var(--muted); font-size: 12px; }
.ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--success) 100%, transparent 0); color: #fff; font-weight: 800; position: relative; }
.ring span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--success); }

@media (max-width: 960px) {
  .float-card--notif { left: -40px; top: 30px; width: 230px; }
  .float-card--stat { right: -40px; }
}
@media (max-width: 420px) {
  .float-card--notif { left: -18px; width: 210px; font-size: 12px; }
  .float-card--stat { right: -18px; bottom: 50px; }
}

/* -------------------------------------------------------------------- Strip */
.strip { background: var(--navy-ink); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 0 26px; gap: 14px; }
.strip__grid div { display: flex; flex-direction: column; gap: 4px; }
.strip strong { font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; }
@media (max-width: 760px) { .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ----------------------------------------------------------------- Sections */
.section { padding: 72px 0; position: relative; }
@media (max-width: 620px) { .section { padding: 56px 0; } }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(180deg, var(--navy-deep), var(--navy-ink)); color: #fff; overflow: hidden; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; }
.section__head p:not(.kicker) { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.kicker { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 8px; }
.kicker--light { color: var(--coral); }

/* ---------------------------------------------------------------- Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(238,51,68,.35); }
.feature h3 { font-size: 17px; margin-top: 14px; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.feature__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.feature__icon svg { width: 21px; height: 21px; }
.i-coral { background: rgba(238,51,68,.12); color: var(--crimson); }
.i-green { background: rgba(22,163,74,.12); color: var(--success); }
.i-indigo { background: rgba(91,91,214,.14); color: var(--indigo); }
.i-blue { background: rgba(37,99,235,.12); color: #2563eb; }
.i-amber { background: rgba(245,158,11,.14); color: #d97706; }
.i-teal { background: rgba(13,148,136,.13); color: #0d9488; }

/* -------------------------------------------------------------------- Split */
.split { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; }
.split__copy > p { color: rgba(255,255,255,.72); font-size: 15.5px; margin-top: 14px; max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; font-size: 15px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.7); }
.checks li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.checks strong { display: block; color: #fff; }
.split__visual { justify-self: center; width: min(250px, 66vw); }
.phone--tilt { transform: rotate(-4deg); transition: transform .5s ease; }
.phone--tilt:hover { transform: rotate(0); }

/* ------------------------------------------------------------------ Gallery */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100vw - var(--wrap)) / 2)) 24px;
  scrollbar-width: thin;
}
.gallery:focus-visible { outline: 3px solid var(--coral); }
.shot { flex: none; width: 200px; margin: 0; scroll-snap-align: center; }
.shot figcaption { text-align: center; margin-top: 12px; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.shot .phone { transition: transform .3s ease; }
.shot:hover .phone { transform: translateY(-8px); }

/* -------------------------------------------------------------------- Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.step__num { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; box-shadow: 0 12px 24px -10px rgba(238,51,68,.6); }
.step h3 { margin-top: 14px; font-size: 17px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }

.download-card {
  margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 85% 0%, rgba(238,51,68,.35), transparent 50%), linear-gradient(135deg, #2b3050, var(--navy-deep));
  box-shadow: 0 30px 60px -30px rgba(14,17,32,.7);
}
.download-card__icon img { border-radius: 18px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.download-card__info { flex: 1; min-width: 220px; }
.download-card__info h3 { font-size: 19px; }
.download-card__info p { color: rgba(255,255,255,.7); margin-top: 4px; }
.ios-note { margin-top: 8px !important; color: #fde68a !important; font-weight: 600; }
.update-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.update-note svg { color: var(--success); margin-top: 3px; }
.update-note strong { color: var(--text); }

/* ------------------------------------------------------------------ Privacy */
.privacy { display: flex; gap: 28px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.privacy h2 { font-size: clamp(21px, 2.4vw, 26px); }
.privacy p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.privacy__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(22,163,74,.12); color: var(--success); }
.privacy__icon svg { width: 26px; height: 26px; }
@media (max-width: 620px) { .privacy { flex-direction: column; padding: 22px; gap: 16px; } }

/* ---------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2px 18px; font-size: 15px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(238,51,68,.35); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--crimson); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* -------------------------------------------------------------------- Final */
.final { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 72px 0; background: linear-gradient(180deg, var(--navy-deep), var(--navy-ink)); }
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final__inner img { border-radius: 22px; box-shadow: 0 20px 40px -14px rgba(238,51,68,.6); }
.final h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.final p { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 10px; }

/* ------------------------------------------------------------------- Footer */
.footer { background: var(--navy-ink); color: rgba(255,255,255,.65); padding: 34px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 28px; align-items: center; }
.brand--footer { font-size: 16px; }
.credit a { color: #fff; text-decoration: none; }
.credit a:hover { color: var(--coral); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.disclaimer { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,.45); padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora span, .phone--hero, .float-card, .dot, .bell { animation: none !important; }
}
