/* Times Ninja site. Values from the design system (tokens.css) and the Website board. Light only. */
@font-face { font-family: "Lilita One"; src: url(/assets/fonts/lilita-one-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/jakarta-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/jakarta-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --surface: #f4f7f9;
  --surface-card: #ffffff;
  --ink: #2b2f31;
  --ink-mute: #61666a;
  --track: #edf1f3;
  --divider: rgba(0,0,0,0.08);
  --primary: #0058bb;
  --primary-ink: #0058bb;
  --primary-wash: rgba(0,88,187,0.12);
  --success: #2e7d32;
  --belt-yellow-ink: #8f6d00; /* token #a07a00 fails AA at 13px */
  --belt-orange-ink: #a65700; /* token #b55f00 fails AA at 13px */
  --belt-green-ink: #1f5a23;
  --belt-blue-ink: #0d4a8f;
  --shadow-whisper: 0 2px 6px rgba(0, 21, 51, 0.05);
  --shadow-ambient: 0 4px 12px rgba(0, 21, 51, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 21, 51, 0.14);
  --shadow-float: 0 12px 40px rgba(0, 21, 51, 0.25);
  --font-display: "Lilita One", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 400; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--primary-ink); }
a:hover { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; box-sizing: content-box; }
.wrap-inner { max-width: 1120px; margin: 0 auto; }
.center { text-align: center; }

.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: 0.08em; }

