/* Cresnu coming-soon site. Tokens from the cresnu-design skill; logical properties only (RTL). */
:root {
  --brand-50: #e7e8fd;
  --brand-100: #d9d5fd;
  --brand-600: #5b46e4;
  --brand-700: #4647d5;
  --star-50: #fef7e2;
  --star-500: #f8c726;
  --success-50: #eef9ef;
  --success-700: #1f7a34;
  --surface: #ffffff;
  --page: #fafbfe;
  --border: #f1f2f6;
  --ink: #0e1024;
  --ink-muted: #5c5c74;
  --display: "Baloo 2", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--text);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

/* Header */
.banner {
  background: var(--brand-700); color: #fff; text-align: center;
  font-size: 14px; font-weight: 600; padding: 9px 16px;
}
.banner span { color: var(--star-500); }
header.site { background: var(--surface); border-block-end: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo img { width: 40px; height: auto; }
.logo b { font: 800 24px/1 var(--display); }
nav.main { display: flex; gap: 4px; }
nav.main a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px;
  border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
nav.main a:hover { background: var(--brand-50); }
nav.main a[aria-current="page"] { background: var(--brand-600); color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(34px, 7vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lede { font-size: 18px; color: rgb(14 16 36 / 0.75); max-width: 34rem; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--brand-100);
  color: var(--brand-600); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--star-500); }
.underline { color: var(--brand-600); background: linear-gradient(transparent 82%, rgb(248 199 38 / 0.7) 82%); }

/* Hero */
.stage { padding: 8px 12px 0; }
.stage-inner {
  max-width: 1400px; margin-inline: auto; border-radius: 32px; overflow: hidden;
  background: linear-gradient(135deg, #efebff, #f6f4ff 50%, #e9f1ff);
}
.hero { display: grid; gap: 40px; align-items: center; padding-block: 48px 64px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-block: 80px 96px; } }
.hero h1 { margin-block: 20px; }
.hero-art { justify-self: center; width: min(360px, 80%); }
.hero-art img { width: 100%; height: auto; }

.notify { margin-block-start: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding-inline: 28px; border-radius: 16px; border: 0;
  font: 700 17px/1 var(--display); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 14px 28px -12px rgb(91 70 228 / 0.75); }
.btn-ghost { background: rgb(255 255 255 / 0.85); color: var(--ink); border: 1px solid #fff; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgb(14 16 36 / 0.8); }
.assure li::before { content: "✓"; color: var(--success-700); font-weight: 800; margin-inline-end: 8px; }

/* Sections */
section.block { padding-block: 72px; }
.section-head { max-width: 44rem; margin-inline: auto; text-align: center; }
.section-head p { margin-inline: auto; }
.grid { display: grid; gap: 16px; margin-block-start: 40px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.04);
}
.card p { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-block-end: 16px; }
.t-brand { background: var(--brand-50); }
.t-star { background: var(--star-50); }
.t-success { background: var(--success-50); }
.t-sky { background: #eaf2fe; }
.t-pink { background: #fdeff5; }

.split { display: grid; gap: 24px; margin-block-start: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 28px; padding: 32px; }
.panel ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; font-size: 16px; }
.panel li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-600); font-weight: 800; font-size: 13px; }
.panel-kids { background: linear-gradient(#e3edff, #f2f6ff); }
.panel-parents { background: linear-gradient(#fff6dc, #fffbef); }

.safety { background: var(--ink); color: #fff; border-radius: 32px; padding: 40px 24px; }
@media (min-width: 640px) { .safety { padding: 56px 48px; } }
.safety .card { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.12); box-shadow: none; }
.safety .card p { color: rgb(255 255 255 / 0.72); }
.safety h3 { color: #fff; }

.faq { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 2fr; gap: 56px; } }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
details + details { margin-block-start: 12px; }
summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; font-size: 16px; }
details p { margin: 0 0 16px; color: var(--ink-muted); }

.cta { text-align: center; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; border-radius: 32px; padding: 56px 24px; }
.cta p { color: rgb(255 255 255 / 0.85); max-width: 36rem; margin-inline: auto; }
.cta .btn { background: #fff; color: var(--brand-700); margin-block-start: 16px; }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-block-start: 28px; }
.toggle button {
  min-height: 44px; padding-inline: 20px; border-radius: 999px; border: 0; background: transparent;
  font: 600 15px var(--text); color: var(--ink); cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--brand-600); color: #fff; }
.save { color: var(--success-700); font-weight: 700; font-size: 13px; margin-inline-start: 6px; }
.toggle button[aria-pressed="true"] .save { color: #fff; }

.plans { display: grid; gap: 20px; margin-block-start: 40px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand-600); box-shadow: 0 24px 48px -28px rgb(91 70 228 / 0.55); }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font: 800 44px/1 var(--display); margin-block: 18px 4px; }
.price small { font: 500 15px var(--text); color: var(--ink-muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--success-700); font-weight: 800; }
.plan .btn { width: 100%; }
.btn-soon { background: var(--brand-50); color: var(--brand-700); cursor: default; }

.table-wrap { overflow-x: auto; margin-block-start: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { padding: 14px 18px; text-align: start; border-block-end: 1px solid var(--border); }
thead th { font-family: var(--display); font-size: 17px; background: var(--page); }
tbody th { font-weight: 500; }
tr:last-child th, tr:last-child td { border-block-end: 0; }

.extra { display: grid; gap: 24px; align-items: center; background: rgb(231 232 253 / 0.6); border-radius: 24px; padding: 32px 24px; margin-block-start: 72px; }
@media (min-width: 960px) { .extra { grid-template-columns: 1fr 1fr; padding: 40px; } }
.calc label { font-weight: 700; display: block; margin-block-end: 8px; }
.calc input[type="range"] { width: 100%; accent-color: var(--brand-600); min-height: 44px; }
.calc output { display: block; font: 800 28px/1.2 var(--display); margin-block-start: 8px; }

/* Footer */
footer.site { border-block-start: 1px solid var(--border); background: var(--surface); margin-block-start: 72px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; color: var(--ink-muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn, nav.main a, .toggle button { transition: background-color 0.15s, transform 0.15s; }
  .btn-primary:hover { transform: translateY(-1px); }
  .hero-art img { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
}
