/* =========================================================
   AI műhely – stíluslap
   Betűk: Bricolage Grotesque (címek), Literata (szöveg) – helyben tárolva
   ========================================================= */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/bricolage-grotesque-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/bricolage-grotesque-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: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-700-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: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/literata-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/literata-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: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/literata-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/literata-latin-ext-400-italic.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: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/literata-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/literata-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; }

/* ---------- Tokenek ---------- */
:root {
  --paper: #F3F5F2;
  --paper-2: #E7ECE8;
  --sage: #D6DDD8;
  --ink: #1D2B2A;
  --ink-2: #4A5A57;
  --line: #C3CDC8;
  --accent: #24584F;
  --accent-hover: #1B463F;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE8E3;
  --card: #FFFEF9;
  --card-ink: #1D2B2A;
  --card-rule: #B9CBDA;
  --card-margin: #C9534A;
  --ok: #2F7A4F;
  --warn: #A86B12;
  --bad: #A8392F;
  --focus: #1A6FB0;
  --shadow-card: 0 1px 1px rgba(29,43,42,.08), 0 10px 24px -8px rgba(29,43,42,.28);

  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(64px, 9vw, 112px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #142120;
    --paper-2: #1B2A28;
    --sage: #22322F;
    --ink: #E6ECE9;
    --ink-2: #A8B7B3;
    --line: #34443F;
    --accent: #7FC3B3;
    --accent-hover: #9AD3C5;
    --accent-ink: #0E1917;
    --accent-soft: #1E3530;
    --ok: #7CC79A; --warn: #E2B15C; --bad: #EE8E84;
    --focus: #8CC4F0;
    --shadow-card: 0 1px 1px rgba(0,0,0,.3), 0 12px 28px -8px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #142120; --paper-2: #1B2A28; --sage: #22322F; --ink: #E6ECE9; --ink-2: #A8B7B3; --line: #34443F;
  --accent: #7FC3B3; --accent-hover: #9AD3C5; --accent-ink: #0E1917; --accent-soft: #1E3530;
  --ok: #7CC79A; --warn: #E2B15C; --bad: #EE8E84; --focus: #8CC4F0;
  --shadow-card: 0 1px 1px rgba(0,0,0,.3), 0 12px 28px -8px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--paper-2); }
.section--sage { background: var(--sage); }
.lead { font-size: 1.18em; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  padding: .9em 1.35em; border-radius: 12px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* ---------- Fejléc ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 600; font-size: .78rem; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: .6em 1em; margin-left: 8px; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font-family: var(--font-head); font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 20px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.hero-figure { position: relative; margin: 0; justify-self: end; width: min(100%, 430px); }
.hero-figure picture img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-l); }
.hero-figure .indexcard { position: absolute; left: -64px; bottom: -44px; width: 300px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; width: min(100%, 380px); margin-bottom: 120px; }
  .hero-figure .indexcard { left: auto; right: -12px; bottom: -110px; width: min(290px, 82vw); }
}
@media (max-width: 420px) { .hero-figure .indexcard { right: -4px; } }

