/* ─── Platytutor landing page ─────────────────────────────────────────
   Shares design tokens (../css/tokens.css).
   Storybook warmth; targets parents AND kids 50/50.                 */

* { box-sizing: border-box; 
}
html, body { margin: 0; padding: 0; 
}

/* Base body + grain overlay live in css/components.css. */
body { scroll-behavior: smooth; 
}

.page { position: relative; z-index: 1; 
}

/* ─── Reusable bits ──────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  /* viewport-fit=cover: a phone on its side puts the notch over the edge.
     env() is 0 everywhere else, so this is the clamp above on a desktop. */
  padding-left: max(clamp(1rem, 3vw, 2.2rem), var(--safe-l, 0px));
  padding-right: max(clamp(1rem, 3vw, 2.2rem), var(--safe-r, 0px));
}

/* .btn-stamp + variants live in components.css. */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-hand);
  font-size: var(--fs-title);
  line-height: 1;
  color: var(--coral-deep);
  transform: rotate(-2deg);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.section-lead {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.underline-sun {
  position: relative;
  display: inline-block;
}
.underline-sun::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 18%;
  background: var(--sun);
  z-index: -1;
  border-radius: var(--r-xs);
  transform: rotate(-1.5deg);
}

/* ─── Nav ────────────────────────────────────────────────────────── */

:root { --nav-h: 72px; 
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 244, 227, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.3s ease;
}

.nav.is-scrolled {
  box-shadow: 0 6px 28px rgba(27, 58, 91, 0.14);
}

#hitvallas, #kompetenciak, #hogyan, #korai-partneri-program, #szuloknek, #gyik {
  scroll-margin-top: var(--nav-h);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(clamp(1rem, 3vw, 2.2rem), var(--safe-l, 0px));
  padding-right: max(clamp(1rem, 3vw, 2.2rem), var(--safe-r, 0px));
}

/* .brand / .brand-mark / .brand em base are in components.css. */

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-body);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 3px;
  background: var(--coral);
  border-radius: var(--r-xs);
  transition: right 0.25s ease;
}

/* Hover effects answer a mouse only: on a touch screen a tap leaves :hover
   behind and the lift or underline would stick. */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--coral-deep); }
  .nav-links a:hover::after { right: 0; }
}

.nav-cta { display: inline-flex; align-items: center; gap: 0.6rem; 
}

.nav-cta .btn-stamp { padding: 0.55rem 1rem; font-size: var(--fs-body); 
}

.nav-burger {
  display: none;
  color: var(--ink);   /* iOS Safari paints a button's currentColor system blue */
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r-full);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  box-shadow: var(--shadow-stamp-sm);
}

.nav-burger svg { width: 20px; height: 20px; 
}

@media (max-width: 768px) {
  .nav-links { display: none; 
}
  .nav-burger { display: inline-flex; 
}
  /* Only one CTA fits next to the wordmark and the burger. "Legyen partnerünk"
     is already in the burger menu as "Korai Partner", so the bar keeps
     Belépés — the entry point with no other route on a phone. */
  .nav-cta .nav-cta-secondary { display: none; 
}
  .nav-cta .btn-stamp { padding: 0.5rem 0.85rem; font-size: var(--fs-label); 
}
  .nav-row { gap: 0.6rem; 
}

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  
}
  /* Each link a full-width 48px row: the inline links' padding used to
     overlap the next row and leave stray dashes at the edge. */
  .nav-links.is-open li { display: block; 
}
  .nav-links.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem max(clamp(1rem, 3vw, 2.2rem), var(--safe-r, 0px)) 0.75rem max(clamp(1rem, 3vw, 2.2rem), var(--safe-l, 0px));
    border-top: 1px dashed var(--line-strong);
    font-size: 1.05rem;
  
}
  .nav-links.is-open li:first-child a { border-top: 0; 
}
  .nav-links.is-open a::after { display: none; 
}
  .nav-links.is-open a:active { background: var(--ink-focus); 
}
}

/* ─── Hero ───────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  /* Vertical only: the shorthand would reset .container's horizontal padding
     (this rule comes later), leaving the hero copy flush against the screen
     edge on phones while the nav above it stayed inset. */
  padding-top: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

.hero-title .coral { color: var(--coral); font-style: italic; font-variation-settings: "SOFT" 80, "WONK" 1; 
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 2rem;
}

