/* Wygee landing, 1. változat
   Layout: krém "papír", pasztell fényfoltok a hero mögött, mappa-formájú kártyák (fül a bal felső sarkon),
   egy oszlopos olvasási sáv max. ~65 karakterrel, a feliratkozás háromszor tér vissza. */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/fredoka-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/fredoka-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Lexend"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lexend-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lexend-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Lexend"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/lexend-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/lexend-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Szín */
  --bg: #FAF7F0;          /* krém papír */
  --band: #F2EEE3;        /* váltó sáv */
  --surface: #FFFFFF;
  --ink: #1F2422;         /* grafit szöveg */
  --ink-soft: #4B544F;
  --line: #E2DCCD;
  --accent: #3F5A39;      /* sötét zsálya: gomb, link */
  --on-accent: #FFFFFF;
  --sage: #96AC8E;
  --lav: #B2A0D6;
  --butter: #F0D08C;
  --mint: #96CEBA;
  --tint-sage: #E3EBDC;
  --tint-lav: #ECE5F7;
  --tint-butter: #FAEDCB;
  --tint-mint: #DAF0E6;
  --glow-a: rgba(178,160,214,.38);
  --glow-b: rgba(150,206,186,.42);
  --glow-c: rgba(240,208,140,.40);
  --error: #A3362B;
  --floor: rgba(31,36,34,.18);
  --shadow: 0 1px 2px rgba(31,36,34,.06), 0 8px 24px rgba(31,36,34,.07);

  /* Betű */
  --font-display: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: .875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem);

  /* Tér */
  --wrap: 1080px;
  --read: 38rem;
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141816; --band: #1A1F1D; --surface: #212725;
    --ink: #EEF0EA; --ink-soft: #B8C0BA; --line: #2F3633;
    --accent: #B4D0A9; --on-accent: #142012;
    --tint-sage: #243022; --tint-lav: #2A2637; --tint-butter: #353021; --tint-mint: #1F3330;
    --glow-a: rgba(178,160,214,.16); --glow-b: rgba(150,206,186,.14); --glow-c: rgba(240,208,140,.10);
    --error: #F2A497; --floor: rgba(0,0,0,.45);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141816; --band: #1A1F1D; --surface: #212725;
  --ink: #EEF0EA; --ink-soft: #B8C0BA; --line: #2F3633;
  --accent: #B4D0A9; --on-accent: #142012;
  --tint-sage: #243022; --tint-lav: #2A2637; --tint-butter: #353021; --tint-mint: #1F3330;
  --glow-a: rgba(178,160,214,.16); --glow-b: rgba(150,206,186,.14); --glow-c: rgba(240,208,140,.10);
  --error: #F2A497; --floor: rgba(0,0,0,.45);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.band { background: var(--band); }
.stack { display: grid; gap: 1.25rem; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: var(--read); }
.read { max-width: var(--read); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* Fejléc */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font: 600 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost[aria-pressed="true"] { background: var(--tint-sage); border-color: var(--accent); }
.btn-small { min-height: 44px; padding: .5em 1em; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--section); }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0 -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 30%, var(--glow-b), transparent 70%),
    radial-gradient(35% 45% at 70% 80%, var(--glow-a), transparent 70%),
    radial-gradient(30% 40% at 96% 88%, var(--glow-c), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-art { justify-self: center; width: min(100%, 380px); }
.hero-art img { animation: bob 7s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; }

/* Űrlap */
.signup { display: grid; gap: 12px; max-width: 34rem; }
.signup-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input {
  width: 100%; min-height: 52px; padding: .7em .9em;
  font: 400 1.05rem/1.3 var(--font-body); color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
}
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint-sage); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.signup .btn-primary { width: 100%; min-height: 56px; font-size: 1.05rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.fine { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.form-msg { font-size: 1rem; font-weight: 600; color: var(--error); min-height: 0; }
.form-msg:empty { display: none; }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; padding: 12px 14px; border-radius: 14px; background: var(--tint-butter); }
.perk svg { flex: none; margin-top: 3px; }

/* Ismerős? */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 2.5rem; }
.note {
  padding: 1.5rem 1.4rem 1.7rem; border-radius: 6px 6px 18px 6px; min-height: 9.5rem;
  font-size: var(--step-1); line-height: 1.4; font-family: var(--font-display); font-weight: 600;
  box-shadow: var(--shadow);
}
.note:nth-child(1) { background: var(--tint-butter); transform: rotate(-1.5deg); }
.note:nth-child(2) { background: var(--tint-lav); transform: rotate(1deg); }
.note:nth-child(3) { background: var(--tint-mint); transform: rotate(-.6deg); }
.after-notes { margin-top: 2.5rem; }

