/* Make & Speak – shared styles */

:root {
  --paper: #FBF3EE;
  --paper-2: #F5E7DE;
  --ink: #3B2B24;
  --ink-soft: #6B574C;
  --brown: #833C0B;
  --brown-dark: #5F2B08;
  --line: #E7D4C7;

  --sky: #D4E4F1;
  --butter: #F6E4A9;
  --sage: #D3E6CD;
  --lilac: #E4DAF0;
  --peach: #F4D8C6;

  --serif: "Alegreya", Cambria, Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1120px;
  --r-sm: 6px;
  --r-md: 16px;
  --r-lg: 32px;
  --shadow-paper: 0 12px 26px -16px rgba(95, 43, 8, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* short pages (contact, 404): footer stays at the bottom of the screen */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.005em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }
.hand { font-family: var(--hand); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }

/* Demo banner (remove for launch) */
.demo-banner { background: var(--ink); color: var(--paper); font-size: .9rem; text-align: center; padding: 8px 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.35em; border-radius: 999px; border: 2px solid var(--brown);
  font: 800 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: var(--peach); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 238, .93); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.4rem; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--brown); }
.site-nav .btn { padding: .6em 1.1em; font-size: .95rem; }

/* Language switch: a globe button with a small menu on desktop, a segmented switch in the phone menu */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 11px;
  border: 1.5px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55);
  font: 800 .85rem var(--sans); letter-spacing: .03em; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--ink); background: #fff; }
.lang-menu summary svg { width: 17px; height: 17px; flex: none; }
.lang-menu summary .chev { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .15s; }
.lang-menu[open] summary .chev { transform: rotate(180deg); }
.lang-menu ul {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 40px -20px rgba(95, 43, 8, .45);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border: 0; border-radius: 10px; font-size: .98rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current="true"] { background: var(--paper-2); }
.lang-code { font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); }
.lang-menu a[aria-current="true"] .lang-code { color: var(--brown); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; flex: none;
  align-items: center; justify-content: center; background: rgba(255, 255, 255, .55);
  border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--ink); background: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-left: 0; }
  /* language globe stays in the header bar, next to the menu button */
  .lang-menu { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 10px; }
}