/* The manifesto sentence is the page's thesis, so it is set as display type
   above the supporting line rather than folded into the same paragraph voice. */
.hero-creed {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 96;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; 
}

/* Getting a child into a game is the page's one job, so the play CTA is the
   loudest thing under the headline: coral — the same "this opens the app"
   colour as Belépés in the bar — a size up, and pressed deeper into the paper.
   Loaded after components.css, so these match .btn-stamp's own specificity
   and win on order. */
.hero-cta-play {
  padding: 1.15rem 2.3rem;
  font-size: var(--fs-title);
  box-shadow: 7px 8px 0 var(--ink-shadow);
}

.hero-cta-play svg { width: 24px; height: 24px; 
}
@media (hover: hover) and (pointer: fine) {
  .hero-cta-play:hover { transform: translate(-3px, -4px); box-shadow: 10px 12px 0 var(--ink-shadow); }
}
.hero-cta-play:active { transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--ink-shadow); 
}

/* Kept available, kept quiet: the partner ask already has the nav bar, its own
   section and the footer, so in the hero it only has to not compete. */
.hero-cta-alt {
  padding: 0.8rem 1.35rem;
  font-size: var(--fs-body);
  box-shadow: var(--shadow-stamp-sm);
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta-alt:hover { box-shadow: 5px 6px 0 var(--ink-shadow); }
}

@media (max-width: 560px) {
  /* One column on a phone: full-width stamps, play first. */
  .hero-cta-row { flex-direction: column; align-items: stretch; 
}
  .hero-cta-row .btn-stamp { justify-content: center; 
}
}

/* .mascot-stage / .mascot-bubble / .floater* + tilt & mascot-float keyframes
   live in components.css. The landing hero renders the mascot as a single
   <img> (not a wrapper), so that one variant stays here. */
.mascot-img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(6px 10px 0 rgba(27, 58, 91, 0.18));
  animation: mascot-float 6s ease-in-out infinite;
  will-change: transform;
}

/* ─── Section blocks ─────────────────────────────────────────────── */

section {
  padding-block: 2em;
  position: relative;
}

.page > section + section,
.page > section + .wave-divider-wrap,
.page > .wave-divider-wrap + section {
  margin-top: 2em;
}

.wave-divider-wrap {
  padding-block: 0;
}

.wave-divider {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 40px;
  margin: 0 auto;
  color: var(--ink);
  opacity: 0.55;
}

/* ── Hitvallás (manifesto) ──
   Each creed is a refusal struck through in its own tone, answered by the
   thing we build instead. The strike is drawn (not text-decoration) so it can
   overhang the words and sit slightly off-square, like the rest of the page. */

.manifesto-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.creed {
  border-top: 3px solid var(--ink);
  padding-top: 1.1rem;
}

.creed-not {
  position: relative;
  display: inline-block;
  margin: 0 0 0.45rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-soft);
}

.creed-not::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 52%;
  height: 1.5px;
  border-radius: var(--r-xs);
  background: var(--coral-deep);
  transform: rotate(-1.6deg);
}

.creed[data-tone="mint"] .creed-not::after { background: var(--mint-deep); 
}
.creed[data-tone="berry"] .creed-not::after { background: var(--berry-bright); 
}
.creed[data-tone="sky"] .creed-not::after { background: var(--sky-deep); 
}

