/* ─────────────────────────────────────────────────────────────────────────
   SiteEnergy — weboldal stíluslap
   A HELIO design system tokenjei az alkalmazásból átemelve, hogy a marketing-
   oldal és a termék EGY világnak látsszon.

   Két szabály, amit könnyű elrontani (az app restyle-jából):
     1. A lime KITÖLTÉS, nem szövegszín. Fehér háttéren soha ne legyen lime betű.
        Ink (sötétzöld) háttéren viszont igen.
     2. Oldalanként PONTOSAN EGY hero-gradienses elem. Ha minden kiemelt, semmi sem az.

   Betűtípus: a fonts.css HELYBEN tárolt woff2 fájlokra mutat — soha ne cseréld
   Google Fonts CDN-re (lásd a fonts.css fejlécét).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* HELIO alapszínek */
  --ink:        #12281A;
  --ink-soft:   #3E5C48;
  --ink-faint:  #6B8574;
  --lime:       #D3F94E;
  --leaf:       #57C46B;
  --accent:     linear-gradient(135deg, #CFF63F, #5BC96D);

  /* Üveg-recept */
  --glass:        rgba(255,255,255,.65);
  --glass-strong: rgba(255,255,255,.82);
  --glass-border: rgba(255,255,255,.95);
  --shadow-sm: 0 4px 14px rgba(30,80,40,.06);
  --shadow:    0 14px 40px rgba(30,80,40,.09);
  --shadow-lg: 0 28px 70px rgba(30,80,40,.14);

  --line: rgba(18,40,26,.10);

  --sans: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --radius:    18px;
  --radius-sm: 12px;
  --wrap:      1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(70rem 46rem at 8% -6%,   rgba(211,249,78,.42), transparent 58%),
    radial-gradient(60rem 44rem at 96% 6%,   rgba(87,196,107,.32), transparent 60%),
    radial-gradient(56rem 46rem at 48% 100%, rgba(53,184,164,.20), transparent 62%),
    #F6FBF4;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Minden szám monospace — ez az app konvenciója, a folytonosság kedvéért */
.num, .stat-value, .price-value { font-family: var(--mono); font-feature-settings: 'tnum'; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { padding: clamp(48px, 7vw, 96px) 0; }

/* ── Tipográfia ─────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -.01em; }
p  { color: var(--ink-soft); }

.lead      { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink-soft); }
.eyebrow   { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em;
             text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head p { margin-top: 12px; }

/* ── Fejléc ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,251,244,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(87,196,107,.32);
}
.brand-mark svg { width: 19px; height: 19px; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }

.lang {
  font-family: var(--mono); font-size: .78rem; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; margin-left: 6px;
}
.lang:hover { border-color: var(--leaf); color: var(--ink); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
              border-radius: 9px; padding: 7px 11px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

/* ── Gombok ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-size: .96rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(87,196,107,.30); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(87,196,107,.40); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(18,40,26,.28); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--glass-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Üvegkártya (az app receptje) ───────────────────────────────────────── */
.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p  { font-size: .93rem; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(211,249,78,.34); border: 1px solid rgba(255,255,255,.9);
}

.grid   { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 34em; }

.badge-pre {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--lime); border-radius: 999px;
  padding: 7px 15px; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .05em; margin-bottom: 20px;
}
.badge-pre::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* Dekoratív app-keret. SZÁNDÉKOSAN nem tartalmaz konkrét számokat: nem
   állít semmit az adatokról, csak a termék vizuális karakterét idézi. */
.app-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px);
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px;
           background: rgba(255,255,255,.6); border-bottom: 1px solid var(--line); }
.app-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(18,40,26,.14); }
.app-body { padding: 18px; }
.app-frame svg { display: block; width: 100%; height: auto; }

/* ── Képernyőképek ──────────────────────────────────────────────────────────
   A képek a VALÓDI alkalmazásból készültek, a demo-projekt valódi számítási
   eredményeivel. A `.shot` konténer `object-fit: cover` + `object-position:
   bottom` párossal vág — így az EFC-grafikon tetején belelógó fél sornyi
   státuszszöveg eltűnik újrafotózás nélkül. Az arányt a kép saját aránya adja,
   néhány pixellel alacsonyabban. */
.shot {
  overflow: hidden; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.5);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.shot-efc { aspect-ratio: 858 / 452; }

.shot-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.shot-card .shot { border: 1px solid rgba(18,40,26,.07); }
.shot-card figcaption { padding: 0 4px 4px; }
.shot-card h3 { margin-bottom: 6px; }
.shot-card p { font-size: .9rem; }

