/* Vevőszem — nyitóoldal.
   Szándékosan visszafogott: papírszín háttér, egy kiemelőszín, vékony vonalak árnyékok
   helyett, serif címek. A célközönség (50-65 éves cégtulajdonosok) miatt a szokásosnál
   nagyobb alap betűméret. A varázsló (frontend/valuecheck) ugyanezeket a tokeneket használja. */

:root {
  /* Alfréd-arculat (04_Arculati_Adatok/alfred_brand_tokens.json, 2026-10-13):
     erdőzöld #173D32, krém #F6F1E7, zsálya #9AAE93, arany #C9A569, tintaszín #26352E.
     Az arany és a zsálya díszítő szín, szöveghez erdőzöld vagy tintaszín. */
  --paper: #F6F1E7;
  --paper-2: #ECE5D6;
  --card: #ffffff;
  --ink: #26352E;
  --ink-2: #3E4F47;
  --muted: #6B746F;
  --line: #DDD5C6;
  --green: #173D32;
  --green-dark: #0F2A22;
  --green-tint: #E3EAE0;
  --gold: #C9A569;
  --sage: #9AAE93;
  --red: #9a3b2e;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 4px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 21px; line-height: 1.3; }

p { margin: 0; }

a { color: var(--green); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* keskenyebb szövegblokk, de a bal széle egy vonalban marad a többi szakasszal */
.narrow > * { max-width: 780px; }

/* ---------------------------------------------------------------- gombok */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 24px;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-small { font-size: 14.5px; padding: 9px 16px; }
.label-short { display: none; }

.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }

.btn-light { background: var(--paper); color: var(--green-dark); border-color: var(--paper); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- fejléc */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-avatar { width: 44px; height: 44px; object-fit: contain; display: block; }

.wordmark-small { font-size: 20px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.nav a:hover { color: var(--green); }

/* ---------------------------------------------------------------- hero */

.hero { padding: 88px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
/* a névfelirat arany vonala (alfred_nevfelirat.svg) visszaköszön a kicker alatt */
.kicker::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 14px; }

.alfred-line { font-size: 15.5px; color: var(--ink-2); margin-top: 26px; max-width: 34em; }
.alfred-line strong { color: var(--green); font-weight: 600; }

/* Alfréd a hero-ban: a mintakártya előtt áll, kicsit rálóg */
.alfred { display: block; height: auto; object-fit: contain; }
.hero-visual { display: flex; align-items: flex-end; }
.hero-alfred { width: 200px; flex: 0 0 auto; margin-right: -28px; margin-bottom: -4px; position: relative; z-index: 2; }
.hero-visual .sample { flex: 1 1 auto; min-width: 0; }

.section-head.with-alfred { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head.with-alfred > div { max-width: 760px; }
.section-alfred { width: 170px; flex: 0 0 auto; margin-bottom: -8px; }

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 26px 0 36px;
  max-width: 34em;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 15px; color: var(--muted); margin-top: 14px; }
/* a vagyonadó-üzenet a főcím mellett és a második indítógomb (javítási lista 2026-10-30, 4–5. pont) */
.hero-tax { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--card); font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
/* kiemelt tájékoztató a csomagkártyák alatt (10. pont) */
.plans-note { margin-top: 24px; padding: 20px 24px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--card); }
.plans-note p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.plans-note p + p { margin-top: 10px; }
.plans-note strong { color: var(--green-dark); }

/* minta eredmény — egy kinyomtatott lapra emlékeztet, nem "dashboard"-ra */
.sample {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  position: relative;
}

.sample-tag {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--muted);
  padding: 1px 9px;
}

.sample-company { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.sample-label { font-size: 14px; color: var(--muted); display: block; }
.sample-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2px 0 14px;
}

.sample-range {
  position: relative;
  height: 8px;
  background: var(--paper-2);
  border-radius: 4px;
  margin-bottom: 26px;
}
.sample-range-bar {
  position: absolute; top: 0; bottom: 0; left: 28%; width: 46%;
  background: var(--green); border-radius: 4px; opacity: 0.85;
}
.sample-range-mid {
  position: absolute; top: -5px; bottom: -5px; left: 50%; width: 2px; background: var(--ink);
}

.sample-score {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 14px;
}
.sample-score .sample-label { grid-column: 1 / -1; }
.sample-score-num { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.sample-score-num small { font-size: 15px; color: var(--muted); font-family: var(--sans); }
.sample-score-word { font-size: 15px; color: var(--green); font-weight: 500; }

.sample-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.sample-list li { padding: 7px 0 7px 22px; border-top: 1px solid var(--line); position: relative; }
.sample-list li::before {
  position: absolute; left: 2px; top: 6px; font-weight: 600;
}
.sample-list .plus::before { content: "+"; color: var(--green); }
.sample-list .minus::before { content: "–"; color: var(--red); }

/* ---------------------------------------------------------------- szekciók */

.section { padding: 96px 0; border-top: 1px solid var(--line); }
/* a menüből ugrásnál a ragadós fejléc ne takarja ki a szakasz címét */
section[id] { scroll-margin-top: 68px; }
.section-tint { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { font-size: 18.5px; color: var(--ink-2); margin-top: 18px; }

/* értékhajtók: számozott, ikonok nélkül */
.drivers {
  list-style: none;
  counter-reset: d;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 48px;
}
.drivers li { counter-increment: d; border-top: 2px solid var(--gold); padding-top: 18px; }
.drivers li::before {
  content: counter(d, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.drivers p { color: var(--ink-2); margin-top: 8px; font-size: 16.5px; }

/* lépések */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 16px;
}
.steps p { color: var(--ink-2); margin-top: 10px; font-size: 16.5px; }

/* csomagok */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.plan-featured { border: 2px solid var(--green); padding: 31px 27px 27px; }
.plan-price {
  font-family: var(--serif);
  font-size: 26px;
  margin: 12px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; font-size: 16px; color: var(--ink-2); }
.plan li { padding: 6px 0 6px 20px; position: relative; }
.plan li::before { content: "–"; position: absolute; left: 0; color: var(--green); }
.plan .btn { margin-top: auto; text-align: center; }

/* bizalom */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.trust h3 { font-size: 19px; margin-bottom: 10px; }
.trust p { color: var(--ink-2); font-size: 16px; }

/* GYIK — natív <details>, billentyűzettel is működik */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 21px;
  padding: 22px 40px 22px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--sans);
  font-size: 26px;
  color: var(--green);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 24px; max-width: 42em; }

/* záró felhívás */
.closing { background: var(--green); padding: 80px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing h2 { color: #fff; max-width: 18em; }

/* lábléc */
.site-footer { padding: 48px 0 56px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer-note { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.disclaimer { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------------------------------------------------------------- mobil */

/* a fejléc négy menüponttal (2026-10-24, Vagyonadó-kalkulátor): 1040 alatt szorosabb, 940 alatt csak a másik oldalra
   mutató link marad (a horgonyok tartalma görgetve elérhető), 640 alatt a menü eltűnik */
@media (max-width: 1040px) {
  .header-inner { gap: 22px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14.5px; }
}
@media (max-width: 940px) {
  .nav a[href^="#"] { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual .sample { max-width: 420px; }
  .drivers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 28px; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 20px; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .lead { font-size: 18.5px; }
  .drivers, .steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .sample { padding: 26px 22px 22px; }
  .sample-value { font-size: 30px; }
  .hero-visual { flex-direction: column; align-items: flex-start; }
  /* mobilon a figura a kártya fölött áll, nem lóg rá a "Minta eredmény" címkére */
  .hero-alfred { width: 160px; margin: 0 0 18px 10px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .btn-small { white-space: nowrap; padding: 9px 14px; }
  .hero-visual .sample { width: 100%; max-width: none; }
  .section-head.with-alfred { display: block; }
  .section-alfred { display: none; }
  .wordmark { font-size: 21px; gap: 9px; }
  .brand-avatar { width: 40px; height: 40px; }
}

/* csomagkártyák: hosszabb tartalomlisták (2026-10-13) */
.plan ul { font-size: 15.5px; }
.plan li { padding: 5px 0 5px 20px; line-height: 1.45; }

/* 404-oldal (2026-10-21) */
.notfound { text-align: center; padding: 24px 0 40px; }
.notfound .alfred { width: 150px; height: auto; margin: 0 auto 12px; display: block; }
.notfound .lead { margin: 14px auto 22px; max-width: 520px; }
.plain-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.plain-links a { font-weight: 500; }

/* Szöveges oldalak: módszertan (2026-10-21) */
.sample-tag a { color: inherit; text-decoration: none; }
.sample-tag a:hover { text-decoration: underline; }
.article .container.narrow { max-width: 780px; }
.article h1 { margin: 10px 0 18px; }
.article .lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; }
.article h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { text-decoration: underline; text-underline-offset: 2px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 36px; margin: 0 0 8px; }
.toc ol { margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 6px; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.data td:nth-child(2) { color: var(--ink-2); }
.article-cta { margin-top: 44px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); }
.article-cta h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 26px; }
.article-cta .btn { margin: 6px 8px 0 0; }
@media (max-width: 560px) { .toc ol { columns: 1; } .article-cta { padding: 20px 18px; } }

/* Jogi oldalak: ÁSZF, adatkezelési tájékoztató, impresszum (2026-11-01) */
.legal-cta { margin-left: auto; }
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: clamp(21px, 2.4vw, 25px); margin: 44px 0 12px; scroll-margin-top: 84px; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.legal p, .legal li, .legal dd, .legal dt { font-size: 16.5px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); }
.legal code { font-size: 14px; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.legal-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 28px !important; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 12px; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 15px; margin-bottom: 4px; break-inside: avoid; }
.legal .table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal th { background: var(--paper-2); font-weight: 600; }
.legal-dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; margin: 0 0 12px; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; }
.legal .todo { background: #fff1c2; padding: 0 4px; border-radius: 3px; }
.legal-links a { color: inherit; }
@media (max-width: 640px) {
  .legal { padding: 36px 0 56px; }
  .legal-toc ol { columns: 1; }
  .legal-dl { grid-template-columns: 1fr; gap: 0; }
  .legal-dl dd { margin-bottom: 10px; }
  .legal table { font-size: 14px; }
}

/* két csomag (2026-11-01: az értéknövelési terv kikerült) és a támogatott finanszírozás szakasza */
.plans.plans-two { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.fin-home .section-head { margin-bottom: 28px; }
@media (max-width: 900px) { .plans.plans-two { grid-template-columns: 1fr; } }

/* árak (2026-11-02, hiánylista 1.): elöl a bruttó végösszeg, alatta a nettó és az áfa */
.plan-price-note { margin: -6px 0 14px; font-size: 13.5px; color: var(--muted); }

/* online elállási funkció (2026-11-02): /elallas/ */
.note-box { background: var(--card); border-left: 3px solid var(--gold); padding: 12px 16px; }
.wd-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0; }
.wd-statement { font-size: 17px; margin-bottom: 16px !important; }
.wd-field { margin-bottom: 14px; }
.wd-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.wd-field input, .wd-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.wd-field small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.wd-error { color: var(--red); font-weight: 500; }
.wd-done { background: var(--green-tint); border: 1px solid var(--sage); border-radius: var(--radius); padding: 20px 24px; }
.wd-done h2 { margin-top: 0 !important; }
.hp-wrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