/* ---------- Photo & price slots (placeholders) ---------- */
.photo-slot {
  display: grid; place-items: center; align-content: center; gap: 2px; text-align: center;
  background: repeating-linear-gradient(135deg, #F2E2D7 0 14px, #F7EAE2 14px 28px);
  border: 2px dashed #D6B8A4; border-radius: var(--r-md);
  color: var(--ink-soft); font-size: .95rem; font-weight: 700; padding: 24px;
}
.photo-slot small { display: block; font-weight: 400; margin-top: 4px; }

.price-slot {
  border: 2px dashed #D6B8A4; border-radius: var(--r-md); padding: 36px;
  display: grid; gap: 6px; background: #fff8f3;
}
.price-slot strong { font-family: var(--serif); font-size: 1.35rem; }
.price-slot span { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 104px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
/* Home heading: fills the full width, never hyphenates – a word that doesn't fit moves whole to the next line */
.hero h1 { hyphens: manual; overflow-wrap: normal; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.hero-where { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 26px 0 30px; }
.hero-where svg { width: 20px; height: 20px; color: var(--brown); flex: none; }

.board { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 430px; margin-left: auto; }
/* a sticky note on the photo says who this is */
.photo-note {
  position: absolute; left: -18px; bottom: 4%; z-index: 2; max-width: 250px;
  background: var(--butter); padding: 14px 18px 12px; border-radius: 3px;
  box-shadow: var(--shadow-paper); transform: rotate(-3deg);
}
.photo-note::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px;
  transform: translateX(-50%) rotate(-4deg); background: rgba(255, 255, 255, .6); border: 1px solid rgba(59, 43, 36, .06);
}
.photo-note .hand { display: block; font-size: 1.7rem; line-height: 1.1; }
.photo-note small { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.board .photo-frame {
  position: absolute; inset: 7% 9% 12% 7%;
  transform: rotate(-2deg); box-shadow: var(--shadow-paper); background-color: #F7EAE2;
}

.note {
  position: absolute; width: min(220px, 54%);
  padding: 16px 16px 14px; border-radius: 3px; box-shadow: var(--shadow-paper);
}
.note::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 70px; height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(59, 43, 36, .06);
}
.note .step { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.note .num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .75rem;
}
.note .hand { font-size: 1.5rem; line-height: 1.1; display: block; }
.note-learn    { background: var(--sky);    top: -1%;  left: -8%;  --rot: -4deg; }
.note-practice { background: var(--butter); top: 40%;  right: -9%; --rot: 3deg; }
.note-create   { background: var(--sage);   bottom: 0; left: 2%;   --rot: -1.5deg; }
.note { transform: rotate(var(--rot)); }

/* the one orchestrated moment: notes get stuck onto the board */
@keyframes stick {
  from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--rot) * 3)); }
  to   { opacity: 1; transform: rotate(var(--rot)); }
}
.board .note { animation: stick .55s cubic-bezier(.2, .9, .3, 1.25) both; }
.board .note-learn { animation-delay: .25s; }
.board .note-practice { animation-delay: .5s; }
.board .note-create { animation-delay: .75s; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .board { aspect-ratio: auto; max-width: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .board .photo-frame { position: relative; inset: auto; height: 340px; grid-column: 1 / -1; }
  .note { position: relative; inset: auto; width: auto; }
  .note-create { grid-column: 1 / -1; }
}

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path { position: relative; border-radius: var(--r-md); padding: 36px 36px 30px; }
.path h3 { font-size: 1.6rem; margin-bottom: 12px; }
.path p { line-height: 32px; margin-bottom: 0; }
.path .who { margin-top: 18px; font-weight: 800; font-size: .95rem; }

/* school notebook: ruled lines + margin */
.path-school {
  background-color: #fff;
  background-image: linear-gradient(to bottom, transparent 31px, #DCE7F2 31px, #DCE7F2 32px);
  background-size: 100% 32px; background-position: 0 14px;
  padding-left: 72px; border: 1px solid #E3ECF4;
}
.path-school::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50px; border-left: 2px solid #F1BBA9; }

/* own pace: dotted sketch paper */
.path-own {
  background-color: var(--lilac);
  background-image: radial-gradient(#C9B8DF 1.3px, transparent 1.4px);
  background-size: 22px 22px;
}
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path { padding: 28px 24px; } .path-school { padding-left: 60px; } .path-school::after { left: 40px; } }

/* ---------- Lesson strip (Learn / Practice / Create) ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); overflow: hidden; counter-reset: step; }
.strip > li { padding: 32px 30px 34px; }
.strip > li:nth-child(1) { background: var(--sky); }
.strip > li:nth-child(2) { background: var(--butter); }
.strip > li:nth-child(3) { background: var(--sage); }
.strip h3 { display: flex; align-items: center; gap: 10px; }
.strip h3::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 800 .9rem var(--sans); flex: none;
}
.strip p { margin: 0; }
.strip-after { margin-top: 26px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }

/* ---------- Project formats as paper tags ---------- */
.formats { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.formats li {
  padding: 10px 18px; border-radius: 4px; font-weight: 800; box-shadow: 0 6px 14px -10px rgba(95, 43, 8, .5);
}
.formats li:nth-child(5n+1) { background: var(--sky); transform: rotate(-1.5deg); }
.formats li:nth-child(5n+2) { background: var(--butter); transform: rotate(1deg); }
.formats li:nth-child(5n+3) { background: var(--sage); transform: rotate(-.5deg); }
.formats li:nth-child(5n+4) { background: var(--lilac); transform: rotate(1.5deg); }
.formats li:nth-child(5n+5) { background: var(--peach); transform: rotate(-1deg); }
.formats-note { font-size: 1.6rem; color: var(--brown); margin-top: 18px; display: block; }

/* ---------- About teaser & proof list ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about .photo-frame { aspect-ratio: 4 / 5; }
.proof { margin-top: 28px; border-top: 1px solid var(--line); max-width: 600px; }
.proof li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.proof b { font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.proof a { font-size: .88rem; white-space: nowrap; }
.proof-title { font-size: 1rem; font-family: var(--sans); font-weight: 800; color: var(--ink-soft); margin: 28px 0 0; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 32px; } .about .photo-frame { max-width: 340px; } }

/* ---------- Pricing teaser ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.trial { display: flex; gap: 14px; align-items: flex-start; background: var(--sage); border-radius: var(--r-md); padding: 20px 22px; margin-top: 8px; max-width: 480px; }
.trial svg { width: 28px; height: 28px; flex: none; color: var(--ink); }
.trial p { margin: 0; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px;
  padding: 12px 20px; text-decoration: none; color: var(--ink); font-weight: 800;
}
.contact-list a:hover { background: var(--paper); color: var(--ink); }
.contact-list svg { width: 22px; height: 22px; color: var(--brown); flex: none; }
.contact-list small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 820px) { .contact-band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: var(--r-md); } }

/* ---------- Footer: one thin edge-to-edge band ---------- */
main { flex: 1 0 auto; }
/* Footer: only a small legal line */
.site-footer { color: var(--ink-soft); padding: 14px 0 18px; }
.site-footer .wrap { display: flex; justify-content: center; }
.footer-legal { display: flex; align-items: center; gap: 0 14px; white-space: nowrap; font-size: .75rem; }
.footer-legal a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 32px; }
.footer-legal a:hover { color: var(--ink); }

/* ============ METHOD PAGE ============ */
.page-head { padding: 64px 0 24px; }
.page-head p { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* Topic trail: school stage tabs, then one topic walking through the three steps */
.trail-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trail-ages [role="tab"] {
  border: 2px solid var(--ink); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0;
  background: transparent; color: var(--ink); cursor: pointer; text-align: left;
  padding: 14px 20px 12px; font: 800 1.15rem/1.2 var(--serif); min-height: 56px;
}
.trail-ages [role="tab"] small { display: block; font: 700 .85rem var(--sans); color: var(--ink-soft); margin-top: 2px; }
.trail-ages [role="tab"]:hover { background: #fff; }
.trail-ages [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.trail-ages [role="tab"][aria-selected="true"] small { color: var(--paper-2); }

.trail-panel { background: #fff; border: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 30px 32px 34px; }
/* method page: the steps box stands on its own (no tabs above it) */
.trail-panel.trail-simple { border-radius: var(--r-lg); }
.trail-panel[hidden] { display: none; }
.trail-topic { font-size: 1.7rem; margin-bottom: 24px; }

.trail-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
/* the dotted path joining the three stops */
/* dotted connector from each step's dot to the next one (none after the last step) */
.trail-step:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 44px; right: -28px; border-top: 2px dashed #C99D84; }
.trail-step { position: relative; }
.trail-dot {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font: 800 1.05rem var(--sans); margin-bottom: 14px;
}
.trail-step-1 .trail-dot { background: var(--sky); }
.trail-step-2 .trail-dot { background: var(--butter); }
.trail-step-3 .trail-dot { background: var(--sage); }
.trail-step h4 { font: 800 1.25rem var(--serif); margin: 0 0 4px; }
.trail-what { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; margin: 0 0 14px; }
.trail-note {
  font-size: 1.45rem; line-height: 1.15; margin: 0; padding: 12px 14px;
  border-radius: 3px; box-shadow: var(--shadow-paper); transform: rotate(-1deg);
}
.trail-step-1 .trail-note { background: var(--sky); }
.trail-step-2 .trail-note { background: var(--butter); transform: rotate(.8deg); }
.trail-step-3 .trail-note { background: var(--sage); }
.trail-foot { margin: 16px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* Two rhythms */
.rhythms { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rhythm { background: #fff; border-radius: var(--r-md); padding: 30px; border: 1px solid var(--line); }
.rhythm p { color: var(--ink-soft); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 6px; position: relative; }
.lesson-mini { display: grid; gap: 6px; }
.lesson-mini span.label { font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.lesson-mini .bar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 26px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); }
.lesson-mini .bar i:nth-child(1) { background: var(--sky); }
.lesson-mini .bar i:nth-child(2) { background: var(--butter); border-left: 1.5px solid var(--ink); }
.lesson-mini .bar i:nth-child(3) { background: var(--sage); border-left: 1.5px solid var(--ink); }
.lesson-mini .bar i.done { background: var(--sage) repeating-linear-gradient(45deg, transparent 0 5px, rgba(59,43,36,.18) 5px 7px); }
.timeline-caption { font-family: var(--hand); font-size: 1.35rem; color: var(--brown); line-height: 1.2; }
.project-band {
  grid-column: 1 / -1; background: var(--sage); border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 3px 12px; font-weight: 800; font-size: .82rem; text-align: center;
}
@media (max-width: 760px) { .rhythms { grid-template-columns: 1fr; } }

/* Report after every lesson */
.report-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.report {
  background: #fff; border-radius: var(--r-sm); padding: 26px 28px 22px;
  border-top: 6px solid var(--peach); box-shadow: var(--shadow-paper); transform: rotate(1deg);
}
.report h3 { font-size: 1.25rem; margin-bottom: 2px; }
.report .meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.report dl { margin: 0; display: grid; gap: 12px; }
.report dl > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 12px; }
.report dl > div::before { content: ""; grid-row: 1 / 3; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.report .l::before { background: #8FB0CC; }
.report .p::before { background: #D7B84A; }
.report .c::before { background: #8DB884; }
.report .n::before { background: var(--brown); }
.report dt { font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.report dd { margin: 0; }
.report-note { font-family: var(--hand); font-size: 1.4rem; line-height: 1.2; color: var(--brown); margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 860px) { .report-wrap { grid-template-columns: 1fr; gap: 24px; } .report { transform: none; padding: 22px 20px 18px; } }

/* Worked example across lessons */
.unit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-lesson { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.unit-lesson > h3 { font-size: 1.2rem; padding: 18px 22px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.unit-lesson dl { margin: 0; }
.unit-lesson dt { font-weight: 800; font-size: .85rem; padding: 12px 22px 0; }
.unit-lesson dd { margin: 0; padding: 2px 22px 14px; font-size: .98rem; }
.unit-lesson .l { background: var(--sky); }
.unit-lesson .p { background: var(--butter); }
.unit-lesson .c { background: var(--sage); }
.unit-lesson:last-child .c { background: var(--sage) ; box-shadow: inset 0 -4px 0 var(--brown); }
@media (max-width: 860px) { .unit { grid-template-columns: 1fr; } }


/* How lessons work: one thin row of facts */
.facts-title { font-size: 1.5rem; margin-bottom: 14px; }
.lesson-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lesson-facts li { display: flex; gap: 12px; align-items: center; padding: 16px 18px 16px 0; font-weight: 700; line-height: 1.35; }
.lesson-facts li + li { border-left: 1px solid var(--line); padding-left: 18px; }
.lesson-facts svg { width: 24px; height: 24px; flex: none; color: var(--brown); }

/* Formats detail */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.format-col { border-top: 4px solid var(--ink); padding-top: 16px; }
.format-col:nth-child(1) { border-color: #B79B86; }
.format-col:nth-child(2) { border-color: #8FB0CC; }
.format-col:nth-child(3) { border-color: #C9A93C; }
.format-col li { padding: 4px 0; }
.with-photo { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.with-photo .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .formats-grid { grid-template-columns: 1fr; } .with-photo { grid-template-columns: 1fr; } }

/* Language note */
.lang-note { background: var(--lilac); border-radius: var(--r-md); padding: 32px 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.lang-note .bubble { font-family: var(--hand); font-size: 2rem; line-height: 1; background: #fff; border-radius: 18px 18px 18px 4px; padding: 14px 18px; white-space: nowrap; }
.lang-note p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .lang-note { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ============ SHARED ADDITIONS ============ */
.section.section-tight { padding-top: 24px; }
.after-proof { margin-top: 22px; }

.photo-frame { margin: 0; border-radius: var(--r-md); }
.photo-frame > * { width: 100%; height: 100%; }
.photo-frame img { display: block; object-fit: cover; object-position: 50% 22%; border-radius: inherit; } /* keep the face in view when the frame is wider than the photo */

.path-list { margin-top: 14px; }
.path-list li { position: relative; padding-left: 20px; line-height: 32px; }
.path-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--brown); }

/* ============ LESSONS PAGE ============ */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.facts svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; flex: none; color: var(--ink); background: var(--sky); }
.facts li:nth-child(3n+2) svg { background: var(--butter); }
.facts li:nth-child(3n) svg { background: var(--sage); }
.facts h3 { font-size: 1.1rem; margin-bottom: 4px; }
.facts p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-todo { font-weight: 800; color: var(--brown); margin-top: 8px; }
.trial-wide { max-width: none; margin-top: 20px; }

.start-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: start; }
.start-steps li { position: relative; padding-top: 58px; }
.start-steps li::before {
  counter-increment: start; content: counter(start);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 1.05rem var(--sans); z-index: 1;
}
.start-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 50px; right: -12px; border-top: 2px dashed var(--line); }
.start-steps h3 { font-size: 1.2rem; }
.start-steps p { color: var(--ink-soft); margin: 0; }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-weight: 800; font-size: 1.05rem; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--peach);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* ============ ABOUT PAGE ============ */
.page-head .about { align-items: center; }
.page-head .about p { font-size: 1.1rem; color: var(--ink); }
.experience { border-top: 1px solid var(--line); }
.experience li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.experience .when { font-family: var(--serif); font-weight: 800; white-space: nowrap; padding-top: 2px; }
.experience h3 { font-size: 1.15rem; margin-bottom: 4px; }
.experience p { margin: 0; color: var(--ink-soft); }

.languages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 32px; max-width: 900px; }
.languages li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name level" "dots dots"; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lang-name { grid-area: name; font-weight: 800; }
.lang-level { grid-area: level; color: var(--ink-soft); font-weight: 700; }
.dots { grid-area: dots; display: flex; gap: 5px; }
.dots i { width: 100%; height: 8px; border-radius: 4px; background: var(--paper-2); }
.dots i.on { background: var(--brown); opacity: .75; }

/* ============ CONTACT PAGE ============ */
.channels { display: grid; gap: 12px; max-width: 620px; }
.channel {
  display: flex; align-items: center; gap: 18px; min-height: 80px; padding: 14px 22px 14px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
}
.channel:hover { color: var(--ink); border-color: var(--ink); }
.channel svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; flex: none; color: var(--ink); background: var(--c); }
.channel strong { display: block; font: 800 1.3rem/1.2 var(--serif); }
.channel small { display: block; font-size: .95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.channel-call  { --c: var(--peach); }
.channel-wa    { --c: var(--sage); }
.channel-viber { --c: var(--lilac); }
.channel-mail  { --c: var(--sky); }

.checklist, .where-card { border-radius: var(--r-md); padding: 24px 26px; }
.checklist { background: var(--butter); }
.where-card { background: var(--sky); }
.checklist h2, .where-card h2 { font-size: 1.35rem; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.where-card p { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; font-weight: 700; }
.where-card svg { width: 22px; height: 22px; flex: none; }

/* ============ LEGAL ============ */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal-date { margin-top: 2em; color: var(--ink-soft); font-size: .92rem; }
.project-notice { margin-top: 2em; color: var(--ink-soft); font-size: .85rem; }

@media (max-width: 960px) {
  .facts, .price-grid { grid-template-columns: 1fr 1fr; }
  .start-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .start-steps li:nth-child(2)::after { display: none; }
  .languages { grid-template-columns: 1fr 1fr; }
}

/* Home: one quiet proof line under the lead, linking to About me */
.hero-proof { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; max-width: 46ch; margin: 18px 0 0; }
.hero-proof svg { width: 22px; height: 22px; flex: none; color: var(--brown); margin-top: 2px; }
.hero-proof a { white-space: nowrap; }

/* Contact: a short line above the four buttons */
.contact-lead { font-size: 1.15rem; font-weight: 700; margin: 8px 0 22px; }

.contact-more { margin-top: 32px; }
.contact-more p { font-weight: 700; margin-bottom: 12px; }
.contact-more ul { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-more .btn { min-height: 50px; padding: .7em 1.4em; }

/* ============ HOME: TWO EXERCISE BOOKS ============ */
.doors-title { margin-bottom: 28px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.door {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 340px; padding: 30px 32px 30px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt)); transition: transform .2s ease, box-shadow .2s ease;
}
.door:hover { color: var(--ink); transform: rotate(0deg) translateY(-4px); box-shadow: 0 20px 34px -18px rgba(95, 43, 8, .5); }
/* English: ruled exercise book with a red margin */
/* Handwriting sits on the paper: the sample's line-height equals the rule/grid spacing, and the
   background is positioned from the content box (where the sample starts), so padding changes
   at other screen sizes never shift it. --rule-y puts a line exactly under the first baseline. */
.door-ruled {
  --tilt: -1deg; --rule: 42px; --rule-y: 34.5px;
  background: #fff linear-gradient(to bottom, transparent calc(var(--rule) - 1.5px), #CFE0EE calc(var(--rule) - 1.5px), #CFE0EE var(--rule)) 0 var(--rule-y) / 100% var(--rule);
  background-origin: content-box;
}
/* the red margin sits at the edge, so the content lines up with the other two cards */
.door-ruled::before { content: ""; position: absolute; top: 0; bottom: 0; left: 14px; border-left: 2px solid #F1BBA9; }
/* Maths: squared paper */
.door-squared {
  --tilt: 1deg; --grid: 24px; --grid-y: 12px;
  background-color: #FFFDF6;
  background-image: linear-gradient(#EADFB8 1px, transparent 1px), linear-gradient(90deg, #EADFB8 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: 0 var(--grid-y);
  background-origin: content-box;
}
.door-squared .door-sample { font-size: 2.5rem; line-height: calc(var(--grid) * 2); }
.door-sample { font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1.2; margin-bottom: auto; padding-bottom: 28px; }
.door-ruled .door-sample { color: #2F5D8A; font-size: 2.5rem; line-height: var(--rule); }
.door-name { font: 800 clamp(1.9rem, 3.4vw, 2.5rem)/1.1 var(--serif); padding: .15em .45em; border-radius: 4px; }
.door-ruled .door-name { background: var(--sky); }
.door-squared .door-name { background: var(--butter); }
.door-go {
  margin-top: 16px; padding: .6em 1.2em; border-radius: 999px;
  background: var(--brown); color: #fff; font-weight: 800; font-size: .95rem;
}
.door:hover .door-go { background: var(--brown-dark); }

/* ============ NEXT STEPS: the path home → subject → about / contact ============ */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* compact card: title + one short line on the left, arrow on the right */
.next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border: 2px solid var(--ink); border-radius: var(--r-md);
  background: #fff; color: var(--ink); text-decoration: none; transition: transform .15s ease;
}
.next-card:hover { color: var(--ink); transform: translateY(-3px); }
.next-card h3 { font-size: 1.4rem; margin: 0 0 2px; }
.next-card p { margin: 0; color: var(--ink-soft); }
.next-card > svg { width: 28px; height: 28px; flex: none; transition: transform .15s ease; }
.next-card:hover > svg { transform: translateX(4px); }
.next-card-contact { background: var(--brown); border-color: var(--brown); color: #fff; }
.next-card-contact:hover { color: #fff; }
.next-card-contact p { color: var(--peach); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--peach); border-radius: var(--r-lg); padding: 36px 40px;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ============ HOME: three school-stage exercise books ============ */
/* High school: dotted paper */
.door-dotted {
  --tilt: -.6deg;
  background-color: #F7F2FB;
  background-image: radial-gradient(#CDBFE0 1.3px, transparent 1.4px);
  background-size: 22px 22px;
}
.door-dotted .door-sample { color: var(--ink); font-size: 2.5rem; }
.door-dotted .door-name { background: var(--sage); }
.doors-3 { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doors-3 .door { min-height: 190px; padding-right: 26px; }
.doors-3 .door-go { margin-top: auto; }
/* school-level name always on one line */
.doors-3 .door-name { font-size: clamp(1.2rem, 1.85vw, 1.65rem); white-space: nowrap; margin-bottom: 24px; }
.door-years { font-weight: 800; font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
.door-subjects { margin-top: 6px; font-size: .98rem; line-height: 1.45; }

/* ============ SUBJECTS PAGE ============ */
.trail-ages { scroll-margin-top: 90px; }
.level-intro { font-size: 1.1rem; margin: 0 0 20px; max-width: 62ch; }
.featured {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px;
  background: var(--butter); border-radius: var(--r-md); padding: 20px 22px;
}
.featured { align-items: center; }
.featured svg { width: 30px; height: 30px; flex: none; color: var(--ink); }
.featured h3 { font-size: 1.3rem; margin: 0; }
.featured p { margin: 0; }
.subject-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.subject-group h3 { font-size: 1.15rem; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 15px; border-radius: 999px; font-weight: 700; line-height: 1.3; }
/* one colour per field */
.chips .chip-math { background: var(--sky); }
.chips .chip-science { background: var(--sage); }
.chips .chip-lang { background: var(--lilac); }
.chips .chip-it { background: var(--peach); }
.chips li { font-size: 1.02rem; padding: 10px 18px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extras li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.extras h3 { font-size: 1.2rem; margin-bottom: 4px; }
.extras p { margin: 0; color: var(--ink-soft); }
.not-listed { margin-top: 24px; font-weight: 700; }

/* ============ HOW I WORK ============ */
.trail-subject { font-weight: 800; font-size: .9rem; color: var(--brown); margin: 0 0 2px; }
.lesson-facts-6 { grid-template-columns: repeat(3, 1fr); }
.lesson-facts-6 li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.lesson-facts-6 li:nth-child(n+4) { border-top: 1px solid var(--line); }

/* ============ ABOUT: RESULTS ============ */
.langs-line { color: var(--ink-soft); font-size: 1rem !important; border-left: 3px solid var(--peach); padding-left: 14px; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.results h3 { font-size: 1.25rem; }
.results .proof { margin-top: 12px; }

/* ============ PHONE-FIRST REFINEMENTS ============ */
#contact { scroll-margin-top: 90px; }
.contact-list small { overflow-wrap: anywhere; }

/* Sticky action bar: only on phones */
.mobile-bar { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 84px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 243, 238, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transition: transform .25s ease;
  }
  /* slides away while another contact button is visible (see main.js) */
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { min-height: 54px; padding: .6em .8em; font-size: 1.08rem; gap: 10px; }
  .mobile-bar svg { width: 20px; height: 20px; }

  .demo-banner { font-size: .8rem; padding: 6px 12px; }
  .site-header .wrap { min-height: 64px; gap: 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand-name { font-size: 1.25rem; }

  /* menu panel: big tap targets */
  .site-nav { padding: 12px 20px 24px; box-shadow: 0 18px 30px -20px rgba(95, 43, 8, .4); }
  .site-nav ul { width: 100%; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 0; }
  .site-nav a:not(.btn)[aria-current="page"] { color: var(--brown); }
  .lang-menu summary { height: 44px; }
  .brand-name { white-space: nowrap; }
  .next { grid-template-columns: 1fr; gap: 14px; }
  .next-card { padding: 18px 20px; }
  /* note hangs below the photo, overlapping only its bottom edge, so it never covers the face */
  .board { position: relative; padding-bottom: 48px; }
  .photo-note { left: 10px; bottom: 0; max-width: 82%; }
  .photo-note .hand { font-size: 1.5rem; }
  .cta-band { padding: 26px 22px; border-radius: var(--r-md); }
  .cta-band .btn { width: 100%; min-height: 52px; }
  .site-nav .btn { width: 100%; min-height: 50px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p, .page-head p, .hero-lead { font-size: 1.06rem; }
  .page-head { padding: 36px 0 8px; }

  .hero { padding: 28px 0 56px; }
  .hero-where { margin: 18px 0 22px; font-size: .98rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; min-height: 52px; }
  .board .photo-frame { height: 300px; }
  .note .hand { font-size: 1.35rem; }

  .strip > li { padding: 24px 22px; }
  .path h3 { font-size: 1.4rem; }
  .price-slot { padding: 26px 22px; }
  .contact-list a { min-height: 56px; }

  /* footer: the small legal line on one row */
  .site-footer { padding: 6px 0 4px; }
  .footer-legal { justify-content: center; gap: 0 10px; font-size: .66rem; }
  body:not(:has(.mobile-bar)) { padding-bottom: 0; }

  .doors, .doors-3 { grid-template-columns: 1fr; gap: 24px; }
  .doors-3 .door { min-height: 0; }
  .extras { grid-template-columns: 1fr; }
  .featured { padding: 18px; }
  .door { min-height: 240px; padding: 24px 22px; }
  .door-ruled::before { left: 10px; }

  /* topic trail runs top to bottom on phones */
  .trail-ages { gap: 6px; }
  .trail-ages [role="tab"] { padding: 10px 10px 9px; font-size: .98rem; border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .trail-ages [role="tab"] small { font-size: .75rem; }
  .trail-panel { padding: 22px 18px 26px; border-radius: 0 0 var(--r-md) var(--r-md); }
  .trail-topic { font-size: 1.45rem; margin-bottom: 18px; }
  .trail-steps { grid-template-columns: 1fr; gap: 22px; }
  .trail-step:not(:last-child)::after { top: 44px; bottom: -22px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed #C99D84; }
  .trail-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
  .trail-dot { margin: 0; }
  .trail-note { font-size: 1.3rem; }
  .lesson-facts { grid-template-columns: 1fr; border-bottom: 0; }
  .lesson-facts li, .lesson-facts li + li { border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }

  .channel { min-height: 72px; gap: 14px; padding: 12px 16px 12px 12px; }
  .channel svg { width: 46px; height: 46px; padding: 11px; }

  .rhythm { padding: 24px 20px; }

  .section.section-tight { padding-top: 16px; }
  .facts, .price-grid { grid-template-columns: 1fr; }
  .facts li { padding: 16px; }
  .languages { grid-template-columns: 1fr; }

  /* start steps become a vertical timeline */
  .start-steps { grid-template-columns: 1fr; row-gap: 0; }
  .start-steps li { padding: 0 0 26px 58px; }
  .start-steps li::after, .start-steps li:nth-child(2)::after { display: block; }
  .start-steps li:not(:last-child)::after { top: 46px; bottom: 4px; left: 20px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }

  .experience li { grid-template-columns: 1fr; gap: 4px; }
  .page-head .about { gap: 24px; }
  .page-head .about .photo-frame { max-width: none; aspect-ratio: 4 / 3; }
  .faq summary { font-size: 1rem; }

  .results { grid-template-columns: 1fr; gap: 28px; }
}

/* Small phones: keep the header to one row – brand name, globe, menu */
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-name { font-size: 1.12rem; }
  .lang-menu summary { padding: 0 10px; gap: 5px; }
  .lang-menu summary .chev { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