/* Őszinteség-jelölés: a képeken FIKTÍV demo-projekt adatai láthatók. */
.shot-note {
  margin-top: 26px; font-size: .82rem; color: var(--ink-faint);
  border-left: 2px solid var(--line); padding-left: 14px; max-width: 62ch;
}

/* ── Bizalom-sáv ────────────────────────────────────────────────────────── */
.trust { border-block: 1px solid var(--line); padding: 22px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; align-items: center; }
.trust-row span { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); letter-spacing: .02em; }

/* ── Lépések ────────────────────────────────────────────────────────────── */
.step-num {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); margin-bottom: 14px;
}

/* ── Statisztika-csempék ────────────────────────────────────────────────── */
.stat { text-align: center; padding: 22px 14px; }
.stat-value { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; display: block; }
.stat-label { font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

/* ── Csomagok ───────────────────────────────────────────────────────────── */
.tier { display: flex; flex-direction: column; }
.tier ul { list-style: none; margin: 18px 0 0; display: grid; gap: 9px; }
.tier li { font-size: .9rem; color: var(--ink-soft); padding-left: 24px; position: relative; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.tier li.off { color: var(--ink-faint); opacity: .62; }
.tier li.off::before { content: '—'; color: var(--ink-faint); }
/* A LAP EGYETLEN hero-gradienses eleme */
.tier-featured { background: var(--accent); border-color: rgba(255,255,255,.6); box-shadow: 0 18px 46px rgba(87,196,107,.34); }
.tier-featured p, .tier-featured li { color: rgba(18,40,26,.82); }
.tier-featured li::before { color: var(--ink); }
.tier-tag { position: absolute; top: -11px; right: 20px; background: var(--ink); color: var(--lime);
            font-family: var(--mono); font-size: .68rem; padding: 4px 11px; border-radius: 999px; letter-spacing: .04em; }
.price-value { font-size: 1.5rem; font-weight: 600; }
.price-note  { font-size: .82rem; color: var(--ink-faint); }

/* ── Ároldal ────────────────────────────────────────────────────────────── */
.bill-toggle {
  display: inline-flex; gap: 2px; padding: 4px; margin: 0 auto 34px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.bill-toggle button {
  border: 0; background: none; cursor: pointer; font-family: var(--sans);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; transition: background .15s, color .15s;
}
/* Aktív chip = ink háttér + lime szöveg — az app konvenciója */
.bill-toggle button.on { background: var(--ink); color: var(--lime); }
.bill-save { font-family: var(--mono); font-size: .72rem; opacity: .85; }

.price-block { margin: 16px 0 4px; }
.price-main  { font-family: var(--mono); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.price-unit  { font-size: .9rem; color: var(--ink-faint); }
.price-gross { font-size: .8rem; color: var(--ink-faint); margin-top: 4px; }
.tier-featured .price-gross, .tier-featured .price-unit { color: rgba(18,40,26,.66); }

.founder {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 34px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center;
  text-align: center;
}
.founder strong { color: var(--lime); }
.founder p { color: rgba(255,255,255,.8); margin: 0; font-size: .93rem; }

.cmp { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: .92rem; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
                color: var(--ink-faint); font-weight: 600; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 15%; }
.cmp .yes { color: var(--leaf); font-weight: 700; }
.cmp .no  { color: var(--ink-faint); opacity: .5; }
.cmp tbody tr:hover { background: rgba(255,255,255,.4); }
.cmp-group td { font-weight: 600; background: rgba(255,255,255,.45); font-size: .84rem;
                text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.cmp-wrap { overflow-x: auto; }

/* ── GYIK ───────────────────────────────────────────────────────────────── */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex;
                      justify-content: space-between; gap: 20px; align-items: flex-start; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--ink-faint); font-size: 1.3rem; line-height: 1; flex: none; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin-top: 12px; font-size: .93rem; max-width: 68ch; }

/* ── Záró felhívás ──────────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink); border-radius: var(--radius); padding: clamp(34px, 5vw, 56px);
  text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,.76); max-width: 46ch; margin: 14px auto 0; }

/* ── Lábléc ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 34px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
                  color: var(--ink-faint); font-weight: 600; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: 3px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
                font-size: .82rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ── Egyszerű tartalmi oldalak (jogi, dokumentáció) ─────────────────────── */
.doc { max-width: 74ch; }
.doc h2 { margin: 34px 0 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9rem; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }

/* ── Reszponzív ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
         flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
         background: rgba(246,251,244,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Aki csökkentett mozgást kért, ne kapjon animációt */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
