/* ─── 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);
}

/* .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: 1.4rem;
  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: 1.1rem;
  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: 4px;
  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: clamp(1rem, 3vw, 2.2rem);
  padding-right: clamp(1rem, 3vw, 2.2rem);
}

/* .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: 0.96rem;
  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: 2px;
  transition: right 0.25s ease;
}

.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: 0.92rem; }

.nav-burger {
  display: none;
  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: 0.88rem; }
  .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;
  }
  .nav-links.is-open a {
    padding: 0.9rem clamp(1rem, 3vw, 2.2rem);
    border-top: 1px dashed var(--line-strong);
  }
  .nav-links.is-open a::after { display: none; }
}

/* ─── 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: 1.28rem;
  box-shadow: 7px 8px 0 var(--ink-shadow);
}

.hero-cta-play svg { width: 24px; height: 24px; }
.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: 0.96rem;
  box-shadow: var(--shadow-stamp-sm);
}

.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; }
}

.hero-facts {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line-strong);
  flex-wrap: wrap;
}

.hero-fact-n {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "opsz" 72;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-fact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

/* .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: 3px;
  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;
}
.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: 1.25rem;
  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: 1.28rem;
  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: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── Kompetenciák ──
   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-card:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink-shadow); }

.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(--ink); }

.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: 0.92rem;
  line-height: 1.5;
}

.topic-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  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: 1.25rem;
  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: 1.9rem;
  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: 1.1rem;
  flex-shrink: 0;
}

.section-lead--quote {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 36;
  font-style: italic;
  font-size: 1.2rem;
  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: 1.35rem;
  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: 1.6rem;
  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: 0.88rem;
  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 {
  padding: 0.85rem 1rem;
  border: 2px solid var(--paper);
  border-radius: var(--r-md);
  background: rgba(253, 244, 227, 0.08);
  color: var(--on-color);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  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: 0.9rem;
  color: rgba(253, 244, 227, 0.65);
}

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

/* ── Testimonials ── */

/* Testimonial component — markup removed from index.html until real families
   have said something quotable; kept here so it can go straight back in. */
.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.7rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-full);
}

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

.testimonial {
  position: relative;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-stamp);
  transform: rotate(-1deg);
}

.testimonial:nth-child(2) { transform: rotate(1deg); background: var(--paper-deep); }
.testimonial:nth-child(3) { transform: rotate(-0.5deg); }

.testimonial-quote-mark {
  position: absolute;
  top: -22px;
  left: 1rem;
  width: 44px;
  height: 44px;
  background: var(--coral);
  color: var(--on-color);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 0;
  box-shadow: var(--shadow-stamp-sm);
}

.testimonial-body {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 36;
  font-weight: 500;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0.5rem 0 1.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  flex-shrink: 0;
}

.testimonial-author-info { line-height: 1.2; }
.testimonial-author-name { font-weight: 800; font-size: 0.95rem; }
.testimonial-author-meta { font-size: 0.82rem; color: var(--ink-muted); }

/* ── 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: 1.2rem;
  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: 1.3rem;
  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;
}

/* ── Signup ── */

.signup {
  position: relative;
  background: linear-gradient(165deg, var(--ink), #0f2740);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 2em 0;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-stamp);
}

.signup::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.28), transparent 65%);
}

.signup::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.22), transparent 65%);
}

.signup-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.signup .section-tag { color: var(--sun); }

.signup h2 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem;
  color: var(--on-color);
}

.signup p {
  color: rgba(253, 244, 227, 0.75);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1.6rem;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.signup-input {
  flex: 1 1 260px;
  padding: 0.95rem 1.1rem;
  border: 2px solid var(--paper);
  border-radius: var(--r-full);
  background: rgba(253, 244, 227, 0.08);
  color: var(--on-color);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

.signup-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(253, 244, 227, 0.55);
}

.signup-thanks {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(126, 206, 196, 0.18);
  border: 1.5px solid var(--mint);
  border-radius: var(--r-md);
  color: var(--mint);
  font-weight: 700;
}
.signup-thanks.is-visible { display: block; }

/* ── 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-about { max-width: 360px; color: var(--ink-soft); line-height: 1.5; font-size: 0.95rem; }

.footer-partner-cta {
  margin-top: 1.2rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  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: 0.95rem; }
.footer-col a:hover { color: var(--coral-deep); }

.footer-cta {
  margin-top: 1rem;
}

.footer-cta .btn-stamp { font-size: 0.92rem; padding: 0.65rem 1.1rem; }

.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: 0.85rem;
}

/* 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; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .brand { font-size: 1.15rem; }
  .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: 0.82rem; padding: 0.4rem 0.65rem; }
  .floater--b { right: 0; }
  .footer-row { flex-direction: column; gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .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; }
}
