/* Scrollingo landing page. Colors and sizes follow handoff/Landing.dc.html (dark theme). */

@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url("/assets/fonts/Nunito-SemiBold.ttf") format("truetype"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url("/assets/fonts/Nunito-Black.ttf") format("truetype"); }

:root {
  --bg: #0F1117; --band: #13151C; --surface: #1A1D26; --border: #2C3140;
  --text: #F5F7FA; --soft: #CBD2DC; --muted: #9AA3B2;
  --green: #22C55E; --green-lip: #16A34A; --green-ink: #4ADE80;
  --blue: #38BDF8; --blue-lip: #0284C7;
  --coral: #FF4B4B; --coral-lip: #D93636; --coral-ink: #FF6B6B;
  --gold: #FFC800; --gold-lip: #E0A800;
  --orange: #FF9600; --orange-lip: #E07F00; --orange-ink: #FFA940;
  --purple: #9333EA; --purple-lip: #6B21A8; --purple-ink: #C084FC;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Nunito, ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:hover { color: #7DD3FC; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.band { background: var(--band); border-block: 2px solid var(--border); }
.section { padding-block: 96px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--blue); color: var(--bg); font-weight: 900; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 62px; padding: 0 28px; border-radius: 18px; border: 0;
  font: inherit; font-size: 18px; font-weight: 900; letter-spacing: .5px; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn-green { background: var(--green); box-shadow: 0 6px 0 var(--green-lip); color: var(--bg); }
.btn-green:hover { color: var(--bg); filter: brightness(1.05); }
.btn-ghost { background: var(--surface); border: 2px solid var(--border); box-shadow: 0 6px 0 var(--border); color: var(--text); font-size: 17px; }
.btn-ghost:hover { color: var(--text); border-color: #3A4050; }
.btn-dark { background: var(--bg); box-shadow: 0 6px 0 #000; color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-sm { height: 46px; padding: 0 20px; border-radius: 14px; font-size: 15px; box-shadow: 0 4px 0 var(--green-lip); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15,17,23,.92); border-bottom: 2px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav .wrap { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #312E81, #1E1B4B 45%, #0F172A); box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.35); display: grid; place-items: center; }
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: -.5px; color: var(--green-ink); }
.nav-links { display: flex; gap: 24px; margin-left: 8px; font-size: 16px; font-weight: 800; }
.nav-links a { color: var(--soft); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.spacer { flex-grow: 1; }
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); }
.lang-switch svg { margin: 0 4px 0 6px; }
.lang-switch a { height: 34px; min-width: 44px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; color: var(--soft); font-size: 14px; font-weight: 900; letter-spacing: .5px; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--blue); box-shadow: 0 3px 0 var(--blue-lip); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,75,75,.14); border: 2px solid var(--coral); font-size: 13px; font-weight: 900; letter-spacing: 1px; color: var(--coral-ink); }
.h1 { margin-top: 22px; font-size: clamp(44px, calc(6vw - 8px), 68px); line-height: 1.03; font-weight: 900; letter-spacing: -.03em; }
.h1 > span { display: block; }
.lead { margin-top: 22px; max-width: 560px; font-size: 21px; line-height: 31px; color: var(--soft); }
.hl-gold { color: var(--gold); font-weight: 900; }
.hl-green { color: var(--green-ink); }
.hl-blue { color: var(--blue); }
.hl-coral { color: var(--coral-ink); }
.hl-purple { color: var(--purple-ink); }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row .btn { height: 64px; }
.trust { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 800; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { margin-right: 4px; font-size: 14px; font-weight: 900; color: var(--soft); }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 6px; }