.creed-yes {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 96;
  font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.creed-body { margin: 0; color: var(--ink-soft); line-height: 1.55; 
}

/* ── Működési elv (the loop) ── */

.cycle {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cycle-step {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cycle-step:hover { transform: translateY(-4px) rotate(-0.8deg); }
}

.cycle-step[data-tone="coral"] { background: #ffe8e4; 
}
.cycle-step[data-tone="mint"] { background: #dcefec; 
}
.cycle-step[data-tone="berry"] { background: #f9e2ef; 
}
.cycle-step[data-tone="sky"] { background: #dfecf8; 
}

.cycle-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  font-weight: 700;
  font-size: var(--fs-title);
  margin-bottom: 0.8rem;
  transform: rotate(-6deg);
}

.cycle-step h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.cycle-step p { margin: 0; color: var(--ink-soft); line-height: 1.5; 
}

/* The return path: one dashed stroke from the bottom centre of step 4 back up
   into step 1, so the four steps read as a closed loop. Drawn as an SVG rather
   than a dashed border — a border-radius corner breaks CSS dashes unevenly. */
.cycle-return {
  position: relative;
  margin-top: 0.1rem;
  color: var(--ink);
}

.cycle-return-path {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.42;
  overflow: visible;
}

.cycle-return-path path {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  vector-effect: non-scaling-stroke;
}

.cycle-return-path .cycle-return-head {
  fill: currentColor;
  stroke: none;
}

.cycle-return-label {
  position: absolute;
  left: 50%;
  top: 85.7%;                      /* y=48 of the 56-unit viewBox: the bottom run */
  transform: translate(-50%, -50%);
  font-family: var(--font-hand);
  font-size: var(--fs-title);
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── Kompetenciák (skills) ──
   Three cards, emblem stacked over the name, so the ability reads first. */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.skill-emblem {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-stamp-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
  margin-bottom: 1.1rem;
}

.skill-emblem[data-tone="mint"] { background: var(--mint); 
}
.skill-emblem[data-tone="sun"] { background: var(--sun); 
}
.skill-emblem[data-tone="coral"] { background: var(--coral); 
}

.skill-emblem svg { width: 44px; height: 44px; color: var(--on-bright); 
}

.skill-card h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.skill-card p { color: var(--ink-soft); margin: 0; line-height: 1.5; 
}

.skills-note {
  margin: 1.4rem 0 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}

/* ── Dual pitch (parents + kids) ── */

.pitch-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2rem;
}

.pitch {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-stamp);
  position: relative;
  overflow: hidden;
}

.pitch--kids { background: linear-gradient(165deg, #fff4d3, #ffde8a); 
}
.pitch--parents { background: linear-gradient(165deg, #dcefec, #a9dcd3); 
}

.pitch-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-hand);
  font-size: var(--fs-title);
  line-height: 1;
  color: var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 0.4rem;
}

.pitch h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1;
  margin: 0 0 0.7rem;
  letter-spacing: -0.022em;
}

.pitch p { color: var(--ink-soft); margin: 0 0 0.7rem; line-height: 1.55; 
}

.pitch ul { margin: 0.5rem 0 0; padding: 0; list-style: none; 
}

.pitch li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.pitch li::before {
  content: "✦";
  color: var(--coral);
  font-size: var(--fs-body-lg);
  flex-shrink: 0;
}

.section-lead--quote {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 36;
  font-style: italic;
  font-size: var(--fs-title);
  color: var(--ink);
}

.pitch--institutional { background: linear-gradient(165deg, #dcefec, #a9dcd3); 
}
.pitch--classroom { background: linear-gradient(165deg, #fff4d3, #ffde8a); 
}

/* ── Korai Partneri Program ── */

.partner-section .partner-tracks { margin-bottom: 2rem; 
}

.partner-benefits-asks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.partner-block {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-stamp-sm);
}

.partner-block h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: var(--fs-title);
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.partner-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-list li {
  display: flex;
  gap: 0.55rem;
  padding: 0.3rem 0;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

.partner-list li::before {
  content: "✦";
  color: var(--coral);
  flex-shrink: 0;
}

.partner-form-wrap {
  background: linear-gradient(165deg, var(--ink), #0f2740);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-stamp);
}

.partner-form-wrap h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  margin: 0 0 1.2rem;
  color: var(--on-color);
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.partner-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.partner-label {
  font-weight: 800;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  color: rgba(253, 244, 227, 0.85);
}

.partner-optional {
  font-weight: 600;
  color: rgba(253, 244, 227, 0.5);
}

.partner-input {
  width: auto;
  margin-bottom: 0;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.partner-input::placeholder { color: rgba(253, 244, 227, 0.4); 
}
.partner-input:focus { border-color: var(--sun); background: rgba(253, 244, 227, 0.14); 
}

.partner-textarea { resize: vertical; min-height: 5rem; 
}

.partner-track-field { border: none; margin: 0; padding: 0; 
}

.partner-track-field legend { margin-bottom: 0.5rem; 
}

.partner-track-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.partner-track-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: rgba(253, 244, 227, 0.9);
  cursor: pointer;
}

.partner-track-option input { accent-color: var(--sun); 
}

.partner-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-submit { align-self: flex-start; 
}
.partner-submit:disabled { opacity: 0.65; cursor: not-allowed; 
}

.partner-thanks,
.partner-error {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  font-weight: 700;
}

.partner-thanks {
  background: rgba(126, 206, 196, 0.18);
  border: 1.5px solid var(--mint);
  color: var(--mint);
}

.partner-error {
  background: rgba(255, 107, 107, 0.15);
  border: 1.5px solid var(--coral);
  color: #ffb4b4;
}

.partner-thanks.is-visible,
.partner-error.is-visible { display: block; 
}

.partner-fallback {
  margin: 1rem 0 0;
  font-size: var(--fs-body);
  color: rgba(253, 244, 227, 0.65);
}

.partner-fallback a { color: var(--sun); font-weight: 700; 
}

/* ── FAQ ── */

.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-stamp-sm);
  overflow: hidden;
}

.faq summary {
  padding: 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; 
}

.faq summary::after {
  content: "＋";
  font-family: var(--font-body);
  font-weight: 900;
  font-size: var(--fs-title);
  color: var(--coral);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq[open] summary::after { transform: rotate(45deg); 
}

.faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Footer ── */

.footer {
  padding: 3rem 0 2rem;
  border-top: 2px dashed var(--line-strong);
  margin-top: 2em;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; 
}
.footer-col li { padding: 0.2rem 0; 
}
.footer-col a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: var(--fs-body); 
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--coral-deep); }
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1.5px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--ink-muted);
  font-size: var(--fs-label);
}

