/* AppScale.Digital – közös stíluslap
   Világos és sötét téma: a színek a :root változókban vannak.
   A sötét téma értékei a DARK:START és DARK:END közötti blokkban vannak; a build ezt
   kétszer írja ki (rendszerbeállítás szerint és kézi választásra).
   Termékszínek: body.p-roof / p-solar / p-wood / p-event / p-frame, illetve .tone-… osztály. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --logo-ink: #234B7E;
  --logo-acc: #2676BC;
  --logo-arrow: #21487A;
  /* felületek */
  --bg: #ffffff;
  --bg-alt: #f2f5f9;          /* pauszpapír – váltakozó szakaszok */
  --surface: #ffffff;         /* képkeret, kártya, űrlapmező */
  --text: #12233f;
  --text-2: #33435c;
  --muted: #55657d;
  --line: #d6dfea;
  --line-strong: #b9c7d9;
  --header-bg: rgba(255, 255, 255, .94);
  --grid-major: rgba(18, 35, 63, .07);
  --grid-minor: rgba(18, 35, 63, .035);
  --ghost-border: rgba(18, 35, 63, .35);
  --ghost-hover: rgba(18, 35, 63, .05);
  --plan-full: #12233f;
  --err: #b42318;
  --focus: #1f6fe0;
  --shadow: 0 18px 40px rgba(12, 26, 49, .14);

  /* mindig sötét felületek (főoldali nyitókép, lábléc) */
  --deep: #0c1a31;
  --deep-text: #e8eef7;
  --deep-muted: #9fb1cc;

  /* termékszínek: gomb / szövegben használt árnyalat */
  --roof: #1f6fe0;   --roof-ink: #1556b6;
  --solar: #f2a516;  --solar-ink: #8a5600;
  --wood: #a4642f;   --wood-ink: #87501f;
  --event: #6d4bd8;  --event-ink: #5634bf;
  --frame: #2e7d5b;  --frame-ink: #1f5a40;

  --accent: var(--roof);
  --accent-ink: var(--roof-ink);
  --on-accent: #ffffff;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --step: clamp(72px, 9vw, 128px);
}

/* Sötét téma: a rendszerbeállítás szerint (ha nincs kézi választás), illetve kézi választásra */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --logo-ink: #E6EDF7;
  --logo-acc: #7FB2FF;
  --logo-arrow: #8FB8FF;
  --bg: #0f1c30;
  --bg-alt: #13233b;
  --surface: #182b47;
  --text: #e6edf7;
  --text-2: #c5d1e2;
  --muted: #9fb1cc;
  --line: #273b5c;
  --line-strong: #3a5480;
  --header-bg: rgba(15, 28, 48, .92);
  --grid-major: rgba(143, 184, 255, .075);
  --grid-minor: rgba(143, 184, 255, .032);
  --ghost-border: rgba(230, 237, 247, .38);
  --ghost-hover: rgba(255, 255, 255, .06);
  --plan-full: #0a1526;
  --err: #ff9b8f;
  --focus: #6aa8ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --deep: #0a1526;
  --roof-ink: #7fb2ff;
  --solar-ink: #f6bd4a;
  --wood-ink: #e2a56c;
  --event-ink: #b6a0ff;
  --frame-ink: #74d0a2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --logo-ink: #E6EDF7;
  --logo-acc: #7FB2FF;
  --logo-arrow: #8FB8FF;
  --bg: #0f1c30;
  --bg-alt: #13233b;
  --surface: #182b47;
  --text: #e6edf7;
  --text-2: #c5d1e2;
  --muted: #9fb1cc;
  --line: #273b5c;
  --line-strong: #3a5480;
  --header-bg: rgba(15, 28, 48, .92);
  --grid-major: rgba(143, 184, 255, .075);
  --grid-minor: rgba(143, 184, 255, .032);
  --ghost-border: rgba(230, 237, 247, .38);
  --ghost-hover: rgba(255, 255, 255, .06);
  --plan-full: #0a1526;
  --err: #ff9b8f;
  --focus: #6aa8ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --deep: #0a1526;
  --roof-ink: #7fb2ff;
  --solar-ink: #f6bd4a;
  --wood-ink: #e2a56c;
  --event-ink: #b6a0ff;
  --frame-ink: #74d0a2;
}