/* ---------- Kartotékkártya (az oldal egyetlen hangsúlyos eleme) ---------- */
.indexcard {
  --rule-gap: 30px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 39px, var(--card-margin) 39px, var(--card-margin) 41px, transparent 41px),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--rule-gap) - 1px), var(--card-rule) calc(var(--rule-gap) - 1px), var(--card-rule) var(--rule-gap));
  background-position: 0 0, 0 52px;
  background-repeat: no-repeat, repeat;
  color: var(--card-ink);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px 14px 52px;
  transform: rotate(-2.2deg);
  font-family: var(--font-head);
  color-scheme: light;
}
.indexcard h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--card-ink); line-height: 28px; }
.indexcard ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.indexcard li { position: relative; margin: 0; line-height: var(--rule-gap); font-size: .95rem; font-weight: 600; color: var(--card-ink); padding-left: 2px; }
.indexcard li::before {
  content: ""; position: absolute; left: -34px; top: 7px; width: 16px; height: 16px;
  border: 2px solid #3B4A47; border-radius: 3px; background: #fff;
}
.indexcard li::after {
  content: ""; position: absolute; left: -29px; top: 9px; width: 6px; height: 11px;
  border: solid #2F7A4F; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(1);
  transform-origin: center;
}
.indexcard .meta { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: #4A5A57; line-height: var(--rule-gap); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .indexcard li::after { animation: tick .32s cubic-bezier(.3,1.6,.5,1) both; }
  .indexcard li:nth-child(1)::after { animation-delay: .7s; }
  .indexcard li:nth-child(2)::after { animation-delay: 1.15s; }
  .indexcard li:nth-child(3)::after { animation-delay: 1.6s; }
  .indexcard li:nth-child(4)::after { animation-delay: 2.05s; }
  .indexcard li:nth-child(5)::after { animation-delay: 2.5s; }
  @keyframes tick { from { transform: rotate(45deg) scale(0); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
}

/* ---------- Ismerős? ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin: 36px 0 0; padding: 0; list-style: none; }
.quotes li { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--card-margin); font-size: 1.15rem; line-height: 1.5; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Kijelentés-sáv ---------- */
.statement .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.statement h2 { max-width: 14ch; }
.statement p { font-size: 1.12em; }
.nolist { list-style: none; padding: 0; margin: 20px 0 0; }
.nolist li { padding-left: 30px; position: relative; margin-bottom: .6em; }
.nolist li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 14px; height: 2px; background: var(--ink-2); }
@media (max-width: 820px) { .statement .wrap { grid-template-columns: 1fr; } }

/* ---------- Heti kör ---------- */
.cycle { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: c; position: relative; }
.cycle > li { margin: 0; padding: 0 22px 0 0; position: relative; counter-increment: c; }
.cycle > li::before {
  content: counter(c); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; background: var(--paper);
  position: relative; z-index: 1;
}
.cycle > li::after { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 2px; background: var(--line); }
.cycle > li:last-child::after { display: none; }
.cycle h3 { margin-bottom: .35em; }
.cycle p { font-size: .96em; color: var(--ink-2); margin: 0; }
.cycle .choice { list-style: none; padding: 0; margin: 12px 0 0; font-size: .92em; }
.cycle .choice li { margin: 0 0 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.cycle .choice li strong { font-family: var(--font-head); }
.cycle-loop { margin-top: 36px; display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.cycle-loop svg { width: 34px; height: 34px; flex: none; color: var(--accent); }
@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr; gap: 28px; }
  .cycle > li { padding: 0 0 0 64px; }
  .cycle > li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .cycle > li::after { top: 50px; bottom: -24px; left: 21px; right: auto; width: 2px; height: auto; }
}

/* ---------- Mit kapsz ---------- */
.get { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.ticks li { break-inside: avoid; position: relative; padding-left: 34px; margin-bottom: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 4px; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .42em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ticks strong { display: block; font-family: var(--font-head); }
@media (max-width: 820px) { .get { grid-template-columns: 1fr; } .ticks { columns: 1; } }

/* ---------- Csomagok ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 24px 24px; display: flex; flex-direction: column; background: var(--paper); }
.plan--main { border: 2px solid var(--accent); background: var(--card); box-shadow: var(--shadow-card); }
:root[data-theme="dark"] .plan--main { background: var(--paper-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan--main { background: var(--paper-2); } }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan .when { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.plan ul { padding-left: 1.1em; margin: 0 0 18px; font-size: .97em; }
.plan .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.plan .price span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.plan .btn { margin-top: 16px; }
.plan-free { margin-top: 24px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius-m); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plan-free p { margin: 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Labor-sáv ---------- */
.lab-teaser .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 24px; align-items: center; }
.lab-teaser h2 { margin-bottom: .3em; }
@media (max-width: 760px) { .lab-teaser .wrap { grid-template-columns: 1fr; } }

/* ---------- Rólam ---------- */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.about img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.creds { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about img { width: 160px; height: 160px; } }

/* ---------- GYIK ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Záró felhívás és kapcsolat ---------- */
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .closing .wrap { grid-template-columns: 1fr; } }
.contact-alt { margin-top: 24px; font-size: .97em; }
.contact-alt a { font-family: var(--font-head); font-weight: 600; }

/* ---------- Űrlapok ---------- */
.form { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.section--tint input[type="text"], .section--tint input[type="email"], .section--tint textarea { background: var(--paper); }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; border: 2px solid; font-size: .97rem; }
.notice--ok { border-color: var(--ok); }
.notice--bad { border-color: var(--bad); }
.notice[hidden] { display: none; }

/* ---------- Lábléc ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .92rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Szöveges aloldalak ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-head); font-weight: 600; }
.todo { background: color-mix(in srgb, var(--warn) 18%, transparent); padding: 0 .3em; border-radius: 4px; }

/* ---------- Fej-teszt ---------- */
.quiz { max-width: 820px; }
.quiz-progress { position: sticky; top: 68px; z-index: 5; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 14px; }
.quiz-progress .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.quiz-progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.q-group { margin-top: 36px; }
.q-group > h2 { font-size: 1.45rem; }
.q { border: 0; margin: 0 0 22px; padding: 0; }
.q legend { font-size: 1.08rem; line-height: 1.5; margin-bottom: 10px; padding: 0; }
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scale label { position: relative; display: block; cursor: pointer; }
.scale input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale span { display: block; text-align: center; padding: 10px 6px; border: 2px solid var(--line); border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1.2; background: var(--paper); }
.scale input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.scale input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale label:hover span { border-color: var(--accent); }
@media (max-width: 560px) { .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz-submit { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.quiz-error { color: var(--bad); font-weight: 600; }

.result { margin-top: 12px; }
.result-score { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.result-score .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.result-score .lvl { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.areas { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; max-width: 640px; }
.areas li { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: .98rem; }
.areas .track { height: 12px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.areas .fill { height: 100%; border-radius: 99px; background: var(--accent); }
.areas .val { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .areas li { grid-template-columns: 1fr 44px; } .areas .track { grid-column: 1 / -1; grid-row: 2; } }
.advice { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; }
.advice li { margin: 0; padding: 18px 20px; border-left: 3px solid var(--card-margin); background: var(--paper-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.advice h3 { margin-bottom: .3em; font-size: 1.1rem; }
.advice p { margin: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.check input[aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.areas .track, .areas .fill { display: block; }
html:has(.quiz) { scroll-padding-top: 136px; }
.table-scroll { overflow-x: auto; margin: 1em 0 1.6em; }
.table-scroll table { margin: 0; min-width: 560px; }
@media (max-width: 640px) {
  .prose table.kv, .prose table.kv tbody, .prose table.kv tr, .prose table.kv th, .prose table.kv td { display: block; width: 100%; }
  .prose table.kv th { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Erős sávok: színes, sötét és kiemelő ---------- */
:root { --band: var(--sage); --band-ink: var(--ink); --band-rule: var(--card-margin); --deep: #1D2B2A; --deep-ink: #F3F5F2; --deep-ink-2: #B8C4C0; --deep-accent: #9AD3C5; }
.section--band { background: var(--band); color: var(--band-ink); }
.section--band h2, .section--band h3, .section--band p, .section--band li { color: var(--band-ink); }
.section--band .quotes li { border-left-color: var(--band-rule); }
.section--deep { background: var(--deep); color: var(--deep-ink); }
.section--deep h2, .section--deep h3, .section--deep p, .section--deep li { color: var(--deep-ink); }
.section--deep .lead, .section--deep .muted, .section--deep .principles p { color: var(--deep-ink-2); }
.section--deep .nolist li::before { background: var(--deep-accent); }
.section--deep .principles li { border-top-color: var(--deep-accent); }
.section--deep a { color: var(--deep-accent); }
.section--accent { background: var(--accent); color: var(--accent-ink); }
.section--accent h2, .section--accent p { color: var(--accent-ink); }
.section--accent .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.section--accent .btn:hover { background: transparent; color: var(--accent-ink); }
.section--accent .btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.section--accent .btn--ghost:hover { background: var(--accent-ink); color: var(--accent); }

/* ========== Végleges színvilág: Kobalt és barack ========== */
/* Színpaletta: Kobalt és barack */
:root { --paper: #FFFBF8; --paper-2: #FFF1E8; --sage: #FFF1E8; --ink: #151A3D; --ink-2: #50557A; --line: #EED9CB; --accent: #2747D6; --accent-hover: #1C36AB; --accent-ink: #FFFFFF; --accent-soft: #E3E8FF; --band: #FFC9A8; --band-ink: #151A3D; --band-rule: #2747D6; --deep: #151A3D; --deep-ink: #FFF7F1; --deep-ink-2: #B9BCD6; --deep-accent: #FFB38A; --focus: #0B7A75; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #10142E; --paper-2: #171C3C; --sage: #171C3C; --ink: #F6F3FA; --ink-2: #AEB2D0; --line: #2A3060; --accent: #8EA2FF; --accent-hover: #AAB9FF; --accent-ink: #0E1230; --accent-soft: #222B5C; --band: #FFB894; --band-ink: #151A3D; --band-rule: #2747D6; --deep: #1B2150; --deep-ink: #FFF7F1; --deep-ink-2: #B9BCD6; --deep-accent: #FFB38A; --focus: #7FD8D2; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #10142E; --paper-2: #171C3C; --sage: #171C3C; --ink: #F6F3FA; --ink-2: #AEB2D0; --line: #2A3060; --accent: #8EA2FF; --accent-hover: #AAB9FF; --accent-ink: #0E1230; --accent-soft: #222B5C; --band: #FFB894; --band-ink: #151A3D; --band-rule: #2747D6; --deep: #1B2150; --deep-ink: #FFF7F1; --deep-ink-2: #B9BCD6; --deep-accent: #FFB38A; --focus: #7FD8D2; color-scheme: dark; }

/* ---------- Hero fotó nélkül: kártyatábla ---------- */
.hero-board { position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 1 / 1; background: var(--band); border-radius: var(--radius-l); display: grid; place-items: center; overflow: hidden; }
.hero-board .indexcard { position: absolute; width: min(300px, 78%); }
.hero-board .indexcard--front { top: 38%; }
.hero-board .indexcard--back1, .hero-board .indexcard--back2 { min-height: 200px; }
.hero-board .indexcard--back1 { top: 21%; transform: rotate(4deg) translateX(12px); }
.hero-board .indexcard--back2 { top: 6%; transform: rotate(-5deg) translateX(-16px); }
@media (max-width: 900px) { .hero-board { justify-self: stretch; width: 100%; max-width: 440px; aspect-ratio: 5 / 6; } }
.about--nophoto { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