/* Mappa-kártyák */
.folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 3rem; }
.folder { position: relative; padding: 1.6rem 1.4rem 1.6rem; border-radius: 4px var(--radius) var(--radius) var(--radius); display: grid; gap: .7rem; align-content: start; }
.folder::before {
  content: ""; position: absolute; left: 0; top: -14px; width: 44%; height: 16px;
  background: inherit; border-radius: 12px 14px 0 0;
}
.folder.sage { background: var(--tint-sage); }
.folder.lav { background: var(--tint-lav); }
.folder.mint { background: var(--tint-mint); }
.folder .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.folder p { color: var(--ink-soft); font-size: 1.05rem; }

/* Miért más */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.name-card { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.equation { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; }
.equation .op { color: var(--ink-soft); }
.equation .w { padding: 0 .3em; border-radius: 10px; }
.equation .w1 { background: var(--tint-butter); }
.equation .w2 { background: var(--tint-lav); }
.equation .res { color: var(--accent); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%231F2422' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Feliratkozás sáv */
.join { background: var(--tint-sage); }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.join .signup { max-width: none; background: var(--surface); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.join .signup-fields { grid-template-columns: 1fr; }
.shop-teaser { font-size: 1rem; color: var(--ink-soft); padding-top: .5rem; border-top: 1px dashed var(--line); }

/* GYIK */
.faq { display: grid; gap: 10px; margin-top: 2rem; max-width: 46rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--ink-soft); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); max-width: var(--read); }

/* Lábléc */
.site-foot { padding-block: 3rem 2.5rem; border-top: 1px solid var(--line); }
.site-foot .wrap { display: grid; gap: 1.2rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 1rem; }
.disclaimer { font-size: var(--step--1); color: var(--ink-soft); max-width: 46rem; }

/* Aloldalak */
.page { padding-block: 2rem var(--section); }
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; font-size: var(--step-1); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: .4rem; }
.draft-note { background: var(--tint-butter); border-radius: 14px; padding: 1rem 1.2rem; font-size: 1rem; }
.fill { background: var(--tint-lav); border-radius: 6px; padding: 0 .3em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-mint); font-family: var(--font-display); font-weight: 600; }
.choice-group { display: grid; gap: .7rem; border: 0; margin: 0; padding: 0; }
.choice-group legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 48px; padding: .55em 1.1em; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; font-size: 1rem; }
.choices input:checked + span { border-color: var(--accent); background: var(--tint-sage); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1.4rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { font: 600 1rem var(--font-body); background: var(--band); padding: .5em .8em; border-radius: 10px; user-select: all; }


/* Figurák */
.figure-floor { position: relative; }
.figure-floor::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 22px; z-index: -1;
  background: radial-gradient(closest-side, var(--floor), transparent); border-radius: 50%;
}
.figure-floor img { position: relative; }
.hero-art { width: min(100%, 420px); }
.hero-art img { animation: bob 7s ease-in-out infinite; transform-origin: 50% 90%; }
.join .stack { align-content: start; }
.join-art { width: min(52%, 220px); margin-top: .5rem; justify-self: start; }
.name-logo { width: 64px; height: auto; }

/* Fókusz mód: csak a szöveg marad */
.focus-mode .hero::before, .focus-mode .hero-art, .focus-mode .note, .focus-mode .folder::before { box-shadow: none; }
.focus-mode .hero::before, .focus-mode .hero-art, .focus-mode .join-art { display: none; }
.focus-mode .hero .wrap { grid-template-columns: minmax(0, 1fr); }
.focus-mode .note { transform: none !important; background: var(--surface); border: 1px solid var(--line); }
.focus-mode .folder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.focus-mode .folder::before, .focus-mode .folder .icon { display: none; }
.focus-mode * { animation: none !important; transition: none !important; }

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

/* Keskeny képernyők */
@media (max-width: 860px) {
  .hero .wrap, .split, .join .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; width: min(62%, 260px); }
  .join-art { display: none; }
  .notes, .folders { grid-template-columns: minmax(0, 1fr); }
  .folders { gap: 34px; }
}
@media (max-width: 520px) {
  .signup-fields { grid-template-columns: minmax(0, 1fr); }
  .head-actions .btn-primary { display: none; }
  .brand { font-size: 1.4rem; }
}