/* Hero entrance keyframes + .hero-copy/.mascot-stage motion live in
   components.css. */

/* ─── Reveal on scroll ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive (tokens.css: sm 576 / md 768 / lg 992) ───────────── */

@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; gap: 1.8rem; 
}
  .mascot-stage { order: -1; max-width: 360px; margin: 0 auto; 
}
  .manifesto-list { grid-template-columns: 1fr; gap: 1.6rem; 
}

  /* Stacked steps make the U-shaped return path meaningless; the label alone
     carries the loop, with a ↺ standing in for the arrow. */
  .cycle { grid-template-columns: 1fr; 
}
  /* Stacked steps leave nothing for the loop to span, so the label carries it
     alone with a ↺ standing in for the path. */
  .cycle-return-path { display: none; 
}
  .cycle-return-label {
    position: static;
    display: block;
    transform: none;
    padding: 0.9rem 0 0;
    text-align: center;
  
}
  .cycle-return-label::before { content: "↺ "; 
}

  .skills-grid { grid-template-columns: 1fr; 
}

  .pitch-duo { grid-template-columns: 1fr; 
}
  .partner-benefits-asks { grid-template-columns: 1fr; 
}
  .partner-form-row { grid-template-columns: 1fr; 
}
}

@media (max-width: 576px) {
  .brand { font-size: var(--fs-body-lg); 
}
  .brand-mark { width: 36px; height: 36px; font-size: 1rem; 
}
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); 
}
  .hero-lead { font-size: 1rem; 
}

  /* The badges hang off the mascot stage by design, but on a phone the stage
     is as wide as the text column, so "helyes!" ran past the screen edge and
     left the page scrollable sideways. Tuck it flush with the stage instead. */
  .floater--a, .floater--b, .floater--c { font-size: var(--fs-label); padding: 0.4rem 0.65rem; 
}
  .floater--b { right: 0; 
}
  .footer-row { flex-direction: column; gap: 1.4rem; 
}
}

/* ─── Phone (< 768px) ─────────────────────────────────────────────────
   What a parent opening the link on a phone needs first: the pitch and
   "Próbáld ki!" on the first screen, Platy a smaller medallion under them,
   and that button within reach again once the hero has scrolled away (the
   bar below, landing.js). Every control a 44–48px finger target. */

/* The sticky "Próbáld ki!" bar exists on a phone only. */
.sticky-cta { display: none; 
}

/* A finger's 44px on every bar control and footer link — phones, and
   tablets that keep the desktop layout. */
