/* Istoc Dániel: shared styles (v6: light, premium; Geist with a Cormorant italic accent) */
:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #0c1625;
  --muted: #4d5868;
  --faint: #8a93a2;
  --line: #e4e8ee;
  --accent: #2f5d8c;
  --accent-strong: #234a72;
  --accent-ink: #ffffff;
  --accent-soft: #e9f0f7;
  --btn: #0c1625; --btn-ink: #ffffff;
  --ok: #2f7a55; --ok-soft: #e3f2e9;
  --warn: #a86a12; --warn-soft: #f7ecd9;
  --bad: #b23b32; --bad-soft: #f7e2df;
  --band: #10223a; --band-ink: #eef3f9; --band-muted: #a9b8cc; --band-line: #29405e;
  --display: "Geist", "Segoe UI", system-ui, sans-serif;
  --body: "Geist", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant", Georgia, serif;
  --mono: var(--body);  /* no typewriter labels in v5 */
  --radius: 14px;
  --max: 1200px;
}
@media not all { /* v6: always light; dark only via data-theme="dark" */
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d131d; --surface: #141c29; --ink: #e5ebf3; --muted: #9eabbd; --faint: #7a8799; --line: #243247;
    --accent: #86b1dc; --accent-strong: #a6c6e7; --accent-ink: #0d131d; --accent-soft: #1a2b42; --btn: #86b1dc; --btn-ink: #0d131d;
    --ok: #6cc596; --ok-soft: #16301f; --warn: #e0a54a; --warn-soft: #34281a; --bad: #ec8479; --bad-soft: #3a1f1c;
    --band: #0a1829; --band-ink: #e5ebf3; --band-muted: #93a4ba; --band-line: #22354f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d131d; --surface: #141c29; --ink: #e5ebf3; --muted: #9eabbd; --faint: #7a8799; --line: #243247;
  --accent: #86b1dc; --accent-strong: #a6c6e7; --accent-ink: #0d131d; --accent-soft: #1a2b42; --btn: #86b1dc; --btn-ink: #0d131d;
  --ok: #6cc596; --ok-soft: #16301f; --warn: #e0a54a; --warn-soft: #34281a; --bad: #ec8479; --bad-soft: #3a1f1c;
  --band: #0a1829; --band-ink: #e5ebf3; --band-muted: #93a4ba; --band-line: #22354f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 18px; } }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-weight: 650; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--accent); padding-right: 0.04em; }
h2 { font-weight: 600; font-size: clamp(1.55rem, 2.7vw, 2.05rem); }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.eyebrow { font: 500 0.95rem/1.4 var(--body); color: var(--accent); }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 14px; align-content: start; }
.stack-lg { display: grid; gap: 22px; align-content: start; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--ink); }
.brand-mark rect { stroke: var(--accent); }
.brand-name { font: 700 1.02rem/1.1 var(--display); letter-spacing: -0.01em; }
.brand-name small { display: block; font: 400 0.74rem/1.2 var(--body); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; font-size: 0.93rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; font: 600 0.74rem/1 var(--body); letter-spacing: 0.04em; }
.lang-switch a { padding: 6px 7px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1000px) { .lang-switch { margin-left: auto; } }
.brand-name small { white-space: nowrap; }
/* Narrow phones (e.g. iPhone with display zoom, 320px): keep the header inside the screen. */
@media (max-width: 374px) {
  .site-header .wrap { gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-name { font-size: 0.92rem; }
  .lang-switch a { padding: 5px 4px; }
  .menu-toggle { padding: 7px 9px; }
  .btn { white-space: normal; text-align: center; }
  .cta-band .wrap > div { min-width: 0; max-width: 100%; }
}
@media (max-width: 340px) { .brand-name { display: none; } }
@media (max-width: 400px) { .btn.btn-primary, .btn.btn-ghost { white-space: normal !important; text-align: center; } }
@media (min-width: 1001px) and (max-width: 1500px) { .brand-name small { display: none; } .site-header .wrap { gap: 20px; } .nav { gap: 16px; } }
@media (max-width: 560px) { .site-header .wrap { gap: 10px; } .brand-name { white-space: nowrap; } .lang-switch a { padding: 6px 5px; } }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: 500 0.9rem/1 var(--body); cursor: pointer; }
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .site-header .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 0.97rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--btn, #0c1625); color: var(--btn-ink, #fff); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-small { padding: 10px 15px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { font: 400 0.9rem/1.4 var(--body); color: var(--muted); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-block: 64px; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 68ch; }
@media (max-width: 560px) { .section { padding-block: 60px; } .section-tight { padding-block: 48px; } .section-head { margin-bottom: 30px; } }
@media (max-width: 600px) { .brand-name small { display: none; } }
.page-head { padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.page-head .stack-lg { max-width: 72ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- hero (v5) ---------- */
.intro { padding-block: 112px 88px; }
@media (max-width: 760px) { .intro { padding-block: 64px 56px; } }
.intro .stack-lg { max-width: 760px; gap: 26px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.portrait { margin: 0; display: grid; gap: 10px; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.portrait figcaption { font-size: 0.88rem; color: var(--muted); }
.shots { margin: 0; display: grid; gap: 14px; }
.shots-stack { display: grid; }
.shots-stack > .browser { grid-area: 1 / 1; }
.shots-stack .back { margin: 0 16% 24% 0; }
.shots-stack .front { margin: 24% 0 0 16%; box-shadow: 0 30px 60px -30px rgba(10, 20, 36, 0.6); }
.shots figcaption { display: grid; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.shots figcaption b { color: var(--ink); font-weight: 600; }
.intro .lede { font-size: 1.2rem; color: var(--ink); opacity: 0.82; }
.intro .actions { align-items: center; gap: 22px; margin-top: 6px; }
.proof { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 760px; color: var(--muted); }
.proof a { color: var(--ink); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 900px) { .three { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.three > div { display: grid; gap: 10px; align-content: start; }
.three p { color: var(--muted); }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .example { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.numbers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.numbers li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 16px; border-top: 1px solid var(--line); }
.numbers li:last-child { border-bottom: 1px solid var(--line); }
.numbers b { font: 650 1.5rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); }
/* ---------- hero ---------- */
.hero { padding-block: 84px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero { padding-block: 56px; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.trust { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; }
.trust li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 700; }

/* health card */
.health { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(16, 34, 58, 0.45); overflow: hidden; }
.health-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 440px) { .health-head { flex-direction: column; align-items: flex-start; } }
.health-title { font: 500 0.86rem/1.3 var(--mono); }
.health-title small { display: block; color: var(--muted); font-size: 0.74rem; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.toggle button { border: 0; background: transparent; color: var(--muted); font: 500 0.8rem/1 var(--body); padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.checks { list-style: none; margin: 0; padding: 6px 0; }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 20px; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .k { font-weight: 500; font-size: 0.95rem; }
.checks .v { font: 400 0.79rem/1.4 var(--mono); color: var(--muted); grid-column: 1 / -1; }
.chip { font: 500 0.73rem/1 var(--mono); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.bad { color: var(--bad); background: var(--bad-soft); }
.health-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .checks li { transition: background-color 0.35s ease; } .checks li.flash { background: var(--accent-soft); } }

/* ---------- pains ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .pains { grid-template-columns: minmax(0, 1fr); } }
.pain { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding-block: 20px; border-top: 1px solid var(--line); }
.pain .mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--warn); color: var(--warn); display: grid; place-items: center; font: 600 0.78rem/1 var(--mono); margin-top: 1px; }
.pain p { color: var(--muted); font-size: 0.96rem; margin-top: 6px; }

/* ---------- service rows ---------- */
.service-list { display: grid; }
.service-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 32px; align-items: start; padding-block: 30px; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .service-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.service-row .tag { display: none; }
.service-row p { color: var(--muted); }

.service-detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding-block: 64px; border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; }
@media (max-width: 900px) { .service-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 44px; } }
.service-detail .tag { display: none; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.fitline { font-size: 0.93rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.step { padding-top: 20px; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.step .n { font: 500 0.78rem/1 var(--mono); color: var(--muted); }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- flow ---------- */
.flow-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; position: relative; }
.flow-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 19px; height: 2px; background: var(--line); }
.flow-track::after { content: ""; position: absolute; left: 6%; top: 19px; height: 2px; width: 0; background: var(--accent); transition: width 2.4s ease; }
.flow.run .flow-track::after { width: 88%; }
@media (prefers-reduced-motion: reduce) { .flow-track::after { transition: none; } }
.node button { width: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 10px; color: var(--ink); text-align: center; font: 500 0.82rem/1.25 var(--body); }
.node .ring { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font: 500 0.78rem/1 var(--mono); color: var(--muted); position: relative; z-index: 1; transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.flow.run .node .ring { border-color: var(--accent); color: var(--accent); transition-delay: calc(var(--i) * 0.28s), 0s, 0s; }
.flow.run.ready .node .ring { transition-delay: 0s; }
.node button[aria-pressed="true"] .ring, .flow.run .node button[aria-pressed="true"] .ring { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; transition-delay: 0s; }
.node:first-child .ring { border-style: dashed; }
.flow-detail { margin-top: 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: baseline; min-height: 96px; }
.flow-detail .n { font: 500 0.8rem/1 var(--mono); color: var(--accent); grid-row: span 2; }
.flow-detail p { color: var(--muted); max-width: 70ch; }
@media (max-width: 760px) {
  .flow-track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-track::before, .flow-track::after { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .flow-track::after { height: 0; transition: height 2.4s ease; }
  .flow.run .flow-track::after { width: 2px; height: calc(100% - 40px); }
  .node button { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; padding-block: 6px; }
}

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.principle p { color: var(--muted); font-size: 0.97rem; }

/* ---------- case study ---------- */
.case-head { display: grid; gap: 14px; max-width: 70ch; }
.case-client { font: 500 0.82rem/1.4 var(--mono); color: var(--muted); }
.summary-line { font: 600 1.15rem/1.45 var(--body); }
.summary-line span { color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 40px; border-block: 1px solid var(--line); }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric { padding: 24px 24px 24px 0; display: grid; gap: 6px; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .metric:nth-child(3) { border-left: 0; padding-left: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.metric b { font: 700 1.9rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 0.87rem; }
.study-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .study-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.study-cols ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.study-cols .result { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; }
.quote { margin: 40px 0 0; padding-left: 22px; border-left: 3px solid var(--accent); font: 500 1.15rem/1.55 var(--body); }
.quote cite { display: block; margin-top: 10px; font: 400 0.9rem/1.4 var(--body); color: var(--muted); font-style: normal; }

.ref { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .ref { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.browser { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(16, 34, 58, 0.5); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 8px; font: 400 0.74rem/1 var(--mono); color: var(--muted); }
.browser img { display: block; width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: 0.85rem; padding: 6px 11px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); }

/* home featured case */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.feature .metrics { margin-block: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature .metric:nth-child(3) { border-left: 0; padding-left: 0; }
.feature .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

/* ---------- audit page ---------- */
.doc { margin: 0; display: grid; gap: 12px; }
.doc .paper { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -36px rgba(16, 34, 58, 0.55); overflow: hidden; }
.doc img { display: block; width: 100%; }
.doc figcaption { font-size: 0.86rem; color: var(--muted); }

.quiz { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .quiz { grid-template-columns: minmax(0, 1fr); } }
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding-block: 15px; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .q { grid-template-columns: minmax(0, 1fr); } }
.q-text { font-weight: 500; font-size: 0.97rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 0.82rem/1 var(--body); padding: 9px 12px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"][data-v="yes"] { background: var(--ok-soft); color: var(--ok); }
.seg button[aria-pressed="true"][data-v="no"] { background: var(--bad-soft); color: var(--bad); }
.seg button[aria-pressed="true"][data-v="unknown"] { background: var(--warn-soft); color: var(--warn); }
.result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ok); transition: width 0.4s ease, background-color 0.4s ease; }
.level { font: 700 1.55rem/1.1 var(--display); letter-spacing: -0.02em; }
.level.low { color: var(--ok); } .level.mid { color: var(--warn); } .level.high { color: var(--bad); }
.result ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.93rem; color: var(--muted); }
.result .count { font: 500 0.8rem/1 var(--mono); color: var(--muted); }
.example-note { font-size: 0.86rem; color: var(--muted); margin-top: 12px; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form { display: grid; gap: 18px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 500 0.86rem/1 var(--body); cursor: pointer; }
.presets button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.94rem; }
.field .hint { color: var(--muted); font-size: 0.83rem; }
.field input { font: 500 1rem/1.2 var(--body); padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; font-variant-numeric: tabular-nums; }
.calc-out { background: var(--band); color: var(--band-ink); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.calc-out .eyebrow { color: var(--band-muted); }
.calc-out .big { font: 700 clamp(2.1rem, 4.5vw, 2.9rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-out .sub { color: var(--band-muted); font-size: 0.94rem; }
.calc-out dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; font-size: 0.94rem; }
.calc-out dt { color: var(--band-muted); }
.calc-out dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc-out .note { font-size: 0.83rem; color: var(--band-muted); border-top: 1px solid var(--band-line); padding-top: 12px; }
.calc-out .btn-primary { background: var(--band-ink); color: var(--band); justify-self: start; }

/* ---------- about ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { font: 500 0.8rem/1 var(--mono); padding: 8px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.fit { display: flex; flex-wrap: wrap; gap: 10px; }
.fit span { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.93rem; background: var(--surface); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 18px; }
.row { display: grid; gap: 6px; }
.row .label { font: 500 0.88rem/1.2 var(--body); color: var(--muted); }
.row .value { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 1.1rem; }
.copy { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 0.8rem/1 var(--body); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.next li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.next .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font: 500 0.8rem/1 var(--mono); color: var(--accent); }
.next b { display: block; }
.next .t { color: var(--muted); font-size: 0.94rem; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--surface); color: var(--ink); padding-block: 72px; border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); max-width: 24ch; }
.cta-band p { color: var(--muted); margin-top: 12px; max-width: 52ch; }

.cta-band .micro { margin-top: 10px; }
.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.site-footer h4 { margin: 0 0 12px; font: 600 0.92rem/1.2 var(--body); color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul.footer-pages { grid-template-columns: repeat(2, max-content); column-gap: 32px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- contact form + booking (v5.1) ---------- */
:root { --panel: #ffffff; --panel-line: #d9e1ec; --field: #f5f8fc; --field-line: #cdd7e4; --field-hover: #b9c6d8; --ring: rgba(31, 78, 121, 0.18); --chip: #eef3f9; }
@media not all { /* v6: always light; dark only via data-theme="dark" */ :root:not([data-theme="light"]) { --panel: #152032; --panel-line: #2b3b53; --field: #1d2a3f; --field-line: #3a4c67; --field-hover: #51658a; --ring: rgba(134, 177, 220, 0.28); --chip: #1f2d44; } }
:root[data-theme="dark"] { --panel: #152032; --panel-line: #2b3b53; --field: #1d2a3f; --field-line: #3a4c67; --field-hover: #51658a; --ring: rgba(134, 177, 220, 0.28); --chip: #1f2d44; }

.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 32px; box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 30px 60px -40px rgba(8, 18, 34, 0.55); }
@media (max-width: 560px) { .panel { padding: 22px; border-radius: 14px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form .field { gap: 8px; }
.form .field label, .form .legend { font-weight: 550; font-size: 0.93rem; color: var(--ink); }
.form .field .opt { color: var(--muted); font-weight: 400; }
.form .field input, .form .field textarea { font: 400 1rem/1.4 var(--body); padding: 13px 14px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink); width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.form .field input::placeholder, .form .field textarea::placeholder { color: var(--faint); }
.form .field input:hover, .form .field textarea:hover { border-color: var(--field-hover); }
.form .field input:focus, .form .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); background: var(--panel); }
.form .field textarea { min-height: 140px; resize: vertical; }
.form .field.invalid input, .form .field.invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.topics legend { margin-bottom: 10px; padding: 0; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--field-line); background: var(--field); font-size: 0.92rem; font-weight: 500; transition: all 0.15s ease; }
.topic input:hover + span { border-color: var(--field-hover); }
.topic input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.topic input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.form .error { color: var(--bad); font-size: 0.9rem; font-weight: 500; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn-lg { padding: 15px 24px; font-size: 1rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.notice { border: 1px solid var(--panel-line); background: var(--chip); border-radius: 12px; padding: 14px 16px; font-size: 0.94rem; }
.notice b { display: block; margin-bottom: 4px; }

/* booking */
.booker { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .booker { grid-template-columns: minmax(0, 1fr); } }
.stepper { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 0.86rem; font-weight: 550; }
.stepper li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.75rem; background: var(--panel); border: 1px solid var(--panel-line); }
.stepper li.done { color: var(--ink); }
.stepper li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.current { color: var(--ink); background: var(--accent-soft); }
.stepper li.current i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.week-label { font-size: 0.86rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (max-width: 560px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day { border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink); border-radius: 14px; padding: 12px 8px 11px; cursor: pointer; display: grid; gap: 3px; justify-items: center; font: 500 0.8rem/1.2 var(--body); transition: all 0.15s ease; }
.day:hover { border-color: var(--field-hover); transform: translateY(-1px); }
.day .dow { color: var(--muted); text-transform: capitalize; }
.day b { font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.day .mon { color: var(--muted); }
.day .free { margin-top: 5px; font-size: 0.72rem; color: var(--ok); font-weight: 600; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.day[aria-pressed="true"] .dow, .day[aria-pressed="true"] .mon, .day[aria-pressed="true"] .free { color: var(--accent-ink); opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .day:hover { transform: none; } }
.slot-group { margin-top: 8px; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.slot { border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink); border-radius: 12px; padding: 13px 10px; cursor: pointer; font: 600 0.98rem/1 var(--body); font-variant-numeric: tabular-nums; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: all 0.15s ease; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot[aria-pressed="true"]::before { content: "✓"; font-size: 0.85rem; }
.summary-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; gap: 18px; }
.meeting { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meeting .topic span { width: 100%; justify-content: center; border-radius: 10px; }
.when { border-radius: 14px; background: var(--chip); padding: 16px 18px; display: grid; gap: 4px; }
.when .big { font: 650 1.3rem/1.2 var(--display); letter-spacing: -0.01em; }
.when .small { color: var(--muted); font-size: 0.88rem; }
.when.empty .big { color: var(--muted); font-weight: 500; font-size: 1.05rem; }

/* revealable phone */
.reveal { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink); border-radius: 999px; padding: 8px 14px 8px 11px; font: 500 0.9rem/1 var(--body); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.reveal svg { color: var(--accent); flex: none; }
.reveal:hover { border-color: var(--accent); background: var(--accent-soft); }
.reveal:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-color: var(--accent); }
.site-footer .reveal { padding: 6px 12px 6px 9px; font-size: 0.86rem; }

.ref-title { display: flex; align-items: center; gap: 14px; }
.ref-logo { width: 40px; height: 40px; flex: none; border-radius: 9px; }
.browser-link { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.browser-link:hover, .browser-link:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 28px 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 30px 60px -40px rgba(16, 34, 58, 0.5); transform: translateY(-2px); outline: none; }
@media (prefers-reduced-motion: reduce) { .browser-link { transition: none; } .browser-link:hover { transform: none; } }
.browser-soon { cursor: default; }
.soon { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 500 0.75rem/1.4 var(--body); letter-spacing: 0; vertical-align: middle; }
.browser-bar .soon { margin-left: auto; padding: 2px 8px; font-size: 0.68rem; }
.device-pair { display: block; }
.device-pair > .browser { display: block; }
.phone { position: relative; display: block; border: 7px solid #1c2230; border-top-width: 20px; border-bottom-width: 14px; border-radius: 28px; overflow: visible; background: #1c2230; box-shadow: 0 0 0 1.5px #5a6474, 0 24px 40px -18px rgba(5, 10, 20, 0.6); }
.phone::before { content: ""; position: absolute; z-index: 1; top: -14px; left: 50%; width: 34%; height: 9px; transform: translateX(-50%); border-radius: 999px; background: #05070b; }
.phone img { display: block; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 600px) { .device-pair { gap: 12px; grid-template-columns: minmax(0, 1fr) 26%; } .phone { border-width: 5px; border-top-width: 14px; border-bottom-width: 10px; border-radius: 18px; } .phone img { border-radius: 10px; } .phone::before { top: -10px; height: 6px; } }
a.paper { display: block; }
.placeholder-body { display: grid; place-items: center; aspect-ratio: 1200 / 750; background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 12px, color-mix(in srgb, var(--line) 45%, var(--paper)) 12px, color-mix(in srgb, var(--line) 45%, var(--paper)) 24px); }
.placeholder-body span { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.phone.placeholder { border-color: var(--line); background: var(--line); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--line) 60%, var(--muted)); }
.phone.placeholder .placeholder-body { aspect-ratio: 390 / 844; border-radius: 12px; }
.phone.placeholder .placeholder-body span { font-size: 0.68rem; padding: 3px 8px; }
.ref-sub { margin-top: 56px; }

/* hero collage: one large preview on top, three equal ones below, all aligned */
.collage { margin: 0; display: grid; gap: 16px; }
.collage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collage-grid .browser { box-shadow: 0 22px 44px -26px rgba(5, 12, 24, 0.7); }
.collage-grid .c-main { grid-column: 1 / -1; }
.collage-grid .c-a .browser-bar, .collage-grid .c-b .browser-bar, .collage-grid .c-c .browser-bar { padding: 5px 8px; gap: 4px; }
.collage-grid .c-a .browser-bar span, .collage-grid .c-b .browser-bar span, .collage-grid .c-c .browser-bar span { font-size: 0.6rem; margin-left: 4px; }
.collage-grid .c-a .browser-bar i, .collage-grid .c-b .browser-bar i, .collage-grid .c-c .browser-bar i { width: 5px; height: 5px; }
.collage figcaption { font-size: 0.88rem; color: var(--muted); }
.collage figcaption b { color: var(--ink); font-weight: 600; }

/* admin screenshot carousel */
.carousel { position: relative; }
.carousel-slides img { display: block; width: 100%; height: auto; }
.carousel-slides img[hidden] { display: none; }
.carousel-arrow { position: absolute; top: calc(50% - 22px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(5, 12, 24, 0.7); backdrop-filter: blur(6px); transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.carousel-arrow.prev { left: -22px; } .carousel-arrow.next { right: -22px; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.2s, background-color 0.2s; }
.carousel-dot[aria-current="true"] { width: 22px; background: var(--accent); }
@media (max-width: 600px) { .carousel-arrow { width: 38px; height: 38px; top: calc(50% - 19px); } .carousel-arrow.prev { left: -10px; } .carousel-arrow.next { right: -10px; } }

/* case study "Az eredmény": highlighted full-width outcome panel */
.outcome { margin-top: 40px; padding: 32px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--ok-soft) 70%, var(--surface)), var(--surface) 60%); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.outcome-head .eyebrow { color: var(--ok); }
.outcome-head h3 { margin: 8px 0 0; font: 650 1.45rem/1.2 var(--display); letter-spacing: -0.01em; }
.outcome-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.outcome-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; }
.outcome-list li::before { content: "✓"; grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.outcome-list b { font-weight: 600; color: var(--ink); }
.outcome-list span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) { .outcome { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; } }
@media (max-width: 600px) { .outcome-list { grid-template-columns: minmax(0, 1fr); } }

/* sub-row with the screenshot on the right and the text on the left */
.ref-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.ref-flip > :first-child { order: 2; }
@media (max-width: 900px) { .ref-flip { grid-template-columns: minmax(0, 1fr); } .ref-flip > :first-child { order: 0; } }
.carousel .browser-bar .soon { margin-left: auto; }

/* hero headline typed like a terminal, ending in a blinking blue cursor */
.tw-typed { display: none; }
.tw.typing .tw-ch { visibility: hidden; }
.tw.typing .tw-ch.on { visibility: visible; }
.tw-cursor { display: inline-block; width: 0.16em; height: 0.92em; margin: 0 -0.22em 0 0.06em; vertical-align: -0.08em; background: var(--accent); border-radius: 1px; animation: tw-blink 1.05s steps(1) infinite; }
.tw.typing .tw-cursor { animation: none; }
@keyframes tw-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-cursor { animation: none; } }

/* hero showcase: one browser window, the works as tabs, cycling on its own */
.showcase { margin: 0; display: grid; gap: 10px; }
.showcase .browser { box-shadow: 0 30px 60px -36px rgba(10, 20, 36, 0.7); }
.showcase-tabs { gap: 4px; padding: 6px 8px 0; }
.showcase-tab { padding: 7px 12px 8px; border: 0; border-radius: 8px 8px 0 0; background: none; color: var(--muted); font: 500 0.74rem/1 var(--mono); cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.showcase-tab:hover { color: var(--ink); }
.showcase-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.showcase-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.showcase-views { position: relative; aspect-ratio: 16 / 10; background: var(--surface); }
.showcase-view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.showcase-view.on { opacity: 1; visibility: visible; }
.showcase-view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.showcase-progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.showcase-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.showcase-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--muted); }
.showcase-count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .showcase-view { transition: none; } .showcase-progress { display: none; } }
.showcase-tabs { align-items: flex-end; }
.showcase-tablist { display: flex; gap: 4px; }
.mac-dots { display: inline-flex; gap: 7px; align-self: center; margin: 0 10px 2px 6px; }
.mac-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }

/* "Hogyan kezdünk": steps on the left, only the top of the sample on the right */
.example.start { align-items: start; }
.example.start h2 { margin-top: 0; }
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: st; }
.start-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; counter-increment: st; }
.start-steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; line-height: 1; padding-top: 1px; box-sizing: border-box; font-variant-numeric: lining-nums; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.start-steps b { font-weight: 600; color: var(--ink); }
.start-steps span { color: var(--muted); font-size: 0.93rem; }
.doc-peek .paper { position: relative; display: block; aspect-ratio: 1 / 1.18; border-radius: 10px; }
.doc-peek .paper img { height: 100%; object-fit: cover; object-position: top; }
.doc-peek .paper::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 82%); }
.peek-more { position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: #16243a; color: #fff; font-size: 0.86rem; font-weight: 600; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5); }
.example.start .stack-lg > p:last-child { margin-top: 14px; }
.paper-cta { position: relative; display: block; border-radius: 10px; }

/* "Nem tudom" button inside the leads field, and its dialog */
.input-suffix { position: relative; }
.input-suffix input { width: 100%; padding-right: 130px; }
.suffix-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 650 0.82rem/1 var(--body); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(31, 78, 121, 0.6); transition: background-color 0.15s, transform 0.15s; }
.suffix-btn::before { content: "?"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 18%, transparent); font-size: 0.72rem; }
.suffix-btn:hover, .suffix-btn:focus-visible { background: var(--accent-strong); outline: none; }
.suffix-btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.info-modal { width: min(520px, calc(100vw - 32px)); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.info-modal::backdrop { background: rgba(6, 10, 18, 0.6); backdrop-filter: blur(3px); }
.info-modal h3 { margin: 10px 0 0; font: 650 1.35rem/1.25 var(--display); text-wrap: balance; }
.info-modal p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); border-color: var(--faint); }

/* info icon with the calculator formula */
.out-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.info { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; margin: -6px -4px 0 0; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(134, 177, 220, 0.14); color: var(--accent); font: 600 0.8rem/1 var(--body); cursor: help; transition: background-color 0.15s; }
.info:hover, .info:focus-visible { background: rgba(134, 177, 220, 0.24); outline: none; }
.info-tip { position: absolute; z-index: 5; top: calc(100% + 10px); right: -8px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); font: 400 0.85rem/1.45 var(--body); font-style: normal; text-align: left; display: grid; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.info:hover .info-tip, .info:focus .info-tip { opacity: 1; visibility: visible; transform: none; }
.info-tip b { font-weight: 600; }
.info-tip .formula { color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .calc-out .btn { white-space: normal; text-align: center; line-height: 1.3; } .info-tip .formula { white-space: normal; overflow-wrap: anywhere; } .out-head { flex-wrap: wrap; } .out-head > p { min-width: 0; } .info { margin-right: 0; } .info-tip { right: 0; max-width: calc(100vw - 72px); } .calc-out .big { font-size: 1.85rem; } }
.info-tip .formula.live { color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 6px; border-top: 1px solid var(--line); }

/* leads field: input, "vagy", and an outlined "Nem tudom" button */
.input-or { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.or-word { color: var(--faint); font-size: 0.84rem; }
.or-btn { height: 100%; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font: 600 0.88rem/1 var(--body); cursor: pointer; white-space: nowrap; transition: background-color 0.15s; }
.or-btn:hover, .or-btn:focus-visible { background: var(--accent-soft); outline: none; }
.or-btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 420px) { .input-or { gap: 8px; } .or-btn { padding: 0 12px; } }

/* 404 */
.nf{padding:88px 0 40px}
.nf-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.nf h1{font:650 clamp(2.3rem,4.6vw,3.8rem)/1.06 var(--display);letter-spacing:-.035em;margin:0;text-wrap:balance}
.nf .actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.nf-term{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0b1220;box-shadow:0 30px 60px -36px rgba(10,20,36,.7)}
.nf-term .browser-bar{background:#111a2b;border-bottom:1px solid #1e2a40;color:#8a97ab}
.nf-term pre{margin:0;padding:22px 24px;font:500 .9rem/1.75 ui-monospace,"SF Mono",Menlo,monospace;color:#cdd6e4;white-space:pre-wrap;word-break:break-all}
.nf-term .c{color:#86b1dc}.nf-term .u{color:#e5ebf3}.nf-term .e{color:#ef8f86;font-weight:700}.nf-term .ok{color:#6cc596}
.nf-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:64px}
.nf-links a{display:grid;gap:4px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-decoration:none;transition:border-color .2s,transform .2s}
.nf-links a:hover{border-color:var(--accent);transform:translateY(-2px)}
.nf-links b{color:var(--ink);font-weight:600}.nf-links span{color:var(--muted);font-size:.86rem}
@media (max-width:900px){.nf-grid{grid-template-columns:minmax(0,1fr)}.nf-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.nf-links{grid-template-columns:minmax(0,1fr)}}

/* ---------- Kész dizájnok ---------- */
.design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.design-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.design-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.design-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.design-shot:hover img { transform: scale(1.03); }
.design-open { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 .85rem/1 var(--body); box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); }
.design-body { display: grid; gap: 12px; align-content: start; padding: 24px; }
.design-body h3 { margin: 0; }
.design-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.design-tag { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 .8rem/1 var(--body); }
.design-dots { display: flex; gap: 6px; } .design-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.design-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.design-feats li { padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; }
.design-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.design-how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.design-how .micro { grid-column: 2; }
@media (max-width: 860px) { .design-grid, .design-how { grid-template-columns: 1fr; } .design-how .micro { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .design-shot img { transition: none; } }
.nav a { white-space: nowrap; }

/* ---------- contact form: topic tiles ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kt { max-width: 900px; }
.kt-form { display: grid; gap: 0; }
.kt-head h2 { margin: 0; }
.kt-head p { margin: 10px 0 0; font-size: 1.02rem; }
.kt-tiles { border: 0; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kt-tiles > .kt-tile { grid-column: span 2; }
.kt-tiles > .kt-tile:nth-last-child(-n+2) { grid-column: span 3; }
.kt-tile { position: relative; display: block; cursor: pointer; }
.kt-tile input { position: absolute; opacity: 0; pointer-events: none; }
.kt-in { height: 100%; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.kt-in svg { width: 28px; height: 28px; color: var(--accent); }
.kt-in b { font: 600 1rem/1.25 var(--display); color: var(--ink); }
.kt-in span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.kt-tile:hover .kt-in { border-color: var(--faint); }
.kt-tile input:checked + .kt-in { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.kt-tile input:focus-visible + .kt-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.kt-card { margin-top: 22px; display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.kt-card .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
@media (max-width: 760px) { .kt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-tiles > .kt-tile, .kt-tiles > .kt-tile:nth-last-child(-n+2) { grid-column: span 1; }
  .kt-tiles > .kt-tile:last-child { grid-column: 1 / -1; } .kt-card { padding: 26px 20px; } }

.design-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.design-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 .93rem/1 var(--body); cursor: pointer; transition: all .15s; }
.design-chip:hover { color: var(--ink); border-color: var(--faint); }
.design-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.design-card[hidden] { display: none; }

[hidden] { display: none !important; }

/* ---------- blog (/blog/, /blog/<slug>/) ---------- */
.post-col { max-width: 46rem; margin-inline: auto; }
.post-head { padding-block: 72px 44px; }
.post-head .post-col { display: grid; gap: 20px; }
.post-head .eyebrow a { text-decoration: none; }
.post-head .eyebrow a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.post-head .lede { max-width: none; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-byline b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.post-avatar { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 0.85rem/1 var(--display); letter-spacing: -0.02em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 0.9rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-body { padding-bottom: 96px; font-size: 1.06rem; line-height: 1.72; }
.post-body > p, .post-body > ul, .post-body > ol { margin: 0 0 1.05em; }
.post-body > h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.4rem, 2.3vw, 1.7rem); }
.post-body > h3 { margin: 1.7em 0 0.4em; font-size: 1.12rem; }
.post-body > h2 + h3 { margin-top: 0.8em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.45em; padding-left: 0.2em; }
.post-body li::marker { color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body .post-summary { margin: 0 0 2em; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); }
.post-summary p { margin: 0; }
.post-summary { line-height: 1.6; }
.post-summary li { margin-bottom: 0.35em; }
.post-summary p + p, .post-summary p + ul { margin-top: 0.6em; }
.post-summary ul { margin: 0; }
.post-summary .eyebrow { margin-bottom: 6px; font-weight: 600; }
.post-table { margin: 1.4em 0 1.8em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.post-table th, .post-table td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); }
.post-table tbody th { font-weight: 500; color: var(--ink); }
.post-table td { color: var(--muted); }
.post-table caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 0.88rem; color: var(--muted); }
.post-table .num { white-space: nowrap; color: var(--ink); font-weight: 600; }
.post-cta { margin-top: 56px; padding: 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.post-cta h2 { font-size: clamp(1.4rem, 2.3vw, 1.7rem); }
.post-cta p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.post-cta .actions { margin-top: 8px; }
.post-cta .micro { font-size: 0.88rem; }
.post-related { margin-top: 56px; }
.post-related h2 { font-size: 1.25rem; margin-bottom: 16px; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-related li { margin: 0; padding: 0; }
.post-related a { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color 0.2s; }
.post-related a:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.post-related b { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.post-related span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.post-related .post-rel-go { color: var(--accent); font-weight: 600; }
.blog-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.blog-item { display: grid; gap: 10px; padding-block: 32px; border-top: 1px solid var(--line); }
.blog-item:first-child { border-top: 0; padding-top: 8px; }
.blog-item h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
.blog-item h2 a { color: var(--ink); text-decoration: none; }
.blog-item h2 a:hover { color: var(--accent); }
.blog-item .muted { max-width: 62ch; }
.blog-end { padding-top: 0; }
.blog-end .post-cta { margin-top: 0; }
.blog-end .post-col { margin-inline: 0; }
@media (max-width: 560px) {
  .post-head { padding-block: 44px 32px; }
  .post-body { font-size: 1.02rem; padding-bottom: 64px; }
  .post-body .post-summary { padding: 18px; }
  .post-cta { padding: 24px 20px; margin-top: 44px; }
  .post-cta .btn { width: 100%; white-space: normal; text-align: center; }
  .post-related a { padding: 18px; }
  .post-table table { font-size: 0.86rem; }
  .post-table th, .post-table td { padding: 10px 8px 10px 0; }
  .post-table th:last-child, .post-table td:last-child { padding-right: 0; }
}
.post-cta p.eyebrow { color: var(--accent); font-size: 0.95rem; }
/* 7 nav items (with Blog): keep the header on one line just above the mobile breakpoint */
@media (min-width: 1001px) and (max-width: 1180px) { .brand-name { white-space: nowrap; } .site-header .wrap { gap: 14px; } .nav { gap: 13px; font-size: 0.9rem; } }

/* price line under the service checklists (2026-10-24) */
.price-line { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft, #eef3fb); color: var(--ink); font-size: 1rem; line-height: 1.55; }
.price-line b { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.price-line a { white-space: nowrap; }

/* blog list as cards with cover images (2026-10-25) */
.blog-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.blog-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-card:hover, .blog-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 24px 48px -32px rgba(16, 34, 58, .45); }
.blog-card img, .bc-noimg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.bc-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 22px; }
.bc-body .post-meta { margin: 0; }
.bc-body h2 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.22; }
.blog-card:hover h2 { color: var(--accent); }
.bc-lede { color: var(--muted); font-size: .98rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bc-body .link-arrow { margin-top: 4px; }
.post-cover { margin: 28px auto 0; max-width: 980px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .blog-card { transition: none; } .blog-card:hover { transform: none; } }

/* profile photo (2026-10-25) */
img.post-avatar { object-fit: cover; border-radius: 50%; padding: 0; background: var(--accent-soft); }
.me-card { display: flex; align-items: center; gap: 16px; }
.me-card img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(16, 34, 58, .45); }
.me-card b { display: block; font: 600 1.15rem/1.3 var(--display); color: var(--ink); }
.me-card span { display: block; color: var(--muted); font-size: .97rem; line-height: 1.45; }
.me-sm { margin-bottom: 14px; }
.me-sm img { width: 56px; height: 56px; border-width: 2px; }
.me-sm b { font-size: 1rem; }
