/* Tak.App — közös stíluslap (takarmany.app)
   Paletta: mélyzöld alap, élénk zöld accent, arany a Tanuló vonalnak
   Típus: Archivo (display) + Inter (szöveg, adatok) */
:root {
  --bg: #0b1a0d;
  --bg-2: #101f12;
  --bg-card: #162019;
  --border: #243b28;
  --border-2: #1e3222;
  --fg: #eaf2eb;
  --fg-muted: #b3cbb6;
  --fg-dim: #8aa88e;
  --accent: #6ddb47;
  --accent-dim: rgba(109, 219, 71, .11);
  --on-accent: #0b1a0d;
  --gold: #d9a83a;
  --gold-dim: rgba(217, 168, 58, .13);
  --q10: #f08a3c;
  --q10-dim: rgba(240, 138, 60, .12);
  --ok: #6ddb47;
  --warn: #e6b847;
  --bad: #f06a5a;
  --bad-dim: rgba(240, 106, 90, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background-color: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 48px); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex-shrink: 0; }
.brand-logo { display: block; height: 42px; width: auto; }
.footer .brand-logo { height: 36px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.brand-domain { font-size: .7rem; color: var(--fg-dim); font-weight: 500; letter-spacing: .02em; }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--fg-muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-sm); transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-card); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--bg-card); }
.nav-links .nav-app { background: var(--accent); color: var(--on-accent); font-weight: 700; margin-left: 6px; }
.nav-links .nav-app:hover, .nav-links .nav-app[aria-current="page"] { background: var(--accent); color: var(--on-accent); opacity: .88; }
@media (max-width: 720px) {
  .brand-logo { height: 34px; }
  .nav-inner { flex-wrap: wrap; gap: 8px; }
  .brand-domain { display: none; }
  .nav-links { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .nav-app { margin-left: auto; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: opacity .15s, transform .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); font-weight: 600; }
.btn-ghost:hover { border-color: var(--fg-muted); background: var(--bg-card); }
.btn-gold { background: var(--gold); color: var(--on-accent); }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── BADGES / TYPE ── */
.badge {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 100px; padding: 5px 13px;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.badge-green { background: var(--accent-dim); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.gold { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
.h1 { font-weight: 800; font-size: clamp(2.4rem, 6.5vw, 4.8rem); line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; }
.h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.lead { color: var(--fg-muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 56ch; line-height: 1.7; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

/* ── SECTIONS ── */
.section { padding-block: clamp(56px, 9vh, 104px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border-2); }
.section-head { margin-bottom: 40px; display: grid; gap: 10px; }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 11vh, 120px) clamp(48px, 8vh, 88px); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 70% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 90%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: linear-gradient(var(--border-2) 1px, transparent 1px), linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 25%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 75% 25%, #000 15%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; display: grid; gap: 26px; }
.hero-logo { margin-block: 4px 0; line-height: 0; }
.hero-logo img { width: min(100%, 680px); height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.35)); }
.hero-claim { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.15; text-wrap: balance; max-width: 24ch; }
.hero .badges { display: flex; gap: 8px; flex-wrap: wrap; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); padding-top: 28px; border-top: 1px solid var(--border); margin-top: 18px; }
.stat-val { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: .78rem; color: var(--fg-muted); margin-top: 5px; }

/* ── CARDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card-product { padding: 32px 28px; gap: 16px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; text-decoration: none; }
.card-product::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.card-product.is-gold::before { background: var(--gold); }
a.card-product:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card-product.is-gold:hover { border-color: var(--gold); }
.card-product .more { margin-top: auto; font-weight: 700; color: var(--accent); font-size: .92rem; }
.card-product.is-gold .more { color: var(--gold); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; background: var(--accent-dim); color: var(--accent);
}
.chip.gold { background: var(--gold-dim); color: var(--gold); }
.icon-box {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box.gold { background: var(--gold-dim); color: var(--gold); }
.icon-box svg { width: 22px; height: 22px; }
.card p { color: var(--fg-muted); font-size: .9rem; }

.checks { list-style: none; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checks li::before {
  content: '✓'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
}
.checks.gold li::before { background: var(--gold-dim); color: var(--gold); }

.status { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--fg-muted); }
.status .s-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status .s-dot.gold { background: var(--gold); }

/* ── STEPS ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 6px; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 800; color: var(--accent);
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.steps b { font-family: var(--display); font-size: 1rem; }
.steps span { color: var(--fg-muted); font-size: .86rem; }

/* ── SPECIES CHIPS ── */
.species { display: flex; flex-wrap: wrap; gap: 8px; }
.species span { background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 7px 16px; font-size: .88rem; }
.species span.note { border-style: dashed; color: var(--fg-muted); }

/* ── PARTNER STRIP ── */
.strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px clamp(18px, 4vw, 44px); padding-block: 24px; }
.strip .pair { display: inline-flex; align-items: baseline; gap: 10px; }
.strip .lbl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.strip .val { font-family: var(--display); font-weight: 600; color: var(--fg-muted); font-size: .92rem; }

/* ── FORMS ── */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; color: var(--fg-muted); }
.field .hint { font-size: .74rem; color: var(--fg-dim); }
.input, select.input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); font-family: inherit; font-size: 1rem;
  font-variant-numeric: tabular-nums; transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup .input { flex: 1 1 240px; max-width: 340px; }