@media (max-width: 767.98px), (pointer: coarse) {
  .nav-cta .btn-stamp,
  .nav-burger { min-height: 44px; 
}
  .nav-burger { min-width: 44px; justify-content: center; align-items: center; 
}
  .nav .brand { min-height: 44px; 
}
  .footer-col li { padding: 0; 
}
  .footer-col a { display: flex; align-items: center; min-height: 44px; 
}

  /* The ✦ bullets drawn, not typed: Nunito has no U+2726, and iOS Safari
     falls back to a missing-glyph box. Same star, same coral, same gap. */
  .pitch li::before,
  .partner-list li::before {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 0.28rem;
    background: var(--coral);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.4 16.6 11.1 24 12C16.6 12.9 12.9 16.6 12 24C11.1 16.6 7.4 12.9 0 12C7.4 11.1 11.1 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.4 16.6 11.1 24 12C16.6 12.9 12.9 16.6 12 24C11.1 16.6 7.4 12.9 0 12C7.4 11.1 11.1 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

@media (max-width: 767.98px) {

  /* Partner form: each track a full-width 48px row with a 22px radio, the
     chosen one outlined in sun. Fields are 16px (components.css). */
  .partner-track-options { flex-direction: column; gap: 0.6rem; 
}
  .partner-track-option {
    min-height: 48px;
    padding: 0.5rem 0.9rem;
    gap: 0.7rem;
    border: 2px solid var(--paper-on-dark-muted);
    border-radius: var(--r-md);
    font-size: 1rem;
  }
  .partner-track-option:has(input:checked) { border-color: var(--sun); background: var(--paper-on-dark-soft); 
}
  .partner-track-option input { width: 22px; height: 22px; margin: 0; flex: none; 
}
  .partner-label { font-size: 0.9rem; 
}
  .partner-submit { align-self: stretch; justify-content: center; 
}

  .footer-bottom { font-size: 0.875rem; 
}

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    justify-content: center;
    padding: 0.7rem max(1rem, var(--safe-r, 0px)) calc(0.7rem + var(--safe-b, 0px)) max(1rem, var(--safe-l, 0px));
    background: var(--paper);
    border-top: 2.5px solid var(--ink);
    box-shadow: 0 -4px 0 var(--ink-shadow);
    transform: translateY(calc(100% + 8px));
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .sticky-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.22s ease, visibility 0s;
  }
  .sticky-cta .btn-stamp {
    flex: 1;
    max-width: 26rem;
    justify-content: center;
    min-height: 52px;
    padding: 0.7rem 1.4rem;
    font-size: 1.1rem;
  }
  .sticky-cta .btn-stamp svg { width: 22px; height: 22px; 
}
  /* Room under the footer, so the bar never sits on its last line. */
  .page { padding-bottom: calc(5rem + var(--safe-b, 0px)); 
}

  /* The footer's own padding shorthand (above) zeroes the .container's
     sides; on a desktop the 1200px column hides that, on a phone the text
     touched the screen's edge. */
  .footer {
    padding-left: max(clamp(1rem, 3vw, 2.2rem), var(--safe-l, 0px));
    padding-right: max(clamp(1rem, 3vw, 2.2rem), var(--safe-r, 0px));
  }

  /* The bar's Belépés at a button's 16px. */
  .nav-cta .btn-stamp { font-size: 1rem; 
}

  /* A jump to a section (the burger's links, a #link) lands its label a
     little below the bar: --nav-h is the bar as it stands on a phone (a
     44px row), and the sections come in by fading only, so nothing slides
     up under the bar after the jump. */
  :root { --nav-h: 75px; 
}
  #hitvallas, #kompetenciak, #hogyan, #korai-partneri-program, #szuloknek, #gyik {
    scroll-margin-top: calc(var(--nav-h) + var(--phone-gap, 12px));
  }
  .reveal,
  .reveal.is-in { transform: none; 
}

  /* Never both bars at once (landing.js): scrolling down past the hero, the
     bar slides away and "Próbáld ki!" comes up at the bottom; scrolling up
     brings the bar back and sends the button away. */
  .nav { transition: box-shadow 0.3s ease, transform 0.22s ease; 
}
  .nav.is-tucked { transform: translateY(calc(-100% - 8px)); box-shadow: none; 
}
}

@media (max-width: 576px) {
  /* The pitch first, Platy after it: "Próbáld ki!" lands on the first screen
     of an iPhone SE instead of under a 360px mascot. */
  .hero { padding-top: 1.5rem; padding-bottom: 2rem; gap: 1.2rem; 
}
  .hero .section-tag { font-size: 1.15rem; 
}
  .hero-title { margin-bottom: 0.9rem; 
}
  .hero-lead { margin-bottom: 1.4rem; 
}
  .hero-creed { font-size: 1.25rem; 
}
  .mascot-stage { order: 0; max-width: 240px; 
}
  .floater--a, .floater--b, .floater--c { font-size: 0.875rem; 
}
}

/* Phone on its side: the hero's two columns would leave the button below a
   340px-tall screen; one column, Platy after the copy, as on a phone. */