body.p-roof, .tone-roof   { --accent: var(--roof);  --accent-ink: var(--roof-ink);  --on-accent: #ffffff; }
body.p-solar, .tone-solar { --accent: var(--solar); --accent-ink: var(--solar-ink); --on-accent: #12233f; }
body.p-wood, .tone-wood   { --accent: var(--wood);  --accent-ink: var(--wood-ink);  --on-accent: #ffffff; }
body.p-event, .tone-event { --accent: var(--event); --accent-ink: var(--event-ink); --on-accent: #ffffff; }
body.p-frame, .tone-frame, body.p-dev, .tone-dev { --accent: var(--frame); --accent-ink: var(--frame-ink); --on-accent: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-stretch: 115%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-stretch: 108%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* Rajzi felirat: keskeny betűszélesség – méretvonalak, képaláírások, apró címkék */
.tag, figcaption, .spec dt, .step-n, .hero-steps, .meta, .facts, .status {
  font-stretch: 75%;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
  padding-left: 22px;
  position: relative;
}
.tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: currentColor; }
.tag::after { content: ""; position: absolute; left: 0; top: calc(50% - 4px); width: 1px; height: 9px; background: currentColor; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--step) 0; }
.section.paper { background: var(--bg-alt); }
.section.tight-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Rácsos háttér – mint a milliméterpapír */
.grid-bg {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
/* Mindig sötét blokk (főoldali nyitókép) */
.deep {
  background-color: var(--deep);
  color: var(--deep-text);
  --text: var(--deep-text);
  --muted: #b9c7dc;
  --ghost-border: rgba(255, 255, 255, .4);
  --ghost-hover: rgba(255, 255, 255, .06);
  --accent-ink: #8fb8ff;
}
.deep.grid-bg {
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(143,184,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(143,184,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,255,.04) 1px, transparent 1px);
}

/* Gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 6px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 650; font-stretch: 100%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { filter: brightness(.9); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--ghost-border); }
.btn.ghost:hover { filter: none; border-color: var(--text); background: var(--ghost-hover); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Fejléc */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; min-height: 68px; gap: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 720; font-stretch: 112%; font-size: 1.12rem; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand .logo { height: 38px; width: auto; flex: none; overflow: visible; }
.lg-ink { fill: var(--logo-ink); }
.lg-acc { fill: var(--logo-acc); }
.lg-arrow { stroke: var(--logo-arrow); }
/* Termék-logók: világos és sötét témához külön kép */
.on-dark { display: none; }
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
.p-logo { margin: 0 0 1rem; line-height: 0; }
.p-logo img { height: 72px; width: auto; }
.pcard .p-logo { margin: 0 0 .35rem; }
.pcard .p-logo img { height: 60px; }
.cross-icon img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.btn), .nav-drop {
  color: var(--text); text-decoration: none; font: inherit; font-weight: 520; font-size: .98rem;
  padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
}
.site-nav > a:not(.btn):hover, .nav-drop:hover { border-bottom-color: var(--line); }
.site-nav > a[aria-current="page"], .nav-drop.is-current { border-bottom-color: var(--accent); }
.nav-drop { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-products { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 14px); left: -20px; width: 600px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 6px 18px;
}
.drop-panel[hidden] { display: none; }
.drop-head { margin: 0 0 6px; padding: 0 12px; font-stretch: 75%; font-weight: 600; font-size: .9rem; color: var(--muted); }
.drop-group + .drop-group { border-left: 1px solid var(--line); padding-left: 14px; }
.drop-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.drop-item:hover { background: var(--bg-alt); text-decoration: none; }
.drop-item { grid-template-columns: 12px 1fr; }
.drop-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); align-self: start; margin-top: 7px; }
.drop-item b { display: block; font-weight: 650; font-size: 1rem; line-height: 1.25; }
.drop-item small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.drop-item[aria-current="page"], .drop-dev[aria-current="page"] { background: var(--bg-alt); box-shadow: inset 3px 0 0 var(--accent); }
.drop-devlist { display: grid; }
.drop-dev { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 520; }
.drop-dev:hover { background: var(--bg-alt); text-decoration: none; }
.soon { font-stretch: 75%; color: var(--muted); font-weight: 560; font-size: .85rem; }

.theme-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; min-width: 42px; padding: 6px 10px;
  background: none; border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--line-strong); background: var(--ghost-hover); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; padding: 6px 14px; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .brand .logo { height: 32px; }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
  }
  .nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { top: 10px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn), .nav-drop { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; justify-content: space-between; }
  .site-nav > a:not(.btn):hover, .nav-drop:hover { border-bottom-color: var(--line); }
  .site-nav > a[aria-current="page"], .nav-drop.is-current { color: var(--accent-ink); border-bottom-color: var(--line); }
  .drop-panel { position: static; width: auto; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 12px; background: transparent; grid-template-columns: 1fr; }
  .drop-group + .drop-group { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .drop-head { padding: 0 6px; }
  .drop-item { padding: 10px 6px; }
  .drop-dev { padding: 8px 6px; }
  .drop-devlist { grid-template-columns: 1fr 1fr; }
  .site-nav .btn { margin-top: 16px; }
}

