/* =====================================================================
   METRION Branding Generator — landing oldal stíluslap
   Létrehozva: 2026.09.15. — első változat (Product Hunt indításhoz)
   Frissítve: 2026.09.15. — a monogram-helyettesítő stílusa törölve,
   mert a fejlesztői szakaszba bekerült a valódi fotó.
   Paletta: a METRION márkalap színei (#080E18, #111B2E, #4C6EB1,
   #4F88F7, #E9EEF7). Betű: Poppins, helyben kiszolgálva (nincs
   külső kérés, nincs követés).
   ===================================================================== */

/* ---------- Betűtípus (helyi fájlok) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 300;
  src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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: "Poppins"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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: "Poppins"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Kelet-európai ékezetek (ő, ű, ă, ș, ț) — csak ha tényleg előfordulnak */
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }

/* ---------- Tokenek ---------- */
:root {
  --ink: #080E18;        /* háttér */
  --deep: #111B2E;       /* felület */
  --dim: #4C6EB1;        /* tompa kiemelés */
  --signal: #4F88F7;     /* kiemelés */
  --paper: #E9EEF7;      /* cím és szöveg */
  --mist: #9AA9C3;       /* másodlagos szöveg */
  --line: rgba(233, 238, 247, 0.09);
  --line-strong: rgba(233, 238, 247, 0.16);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --band: clamp(72px, 10vw, 136px);
  --radius-shot: 14px;

  color-scheme: dark;
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  color: var(--paper);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--signal); color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 14, 24, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  color: var(--paper); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  white-space: nowrap;
}
.wordmark img { width: 32px; height: 32px; }
.wordmark strong { font-weight: 600; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--mist); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:not(.btn):hover { color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--paper);
  font: 500 0.9375rem/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--signal); color: var(--paper); }
.btn--solid { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--solid:hover { background: #6698fa; border-color: #6698fa; color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .wordmark span { display: none; }
}

/* ---------- Nyitóblokk ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px) clamp(64px, 9vw, 128px);
  overflow: hidden;
}
/* Tervrajz-rács: ugyanaz a nyelv, mint az app ikonján */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(79, 136, 247, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 136, 247, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.1vw, 4.625rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 span { display: block; }
.hero .lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--mist);
  max-width: 34ch;
}
.get { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { height: 54px; width: auto; }
.price { font-size: 0.9375rem; color: var(--mist); line-height: 1.45; }
.price strong { color: var(--paper); font-weight: 600; }

.facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.9375rem; color: var(--paper);
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--signal); flex: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .lead { max-width: 44ch; }
}

/* ---------- Formátum-mező: egy márka, sok alak ---------- */
.field-wrap { min-width: 0; }
.field {
  /* márkaváltozók — a JS cseréli */
  --b-bg: #0B1426;
  --b-bg2: #1A2D55;
  --b-accent: #4F88F7;
  --b-paper: #E9EEF7;

  display: flex; flex-direction: column; gap: 18px;
}
/* Egy soron belül a csempék a képarányukkal arányosan nőnek,
   így egy sor minden csempéje pontosan ugyanolyan magas */
.field-row { display: flex; align-items: flex-start; gap: 14px; }
.fmt { margin: 0; min-width: 0; flex: var(--g, 1) 1 0; }

.canvas {
  position: relative;
  aspect-ratio: var(--ar);
  container-type: size;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--b-bg);
  background-image:
    radial-gradient(120% 95% at 28% 18%, var(--b-bg2) 0%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(233, 238, 247, 0.08),
    0 24px 48px -28px rgba(0, 0, 0, 0.9);
  color: var(--b-paper);
}
/* A vásznak saját finom rácsa — az app „Grid" kapcsolója */
.canvas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--b-accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--b-accent) 9%, transparent) 1px, transparent 1px);
  background-size: 8cqmin 8cqmin;
  opacity: 0.8;
}
.fmt--icon .canvas { border-radius: 22%; }

.art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.field.is-switching .art { opacity: 0; transform: scale(0.98); }

.mark { flex: none; aspect-ratio: 1; }
.mark .ring { fill: none; stroke: var(--b-accent); stroke-width: 3; }
.mark .disc { fill: color-mix(in srgb, var(--b-paper) 7%, transparent); }
.mark .glyph {
  fill: var(--b-paper);
  font: 600 44px/1 var(--font);
}
.mark .frame { display: none; }
.field[data-frame="circle"] .frame--circle,
.field[data-frame="hex"] .frame--hex,
.field[data-frame="square"] .frame--square { display: inline; }

.b-name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; }
.b-tag  { font-weight: 300; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; opacity: 0.72; }
.b-text { display: flex; flex-direction: column; min-width: 0; }

/* Archetípusok — ugyanaz a logika, mint az appban */
.art--stacked { flex-direction: column; gap: 3.6cqmin; text-align: center; }
.art--stacked .mark { width: 34cqmin; }
.art--stacked .b-text { align-items: center; gap: 1.8cqmin; }
.art--stacked .b-name { font-size: 9.5cqmin; }
.art--stacked .b-tag  { font-size: 4.2cqmin; }
/* Fekvő formátumon a tartalom nagyobbra nőhet (mint az appban) */
.fmt--wide .art--stacked .mark { width: 36cqmin; }
.fmt--wide .art--stacked .b-name { font-size: 11.5cqmin; }
.fmt--wide .art--stacked .b-tag  { font-size: 4.8cqmin; }
/* Álló formátumon a jel nagyobb, a szöveg a szélességhez igazodik */
.fmt--story .art--stacked .mark { width: 44cqmin; }
.fmt--story .art--stacked .b-tag { font-size: 4.8cqmin; }