.form-msg { min-height: 1.4em; font-size: .85rem; margin-top: 10px; }

/* ── CTA ── */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%); }
.cta .wrap { position: relative; display: grid; gap: 18px; justify-items: center; }
.cta .lead { margin-inline: auto; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding-block: 26px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.footer-links a, .footer small { font-size: .8rem; color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* ── INSTALL BANNER ── */
.install {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 14px 18px; font-size: .88rem;
}
.install p { flex: 1 1 220px; color: var(--fg); }

/* ── APP ── */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--fg-muted); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 100px; padding: 9px 16px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.panel { display: grid; gap: 18px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result { background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 2px; min-width: 0; }
.result .r-lbl { font-size: .74rem; color: var(--fg-muted); font-weight: 600; }
.result .r-val { font-family: var(--display); font-weight: 700; font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.result .r-unit { font-size: .75rem; color: var(--fg-dim); }
.result.wide { grid-column: 1 / -1; }
.verdict { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; display: grid; gap: 4px; border: 1px solid; }
.verdict b { font-family: var(--display); }
.v-ok { background: var(--accent-dim); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.v-ok b { color: var(--ok); }
.v-warn { background: var(--gold-dim); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.v-warn b { color: var(--warn); }
.v-bad { background: var(--bad-dim); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.v-bad b { color: var(--bad); }
.scale { display: flex; height: 10px; border-radius: 6px; overflow: hidden; position: relative; }
.scale span { flex: 1; }
.scale-marker { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--fg); border-radius: 2px; transform: translateX(-50%); transition: left .3s; }
.scale-wrap { position: relative; padding-top: 4px; }
.scale-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--fg-dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.placeholder { border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 10px; }
.note { font-size: .78rem; color: var(--fg-dim); }

/* ── TANULÓ MODULES ── */
.module { display: grid; gap: 10px; }
.module .m-num { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: .85rem; letter-spacing: .06em; }
.module ul { list-style: none; display: grid; gap: 4px; }
.module li { font-size: .86rem; color: var(--fg-muted); padding-left: 14px; position: relative; }
.module li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
th { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg-2); }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }

/* ── NÉGY RÉSZ ── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.part-num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--border); }
.card-product.is-q10::before { background: var(--q10); }
a.card-product.is-q10:hover { border-color: var(--q10); }
.card-product.is-q10 .more, .q10c { color: var(--q10); }
.card-product.is-plain::before { background: var(--fg-muted); }
a.card-product.is-plain:hover { border-color: var(--fg-muted); }
.card-product.is-plain .more { color: var(--fg); }
.chip.q10 { background: var(--q10-dim); color: var(--q10); }
.chip.plain { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.badge-q10 { background: var(--q10-dim); color: var(--q10); border: 1px solid color-mix(in srgb, var(--q10) 30%, transparent); }
.icon-box.q10 { background: var(--q10-dim); color: var(--q10); }
.eyebrow.q10c { color: var(--q10); }
.steps-q10 li::before { color: var(--q10); }

/* ── INFÓ BLOKKOK ── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-role { color: var(--accent) !important; font-weight: 600; font-size: .85rem !important; margin-top: -6px; }
.timeline { list-style: none; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: .9rem; padding-bottom: 14px; border-bottom: 1px solid var(--border-2); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline b { font-family: var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline span { color: var(--fg-muted); }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--fg-muted); font-size: .92rem; padding-bottom: 16px; max-width: 70ch; }
@media (max-width: 720px) { .hide-sm { display: none; } .nav-links a { padding: 7px 10px; } }

/* ── FŐOLDAL (letisztult) ── */
.home-top { padding: 14px clamp(16px, 5vw, 48px); display: flex; justify-content: flex-end; }
.home-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.home-links a { color: var(--fg-muted); text-decoration: none; font-size: .88rem; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-sm); }
.home-links a:hover { color: var(--fg); background: var(--bg-card); }
.home-links .home-app { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.home-links .home-app:hover { background: var(--accent); color: var(--on-accent); opacity: .88; }
.home { position: relative; padding-block: clamp(8px, 3vh, 32px) clamp(48px, 8vh, 88px); }
.home::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 18%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.home-wrap { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.home-logo { line-height: 0; }
.home-logo img { width: min(100%, 720px); height: auto; filter: drop-shadow(0 8px 34px rgba(0,0,0,.4)); }
.home-claim { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--fg-muted); text-wrap: balance; margin-bottom: 18px; }
.tiles { width: 100%; max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { --c: var(--accent); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 2px;
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: var(--radius);
  padding: 22px 52px 22px 22px; text-decoration: none; color: var(--fg); transition: border-color .18s, transform .18s, background .18s; }
.tile:hover { border-color: var(--c); transform: translateY(-2px); background: color-mix(in srgb, var(--c) 5%, var(--bg-card)); }
.tile-gold { --c: var(--gold); } .tile-q10 { --c: var(--q10); } .tile-plain { --c: var(--fg-muted); }
.tile-num { grid-row: 1 / span 3; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--c); opacity: .9; }
.tile-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.tile-for { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.tile-desc { font-size: .88rem; color: var(--fg-muted); margin-top: 4px; }
.tile-go { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--c); transition: transform .18s; }
.tile:hover .tile-go { transform: translate(4px, -50%); }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 14px; }
.home-badge { font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.home .install { width: 100%; max-width: 920px; text-align: left; }
@media (max-width: 620px) { .home-links a:not(.home-app) { display: none; } }

/* ── NÉGY KÖR KÖRBEN ── */
.ring { --r: 210px; --d: 196px; --c0: 138px; position: relative; width: calc(1.4142 * var(--r) + var(--d)); max-width: 100%; aspect-ratio: 1; margin-block: 6px 10px; }
.ring::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(2 * var(--r)); height: calc(2 * var(--r)); transform: translate(-50%, -50%);
  border: 1px dashed var(--border); border-radius: 50%; pointer-events: none; }
.orb { --c: var(--accent); --x: 0; --y: 0; position: absolute; width: var(--d); height: var(--d); border-radius: 50%;
  left: calc(50% + var(--x) * var(--r) - var(--d) / 2); top: calc(50% + var(--y) * var(--r) - var(--d) / 2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 12%, var(--bg-card)), var(--bg-card) 70%);
  border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--fg); text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, border-color .2s, box-shadow .2s; }