/* Főoldal – nyitókép */
.home-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
.home-hero .lead { margin-top: 1.2em; }
.hero-figure { margin: 0; }
.hero-steps { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: .95rem; color: #6f86a8; }
.hero-steps span { display: inline-flex; align-items: center; gap: 8px; animation: stepOn .4s ease forwards; animation-delay: var(--d); }
.hero-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 3px; font-weight: 600; font-size: .8rem; }
@keyframes stepOn { to { color: #cfe0ff; } }
@media (max-width: 900px) { .home-hero .wrap { grid-template-columns: 1fr; } }

/* A nyitókép animációja – egyetlen, betöltéskor lefutó jelenet:
   vázlat → precíz modell → ismétlődő elemek automatikusan → anyaglista és árajánlat */
.hero-drawing { width: 100%; overflow: visible; }
.hero-drawing .ln { fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: 0;
  animation: draw .9s cubic-bezier(.4,.1,.2,1) both; animation-delay: var(--d, 0s); }
.hero-drawing .sketch { stroke: #a9bedb; stroke-width: 1.7; animation-duration: .5s; animation-timing-function: ease-in-out; }
.hero-drawing .sketch-g { animation: sketchFade .7s ease forwards; animation-delay: 1.75s; }
.hero-drawing .d-plan { stroke: #6f86a8; stroke-width: 1.4; animation-duration: .8s; }
.hero-drawing .d-wall { stroke: #48618a; stroke-width: 1; animation-duration: .4s; }
.hero-drawing .d-eave { stroke: #5ea2ff; stroke-width: 2.4; animation-duration: .6s; }
.hero-drawing .d-hip  { stroke: #5ea2ff; stroke-width: 2.4; animation-duration: .45s; }
.hero-drawing .d-raf  { stroke: #e4edfb; stroke-width: 1.7; animation-duration: .25s; }
.hero-drawing .d-far  { stroke: #7d97bf; stroke-width: 1.2; }
.hero-drawing .fade { opacity: 0; animation: fadeIn .45s ease forwards; animation-delay: var(--d); }
.hero-drawing .pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .35s cubic-bezier(.3,1.4,.5,1) forwards; animation-delay: var(--d); }
.hero-drawing .panel { fill: rgba(242, 165, 22, .3); stroke: #f6b73c; stroke-width: 1.3; stroke-linejoin: round; }
.hero-drawing .dim line { stroke: #8fa8cc; stroke-width: 1; }
.hero-drawing .dim circle { fill: #8fa8cc; }
.hero-drawing text { font-family: "Archivo", system-ui, sans-serif; }
.hero-drawing .dim text { fill: #b9c7dc; font-size: 20px; font-stretch: 75%; font-weight: 560; letter-spacing: .02em; }
.hero-drawing .note text { fill: #cfe0ff; }
.hero-drawing .card-bg { fill: #10213d; stroke: #34507e; stroke-width: 1.2; }
.hero-drawing .card-title { fill: #ffffff; font-size: 25px; font-weight: 700; font-stretch: 110%; }
.hero-drawing .card-sub { fill: #8fa8cc; font-size: 17px; font-stretch: 75%; font-weight: 560; }
.hero-drawing .row text { fill: #d6e2f3; font-size: 19px; font-stretch: 85%; }
.hero-drawing .row .q { fill: #ffffff; font-weight: 650; }
.hero-drawing .row line { stroke: #26406a; stroke-width: 1; }
.hero-drawing .row .sw { stroke: none; }
.hero-drawing .done rect { fill: #1f6fe0; }
.hero-drawing .done text { fill: #ffffff; font-size: 19px; font-weight: 650; }
.hero-drawing .done path { fill: none; stroke: #ffffff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { 0% { stroke-dashoffset: var(--len); opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes sketchFade { to { opacity: .22; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-drawing .ln { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .hero-drawing .fade, .hero-drawing .pop { animation: none; opacity: 1; }
  .hero-drawing .sketch-g { animation: none; opacity: .22; }
  .hero-steps span { animation: none; color: #cfe0ff; }
}

/* Célok – hat pont, vonallal tagolva */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.goals > div { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.goals svg { width: 34px; height: 34px; margin-bottom: 14px; color: var(--accent-ink); }
.goals h3 { font-size: 1.25rem; margin-bottom: .4em; }
.goals p { margin: 0; color: var(--text-2); }
.goals-sum { margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 2px solid var(--text); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 650; font-stretch: 108%; line-height: 1.35; max-width: 34ch; }
@media (max-width: 960px) { .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .goals { grid-template-columns: 1fr; } }

/* Szakterületek – mutató lista */
.fields { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fields li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(170px, .8fr); gap: 8px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fields .f-name { font-weight: 680; font-stretch: 106%; font-size: 1.12rem; }
.fields .f-desc { color: var(--muted); }
.fields .f-link { text-align: right; font-weight: 600; }
.fields .f-link a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.fields .f-link a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.fields .f-link a:hover { text-decoration: underline; }
.fields .f-link .soon { margin-left: 6px; }
@media (max-width: 820px) {
  .fields li { grid-template-columns: 1fr; gap: 2px; }
  .fields .f-link { text-align: left; margin-top: 6px; }
}

/* Termékek a főoldalon – 2×2 rajzlap */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); }
.pcard .shot { margin: 0 0 22px; }
.pcard .shot .frame { padding: 0; border: 0; background: none; }
.pcard .p-name { display: flex; align-items: center; gap: 12px; margin-bottom: .25rem; }
.pcard .p-name img { width: 44px; height: 44px; border-radius: 9px; }
.pcard h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-stretch: 115%; margin: 0; }
.pcard .p-kind { color: var(--accent-ink); font-stretch: 75%; font-weight: 600; margin: 0 0 .9rem; }
.pcard p { color: var(--text-2); }
.pcard .ticks { margin: 0 0 24px; }
.pcard .btn-row { margin-top: auto; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* Fejlesztés alatt – főoldali lista (kép nélkül) */
.devlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.devlist > div { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.devlist h3 { font-size: 1.3rem; margin-bottom: .2em; }
.devlist h3 a { color: var(--text); text-decoration: none; }
.devlist h3 a:hover { text-decoration: underline; }
.devlist .p-kind { color: var(--frame-ink); font-stretch: 75%; font-weight: 600; margin: 0 0 .6rem; }
.devlist p:last-child { margin: 0; color: var(--text-2); }
@media (max-width: 960px) { .devlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .devlist { grid-template-columns: 1fr; } }

/* Fejlesztés alatti termékoldal (kép nélkül) */
.dev-hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.dev-hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.dev-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 1rem; }
.dev-badge .status { margin: 0; }
.dev-name { font-weight: 700; font-stretch: 112%; font-size: 1.15rem; }
.dev-facts { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px 8px; margin-top: 8px; }
.dev-facts-title { font-weight: 700; font-stretch: 108%; font-size: 1.1rem; margin: 0 0 6px; }
.dev-facts dl { margin: 0; }
.dev-facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.dev-facts dt { font-stretch: 75%; font-weight: 600; color: var(--accent-ink); font-size: .95rem; margin-bottom: 2px; }
.dev-facts dd { margin: 0; color: var(--text-2); }
.dev-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); }
.dev-features > div { padding: 26px 0; border-top: 1px solid var(--line); }
.dev-features h3 { font-size: 1.25rem; margin-bottom: .45em; }
.dev-features p { margin: 0; color: var(--text-2); }
.dev-later { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.dev-later.single { grid-template-columns: minmax(0, 1fr); }
.dev-later h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dev-later .notice { margin-top: 0; }
.dev-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.dev-cta p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .dev-hero .wrap, .dev-later, .dev-cta { grid-template-columns: 1fr; } .dev-cta .btn { justify-self: start; } }
@media (max-width: 700px) { .dev-features { grid-template-columns: 1fr; } }

/* Kapcsolat – csak e-mail, balra igazítva */
.contact-simple > * { max-width: 760px; }
.contact-simple .lead { margin-bottom: 1.2em; }
.contact-mail { font-size: 1.2rem; font-weight: 650; }

/* Képkeret – mint egy rajzlap */
.shot { margin: 0; }
.shot .frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.shot img { width: 100%; border-radius: 2px; background: var(--bg-alt); }
figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; padding-left: 2px; }

/* Pipás lista – pipa halványan színezett körben, a termék kiemelőszínével */
.ticks { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: .55em; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: calc(.8em - 10px);
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(127, 140, 160, .16);
  background: color-mix(in srgb, var(--accent-ink) 16%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.8em - 6px);
  width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FrameGenius Pro sáv */
.frame-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--frame-ink); margin-bottom: .8rem; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--frame); box-shadow: 0 0 0 4px rgba(46,125,91,.18); }
@media (max-width: 860px) { .frame-band { grid-template-columns: 1fr; } }

/* Lépések – valódi sorrend, ezért számozott */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { position: relative; }
.step-n { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--accent-ink); margin-bottom: 12px; }
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-n b { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 3px; font-size: 1rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .45em; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
.steps .shot { margin-bottom: 16px; }
@media (max-width: 1100px) { .steps.five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 980px) { .steps, .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps, .steps.five { grid-template-columns: 1fr; } }

/* Termékoldal – nyitókép */
.product-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.product-hero .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.product-hero .p-name { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.product-hero .p-name img { width: 44px; height: 44px; border-radius: 9px; }
.product-hero .p-name span { font-weight: 700; font-stretch: 112%; font-size: 1.15rem; }
.product-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 1rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
@media (max-width: 900px) { .product-hero .wrap { grid-template-columns: 1fr; } }

/* Videó (kattintásra töltődik be – nincs süti, amíg nem indítod el) */
.video-wrap { max-width: 980px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1730; display: block; }
.video button[hidden] { display: none; }
/* a lejátszás gomb bal lent, a videó nyitócíme alatt, hogy ne takarja */
.video[data-video] button { place-items: end start; padding: 0 0 clamp(12px, 7%, 52px) clamp(12px, 6.5%, 64px); }
@media (max-width: 520px) { .video[data-video] .play { padding: 8px 16px 8px 8px; font-size: .95rem; } .video[data-video] .play::before { width: 28px; height: 28px; background-size: 16px; } }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(12,26,49,.18); cursor: pointer; display: grid; place-items: center; color: #fff; font: inherit; }
.video button:hover { background: rgba(12,26,49,.05); }
.video .play { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #12233f; border-radius: 999px; padding: 12px 22px 12px 14px; font-weight: 650; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.video .play::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center/20px no-repeat; }
body.p-solar .video .play::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2312233f'/%3E%3C/svg%3E"); }
.video button[disabled] { cursor: default; background: rgba(12,26,49,.55); }
.video button[disabled] .play::before { display: none; }
.video button[disabled] .play { padding: 12px 20px; }
.video-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Funkciósorok – váltakozó kép/szöveg */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip > .feature-text { order: 2; }
.feature p { color: var(--text-2); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > .feature-text { order: 0; }
}

/* Tömör jellemzőlista */
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.spec > div { padding: 22px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: 1.02rem; color: var(--accent-ink); margin-bottom: 6px; }
.spec dd { margin: 0; color: var(--text-2); font-size: 1rem; }
@media (max-width: 900px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } }

/* Figyelmeztetés */
.notice { border-left: 3px solid var(--accent); background: var(--bg-alt); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; margin-top: 48px; }
.paper .notice { background: var(--surface); }
.notice p { margin: 0; color: var(--text-2); }
.notice strong { color: var(--text); }

/* Ár és próba */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); max-width: 980px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--surface); display: flex; flex-direction: column; }
.plan.full { background: var(--plan-full); color: #e8eef7; border-color: var(--plan-full); --text: #e8eef7; --muted: #9fb1cc; --accent-ink: #8fb8ff; }
:root[data-theme="dark"] .plan.full { border-color: var(--accent); }
body.p-solar .plan.full { --accent-ink: var(--solar); }
body.p-wood .plan.full { --accent-ink: #e2a56c; }
body.p-event .plan.full { --accent-ink: #b6a0ff; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan .price { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 720; font-stretch: 112%; line-height: 1.1; margin: 14px 0 4px; }
.plan .price-note { font-stretch: 75%; font-weight: 560; color: var(--muted); margin: 0 0 6px; }
.plan .ticks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* Próba-sáv: egy széles kártya, bal oldalt cím és letöltés, jobb oldalt ár és előnyök */
.trial-band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); }
.trial-main h2 { margin: 0 0 .45em; }
.trial-main .lead { margin: 0; }
.trial-main .fine { margin-top: 18px; }
.trial-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 10px 28px rgba(12, 26, 49, .07); }
.trial-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.trial-stat b { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 740; font-stretch: 112%; line-height: 1; color: var(--text); }
.trial-stat span { font-stretch: 75%; font-weight: 560; font-size: 1.05rem; color: var(--muted); }
.trial-side .ticks { margin-top: 20px; }
@media (max-width: 860px) { .trial-band { grid-template-columns: 1fr; } }

/* Telepítés */
.install { list-style: none; counter-reset: inst; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.install li { counter-increment: inst; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.install li::before { content: counter(inst); display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--accent-ink); color: var(--accent-ink); border-radius: 3px; font-weight: 650; font-size: .9rem; font-stretch: 75%; }
.install code, .kbd { font-family: inherit; font-stretch: 85%; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; font-size: .95em; white-space: nowrap; }

/* GYIK */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-stretch: 105%; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--text-2); padding-bottom: 8px; }

/* Kereszt-ajánló sáv */
.cross { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.cross:last-child { border-bottom: 1px solid var(--line); }

.cross h3 { margin: 0 0 .2em; }
.cross p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .cross { grid-template-columns: 1fr; } }

/* Egyedi fejlesztés */
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.custom-sub { margin-top: 1.6em; }
.process { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .custom-grid, .about { grid-template-columns: 1fr; } }

/* Kapcsolat */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .98rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,224,.25); }
.form .err { color: var(--err); font-size: .92rem; min-height: 1.2em; margin: 0; }
.contact-direct { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-direct a { font-weight: 650; font-size: 1.1rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }

/* Jogi oldal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Lábléc */
.site-footer { background: var(--deep); color: #b9c7dc; padding: 64px 0 32px; font-size: .98rem; border-top: 1px solid var(--line); }
.site-footer a { color: #e8eef7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer { --logo-ink: #E6EDF7; --logo-acc: #7FB2FF; --logo-arrow: #8FB8FF; }
.site-footer .brand .logo { height: 42px; }
.site-footer h2 { font-size: 1rem; font-stretch: 100%; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .footer-about { margin-top: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #8fa8cc; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; max-width: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