.hero-art { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 600px; }
.hero-glow { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: #1E1B4B; opacity: .8; }
.phone { position: relative; border-radius: 40px; overflow: hidden; background: #000; border: 6px solid #232733; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.phone img { width: 100%; height: auto; }
.hero-back { width: 240px; margin: 60px -40px 0 0; transform: rotate(-6deg); z-index: 1; }
.hero-front { width: 268px; z-index: 2; animation: float 5s ease-in-out infinite; }
.float-badge { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 16px; font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.badge-xp { top: 40px; right: 4%; background: var(--gold); box-shadow: 0 5px 0 var(--gold-lip); color: var(--bg); transform: rotate(6deg); animation: float 3.4s ease-in-out infinite; }
.badge-unlocked { bottom: 70px; right: 0; padding: 12px 16px; background: var(--green); box-shadow: 0 5px 0 var(--green-lip); color: var(--bg); animation: float 4s ease-in-out .6s infinite; }
.badge-streak { bottom: 150px; left: 0; background: var(--surface); border: 2px solid var(--orange); box-shadow: 0 5px 0 var(--orange-lip); color: var(--orange-ink); animation: float 3.8s ease-in-out .3s infinite; }
.badge-streak svg { animation: flame 1.4s ease-in-out infinite; }

/* ---------- Section headings ---------- */
.kicker { font-size: 14px; font-weight: 900; letter-spacing: 1.5px; }
.h2 { margin-top: 12px; font-size: 48px; line-height: 54px; font-weight: 900; letter-spacing: -1px; }
.sub { margin-top: 16px; font-size: 19px; line-height: 28px; color: var(--muted); }
.head { max-width: 780px; margin: 0 auto; text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 48px; }
.grid-feat { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 52px; }
.card { background: var(--surface); border: 2px solid var(--border); border-radius: 24px; box-shadow: 0 5px 0 var(--border); padding: 26px; }
.card h3 { margin-top: 18px; font-size: 22px; line-height: 28px; font-weight: 900; }
.card p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }
.icon-tile { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; }

/* ---------- Calculator ---------- */
.calc { margin-top: 40px; background: var(--surface); border: 2px solid var(--coral); border-radius: 28px; box-shadow: 0 6px 0 var(--coral-lip); padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.calc-input { flex: 1 1 360px; min-width: 0; }
.calc-input label { font-size: 22px; font-weight: 900; }
.calc-hours { margin-top: 14px; display: flex; align-items: baseline; gap: 12px; }
.calc-hours output { font-size: 76px; line-height: 80px; font-weight: 900; color: var(--coral-ink); }
.calc-hours span { font-size: 18px; font-weight: 800; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; margin-top: 16px; height: 16px; border-radius: 8px; background: var(--border); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 5px solid var(--coral); box-shadow: 0 4px 0 var(--coral-lip); cursor: pointer; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--coral); cursor: pointer; }
.range-scale { margin-top: 8px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--muted); }
.calc-out { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { border-radius: 20px; padding: 20px; }
.stat strong { display: block; font-size: 44px; line-height: 48px; font-weight: 900; }
.stat span { display: block; margin-top: 4px; font-size: 16px; line-height: 22px; font-weight: 800; }
.stat-bad { background: #2B1517; } .stat-bad strong { color: var(--coral-ink); }
.stat-good { background: #13261A; } .stat-good strong { color: var(--green-ink); }
.calc-out .btn { grid-column: 1 / -1; height: 58px; font-size: 17px; }
.calc-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps .phone { width: 230px; }
.step-num { margin-top: 22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--bg); font-size: 20px; font-weight: 900; }
.steps h3 { margin-top: 14px; font-size: 22px; line-height: 28px; font-weight: 900; }
.steps p { margin-top: 6px; max-width: 260px; font-size: 16px; line-height: 23px; color: var(--muted); }
.after { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- Screenshots ---------- */
.shots-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.shots-head > div { max-width: 640px; }
.shots-hint { font-size: 15px; font-weight: 800; color: var(--muted); }
.shots { margin-top: 40px; overflow-x: auto; padding: 8px 24px 20px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { display: none; }
.shots ul { margin: 0 auto; padding: 0; list-style: none; display: flex; gap: 28px; width: max-content; }
.shots li { display: flex; flex-direction: column; align-items: center; gap: 14px; scroll-snap-align: center; }
.shots .phone { width: 240px; }
.shot-label { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); font-size: 14px; font-weight: 900; color: var(--soft); }

/* ---------- Languages ---------- */
.langs { background: var(--surface); border: 2px solid var(--border); border-radius: 28px; box-shadow: 0 6px 0 var(--border); padding: 36px; text-align: center; }
.langs h2 { font-size: 32px; line-height: 38px; font-weight: 900; }
.langs p { margin-top: 10px; font-size: 17px; color: var(--muted); }
.langs ul { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.langs li { padding: 10px 18px; border-radius: 16px; background: var(--bg); border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border); font-size: 17px; font-weight: 900; }
.langs li span { font-size: 13px; font-weight: 700; color: var(--muted); }
.serif-ja { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }

/* ---------- Comparison ---------- */
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: 24px; border: 2px solid var(--border); box-shadow: 0 5px 0 var(--border); }
table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); font-size: 16px; }
th, td { padding: 16px 20px; border-bottom: 2px solid var(--border); }
tr:last-child > * { border-bottom: 0; }
thead th { padding-block: 18px; font-weight: 900; color: var(--soft); }
thead th.us { background: var(--green); color: var(--bg); border-bottom-color: var(--green-lip); }
tbody th { text-align: left; font-weight: 900; }
td.them { text-align: center; font-weight: 800; color: var(--coral-ink); }
td.us { text-align: center; font-weight: 900; color: var(--green-ink); background: rgba(34,197,94,.08); }

/* ---------- Pricing ---------- */
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { position: relative; border-radius: 28px; padding: 34px 28px 28px; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 6px 0 var(--border); }
.plan-best { background: linear-gradient(150deg, #2A1546, var(--surface) 55%); border: 3px solid var(--purple); box-shadow: 0 6px 0 var(--purple-lip); }
.plan-badge { position: absolute; top: -16px; left: 24px; padding: 6px 14px; border-radius: 10px; background: var(--gold); box-shadow: 0 3px 0 var(--gold-lip); color: var(--bg); font-size: 13px; font-weight: 900; letter-spacing: .6px; }
.plan-label { font-size: 15px; font-weight: 900; letter-spacing: 1px; color: var(--muted); }
.plan-best .plan-label { color: var(--purple-ink); }
.price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 56px; line-height: 60px; font-weight: 900; }
.price span, .plan-note { font-size: 18px; font-weight: 800; color: var(--muted); }
.plan-note { font-size: 16px; }
.perks { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 800; }
.perks li { display: flex; gap: 10px; align-items: center; }
.tick { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--border); }
.plan-best .tick { background: var(--green); }
.price-foot { margin-top: 22px; text-align: center; font-size: 15px; font-weight: 800; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
details { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; box-shadow: 0 4px 0 var(--border); overflow: hidden; }
details[open] { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
summary { min-height: 64px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 900; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.plus { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--soft); transition: transform .2s ease-out; }
details[open] .plus { background: var(--blue); transform: rotate(45deg); }
details p { padding: 0 22px 20px; font-size: 16px; line-height: 25px; color: var(--soft); }

/* ---------- Final CTA ---------- */
.final { position: relative; background: var(--green); border-radius: 36px; box-shadow: 0 10px 0 var(--green-lip); padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; overflow: hidden; color: var(--bg); }
.final-mascot { flex: 0 0 auto; animation: float 3s ease-in-out infinite; }
.final-copy { flex: 1 1 420px; min-width: 0; }
.final h2 { font-size: 52px; line-height: 56px; font-weight: 900; letter-spacing: -1px; }
.final p { margin-top: 14px; max-width: 600px; font-size: 20px; line-height: 29px; font-weight: 800; }
.soon { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; border-radius: 18px; background: var(--bg); box-shadow: 0 6px 0 #000; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .5px; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid var(--border); }
footer .wrap { padding-block: 36px 110px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot-name { font-size: 22px; font-weight: 900; color: var(--green-ink); }
.foot-tag { font-size: 15px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 800; }
.foot-legal { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; padding-block: 40px 72px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 15px; font-weight: 800; text-decoration: none; }
.legal article { font-size: 17px; line-height: 1.65; color: var(--soft); }
.legal h1 { margin: 0 0 8px; color: var(--text); }
.legal h1 + p { color: var(--muted); font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 900; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 26px; }
.legal li { margin: 6px 0; }
.legal li > ul { margin: 6px 0 0; }
.legal strong { color: var(--text); }
.legal a { overflow-wrap: anywhere; }
footer nav a + a { margin-left: 0; }

/* ---------- Mobile bar ---------- */
.mbar { display: none; position: sticky; bottom: 0; z-index: 60; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(15,17,23,.96); border-top: 2px solid var(--border); align-items: center; gap: 12px; }
.mbar-copy { flex-grow: 1; min-width: 0; }
.mbar-copy strong { display: block; font-size: 15px; font-weight: 900; }
.mbar-copy span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.mbar .btn { height: 50px; padding: 0 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 4px 0 var(--green-lip); }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.14) rotate(4deg); } }
.badge-xp { --r: 6deg; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta, .hide-sm { display: none !important; }
  .mbar { display: flex; }
  .h2 { font-size: 34px; line-height: 40px; }
  .final h2 { font-size: 36px; line-height: 42px; }
  .section { padding-block: 72px; }
  .hero-art { min-height: 0; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .nav .wrap { gap: 12px; }
  .brand-name { font-size: 21px; }
  .calc, .final, .langs { padding: 24px; }
  .calc-hours output { font-size: 60px; line-height: 64px; }
  .stat strong { font-size: 36px; line-height: 40px; }
  .hero-front { width: 240px; }
  .float-badge { font-size: 14px; }
  .btn { white-space: normal; text-align: center; }
}
