/* Gyereknév landing – az app színei (lib/core/theme/color_theme.dart) és betűtípusa (League Spartan). */

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/league-spartan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/league-spartan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #EEEBD0;
  --cream-light: #F7F5E6;
  --white: #FFFFFF;
  --boy: #1B9AAA;
  --boy-dark: #147783;
  --girl: #E87EA1;
  --girl-dark: #C9587E;
  --ink: #120101;
  --ink-soft: #4E5166;
  --like: #14342B;
  --blue: #6793FF;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(18, 1, 1, 0.12);
  --font-display: "League Spartan", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--boy-dark); text-underline-offset: 3px; }
a:hover { color: var(--girl-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* --- Header ---------------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(238, 235, 208, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 1, 1, 0.06);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; }

.brand img { width: 118px; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--boy-dark); }

/* --- Buttons --------------------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  background: var(--boy); color: var(--white) !important;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: var(--boy-dark); transform: translateY(-1px); }
.button-small { padding: 0.45rem 1.05rem; font-size: 0.98rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.store-button {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; padding: 0.55rem 1.3rem;
  border-radius: 14px; background: var(--ink); color: var(--white);
  text-decoration: none; line-height: 1.15;
  box-shadow: 0 8px 18px rgba(18, 1, 1, 0.18);
  transition: transform 0.15s ease;
}
.store-button:hover { color: var(--white); transform: translateY(-2px); }
.store-button-small { font-size: 0.75rem; opacity: 0.8; }
.store-button-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.store-button.is-soon { background: var(--white); color: var(--ink-soft); box-shadow: none; border: 2px dashed rgba(78, 81, 102, 0.35); cursor: default; }
.store-button.is-soon:hover { transform: none; }

/* --- Hero ------------------------------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: 4rem 0 5rem; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.35; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: var(--boy); right: -140px; top: -160px; }
.hero::after { width: 380px; height: 380px; background: var(--girl); right: 180px; bottom: -220px; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--white); color: var(--boy-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}

.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 800; }
.accent-boy { color: var(--boy); }
.accent-girl { color: var(--girl); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 2rem; }

.hero-note { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.hero-visual { position: relative; display: flex; justify-content: center; }
/* Az app babafej ikonjai fehér vonalrajzok: színes, kerek jelvényen látszanak. */
.hero-baby {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%;
  box-shadow: 0 12px 24px rgba(18, 1, 1, 0.18);
}
/* Az ikonfájlokban a rajz csak a kép közepe, ezért a kép a teljes jelvényt kitölti. */
.hero-baby img { width: 92px; height: 92px; }
.hero-baby-boy { background: var(--boy); left: 4%; top: 14%; transform: rotate(-10deg); }
.hero-baby-girl { background: var(--girl); right: 2%; bottom: 16%; transform: rotate(9deg); }

/* --- Phone mockups --------------------------------------------------------------------------------- */

.phone {
  margin: 0; width: min(300px, 78vw);
  padding: 10px; border-radius: 46px;
  background: var(--ink);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 36px; width: 100%; background: var(--cream-light); }

.phone-small { width: min(250px, 70vw); }
.phone figcaption {
  margin-top: 1rem; text-align: center; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.phone-small { background: transparent; box-shadow: none; padding: 0; }
.phone-small img { border: 10px solid var(--ink); border-radius: 42px; box-shadow: var(--shadow); }

/* --- Sections -------------------------------------------------------------------------------------- */

.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2.5rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: 0 6px 18px rgba(18, 1, 1, 0.05); }
.step h3 { font-size: 1.35rem; margin-top: 0.8rem; }
.step p { margin: 0; color: var(--ink-soft); }
.step-number {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--girl); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.step:nth-child(even) .step-number { background: var(--boy); }

.section-screens { background: var(--cream-light); }
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.6rem; }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1rem;
}
.feature-icon img { width: 64px; height: 64px; }
.feature-icon-boy { background: var(--boy); }
.feature-icon-girl { background: var(--girl); }
.feature-icon-light { background: var(--cream); }
.feature h3 { font-size: 1.3rem; }
.feature p { margin: 0; color: var(--ink-soft); }

.source-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; max-width: 46rem; margin: 2.5rem auto 0; }

.section-faq details {
  background: var(--white); border-radius: 16px; padding: 1rem 1.3rem; margin-bottom: 0.8rem;
}
.section-faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.section-faq summary::-webkit-details-marker { display: none; }
.section-faq summary::after { content: "+"; color: var(--boy); font-size: 1.6rem; line-height: 1; }
.section-faq details[open] summary::after { content: "–"; }
.section-faq details p { margin: 0.7rem 0 0.2rem; color: var(--ink-soft); }

.section-cta { padding-top: 1rem; }
.cta-inner {
  text-align: center; color: var(--white);
  border-radius: 32px; padding: 3.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, var(--boy-dark) 0%, var(--boy) 55%, #3FB5C2 100%);
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-inner p { margin: 0 0 1.8rem; font-size: 1.15rem; opacity: 0.95; }
.cta-inner .store-button { background: var(--white); color: var(--ink); }
.cta-inner .store-button.is-soon { background: rgba(255, 255, 255, 0.15); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }

/* --- Legal pages ----------------------------------------------------------------------------------- */

.legal { padding: 3rem 0 4rem; }
.legal-header { margin-bottom: 1.5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-meta { color: var(--ink-soft); margin: 0; }
.legal section { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1.6rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal-toc { background: var(--cream-light); border-radius: var(--radius); padding: 1.2rem 1.8rem; margin-bottom: 1rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.operator { list-style: none; padding: 0 !important; }
.placeholder { background: #FFE9A8; color: var(--ink); padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }

/* --- Footer ---------------------------------------------------------------------------------------- */

.site-footer { background: var(--white); margin-top: 2rem; padding: 2.5rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 96px; }
.footer-brand p { margin: 0; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: flex-end; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--boy-dark); }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* --- Responsive ------------------------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .store-buttons { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav a:not(.button) { display: none; }
  /* Keskeny kijelzőn nincs hely a telefonkép mellett, rálógnának a képernyőképre. */
  .hero-baby { display: none; }
  /* A háttérfoltok itt a cím mögé kerülnek: halványabban, hogy a színes szavak olvashatók maradjanak. */
  .hero::before, .hero::after { opacity: 0.16; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .steps, .features { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .legal section { padding: 1.3rem 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .store-button { transition: none; }
}
