/* Landing v3, direction A (editorial): ivory paper, Lora headings, Manrope text, dark ink buttons, red accent.
   Sheets shown as in direction C: framed, slightly rotated, yellow offset shadow. Talks to parents; mascot is the logo.
   Sheet previews and the desk picture come from real sheets (make sheets, make scene); the form posts to /nabir/. */
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #1f2433;
  --muted: #5b6070;
  --line: #e6dfd3;
  --red: #c8202b;
  --yellow: #ffd23a;
  --serif: "Lora", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--red); }
h2 { font-size: 34px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
.kicker { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.muted { color: var(--muted); }

.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 17px var(--sans); padding: 16px 26px; border-radius: 8px; }
.btn:hover { background: #343a4d; }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* framed sheet (direction C) */
.frame { background: #fff; border: 3px solid var(--ink); padding: 14px; box-shadow: 12px 12px 0 var(--yellow); transform: rotate(1.5deg); }
.frame.left { transform: rotate(-1.5deg); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(250 247 242 / .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.top img { width: 36px; height: 36px; }
.top b { font: 600 22px var(--serif); margin-right: auto; }
.top nav { display: none; gap: 28px; margin-right: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .btn { font-size: 14px; padding: 10px 14px; white-space: nowrap; }
.top .lang { color: var(--ink); font: 700 14px var(--sans); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
.top .lang:hover { border-color: var(--ink); }
section[id] { scroll-margin-top: 70px; }

/* hero */
.hero { border-top: 0; padding-top: 36px; display: grid; gap: 40px; }
.hero h1 { font-size: 44px; margin-bottom: 18px; }
.hero .sub { font-size: 18px; color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.hero .offer { margin: 0 0 22px; max-width: 48ch; padding: 12px 16px; background: #fff; border-left: 3px solid var(--yellow); border-radius: 4px; font-size: 16px; }
.hero .offer b { color: var(--red); }
.hero .frame { width: min(340px, 82%); justify-self: center; }

/* packs */
.packs { display: grid; gap: 20px; margin-top: 32px; }
.pack { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.pack .age { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pack h3 { font-size: 28px; }
/* two sheets per pack, fanned out like a small stack */
.pack .frames { display: grid; justify-items: center; margin: 10px 0 18px; }
.pack .frames .frame { grid-area: 1 / 1; width: 54%; box-shadow: 6px 6px 0 var(--yellow); padding: 6px; border-width: 2px; }
.pack .frames .frame:first-child { transform: translateX(-24%) rotate(-5deg); }
.pack .frames .frame:last-child { transform: translateX(24%) rotate(4deg); }
.pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.pack li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 10px; translate: 0 -2px; }

/* steps */
.steps { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; position: relative; }
/* a small picture per step */
.steps .pic { height: 150px; margin: 4px 0 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden; }
.pic.ages { grid-auto-flow: column; gap: 10px; place-content: center; }
.pic.ages span { font: 700 18px var(--sans); color: #fff; padding: 10px 14px; border-radius: 999px; }
.pic.ages .b { background: #2f6fdb; transform: rotate(-4deg); }
.pic.ages .r { background: var(--red); transform: translateY(-6px); }
.pic.ages .g { background: #1f8a4c; transform: rotate(4deg); }
.pic.mail { place-items: stretch; align-content: center; padding: 0 22px; gap: 6px; text-align: left; }
.pic.mail small { color: var(--muted); font-size: 12px; }
.pic.mail b { font: 600 18px var(--serif); }
.pic.mail i { font-style: normal; justify-self: start; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 6px; }
.pic.print img { position: absolute; width: 86px; border: 1px solid var(--line); box-shadow: 0 4px 10px rgb(31 36 51 / .14); }
.pic.print .dip { transform: translate(-30px, 6px) rotate(-10deg); }
.pic.print .sh { transform: translate(24px, -4px) rotate(6deg); }
.pic.print .stars { position: absolute; right: 18px; bottom: 12px; color: var(--yellow); font-size: 22px; letter-spacing: 2px;
  -webkit-text-stroke: 1px var(--ink); }
/* Krapochka walks along the steps (desktop only) */
.trail { display: none; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 italic 34px var(--serif); color: var(--red); }
.steps b { display: block; font-size: 18px; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 32px; }
.why b { display: block; font: 600 22px var(--serif); margin-bottom: 4px; }
.why span { font-size: 15px; color: var(--muted); }
.photo { margin-top: 36px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }

/* portal teaser */
.portal { background: var(--ink); color: #fff; border-radius: 16px; padding: 32px 24px; display: grid; gap: 28px; align-items: center; }
.portal .kicker { color: var(--yellow); }
.portal h2 { color: #fff; }
.portal p { color: #c9ccd6; margin: 14px 0 0; max-width: 56ch; }
.portal h2 em { color: var(--yellow); }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.features li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--yellow); }
.features b { font: 600 18px var(--serif); color: #fff; }
.features span { color: #c9ccd6; font-size: 15px; }
.paths { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paths small { width: 100%; color: #8f94a6; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.paths span { border: 1px solid #3a4157; border-radius: 999px; padding: 5px 12px; font-size: 14px; color: #e3e5ec; }
.btn.yellow { background: var(--yellow); color: var(--ink); }
/* the early-access form inside the dark portal block */
.signup-box.dark .form { background: transparent; border-color: #3a4157; padding: 20px 0 0; border-width: 1px 0 0; border-radius: 0; }
.signup-box.dark .form label.field { color: #fff; }
.signup-box.dark .consent { color: #a9aebd; }
.signup-box.dark .consent a { color: #fff; }
.signup-box.dark .consent input { background: transparent; border-color: #6b7186; }
.signup-box.dark .consent input:checked { border-color: var(--yellow); }
.signup-box.dark .consent input:checked::after { border-color: var(--yellow); }
.signup-box.dark .form-error { color: #ff8a8f; }
.signup-box.dark .sent { margin-top: 20px; }
.btn.yellow:hover { background: #ffdd5c; }
.phone { justify-self: center; display: flex; width: 230px; min-height: 420px; background: #0f1320; border-radius: 34px; padding: 10px; border: 1px solid #3a4157; }
.screen { flex: 1; background: var(--bg); color: var(--ink); border-radius: 26px; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; }
.screen small { color: var(--muted); font-size: 12px; }
.screen h4 { margin: 0; font: 600 20px/1.2 var(--serif); }
.screen .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.screen .card img { width: 34px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.week span { text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); }
.week .done { background: #e9f5ee; color: #1f8a4c; border-color: #bfe3cd; }
.week .done::after { content: " ✓"; }
.week .today { background: var(--ink); color: #fff; border-color: var(--ink); }
.screen .today-card { align-items: center; }
.screen .today-card img { width: 46px; border: 1px solid var(--line); }
.screen .today-card span { display: grid; gap: 2px; color: var(--muted); font-size: 12px; }
.screen .today-card b { color: var(--ink); font-size: 13px; }
.week-pdf { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; padding: 8px;
  border: 1px dashed #cfc6b8; border-radius: 8px; }
.week-pdf + .go { margin-top: 0; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--yellow); }
.screen .go { margin-top: auto; background: var(--ink); color: #fff; text-align: center; border-radius: 8px; padding: 11px; font-weight: 700; font-size: 14px; }

/* form */
.signup { display: grid; gap: 24px; }
.signup .muted { margin: 12px 0 0; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; display: grid; gap: 18px; }
.form label.field { display: grid; gap: 6px; font-weight: 700; }
.form input[type=email] { font: 600 17px var(--sans); padding: 14px 16px; border-radius: 8px; border: 1px solid #cfc6b8; background: #fff; }
.form input[type=email]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.choice { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice legend { font-weight: 700; margin-bottom: 8px; }
.choice label { display: flex; align-items: center; gap: 12px; border: 1px solid #cfc6b8; border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice label span { color: var(--muted); margin-left: auto; font-size: 14px; }
.choice input, .consent input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; background: #fff; border: 1.5px solid #cfc6b8; cursor: pointer; transition: border-color .15s ease; }
.choice input { border-radius: 50%; }
.consent input { border-radius: 5px; margin-top: 3px; }
.choice input:hover, .consent input:hover, .choice input:checked, .consent input:checked { border-color: var(--ink); }
.choice input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.choice input:focus-visible, .consent input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.consent a { color: var(--ink); }
.form .btn { width: 100%; }
/* email + button: stacked on phones, one row from 640px */
.send { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .send { grid-template-columns: 1fr auto; align-items: end; }
  .send .btn { width: auto; padding-inline: 28px; min-height: 52px; }
}
.form .btn:disabled { opacity: .6; cursor: wait; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: var(--red); font-weight: 700; }

.sent { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 36px 20px 28px;
  display: grid; justify-items: center; text-align: center; gap: 10px; overflow: hidden; }
.sent h3 { font: 500 30px var(--serif); margin: 0; }
.sent p { margin: 0; max-width: 46ch; }
.sent .small { font-size: 14px; color: var(--muted); }
.sent-check { width: 56px; height: 56px; fill: none; stroke: #12a05a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sent-check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: checkdraw .6s ease-out forwards; }
.sent-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: checkdraw .35s .55s ease-out forwards; }
@keyframes checkdraw { to { stroke-dashoffset: 0; } }
.sent-bug { width: 120px; animation: hop 1.1s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hop { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 60% { transform: translateY(-14px) scale(1.05); opacity: 1; } 100% { transform: none; } }
.sent h3, .sent p { animation: rise .5s ease-out both; }
.sent h3 { animation-delay: .7s; } .sent p { animation-delay: .85s; } .sent .small { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
.burst { position: absolute; left: 50%; top: 90px; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0;
  animation: fly 1.4s calc(.15s + var(--d)) cubic-bezier(.15, .7, .35, 1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* faq */
.faq { display: grid; margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--serif); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* about */
.about { display: grid; gap: 28px; align-items: start; }
.about img { width: 150px; justify-self: center; }
.about p { margin: 12px 0 0; color: var(--muted); }
.facts { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); translate: 0 -1px; }
.about .sign { margin-top: 18px; font: 500 italic 20px var(--serif); color: var(--ink); }
/* site footer (templates/_footer.html, also on catalog pages) */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 40px 0 32px; font-size: 15px; color: var(--muted); }
.site-foot .cols { display: grid; gap: 28px; }
.site-foot nav, .site-foot .about-col { display: grid; gap: 8px; align-content: start; }
.site-foot b { color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.site-foot .brand b { font: 600 22px var(--serif); margin: 0; }
.site-foot .about-col p { margin: 4px 0; max-width: 34ch; }
.site-foot .bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px; font-size: 14px; }
.pack .more { color: var(--ink); font-weight: 700; text-decoration: none; margin-top: 4px; }
.pack .more:hover { text-decoration: underline; }
.pack a.frames { text-decoration: none; }

/* motion: gentle, short; all of it is switched off for prefers-reduced-motion */
.btn { transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.frame { transition: transform .35s ease, box-shadow .35s ease; }
.hero .frame:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 16px 16px 0 var(--yellow); }
.pack:hover .frames .frame:first-child { transform: translateX(-30%) rotate(-7deg) translateY(-4px); }
.pack:hover .frames .frame:last-child { transform: translateX(30%) rotate(6deg) translateY(-4px); }
.hero .frame { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; }
.hero h1 em path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
.packs .pack:nth-child(2), .steps li:nth-child(2), .why div:nth-child(2) { transition-delay: .1s; }
.packs .pack:nth-child(3), .steps li:nth-child(3), .why div:nth-child(3) { transition-delay: .2s; }
.why div:nth-child(4) { transition-delay: .3s; }
.screen .card { opacity: 0; translate: 0 10px; transition: opacity .5s ease, translate .5s ease; }
.portal.in .screen .card { opacity: 1; translate: 0 0; }
.portal.in .screen .card:nth-of-type(2) { transition-delay: .35s; }
@keyframes walk { from { left: 0; } to { left: calc(100% - 40px); } }
.portal.in .screen .go { animation: pulse 2.4s 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(31 36 51 / .35); } 50% { box-shadow: 0 0 0 8px rgb(31 36 51 / 0); } }
.top img { transition: transform .4s ease; }
.top img:hover { transform: rotate(-12deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .screen .card { opacity: 1; translate: 0 0; }
  .hero h1 em path { stroke-dashoffset: 0; }
}

@media (min-width: 860px) {
  .top nav { display: flex; }
  .hero { grid-template-columns: 1.7fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 60px; }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  #how { position: relative; }
  .trail { display: block; position: relative; height: 34px; margin: 28px 0 -6px; border-bottom: 2px dashed #d6cab7; }
  .trail img { position: absolute; bottom: -6px; width: 40px; animation: walk 9s ease-in-out infinite alternate; }
  .phone { width: 260px; min-height: 470px; }
  .why { grid-template-columns: repeat(4, 1fr); }
  .portal { grid-template-columns: 1.3fr 1fr; padding: 48px; }
  .choice { grid-template-columns: repeat(3, 1fr); }
  .choice legend { grid-column: 1 / -1; }
  .about { grid-template-columns: 200px 1fr; }
  .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
