/* Marka website. Colours follow the app's 60-30-10 rule:
   60% neutral  : ice-white and white surfaces, ink text (most of every screen)
   30% navy     : one navy only, for structure (nav, hero, footer, icon tiles, step numbers)
   10% cobalt   : the accent, kept for actions (download buttons, ticks, links, small labels)
   Light only: a dark theme would turn the 60% neutral into navy and break the proportion. */
:root {
  --navy: #03045E;
  --cobalt: #0047AB;
  --ice: #F4F9FF;
  --ice-2: #EBF5FF;
  --surface: #FFFFFF;
  --ink: #141A32;
  --ink-2: #434656;
  --line: #E3E8F3;
  --on-navy: #FFFFFF;
  --on-navy-2: #CFD8F6;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20, 26, 50, .06), 0 12px 32px rgba(20, 26, 50, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ice);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 16px; border: 1.5px solid transparent;
  padding: 12px 20px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #8FB8FF; outline-offset: 3px; }
.btn-accent { background: var(--cobalt); color: #fff; box-shadow: 0 8px 24px rgba(0, 71, 171, .35); }
.btn-accent:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .9rem; border-radius: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(3, 4, 94, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; margin-right: auto; }
.brand-logo { border-radius: 10px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--on-navy-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--on-navy); background: var(--navy); padding: 72px 0 96px; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); }
.eyebrow.dark { color: var(--cobalt); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--on-navy-2); max-width: 540px; margin: 0 0 28px; }
.lead.sm { font-size: 1.02rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.meta { margin: 0 0 22px; color: var(--on-navy-2); font-size: .92rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }

/* Phones */
.phone { background: #0A0C2B; border-radius: 40px; padding: 9px; box-shadow: 0 30px 60px rgba(0, 0, 20, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .12); width: 100%; max-width: 270px; }
.phone img { border-radius: 32px; width: 100%; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-back { right: 4%; top: 0; transform: rotate(6deg); opacity: .96; }
.phone-front { left: 6%; top: 48px; transform: rotate(-4deg); }

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--ice-2); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .updates-grid h2, .install-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.sub { color: var(--ink-2); margin: 12px 0 0; }
.sub.left { margin: 14px 0 20px; }

.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.band-in { padding: 36px 20px; max-width: 860px; text-align: center; font-size: 1.12rem; color: var(--ink-2); }
.band-in strong { color: var(--navy); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; justify-items: center; }
.shot { margin: 0; text-align: center; max-width: 290px; }
.shot .phone { margin: 0 auto 20px; box-shadow: 0 24px 48px rgba(20, 26, 50, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.shot figcaption strong { display: block; font-size: 1.05rem; }
.shot figcaption span { color: var(--ink-2); font-size: .94rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.install-copy .eyebrow { color: var(--cobalt); }
.install-copy .lead { color: var(--ink-2); }
.install-copy .meta { color: var(--ink-2); }
.install-copy h2 { margin-bottom: 14px; }
.install-copy .meta { margin: 14px 0 20px; }
.hash { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.hash summary { cursor: pointer; font-weight: 600; }
.hash p { margin: 10px 0 6px; color: var(--ink-2); }
.hash code { display: block; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--ice-2); color: var(--navy); padding: 10px 12px; border-radius: 10px; }
.hash .small code { display: inline; padding: 2px 6px; }
.install-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.install-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.mini-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 12px; }
.mini-steps li::marker { font-weight: 800; color: var(--cobalt); }
.note { margin: 0; padding: 14px 16px; background: var(--ice-2); border-radius: 14px; color: var(--ink-2); font-size: .9rem; }

/* Updates */
.updates-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.phone-solo { display: grid; place-items: center; }
.phone-solo .phone { box-shadow: 0 24px 48px rgba(20, 26, 50, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.500l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Releases */
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow); }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.release h3 { font-size: 1.15rem; }
.release time { color: var(--ink-2); font-size: .9rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--cobalt); color: #fff; padding: 3px 10px; border-radius: 999px; }
.release ul { margin: 0; padding-left: 20px; color: var(--ink-2); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cobalt); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Footer */
.footer { background: var(--navy); color: var(--on-navy-2); padding: 40px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand strong { color: #fff; display: block; }
.foot-brand span { font-size: .88rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--on-navy-2); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-in, .install-grid, .updates-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 200px; }
  .btn-lg { width: 100%; }
  .cta-row { flex-direction: column; }
}

/* Tutorials page */
.nav-links a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--cobalt); }
.page-hero { background: var(--navy); color: var(--on-navy); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 14px; }
.page-hero .lead { margin: 0; max-width: 640px; }
.page-hero .lead strong { color: #fff; }
.tint-soft { background: var(--ice-2); }
.player-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.player-col { display: grid; place-items: center; }
.player-phone { max-width: 320px; box-shadow: 0 24px 48px rgba(20, 26, 50, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.player-phone video { display: block; width: 100%; aspect-ratio: 540 / 1212; border-radius: 32px; background: #0A0C2B; }
.lesson-col h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.chapters { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); }
.player-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-item { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 12px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .2s ease; }
.lesson-item:hover { transform: translateY(-2px); }
.lesson-item:focus-visible { outline: 3px solid #8FB8FF; outline-offset: 3px; }
.lesson-item.on { border-color: var(--cobalt); }
.lesson-item img { width: 72px; height: 96px; object-fit: cover; object-position: top; border-radius: 12px; flex: none; background: var(--ice-2); }
.li-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.li-n { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.li-t { font-weight: 700; line-height: 1.25; }
.li-b { font-size: .85rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-len { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 960px) {
  .player-grid { grid-template-columns: 1fr; gap: 32px; }
  .lessons { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .page-hero { padding: 44px 0 36px; } .player-actions .btn { width: 100%; } .player-actions { flex-direction: column; align-items: stretch; } }

/* Tutorials teaser on the home page */
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.teaser-card { display: grid; gap: 6px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease; }
.teaser-card:hover { transform: translateY(-3px); }
.teaser-card img { width: 100%; max-width: 150px; height: 190px; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 8px; }
.teaser-card strong { font-size: 1.05rem; line-height: 1.25; }
.teaser-card span:last-child { color: var(--ink-2); font-size: .93rem; }
.center { text-align: center; }
@media (max-width: 960px) { .teaser { grid-template-columns: 1fr; } .teaser-card { grid-template-columns: 90px 1fr; column-gap: 16px; align-items: center; } .teaser-card img { grid-row: 1 / span 3; height: 120px; max-width: 90px; margin: 0; } }

/* Quick tour */
.tour-dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.tdot { width: 40px; height: 40px; border-radius: 50%; font: inherit; font-weight: 700; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); color: var(--navy); transition: background .2s, color .2s; }
.tdot:hover { border-color: var(--cobalt); }
.tdot:focus-visible { outline: 3px solid #8FB8FF; outline-offset: 2px; }
.tdot.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.player-actions { flex-wrap: wrap; }

@media (max-width: 600px) { .shots { grid-template-columns: 1fr; gap: 48px; } }

/* Screens showcase: one large phone, tabs beside it */
.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; max-width: 920px; margin: 0 auto; }
.sc-tabs { display: grid; gap: 12px; }
.sc-tab { display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; padding: 18px 20px; background: transparent; border: 1.5px solid transparent; border-radius: var(--radius); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sc-tab:hover { background: rgba(255, 255, 255, .6); }
.sc-tab:focus-visible { outline: 3px solid #8FB8FF; outline-offset: 2px; }
.sc-tab.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.sc-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--ice-2); color: var(--navy); transition: background .25s, color .25s; }
.sc-tab.on .sc-n { background: var(--navy); color: #fff; }
.sc-b { display: grid; gap: 3px; }
.sc-b strong { font-size: 1.1rem; }
.sc-b span { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.sc-tab:not(.on) .sc-b span { display: none; }
.sc-stage { display: grid; place-items: center; }
.sc-phone { display: grid; width: 100%; max-width: 320px; padding: 9px; box-shadow: 0 32px 64px rgba(20, 26, 50, .28), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.sc-img { grid-area: 1 / 1; display: block; width: 100%; height: auto; border-radius: 32px; opacity: 0; transition: opacity .45s ease; }
.sc-img.on { opacity: 1; }
.sc-hint { margin-top: 28px; }
.sc-caption { display: none; text-align: center; margin: 18px 0 0; color: var(--ink-2); max-width: 320px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .sc-stage { order: -1; }
  .sc-tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .sc-tab { width: auto; flex: none; scroll-snap-align: start; padding: 10px 16px; align-items: center; background: var(--surface); border-color: var(--line); border-radius: 999px; }
  .sc-n { width: 26px; height: 26px; font-size: .8rem; }
  .sc-b span { display: none !important; }
  .sc-b strong { font-size: .95rem; white-space: nowrap; }
  .sc-tab.on { background: var(--navy); border-color: var(--navy); box-shadow: none; }
  .sc-tab.on strong { color: #fff; }
  .sc-tab.on .sc-n { background: #fff; color: var(--navy); }
  .sc-caption { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sc-img { transition: none; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .price { margin: 4px 0 0; font-size: 1rem; color: var(--ink-2); }
.plan .price b { font-size: 2.2rem; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.plan .ticks { margin: 14px 0 8px; }
.plan-pro { border-color: var(--navy); box-shadow: 0 18px 40px rgba(3, 4, 94, .16); }
.plan-tag { position: absolute; top: -13px; left: 24px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.school-link { font-weight: 600; color: var(--cobalt); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 420px; } .plan-pro { order: -1; } }