.orb:hover, .orb:focus-visible { transform: scale(1.06); border-color: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 12px 34px rgba(0,0,0,.4); }
.orb svg { width: 34px; height: 34px; color: var(--c); }
.orb-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.orb-for { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.orb-gold { --c: var(--gold); } .orb-green { --c: var(--accent); } .orb-q10 { --c: var(--q10); } .orb-plain { --c: #b9cdb9; }
.orb-nw { --x: -0.7071; --y: -0.7071; } .orb-ne { --x: 0.7071; --y: -0.7071; }
.orb-se { --x: 0.7071; --y: 0.7071; } .orb-sw { --x: -0.7071; --y: 0.7071; }
.orb-center { position: absolute; left: 50%; top: 50%; width: var(--c0); height: var(--c0); transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 10px var(--accent-dim), 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.orb-center:hover { transform: translate(-50%, -50%) scale(1.06); }
.orb-center img { width: 62%; height: auto; border-radius: 22%; }
@media (max-width: 620px) {
  .ring { --r: 122px; --d: 124px; --c0: 84px; }
  .orb { padding: 10px; gap: 3px; }
  .orb svg { width: 24px; height: 24px; }
  .orb-name { font-size: .9rem; }
  .orb-for { font-size: .52rem; letter-spacing: .06em; }
  .orb-center { font-size: .8rem; box-shadow: 0 0 0 6px var(--accent-dim), 0 8px 22px rgba(0,0,0,.4); }
}
@media (max-width: 360px) { .ring { --r: 108px; --d: 112px; --c0: 76px; } .orb-name { font-size: .8rem; } }

/* a minta csak a háttérben látszik; a sávok áttetszőek, a kártyák tömörek */
.section-alt { background: color-mix(in srgb, var(--bg-2) 82%, transparent); }
.footer { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.home::before { inset: -90px 0 0 0; }

/* ── MÁRVÁNY HÁTTÉR (fix réteg, iOS-en is működik) ── */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #07120c url("marble-wide.jpg") center / cover no-repeat; }
@media (max-aspect-ratio: 1/1) { body::before { background-image: url("marble-tall.jpg"); } }
.hero::after { display: none; }   /* a rácsminta nem kell a márványra */
.hero::before { background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(7, 18, 12, .55), transparent 75%); }
.section-alt { background: rgba(8, 20, 13, .55); border-color: rgba(217, 168, 58, .14); }
.nav { background: rgba(8, 20, 13, .78); }
.footer { background: rgba(6, 15, 10, .82); }
.home::before { background: radial-gradient(ellipse 55% 40% at 50% 20%, rgba(6, 15, 10, .55), transparent 75%); }
.ring::before { border-color: rgba(217, 168, 58, .35); }

/* ── STÍLUSOSABB KÖRÖK ── */
.orb { background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--c) 16%, #13241a), #0c1812 72%);
  border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: inset 0 0 0 5px rgba(6, 15, 10, .9), inset 0 0 0 6px color-mix(in srgb, var(--c) 28%, transparent), 0 14px 34px rgba(0,0,0,.45); }
.orb:hover, .orb:focus-visible { box-shadow: inset 0 0 0 5px rgba(6, 15, 10, .9), inset 0 0 0 6px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 16px 38px rgba(0,0,0,.5); }
.orb .emb { width: 54px; height: 54px; color: var(--c); filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--c) 35%, transparent)); margin-bottom: 2px; }
.orb-name { letter-spacing: .01em; }
.orb-center { background: radial-gradient(circle at 50% 30%, #2f7a24, #12361a 75%); color: #f0f3ea;
  border: 2px solid var(--gold); box-shadow: 0 0 0 8px rgba(217, 168, 58, .10), 0 0 30px rgba(109, 219, 71, .25), 0 12px 30px rgba(0,0,0,.5); gap: 4px; }
.orb-center img { width: 58%; height: auto; border-radius: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.orb-center span { font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 620px) {
  .orb .emb { width: 32px; height: 32px; }
  .orb { box-shadow: inset 0 0 0 3px rgba(6, 15, 10, .9), inset 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 10px 24px rgba(0,0,0,.45); }
  .orb-center { box-shadow: 0 0 0 5px rgba(217, 168, 58, .10), 0 8px 22px rgba(0,0,0,.5); }
}

/* ── ÁRFIGYELŐ ── */
.small { font-size: .84rem; }
.cmp-list { display: grid; gap: 12px; }
.cmp-item { gap: 10px; }
.cmp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmp-head > div:first-child { min-width: 0; flex: 1 1 280px; display: grid; gap: 6px; }
.cmp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-prices { display: flex; gap: 22px; flex-wrap: wrap; text-align: right; }
.cmp-prices > div { display: grid; gap: 2px; justify-items: end; }
.cmp-kg { font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cmp-eff { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.cmp-eff.is-best { color: var(--accent); }
.cmp-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.lab { font-size: .78rem; background: var(--bg); border: 1px solid var(--border-2); border-radius: 6px; padding: 3px 8px; }
.cmp-src { color: var(--accent); text-decoration: none; font-weight: 600; }
.cmp-src:hover { text-decoration: underline; }
@media (max-width: 560px) { .cmp-prices { text-align: left; } .cmp-prices > div { justify-items: start; } }

/* élesebb szövegmegjelenítés */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.h1, .h2, .h3, .orb-name, .tile-name, .stat-val, .cmp-eff, .cmp-kg { letter-spacing: -0.01em; }
.lead, .card p, .note, .muted { text-shadow: none; }

/* ── ÖSSZEHASONLÍTÁS ── */
.cmp-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cmp-item.is-out { opacity: .78; }
.chip.warn { background: var(--bad-dim); color: var(--bad); }
.cmp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--bg); user-select: none; }
.cmp-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.cmp-item.is-selected .cmp-check { border-color: var(--accent); color: var(--accent); }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(8, 20, 13, .94); border-top: 1px solid var(--accent);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(10px); }
.cmp-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.cmp-bar .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.cmp-modal { position: fixed; inset: 0; z-index: 200; background: rgba(3, 8, 5, .72); display: flex; align-items: flex-start; justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 12px 24px; overflow-y: auto; }
.cmp-modal-box { width: 100%; max-width: 1040px; gap: 14px; background: var(--bg-card); }
.cmp-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#c-verdict span { display: block; color: var(--fg); }
#c-table th[scope="row"] { color: var(--fg-muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .85rem; background: var(--bg-2); position: sticky; left: 0; }
#c-table td { white-space: normal; min-width: 170px; vertical-align: top; }
#c-table .cmp-col { white-space: normal; min-width: 170px; color: var(--fg); text-transform: none; letter-spacing: 0; font-size: .88rem; }
#c-table .best { color: var(--accent); font-weight: 800; }
#c-table .bad { color: var(--bad); font-weight: 700; }
main.section { padding-bottom: 96px; }

/* ── SZŰRŐK, RÉSZLETEK ── */
.cmp-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.cmp-details { border-top: 1px solid var(--border-2); padding-top: 10px; }
.cmp-details summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: .9rem; list-style: none; }
.cmp-details summary::-webkit-details-marker { display: none; }
.cmp-details summary::before { content: '▸ '; }
.cmp-details[open] summary::before { content: '▾ '; }
.cmp-details dl { display: grid; gap: 0; margin-top: 10px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.cmp-details dl > div { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--border-2); }
.cmp-details dl > div:nth-child(odd) { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmp-details dl > div:last-child { border-bottom: 0; }
.cmp-details dt { font-size: .8rem; font-weight: 700; color: var(--fg-muted); }
.cmp-details dd { font-size: .86rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cmp-details dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ── Receptúra ── */
.rec { display: grid; gap: 18px; }
.rec-top { display: grid; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; width: max-content; background: var(--bg-2); }
.seg-b { font: 600 15px var(--body); color: var(--fg-muted); background: none; border: 0; border-radius: 999px; padding: 8px 20px; cursor: pointer; }
.seg-b[aria-pressed="true"] { background: var(--gold); color: var(--on-accent); }
.rec.is-gazda .seg-b[aria-pressed="true"] { background: var(--accent); }
.rec-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .rec-grid { grid-template-columns: minmax(0, 1fr); } }
.r-table, .r-ptable { width: 100%; font-size: 14px; }
.r-table td, .r-table th, .r-ptable td, .r-ptable th { padding: 6px 8px; vertical-align: middle; }
.r-table tr.off .r-name { color: var(--fg-dim); }
.r-grp th { text-align: left; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); padding-top: 14px; }
.r-in { padding: 6px 8px; min-height: 0; width: 6.5em; font-size: 14px; }
.r-meta { color: var(--fg-dim); font-size: 13px; white-space: nowrap; }
.r-res { font-weight: 700; white-space: nowrap; }
.r-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--gold-dim); color: var(--gold); margin-left: 4px; white-space: nowrap; }
.r-tag.bad { background: var(--bad-dim); color: var(--bad); }
.r-score { display: grid; gap: 8px; margin-bottom: 14px; }
.r-score .r-lbl { display: block; font-size: 13px; color: var(--fg-muted); }
.r-big { font: 800 52px/1 var(--display); margin-right: 6px; }
.r-score .r-unit { color: var(--fg-dim); }
.r-bar { height: 8px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.r-bar span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s; }
.r-score.good .r-big { color: var(--ok); } .r-score.good .r-bar span { background: var(--ok); }
.r-score.mid .r-big { color: var(--warn); } .r-score.mid .r-bar span { background: var(--warn); }
.r-score.low .r-big { color: var(--bad); }
#r-cost-box { margin-bottom: 12px; }
.r-ptable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-ptable tr.ok td:first-child { box-shadow: inset 3px 0 var(--ok); }
.r-ptable tr.mid td:first-child { box-shadow: inset 3px 0 var(--warn); }
.r-ptable tr.bad td:first-child { box-shadow: inset 3px 0 var(--bad); }
.r-ptable tr.rule td { color: var(--fg-muted); }
.r-act { font-size: 12px; white-space: nowrap; color: var(--fg-muted); }
.r-issues { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.r-iss { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border-left: 3px solid var(--fg-dim); font-size: 14px; }
.r-iss.err { border-color: var(--bad); } .r-iss.warn { border-color: var(--warn); } .r-iss.ok { border-color: var(--ok); }
.r-iss .btn { justify-self: start; margin-top: 4px; }
.r-grow-svg svg { width: 100%; height: auto; display: block; }
.g-grid { stroke: var(--border-2); } .g-ax, .g-lbl { fill: var(--fg-dim); font: 11px var(--body); }
.g-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.g-pt { stroke: var(--bg); stroke-width: 2; } .g-pt.ok { fill: var(--ok); } .g-pt.mid { fill: var(--warn); } .g-pt.bad { fill: var(--bad); }
.r-grow-rows { display: grid; gap: 8px; margin: 12px 0; }
.r-grow-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.r-grow-row .ok { color: var(--ok); font-weight: 700; } .r-grow-row .mid { color: var(--warn); font-weight: 700; } .r-grow-row .bad { color: var(--bad); font-weight: 700; }
.r-rules summary { cursor: pointer; }
.r-rules[open] summary { margin-bottom: 12px; }
.verdict:empty { display: none; }
.rec-grid { grid-template-columns: minmax(0, 1fr); }
.r-mini { position: sticky; top: 64px; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 8px 12px; margin: 0 0 10px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); font-size: 14px; }
.r-mini b { font-family: var(--display); font-size: 18px; }
.r-table, .r-ptable { font-size: 13px; }
.r-table td, .r-table th, .r-ptable td, .r-ptable th { padding: 5px 5px; }
.r-in { width: 4.6em; padding: 5px 6px; font-size: 13px; }
.r-price { width: 5.4em; }
.r-ptable th { white-space: nowrap; }
.r-act { font-size: 0; } .r-act input { margin: 0; }
.r-ptable td:first-child { white-space: normal; min-width: 7em; }
.r-rules td { white-space: normal; min-width: 90px; }
.r-note { display: block; font-size: 11px; font-weight: 600; }
.r-ptable tr.mid .r-note { color: var(--warn); } .r-ptable tr.bad .r-note { color: var(--bad); }
@media (max-width: 600px) { .r-ptable td:first-child .small { display: none; } .r-ptable { font-size: 12.5px; } }
/* ── Q10-kalkulátor ── */
#q10calc .h3 { margin-top: 6px; }
#q10calc form.card { display: grid; gap: 12px; align-content: start; }
.q-ross { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.q-ross .btn { justify-self: start; }
.q-be { background: var(--bg-2); }
.q-table td { white-space: normal; vertical-align: top; min-width: 110px; }
.q-table td:last-child { min-width: 260px; }
.q-table tr.q-match td { background: var(--q10-dim); }
.q-type { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg-muted); }