/* Header */
.site-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Nav links (header and quick bar): plain text; a rounded bar in the section's belt colour grows under the hovered link. */
.navlinks { display: flex; align-items: center; font-weight: 700; font-size: 15px; line-height: 20px; }
.navlinks a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.navlinks a:last-child { padding-right: 0; }
.navlinks a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 4px; background: var(--u); transform: scaleX(0); transition: transform .12s ease-in; }
.navlinks a:last-child::after { right: 0; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--ink); }
.navlinks a:hover::after, .navlinks a:focus-visible::after { transform: scaleX(1); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1) .1s; }
.navlinks a:nth-child(1) { --u: #f2c200; }
.navlinks a:nth-child(2) { --u: #2e7d32; }
.navlinks a:nth-child(3) { --u: #1565c0; }
@media (prefers-reduced-motion: reduce) { .navlinks a::after { transition: none; } }
@media (max-width: 600px) {
  .navlinks { font-size: 13px; }
  .navlinks a { padding: 0 8px; }
  .navlinks a::after { left: 8px; right: 8px; bottom: 8px; height: 3px; }
  .navlinks a:last-child::after { right: 0; }
}
@media (max-width: 440px) { .site-header .brand span, .quickbar .brand span { display: none; } }
@media (max-width: 340px) { .navlinks a { padding: 0 5px; font-size: 12px; } .navlinks a::after { left: 5px; right: 5px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--font-display); font-size: 22px; line-height: 28px; }

/* Quick bar: a compact copy of the header that slides in when the visitor scrolls back up. */
.quickbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: 8px 24px; background: rgba(244, 247, 249, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--divider), var(--shadow-whisper); transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.quickbar.show { transform: none; visibility: visible; transition: transform .3s ease; }
.quickbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quickbar .brand img { width: 40px; height: 40px; border-radius: 10px; }
.quickbar .brand span { font-size: 21px; line-height: 26px; }
@media (prefers-reduced-motion: reduce) { .quickbar, .quickbar.show { transition: none; } }
section[id] { scroll-margin-top: 64px; }

/* Hero */
.hero { padding: 32px 24px 72px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; max-width: 560px; min-width: 0; }
.crew { display: flex; align-items: flex-end; margin-bottom: 20px; }
.crew img { margin-right: -10px; border-radius: 26%; box-shadow: 0 0 0 1px var(--ring); transform: rotate(var(--t)) translateY(var(--y)); }
h1 { margin: 0 0 20px; font-size: 60px; line-height: 1.05; color: var(--ink); }
.intro { margin: 0 0 32px; font-size: 18px; line-height: 28px; color: var(--ink-mute); }
.badges { display: flex; align-items: center; gap: 12px; }
.badges a { flex: 0 1 164px; min-width: 0; display: block; border-radius: 8px; }
.badges img { width: 100%; height: auto; }
.badges-center { margin-top: 40px; justify-content: center; }
.facts { margin: 32px 0 0; padding: 0; list-style: none; display: flex; gap: 12px 24px; flex-wrap: wrap; font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { color: var(--success); flex: none; }
.hero-phone { flex: 0 0 auto; margin: 0 auto; }
.hero-phone { position: relative; }
.hero-phone .phone-lg { position: relative; z-index: 1; }
.hero-ninja { display: none; }
/* Tablet: text above, phone centred, ninja peeks from behind the phone. */
@media (min-width: 600px) and (max-width: 1099px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-copy { flex-basis: auto; }
  .hero-phone { align-self: center; }
  .hero-ninja { display: block; position: absolute; z-index: 0; width: 170px; height: auto; left: -122px; bottom: 90px; animation: ninja-loop 7s ease-in-out .4s infinite both; }
}
/* Desktop: phone on the right edge, ninja leaps out into the gap. */
@media (min-width: 1100px) {
  .hero-phone { margin: 0 0 0 auto; }
  .hero-ninja { display: block; position: absolute; z-index: 0; width: 220px; height: auto; left: -178px; bottom: 70px; animation: ninja-loop 7s ease-in-out .4s infinite both; }
}
@media (min-width: 1280px) { .hero-ninja { width: 260px; left: -212px; } }
@keyframes ninja-loop {
  0% { opacity: 0; transform: translateX(70%) rotate(10deg); }
  10% { opacity: 1; transform: translateX(-4%) rotate(-3deg); }
  14% { transform: none; }
  45% { transform: translateY(-6px); }
  75% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateX(70%) rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-ninja { animation: none; } }


/* Phones */
.phone { background: #15181b; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-lg { width: 273px; height: 591px; padding: 8px; border-radius: 44px; box-shadow: var(--shadow-float); }
.phone-lg img { border-radius: 36px; }
.phone-sm { width: 221px; height: 477px; padding: 7px; border-radius: 36px; box-shadow: var(--shadow-hover); }
.phone-sm img { border-radius: 30px; }

/* Bands */
.band { background: var(--surface-card); padding: 72px 24px; }
h2 { margin: 0 0 12px; font-size: 36px; line-height: 44px; color: var(--ink); }
.lede { margin: 0 auto 48px; max-width: 620px; font-size: 17px; line-height: 26px; color: var(--ink-mute); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px 32px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step h3 { margin: 24px 0 8px; font-size: 24px; line-height: 32px; color: var(--ink); }
.step p { margin: 0; max-width: 300px; font-size: 16px; line-height: 24px; color: var(--ink-mute); }

/* Belts */
.belts { padding: 64px 24px; }
.h2-sm { margin: 0 0 8px; font-size: 28px; line-height: 36px; }
.belts-lede { margin: 0 0 32px; font-size: 16px; line-height: 24px; color: var(--ink-mute); }
.belt-scroll { overflow-x: auto; scrollbar-width: none; padding: 8px 0; max-width: 100%; }
.belt-scroll::-webkit-scrollbar { display: none; }
.belt-path { position: relative; width: max-content; margin: 0 auto; padding: 64px 8px 0; }
.belt-line { position: absolute; left: 44px; right: 44px; top: 88px; border-top: 3px dashed var(--track); }
.belt-pin { position: absolute; top: 0; left: 44px; display: flex; flex-direction: column; align-items: center; transform: translate(calc(-50% + var(--x, 0px)), var(--y, 0px)); will-change: transform; z-index: 1; }
.belt-pin img { width: 44px; height: 44px; border-radius: 26%; box-shadow: 0 0 0 1px #d4d4d4, var(--shadow-ambient); }
.pin-tip { width: 0; height: 0; margin-top: 3px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--primary); }
.belt-path ol { position: relative; margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.belt-path li { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.belt-name { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--ink); }
.medal { display: flex; align-items: center; justify-content: center; width: 51px; height: 51px; border-radius: 9999px; background: var(--ring); box-shadow: 0 0 0 4px var(--surface); }
.medal > span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 9999px; background: #fff; }
.medal svg { width: 44px; height: 44px; display: block; }

/* Parents */
.parents { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.parents-head { flex: 1 1 300px; }
.lede-left { margin: 0; font-size: 17px; line-height: 26px; color: var(--ink-mute); }
.parent-list { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 32px; }
.parent-list li { display: flex; gap: 14px; }
.tick { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-wash); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; }
.parent-list strong { display: block; font-weight: 700; font-size: 16px; line-height: 24px; color: var(--ink); }
.parent-list strong + span { display: block; margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--ink-mute); }

/* Price */
.price { padding: 72px 24px; }
.price-inner { max-width: 880px; margin: 0 auto; }
.price-title { margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.plan { padding: 28px; border-radius: 24px; background: var(--surface-card); box-shadow: var(--shadow-ambient); }
.plan-paid { outline: 2px solid var(--primary); outline-offset: -2px; }
.plan-name { margin: 0 0 16px; font-family: var(--font-display); font-size: 32px; line-height: 40px; color: var(--ink); }
.plan-body { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-mute); }

/* Footer */
.site-footer { --nw: 110px; position: relative; margin-top: 64px; padding: 22px 24px; color: rgba(255,255,255,.85); background: linear-gradient(135deg, #0058bb, #002a5c); }
.footer-x { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.footer-x span { position: absolute; font-family: var(--font-display); line-height: 1; color: #fff; transform: translate(-50%, -50%) rotate(var(--r)); }
.footer-ninja { position: absolute; z-index: 1; bottom: 10px; right: 16px; width: var(--nw); height: auto; transform-origin: 50% 100%; }
.site-footer:hover .footer-ninja, .footer-ninja:hover, .site-footer.pop .footer-ninja { animation: ninja-jump .8s ease-out; }
@keyframes ninja-jump { 0% { transform: none; } 15% { transform: scaleY(.92); } 40% { transform: translateY(-34px) rotate(-4deg); } 65% { transform: none; } 78% { transform: translateY(-7px); } 100% { transform: none; } }
@media (max-width: 799px) { .site-footer { --nw: 124px; } .footer-row { gap: 4px; } .footer-row nav { flex-direction: column; gap: 4px; } }
@media (max-width: 360px) { .site-footer { --nw: 100px; } }
@media (prefers-reduced-motion: reduce) { .site-footer:hover .footer-ninja, .footer-ninja:hover, .site-footer.pop .footer-ninja { animation: none; } }
.footer-row { position: relative; padding-right: max(0px, calc(var(--nw) + 30px - max(24px, (100vw - 1120px) / 2))); display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 24px 72px; font-size: 16px; line-height: 26px; }
@media (min-width: 1100px) { .doc { max-width: 840px; font-size: 17px; line-height: 28px; } }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 28px; line-height: 36px; margin: 40px 0 12px; }
.doc h3 { font-size: 22px; line-height: 30px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-mute); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-ambient); }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; }
.doc th { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--divider); }
.doc td { color: var(--ink-mute); }
.doc tr + tr td { border-top: 1px solid var(--divider); }

/* Widths: tablet board 820, mobile board 390 */
@media (max-width: 1100px) { h1 { font-size: 52px; } }
@media (max-width: 600px) { h1 { font-size: 40px; } }