@media (max-height: 500px) and (pointer: coarse) {
  .nav-row { padding-top: 0.4rem; padding-bottom: 0.4rem; 
}
  .hero { padding-top: 1rem; gap: 1.2rem; 
}
  .hero .section-tag { font-size: 1.1rem; 
}
  .hero-title { font-size: 2.2rem; margin-bottom: 0.7rem; 
}
  .hero-title br { display: none; 
}
  .hero-creed { font-size: 1.2rem; margin-bottom: 0.3rem; 
}
  .hero-lead { font-size: 1rem; margin-bottom: 1rem; 
}
  .hero-cta-play { padding: 0.8rem 1.8rem; 
}
  .mascot-stage { order: 0; max-width: 220px; 
}
  /* The bar as it stands held sideways (a 44px row, 0.4rem above and below);
     a jump lands a little below it, fading in only (as on a phone above). */
  :root { --nav-h: 59px;
}
  #hitvallas, #kompetenciak, #hogyan, #korai-partneri-program, #szuloknek, #gyik {
    scroll-margin-top: calc(var(--nav-h) + var(--phone-gap, 12px));
  }
  .reveal,
  .reveal.is-in { transform: none;
}
  .sticky-cta { padding-top: 0.45rem; padding-bottom: calc(0.45rem + var(--safe-b, 0px)); 
}
  .sticky-cta .btn-stamp { min-height: 44px; padding-block: 0.5rem; 
}
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta.is-visible { transition: none; 
}
  .mascot-img,
  .floater--a, .floater--b, .floater--c,
  .reveal,
  .hero-copy > *,
  .mascot-stage { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; 
}
  html { scroll-behavior: auto; 
}
}

/* ─── Themes (the device's choice; the landing has no switch of its own) ──
   The palettes are tokens (tokens.css "Themes"). These are the landing's
   own painted surfaces that bypass them. Every rule matches only under
   <html data-theme>, so Világos is untouched. */

/* Sötét: the night. The bar is a band of it; the tinted step cards and the
   pitch cards become deep tints of their colour, so chalk reads on them. */
:root[data-theme="dark"] .nav { background: rgba(15, 34, 56, 0.9);
}
:root[data-theme="dark"] .nav.is-scrolled { box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .mascot-img { filter: drop-shadow(6px 10px 0 rgba(0, 0, 0, 0.35));
}
/* The step numbers: an ink coin with a sun numeral, which on the night
   would be a chalk coin; it turns into the sun with the night numeral (as
   the brand mark does). */
:root[data-theme="dark"] .cycle-n { background: var(--sun); color: var(--night);
}
:root[data-theme="dark"] .cycle-step[data-tone="coral"] { background: #3a2530;
}
:root[data-theme="dark"] .cycle-step[data-tone="mint"] { background: #173f48;
}
:root[data-theme="dark"] .cycle-step[data-tone="berry"] { background: #3a2440;
}
:root[data-theme="dark"] .cycle-step[data-tone="sky"] { background: #1c3a5c;
}
:root[data-theme="dark"] :is(.pitch--kids, .pitch--classroom) { background: linear-gradient(165deg, #3a3420, #4a3c14);
}
:root[data-theme="dark"] :is(.pitch--parents, .pitch--institutional) { background: linear-gradient(165deg, #173f48, #1d4f55);
}
/* The partner form is the one ink panel of the page in every theme: on the
   night it is the deepest ink, its text chalk (its cream rgba labels then
   read as they do on the day). */
:root[data-theme="dark"] .partner-form-wrap {
  background: linear-gradient(165deg, #1b3a5b, #0a1a2c);
  color: var(--chalk);
}
:root[data-theme="dark"] .partner-form-wrap h3 { color: var(--chalk);
}
/* "(opcionális)": half-strength cream is 3.9:1 at the panel's light end. */
:root[data-theme="dark"] .partner-optional { color: rgba(243, 233, 212, 0.66);
}
/* --on-color is the night ink in every theme but Világos: the panel's
   heading stays white there. */
:root:is([data-theme="notebook"], [data-theme="wrap"]) .partner-form-wrap h3 { color: #fff;
}

/* The experiments: the bar is a band of the page's own paper. */
:root[data-theme="notebook"] .nav { background: rgba(247, 250, 253, 0.9);
}
:root[data-theme="wrap"] .nav { background: rgba(215, 231, 244, 0.9);
}
