/* Olvasótáska – a prototípus stíluslapja. A színek a logóból valók. */
:root {
  --cream: #FDFDFB;
  --paper: #F5F3EC;
  --navy: #0E3250;
  --navy-soft: #24506F;
  --ink: #16324B;
  --muted: #566878;
  --line: #E3E1D8;
  --coral: #E1643E;
  --coral-strong: #C54C2A;
  --coral-soft: #FCE9E2;
  --teal: #61AEBB;
  --teal-deep: #2B7486;
  --teal-soft: #E3F1F4;
  --yellow: #FBB13E;
  --yellow-soft: #FFF4DC;
  --green: #428C6D;
  --green-soft: #E2F0E8;
  --orange-soft: #FFE3C7;
  --red-soft: #FBD9D6;
  --red: #C6392F;
  --blue-soft: #DCE9FB;
  --blue: #2F68B8;
  --radius: 22px;
  --radius-small: 14px;
  --shadow: 0 14px 40px rgba(14, 50, 80, 0.10);
  --shadow-small: 0 4px 14px rgba(14, 50, 80, 0.08);
  /* Rendszerbetűk: a lekerekített rendszerbetű, ahol van (Safari), különben a rendszer alapbetűje. Olyan betű nem szerepel itt,
     amelyből hiányzik az ő és az ű (pl. Arial Rounded), mert a pótolt betűk kilógnának a szövegből. */
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* A rejtett elem rejtve marad akkor is, ha az osztálya megjelenítést ad neki. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw + 0.6rem, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 2.4vw + 0.9rem, 2.6rem); font-weight: 900; max-width: 26ch; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--coral-strong); }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 253, 251, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--navy); }
.wordmark .accent { color: var(--coral); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:not(.button):hover { background: var(--teal-soft); color: var(--navy); }
.site-nav .button { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 8px; border-radius: 12px; cursor: pointer; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--coral-strong); color: #fff; font: inherit; font-weight: 800; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--coral-strong); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(197, 76, 42, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.button:hover { background: #AE4122; border-color: #AE4122; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(197, 76, 42, 0.32); }
.button:active { transform: translateY(0); }
.button.small { padding: 9px 18px; font-size: 0.95rem; box-shadow: none; }
.button.ghost { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.button.ghost:hover { background: var(--navy); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow-soft); color: #7A5200; font-weight: 800; font-size: 0.9rem; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(251, 177, 62, 0.3); }
.lead { font-size: clamp(1.08rem, 0.6vw + 1rem, 1.3rem); color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23428C6D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

.hero-art { position: relative; display: grid; place-items: center; }
.blob { position: absolute; inset: 4% 2% 10% 2%; background: radial-gradient(closest-side, var(--teal-soft), rgba(227, 241, 244, 0) 72%), radial-gradient(circle at 80% 18%, var(--yellow-soft), rgba(255, 244, 220, 0) 46%), radial-gradient(circle at 12% 84%, var(--coral-soft), rgba(252, 233, 226, 0) 42%); border-radius: 50%; filter: blur(2px); }
.hero-logo { position: relative; width: min(520px, 92%); animation: float 7s ease-in-out infinite; }
.chip { position: absolute; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); box-shadow: var(--shadow-small); white-space: nowrap; }
.chip b { font-family: var(--font); }
.chip-a { top: 9%; left: -2%; border-color: #BFE0CF; transform: rotate(-5deg); }
.chip-a b { color: var(--green); }
.chip-b { top: 47%; right: -5%; border-color: #F6D98E; background: var(--yellow-soft); transform: rotate(4deg); }
.chip-b b { color: var(--navy); font-family: var(--serif); }
.chip-c { bottom: 27%; left: 0; border-color: #B8DCE3; background: var(--teal-soft); transform: rotate(-3deg); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.tinted { background: linear-gradient(180deg, var(--teal-soft), rgba(227, 241, 244, 0.35)); }
.tinted-yellow { background: linear-gradient(180deg, var(--yellow-soft), rgba(255, 244, 220, 0.3)); }
.tinted-coral { background: linear-gradient(180deg, var(--coral-soft), rgba(252, 233, 226, 0.35)); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--coral-strong); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 12px; }
.kicker::before { content: ""; width: 26px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Cg stroke='%23FBB13E' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M3 15l4-7'/%3E%3Cpath d='M12 12l6-9'/%3E%3Cpath d='M18 16l6-3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.fineprint { color: var(--muted); font-size: 0.88rem; margin: 14px 0 0; }
.fineprint.center { text-align: center; margin-top: 28px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 26px; box-shadow: var(--shadow-small); }
.step-number { position: absolute; top: -22px; left: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.3rem; box-shadow: 0 6px 14px rgba(14, 50, 80, 0.25); }
.step:nth-child(2) .step-number { background: var(--coral-strong); }
.step:nth-child(3) .step-number { background: var(--teal-deep); }
.step p { color: var(--muted); margin: 0; }

/* Demo */
.demo { margin-top: 36px; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.demo-title { display: flex; align-items: center; gap: 12px; }
.demo-title strong { display: block; color: var(--navy); font-weight: 900; line-height: 1.2; }
.demo-title span { color: var(--muted); font-size: 0.88rem; }
.pill { background: var(--paper); color: var(--ink); font-weight: 800; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.pill.live { background: var(--green-soft); color: #225D43; }
.pill.help { background: var(--teal-soft); color: var(--teal-deep); }
.pill.wait { background: var(--yellow-soft); color: #7A5200; }
.demo-body { display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: start; padding: 26px 0 8px; }
.passage { font-family: var(--serif); font-size: clamp(1.25rem, 1.1vw + 1rem, 1.7rem); line-height: 2.3; color: var(--ink); }
.w { position: relative; display: inline-block; padding: 0 6px; margin: 0 -2px; border-radius: 9px; border: 2px solid transparent; line-height: 1.5; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.w.ok { background: var(--green-soft); }
.w.corrected { background: var(--yellow-soft); box-shadow: inset 0 -3px 0 rgba(251, 177, 62, 0.75); }
.w.difficulty { background: var(--orange-soft); box-shadow: inset 0 -3px 0 #F08A2B; }
.w.omission { background: var(--red-soft); box-shadow: inset 0 -3px 0 var(--red); color: #7C1D17; }
.w.excused { background: var(--blue-soft); box-shadow: inset 0 -3px 0 rgba(47, 104, 184, 0.7); }
.w.cur { border-color: var(--green); }
.w.trying { border-color: #F08A2B; border-style: dashed; }
.w.spoken { border-color: var(--teal-deep); background: var(--teal-soft); animation: pulse 0.9s ease-in-out infinite; }
/* Amit a felismerő hallott: a szó alatt, a sorok közti helyen, hogy a sor ne mozduljon el. */
.w .heard { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); white-space: nowrap; font-family: var(--font); font-size: 0.5em; line-height: 1; color: #8A4B12; font-weight: 700; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 116, 134, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(43, 116, 134, 0); } }

.tutor { display: grid; justify-items: center; gap: 10px; text-align: center; background: var(--paper); border-radius: var(--radius); padding: 20px 16px; min-height: 236px; align-content: start; }
.tutor-face { width: 96px; height: 96px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow-small); transition: transform 0.2s ease; }
.tutor-face.speaking { animation: nod 0.5s ease-in-out infinite alternate; box-shadow: 0 0 0 5px rgba(97, 174, 187, 0.35), var(--shadow-small); }
@keyframes nod { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
.bubble { position: relative; background: var(--navy); color: #fff; border-radius: 18px; padding: 12px 16px 14px; width: 100%; }
.bubble::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.bubble-intent { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #BFE3EA; }
.bubble strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.tutor-idle { color: var(--muted); font-size: 0.92rem; margin: 0; }

.meter { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--coral)); border-radius: 999px; }
.demo-status { min-height: 1.7em; margin: 12px 0 0; font-weight: 700; color: var(--ink); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.slider { display: grid; gap: 4px; min-width: min(300px, 100%); font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.slider output { font-variant-numeric: tabular-nums; color: var(--coral-strong); margin-left: 6px; }
.slider input { width: 100%; accent-color: var(--coral-strong); }
.slider-ends { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.slider-ends i { font-style: normal; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal-deep); }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 22px; height: 16px; border-radius: 5px; border: 2px solid transparent; }
.swatch.ok { background: var(--green-soft); }
.swatch.corrected { background: var(--yellow-soft); box-shadow: inset 0 -3px 0 rgba(251, 177, 62, 0.75); }
.swatch.difficulty { background: var(--orange-soft); box-shadow: inset 0 -3px 0 #F08A2B; }
.swatch.omission { background: var(--red-soft); box-shadow: inset 0 -3px 0 var(--red); }
.swatch.excused { background: var(--blue-soft); box-shadow: inset 0 -3px 0 rgba(47, 104, 184, 0.7); }
.swatch.spoken { background: var(--teal-soft); border-color: var(--teal-deep); }
.demo-summary { margin-top: 20px; background: var(--paper); border-radius: var(--radius-small); padding: 18px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.demo-summary div { text-align: center; }
.demo-summary b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.demo-summary span { color: var(--muted); font-size: 0.88rem; }

/* The living bag */
.taska { display: block; overflow: visible; }
.playground { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(16px, 2.6vw, 30px); }
.taska-stage { position: relative; height: clamp(230px, 32vw, 380px); overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, var(--teal-soft) 0%, #F3F9FA 62%, #EFE9DA 62%, var(--paper) 100%); }
.taska-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 3px; background: rgba(14, 50, 80, 0.10); }
.taska-stage .taska { position: absolute; left: 0; bottom: 5%; height: 92%; width: auto; visibility: hidden; will-change: transform; z-index: 1; }
.stage-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 700; color: var(--ink); }
.commands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.command { font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--navy); background: var(--teal-soft); border: 2px solid #B8DCE3; border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.command:hover { background: #D3EAEE; border-color: var(--teal); transform: translateY(-1px); }
.command:active { transform: translateY(0); }
.say { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.say > label:first-child { font-weight: 800; color: var(--navy); }
.say input[type="text"] { font: inherit; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 8px 14px; width: min(320px, 100%); }
.say input[type="text"]:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(97, 174, 187, 0.25); }
.tutor-puppet { width: 100%; display: grid; justify-items: center; }
.tutor-puppet .taska { width: min(190px, 100%); height: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-small); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.teal { background: var(--teal-soft); color: var(--teal-deep); }
.icon.coral { background: var(--coral-soft); color: var(--coral-strong); }
.icon.yellow { background: var(--yellow-soft); color: #9A6A00; }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon.navy { background: #E1E8EF; color: var(--navy); }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 26px; border-top: 8px solid var(--teal); box-shadow: var(--shadow-small); }
.card.parent { border-top-color: var(--coral); }
.card.teacher { border-top-color: var(--navy); }
.card.child { border-top-color: var(--yellow); }
.card p { color: var(--muted); margin: 0; }

/* Two devices */
.devices { display: grid; grid-template-columns: 1fr 190px 1fr; gap: 18px; align-items: center; margin-top: 36px; }
.device { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-small); }
.device-screen { background: var(--cream); border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px 18px; }
.device-label { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.device-text { font-family: var(--serif); font-size: 1.2rem; line-height: 2; margin: 0; }
.device ul { margin: 16px 0 4px; padding-left: 20px; color: var(--muted); }
.device li { margin: 3px 0; }
.link { display: grid; gap: 6px; justify-items: center; color: var(--teal-deep); font-weight: 800; font-size: 0.88rem; text-align: center; }
.link svg { width: 100%; height: 40px; }
.link path { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }

/* Privacy */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 26px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-small); display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23428C6D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 0 22px; box-shadow: var(--shadow-small); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); padding: 18px 34px 18px 0; position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23C54C2A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Sign-up */
.signup { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.signup label { display: grid; gap: 6px; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.signup .optional { font-weight: 600; color: var(--muted); }
.signup input, .signup select, .signup textarea { font: inherit; color: var(--ink); background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(97, 174, 187, 0.25); }
.signup input.invalid { border-color: var(--red); }
.signup .button { justify-self: start; }
.form-note { margin: 0; font-weight: 800; color: var(--green); }
.form-note:empty { margin: -16px 0 0; }
.form-note.error { color: var(--red); }
.signup-art { width: min(260px, 60%); margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #D5E2EC; padding: 44px 0 38px; }
.footer-inner { display: grid; justify-items: center; gap: 8px; text-align: center; }
.site-footer .wordmark { color: #fff; }
.site-footer .brand img { background: var(--cream); border-radius: 50%; padding: 3px; }
.tagline { letter-spacing: 0.22em; color: #A9C0D2; margin: 2px 0 8px; font-size: 0.95rem; }
.copyright { margin: 0; font-size: 0.88rem; color: #A9C0D2; }

/* Simple page (404) */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.simple img { width: min(300px, 70vw); }

/* Responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not(.button) { padding: 8px 9px; font-size: 0.9rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .button { margin: 10px 0 0; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { width: min(360px, 78%); }
  .chip { font-size: 0.92rem; padding: 5px 12px; }
  .chip-a { left: 2%; } .chip-b { right: 0; } .chip-c { left: 4%; bottom: 24%; }
  .steps, .audience { grid-template-columns: 1fr; gap: 34px; }
  .audience { gap: 20px; }
  .demo-body { grid-template-columns: 1fr; }
  .tutor { grid-template-columns: auto 1fr; justify-items: start; text-align: left; min-height: 0; align-items: center; column-gap: 16px; }
  .tutor-face { width: 72px; height: 72px; grid-row: span 2; }
  .tutor-face img { width: 60px; height: 60px; }
  .tutor-puppet { width: 120px; grid-row: span 2; }
  .bubble::before { top: 50%; left: -7px; transform: translateY(-50%) rotate(45deg); }
  .devices { grid-template-columns: 1fr; }
  .link { grid-template-columns: 1fr; }
  .link svg { width: 60px; height: 60px; transform: rotate(90deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .w { padding: 0 4px; }
  .passage { line-height: 2.25; }
  .signup-art { width: min(170px, 45%); margin-top: 6px; }
  .features { grid-template-columns: 1fr; }
  .demo-bar { flex-direction: column; align-items: flex-start; }
  .cta-row .button { width: 100%; }
  .chip-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
