:root {
  --ink: #1c1733;
  --muted: #5e5878;
  --cream: #fff4e8;
  --paper: #fffdfb;
  --coral: #ff5d73;
  --sun: #ffc44d;
  --mint: #14b8a6;
  --sky: #3b82f6;
  --grape: #7c5cff;
  --line: #1c1733;
  --shadow: 7px 7px 0 var(--line);
  --radius: 22px;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at -10% -10%, #ffd0da 0%, transparent 60%),
    radial-gradient(800px 480px at 110% 0%, #c8f7ef 0%, transparent 55%),
    radial-gradient(700px 500px at 80% 120%, #ffe7ad 0%, transparent 50%),
    var(--cream);
  min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 244, 232, .82);
  border-bottom: 2px solid transparent;
}
.nav.sc { border-bottom-color: var(--line); }
.nav .wrap, .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .wrap { min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.mark {
  width: 42px; height: 42px; border-radius: 14px; border: 2px solid var(--line);
  background: linear-gradient(135deg, var(--sun), var(--coral));
  box-shadow: 3px 3px 0 var(--line);
  display: grid; place-items: center; font-size: 20px;
}
.links { display: flex; align-items: center; gap: 18px; }
.links a { text-decoration: none; font-weight: 650; }
.links a:hover { color: #c2415b; }
.menu {
  display: none; border: 2px solid var(--line); background: #fff; border-radius: 12px;
  padding: 8px 12px; box-shadow: 3px 3px 0 var(--line); cursor: pointer;
}

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 42px 0 18px; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 700;
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--line);
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); margin: 16px 0; }
h2 { font-size: clamp(32px, 4vw, 48px); }
.lead { font-size: 19px; color: var(--muted); max-width: 58ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  border: 2px solid var(--line); background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  box-shadow: 4px 4px 0 var(--coral); transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--coral); }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.sun:hover { box-shadow: 7px 7px 0 var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--mint); }
.btn.sm { padding: 8px 12px; box-shadow: 3px 3px 0 var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); padding: 16px; transform: rotate(1.5deg);
}
.hero-card .top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.pill { background: #e7fff8; border: 2px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 13px; }
.mini { display: grid; gap: 8px; margin-top: 12px; }
.opt-demo {
  border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; font-weight: 650;
}
.opt-demo.ok { background: #d9ffe8; }

section { padding: 54px 0; }
.sec-title { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.sec-title p { margin: 0; color: var(--muted); max-width: 46ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 5px 5px 0 transparent; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ic {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px;
  border: 2px solid var(--line); font-size: 24px; background: var(--sun);
}
.card h3 { font-size: 26px; margin: 12px 0 8px; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 18px; }
.num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grape); color: #fff; border: 2px solid var(--line); font-weight: 800;
}

.panel {
  display: grid; grid-template-columns: 280px 1fr; gap: 16px;
  background: #fff; border: 2px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 16px;
}
.kids button {
  width: 100%; text-align: left; margin-bottom: 8px; border: 2px solid var(--line); background: #fff;
  border-radius: 16px; padding: 12px; cursor: pointer;
}
.kids button.on { background: #ffe3ea; }
.bar { height: 14px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff4e8; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--sky)); transition: width .8s ease; }
.subject-row { display: grid; grid-template-columns: 120px 1fr 42px; gap: 10px; align-items: center; margin: 10px 0; font-weight: 700; }
.note { color: var(--muted); font-size: 14px; }

.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.price {
  border: 2px solid var(--line); border-radius: 28px; padding: 22px; background: #fff; position: relative;
}
.price.hot { background: linear-gradient(160deg, #fff7d6, #ffe1ea); box-shadow: var(--shadow); }
.amount { font-family: "Fraunces", Georgia, serif; font-size: 64px; line-height: 1; }
.amount small { font-size: 22px; }
.tag {
  position: absolute; top: 16px; right: 16px; background: var(--coral); color: #fff;
  border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px; font-weight: 800;
}

.faq { display: grid; gap: 10px; }
details { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; }
summary { cursor: pointer; font-weight: 750; }
details p { color: var(--muted); }

.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 32px; padding: 28px; border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.signup p { color: #efeafc; }
form { display: grid; gap: 10px; }
input, select {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
}
.signup input, .signup select { border-color: transparent; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
.msg { min-height: 1.2em; font-weight: 700; }
.signup a { color: var(--sun); }

.footer { padding: 28px 0 40px; }
.footer a { font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { animation: rise .7s ease forwards; }
.reveal.d2.in { animation-delay: .08s; }
.reveal.d3.in { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.subjects, .qlist { display: flex; flex-wrap: wrap; gap: 8px; }
.subj, .qcard {
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; cursor: pointer; text-align: left;
}
.subj.on, .qcard.on { background: var(--sun); }
.qcard { display: grid; min-width: 220px; }
.qcard small { color: var(--muted); }
.quiz-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 18px 0; }
.progress { height: 12px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex: 1; }
.progress span { display: block; height: 100%; width: 0; background: var(--grape); transition: width .25s ease; }
.q {
  background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 16px; margin: 12px 0;
  box-shadow: 4px 4px 0 transparent; transition: box-shadow .18s ease;
}
.q:hover { box-shadow: 4px 4px 0 var(--sun); }
.ill { margin: 10px 0 14px; }
.ill svg { width: 100%; height: auto; display: block; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; gap: 8px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px;
  padding: 10px 12px; cursor: pointer; background: #fff;
}
.opt:hover { background: #fff7ea; }
.opt.sel { background: #e8f0ff; }
.opt.good { background: #d9ffe8; }
.opt.bad { background: #ffe1e6; }
.ex { display: none; margin-top: 10px; background: #fff8df; border-radius: 12px; padding: 10px 12px; }
.q.done .ex { display: block; }
.result {
  margin-top: 12px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); font-weight: 750;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eadfce; vertical-align: top; }
.danger { background: #fff; color: #9f1239; }

@media (max-width: 860px) {
  .hero, .grid, .steps, .panel, .price-grid, .signup { grid-template-columns: 1fr; }
  .menu { display: inline-flex; }
  .nav:has(.menu) .links { display: none; position: absolute; right: 16px; top: 70px; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
  .nav:has(.menu) .links.open { display: flex; }
  .hero-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