.art--horizontal { flex-direction: row; gap: 6cqh; padding-inline: 8cqh; }
.art--horizontal .mark { height: 54cqh; width: auto; }
.art--horizontal .b-text { gap: 3cqh; }
.art--horizontal .b-name { font-size: 17cqh; }
.art--horizontal .b-tag  { font-size: 7.5cqh; }

.art--banner { flex-direction: row; gap: 5cqh; }
.art--banner .mark { height: 66cqh; width: auto; }
.art--banner .b-name { font-size: 34cqh; }

.art--mark .mark { width: 66cqmin; }

figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px;
  margin-top: 8px;
  font-size: 0.75rem; line-height: 1.35; color: var(--mist);
}
figcaption span { white-space: nowrap; }
figcaption span:first-child { white-space: normal; }
figcaption span:last-child { font-variant-numeric: tabular-nums; opacity: 0.8; }

.field-bar {
  /* A gomb elöl áll, a felirat a maradék helyen tördel —
     így a márkanév hossza nem ugrasztja a sort */
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 12px 18px; margin-top: 22px;
}
.field-note { font-size: 0.875rem; color: var(--mist); }
.field-note strong { color: var(--paper); font-weight: 500; }

/* Betöltéskori egyetlen, összehangolt belépés */
.js .field .fmt { opacity: 0; transform: translateY(10px); }
.js .field.is-ready .fmt {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Keskeny képernyőn a fekvő poszt saját sort kap, a négyzet és a
   story alá tördelődik — a magasságuk továbbra is egyforma */
@media (max-width: 560px) {
  .field-row--a { flex-wrap: wrap; row-gap: 18px; }
  .field-row--a .fmt--wide { flex-basis: 100%; }
}

/* ---------- Szakaszok ---------- */
.band { padding-block: var(--band); border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; }
.band h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.body-lg { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); font-weight: 300; line-height: 1.6; color: var(--mist); }
.body-lg strong { color: var(--paper); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.split .body-lg { max-width: 56ch; }
.split .body-lg + .body-lg { margin-top: 1em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
/* A részletek címe asztali nézetben görgetés közben is látszik */
@media (min-width: 861px) {
  .sticky-title { position: sticky; top: 104px; }
}

/* A probléma */
.problem .body-lg { font-size: clamp(1.25rem, 1.9vw, 1.5625rem); line-height: 1.55; color: var(--paper); font-weight: 300; }

/* Funkciók */
.feature + .feature, .pair + .feature, .feature + .pair, .pair + .pair { margin-top: var(--band); }
.feature .split { margin-bottom: clamp(28px, 4vw, 48px); }
.feature p { color: var(--mist); max-width: 52ch; }
.feature p + p { margin-top: 0.9em; }
.feature p strong { color: var(--paper); font-weight: 500; }

.shot {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: var(--deep);
  border-radius: var(--radius-shot);
  overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}
.shot img { width: 100%; height: auto; aspect-ratio: 2540 / 1400; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.012); }

.pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 56px) clamp(24px, 3vw, 40px);
}
.pair article { display: flex; flex-direction: column; }
.pair h3 { margin-bottom: 14px; }
.pair p { color: var(--mist); margin-bottom: 26px; max-width: 46ch; }
.pair .shot { margin-top: auto; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

.platforms { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li {
  font-size: 0.875rem; line-height: 1; padding: 9px 13px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--paper);
}

/* Részletek — műszaki adatlap */
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--mist); font-weight: 400; }
.specs dd { margin: 0; color: var(--paper); }
@media (max-width: 560px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

.faq { margin-top: clamp(56px, 7vw, 88px); }
.faq h3 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 12px 2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding: 0 0 22px; max-width: 64ch; }

/* A fejlesztő */
.maker .split { align-items: center; }
.portrait {
  width: min(240px, 60vw); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; background: var(--deep);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 10px rgba(79, 136, 247, 0.06);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.maker h2 { margin-bottom: 22px; }
.maker .links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 14px; }

/* Zárás */
.final { text-align: center; }
.final h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; }
.final .body-lg { margin: 18px auto 0; max-width: 40ch; }
.final .get { justify-content: center; }

/* Lábléc */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; font-size: 0.875rem; color: var(--mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- Nagyító (képernyőképek teljes méretben) ---------- */
.lightbox {
  padding: 0; border: 0; background: transparent; color: var(--paper);
  max-width: 96vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 7, 12, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: -52px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--deep); color: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.lightbox-close svg { width: 16px; height: 16px; }

/* ---------- Adatvédelmi oldal ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; margin-bottom: 10px; }
.legal .updated { color: var(--mist); margin-bottom: 40px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--mist); }
.legal p + p { margin-top: 0.9em; }
.legal ul { padding-left: 1.2em; margin: 0.6em 0 0; }
.legal ul + p { margin-top: 0.9em; }
.legal li + li { margin-top: 0.35em; }
.legal strong { color: var(--paper); font-weight: 500; }

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .field .fmt { opacity: 1; transform: none; }
}
