:root {
  --ink: #22061F;
  --ink-2: #4A2F47;
  --muted: #6B5568;
  --ground: #FAF6F9;
  --surface: #FFFFFF;
  --line: #E8D9E4;
  --track: #F1E6EE;
  --accent: #9C37BB;
  --accent-ink: #7A1F96;
  --accent-soft: #F7E9F4;
  --accent-faint: #E2B8DC;
  --warn: #C77700;
  --warn-ink: #A35F00;
  --warn-soft: #FFF4E5;
  --ok-soft: #E7F5EC;
  --ok-ink: #1E5634;
  --grad: linear-gradient(160deg, #F9854D 0%, #E8358F 50%, #9C37BB 100%);
  --on-dark-muted: #C9B3C6;
  --pink: #F48AB8;
  --display: 'Manrope', system-ui, sans-serif;
  --brand: 'Quicksand', 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.5; }
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--white { background: var(--surface); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.5vw, 42px); letter-spacing: -0.02em; line-height: 1.12; }
.lead { font-size: 17px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }

/* Header */
.header { position: sticky; top: 0; z-index: 5; background: rgba(250, 246, 249, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--brand); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; }
.logo img { width: 38px; height: 38px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: var(--accent); }
.langs { display: flex; background: var(--track); border-radius: 999px; padding: 3px; }
.langs a { min-width: 42px; min-height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--surface); color: var(--ink); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 8px 0 18px; }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--track); }
  .langs { align-self: flex-start; }
}

/* Hero */
.hero { padding: 56px 0 80px; }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { font-size: 14px; color: var(--muted); }
.hero__visual { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }

.card-demo { width: 100%; max-width: 360px; background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: 0 24px 60px rgba(34, 6, 31, 0.12); display: flex; flex-direction: column; gap: 20px; }
.card-demo__top { display: flex; justify-content: space-between; font-size: 15px; }
.card-demo__top span:last-child { font-size: 13px; color: var(--muted); }
.card-demo__left { display: flex; flex-direction: column; gap: 4px; }
.card-demo__left small { font-size: 14px; color: var(--muted); }
.card-demo__big { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.card-demo__rows { display: flex; flex-direction: column; gap: 14px; }
.card-demo__rows div { display: flex; justify-content: space-between; font-size: 15px; }
.card-demo__rows strong { font-weight: 600; }
.is-warn { color: var(--warn-ink); }

/* Steps */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { background: var(--ground); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 16px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Dashboard */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split__copy { display: flex; flex-direction: column; gap: 20px; }
.chart-card { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 16px 40px rgba(34, 6, 31, 0.08); display: flex; flex-direction: column; gap: 16px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.chart-card__head strong { color: var(--ink); }
.chart-card__head span:first-child { font-weight: 600; color: var(--ink); font-size: 16px; }
.bars { height: 140px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--accent); border-radius: 6px 6px 0 0; }
.bars span.hi { background: var(--warn); }
.bars span.cur { background: var(--accent-faint); }
.chart-card p { font-size: 14px; color: var(--muted); }

/* Learn */
.learn__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: inherit; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.articles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.articles[hidden] { display: none; }
.article { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(34, 6, 31, 0.06); }
.article__band { height: 72px; padding: 16px 22px; display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.article__band--adults { background: var(--accent-soft); color: var(--accent-ink); }
.article__band--teens { background: var(--warn-soft); color: #6B3E00; }
.article__band--kids { background: var(--ok-soft); color: var(--ok-ink); }
.article__soon { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; }
.article__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.article__body h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.article__body p { font-size: 15px; color: var(--muted); }
.article__body small { font-size: 13px; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { border: 1.5px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan--dark { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.plan--dark::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.plan h3 { font-size: 22px; font-weight: 600; }
.plan__price { font-family: var(--display); font-weight: 800; font-size: 40px; }
.plan__price small { font-size: 18px; font-weight: 600; }
.plan__year { margin-top: 6px; font-size: 15px; color: var(--on-dark-muted); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--dark .btn { background: #fff; color: var(--ink); }
.plan--dark .btn:hover { background: var(--accent-soft); color: var(--ink); }
.plan:not(.plan--dark) .btn { border-color: var(--ink); color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 72px 0; position: relative; }
.cta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.cta__brand { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.cta__brand img { width: 64px; height: 64px; }
.cta__in { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.02em; max-width: 560px; line-height: 1.15; }
.form { display: flex; flex-direction: column; gap: 12px; flex: 0 1 460px; min-width: 0; }
.form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.form input[type="email"] { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: none; font-size: 16px; font-family: inherit; color: var(--ink); }
.form .btn { background: var(--accent); color: #fff; min-height: 52px; }
.form .btn:hover { background: var(--accent-ink); color: #fff; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.form__consent { color: var(--on-dark-muted); }
.form__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.form__consent a { color: #fff; }
.form__msg { font-size: 15px; font-weight: 600; min-height: 1.4em; }

/* Footer */
.footer { padding: 40px 0 44px; font-size: 14px; color: var(--on-dark-muted); background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 40px; height: 40px; }
.footer__brand strong { font-family: var(--brand); font-weight: 700; letter-spacing: 0.08em; color: #fff; font-size: 18px; display: block; }
.footer__brand small { color: var(--pink); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--on-dark-muted); }
.footer a:hover { color: #fff; }
.footer__in { align-items: center; }

/* Legal pages */
.legal { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: 36px; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; color: var(--ink-2); }
.legal .note { background: var(--warn-soft); color: #6B3E00; border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; }
