:root {
  --ink: #1f1a4d;
  --ink-soft: #4b4675;
  --bg: #fffbf5;
  --card: #ffffff;
  --primary: #5b4bff;
  --primary-dark: #4636e0;
  --sun: #ffb020;
  --mint: #19b394;
  --coral: #ff6b6b;
  --sky: #e9f2ff;
  --line: #ece7f7;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 26, 77, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 251, 245, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 20px 24px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff3d6; color: #8a5a00; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin: 18px 0; letter-spacing: -0.02em; }
h1 .hl { color: var(--primary); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* TV mock */
.tv { background: var(--ink); border-radius: 26px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.tv-screen { background: linear-gradient(160deg, #eef0ff, #fff7e6); border-radius: 16px; aspect-ratio: 16 / 10; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tv-q { font-weight: 900; font-size: 1.25rem; }
.tv-visual { font-size: 1.8rem; letter-spacing: 4px; }
.tv-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.tv-choice { background: #fff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 900; font-size: 1.2rem; border: 3px solid transparent; }
.tv-choice.focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.18); }
.tv-stand { width: 34%; height: 10px; background: var(--ink); margin: 0 auto; border-radius: 0 0 10px 10px; }
.badge-float { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-weight: 800; font-size: 0.95rem; }
.badge-float.one { top: -18px; right: -12px; }
.badge-float.two { bottom: 26px; left: -22px; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.i-purple { background: #ece9ff; } .i-sun { background: #fff3d6; } .i-mint { background: #dcf7ef; } .i-coral { background: #ffe5e5; } .i-sky { background: var(--sky); }
.steps { counter-reset: s; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; display: grid; place-items: center; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin: 10px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: #dcf7ef; color: var(--mint); border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { background: var(--sky); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-band { background: var(--primary); color: #fff; border-radius: 28px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4e0ff; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.platform { background: rgba(255, 255, 255, 0.14); padding: 8px 14px; border-radius: 999px; font-weight: 700; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--ink-soft); margin: 10px 0 0; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 620px; }
.form label { font-weight: 800; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.hp { position: absolute; left: -5000px; }
.errorlist { color: #c0392b; margin: 6px 0 0; padding-left: 18px; }
.messages { list-style: none; padding: 0; }
.messages li { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-weight: 700; }
.messages .success { background: #dcf7ef; color: #0d6e5a; }
.messages .error { background: #ffe5e5; color: #a12626; }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 32px; }
.prose li { margin: 6px 0; }
.notice { background: #fff3d6; border-radius: 12px; padding: 14px 18px; font-weight: 700; color: #6b4600; }

/* Pair */
.code { font-size: 3rem; letter-spacing: 10px; font-weight: 900; background: #fff; border: 3px dashed var(--primary); border-radius: 18px; padding: 16px 24px; display: inline-block; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--ink-soft); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .badge-float { display: none; }
  .cta-band { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
