/* Microsite Factory (sites.exarlabs.com) — v3.1 design
 *
 * Direction (impeccable /shape brief, confirmed 2026-05-20):
 *   Committed colour strategy — the LOGO NAVY carries the surface (brand
 *   consistency with the ExarLabs shield, ~#002C54).
 *   Warm clay/amber accent — deliberately NOT navy+gold (the finance/heraldic
 *   cliché the v1 fell into); navy + warm clay is the distinctive, human pairing.
 *   Voice: "rendezett szakember" — ordered, trustworthy professional.
 *   Type: Bricolage Grotesque (display) + Hanken Grotesk (body).
 *   Anchors: Basecamp (plain-spoken order), Wise (committed colour), Stripe (spacing).
 * Tokens inline here; lift to themes/exarlabs/ later via `impeccable extract`.
 */

:root {
  /* Brand — logo navy (committed) */
  --navy-900: oklch(0.20 0.05 256);
  --navy-800: oklch(0.26 0.07 256);
  --navy-700: oklch(0.32 0.09 256);    /* THE logo navy — primary brand */
  --navy-600: oklch(0.40 0.10 256);
  --navy-300: oklch(0.72 0.07 256);
  --navy-100: oklch(0.94 0.025 256);   /* light navy tint surface */

  /* Accent — warm clay / amber (CTAs + live calculator highlights) */
  --clay-600: oklch(0.62 0.13 50);
  --clay-500: oklch(0.71 0.135 56);
  --clay-400: oklch(0.80 0.115 60);
  --clay-100: oklch(0.95 0.03 66);

  /* Neutrals, faintly tinted toward the navy hue */
  --bg:          oklch(0.987 0.004 250);
  --surface:     oklch(0.965 0.006 250);
  --surface-2:   oklch(0.935 0.009 250);
  --ink:         oklch(0.24 0.03 256);
  --ink-muted:   oklch(0.44 0.03 256);
  --line:        oklch(0.90 0.008 250);
  --line-strong: oklch(0.83 0.012 250);
  --on-navy:        oklch(0.97 0.01 250);
  --on-navy-muted:  oklch(0.84 0.035 256);

  /* zones (semantic, not brand) */
  --zone-green:  oklch(0.74 0.14 155);
  --zone-yellow: oklch(0.80 0.115 60);
  --zone-red:    oklch(0.70 0.16 28);

  /* type */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 68rem;
  --maxw-narrow: 44rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 180ms var(--ease);

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px oklch(0.20 0.05 256 / 0.06);
  --shadow: 0 6px 24px oklch(0.20 0.05 256 / 0.10);
  --shadow-lg: 0 18px 48px oklch(0.20 0.05 256 / 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.07; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.6rem; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--navy-700); text-underline-offset: 2px; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--maxw-narrow); }

.skip-to-content { position: absolute; left: -9999px; top: 0; background: var(--navy-700); color: var(--on-navy); padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0; }
.skip-to-content:focus { left: 0; }

:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 2px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay-500); color: var(--navy-900); border-color: var(--clay-500); }
.btn-primary:hover { background: var(--clay-400); border-color: var(--clay-400); }
.btn-secondary { background: transparent; color: var(--navy-700); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy-700); background: var(--navy-100); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: oklch(0.987 0.004 250 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.logo-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.logo-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.parent-attribution { font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; margin-left: 3.4rem; margin-top: 0.05rem; }
.parent-attribution a { color: var(--ink-muted); }
.header-contact { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--navy-700); padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); transition: background var(--t), border-color var(--t); }
.header-contact:hover { background: var(--navy-100); border-color: var(--navy-700); }
.header-end { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: 0.1rem; font-size: 0.82rem; font-weight: 600; }
.lang-switch a { color: var(--ink-muted); text-decoration: none; padding: 0.2rem 0.42rem; border-radius: 6px; line-height: 1.1; }
.lang-switch a:hover { color: var(--navy-700); }
.lang-switch a[aria-current] { color: var(--navy-700); background: var(--navy-100); }
.site-nav { display: none; gap: 1.6rem; }
.site-nav a { font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--navy-700); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- Section rhythm (colour bands) ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.problem, .offer, .fit { background: var(--bg); }
.process { background: var(--surface); }
.faq { background: var(--bg); }

/* ---------- Hero (committed navy band) ---------- */
.hero { background: var(--navy-700); color: var(--on-navy); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero h1 { color: var(--on-navy); max-width: 16ch; }
.hero-content { max-width: 52rem; }
.hero-content > * { animation: fade-up 0.7s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.06s; }
.hero-content > *:nth-child(3) { animation-delay: 0.12s; }
.hero-content > *:nth-child(4) { animation-delay: 0.18s; }
.hero-content > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-navy-muted); margin-bottom: 1.6rem; }
.hero-sub strong { color: var(--on-navy); white-space: nowrap; }

.price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
/* price cards — sizing from accepted impeccable live variant 2 @ scale 1.15 (price-dominant) */
.price-path { border: 1px solid oklch(0.97 0.01 250 / 0.25); border-radius: var(--radius); padding: 1.5rem 1.6rem; background: oklch(0.97 0.01 250 / 0.07); }
.price-path-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-navy-muted); margin-bottom: 0.5rem; font-weight: 600; }
.price-path-value { font-size: 1.35rem; line-height: 1.4; color: var(--on-navy); }
.price-path-value strong { color: var(--clay-400); font-size: 1.08em; }

.hero-trust { font-size: 0.95rem; color: var(--on-navy-muted); border-left: 2px solid var(--clay-500); padding-left: 0.85rem; max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.6rem; }
.hero .btn-secondary { color: var(--on-navy); border-color: oklch(0.97 0.01 250 / 0.4); }
.hero .btn-secondary:hover { background: oklch(0.97 0.01 250 / 0.1); border-color: var(--on-navy); }
.hero-secondary-link { color: var(--on-navy); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--clay-500); padding-bottom: 1px; }

/* ---------- Problem + before/after ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 1.5rem; }
.problem-list { padding: 0; margin: 0; list-style: none; }
.problem-list li { padding: 0.7rem 0 0.7rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--clay-500); }
.problem-transition { margin-top: 2rem; font-size: 1.15rem; font-weight: 500; max-width: 60ch; }

.proof-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.proof-card figcaption { padding: 1rem 1.1rem; font-size: 0.92rem; color: var(--ink-muted); }
.proof-card figcaption a { font-weight: 600; }
.ba-todo { display: block; font-size: 0.76rem; font-style: italic; margin: 0.3rem 0; opacity: 0.8; }

/* before/after slider */
.ba-slider { position: relative; aspect-ratio: 16/10; overflow: hidden; user-select: none; touch-action: none; }
.ba-pane { position: absolute; inset: 0; }
.ba-before { background: var(--surface-2); }
.ba-after  { background: var(--navy-700); clip-path: inset(0 0 0 50%); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ba-tag { position: absolute; z-index: 2; top: 0.8rem; left: 0.8rem; font-weight: 600; font-size: 0.78rem; padding: 0.28rem 0.75rem; border-radius: 999px; background: oklch(0.20 0.05 256 / 0.82); color: var(--on-navy); backdrop-filter: blur(2px); }
.ba-tag-after { left: auto; right: 0.8rem; background: var(--clay-500); color: var(--navy-900); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--bg); transform: translateX(-1px); box-shadow: 0 0 0 1px oklch(0.20 0.05 256 / 0.12); pointer-events: none; }
.ba-handle-grip { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); display: grid; place-items: center; }
.ba-handle-grip::before { content: "‹ ›"; font-size: 0.95rem; color: var(--navy-700); letter-spacing: -1px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Calculator (navy-tinted band, deep-navy result) ---------- */
.calculator { background: var(--navy-100); }
.calc-sub { color: var(--ink-muted); max-width: 46rem; margin-bottom: 1.5rem; font-size: 1.1rem; }
.base-summary { padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--navy-700); border-radius: var(--radius); font-size: 0.92rem; line-height: 1.55; }
/* configurator: distinct section cards, clean title-only headers */
.calc-form { display: flex; flex-direction: column; gap: 1.4rem; background: transparent; border: none; padding: 0; box-shadow: none; }
.calc-group { display: flow-root; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 1.6rem 1.7rem; margin: 0; box-shadow: var(--shadow-sm); }
/* float trick: keep the legend INSIDE the card (a bare legend ignores fieldset padding-top) */
.calc-group legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; float: left; width: 100%; padding: 0; margin: 0 0 1.1rem; }
.calc-group legend + * { clear: both; }
.legend-note { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--ink-muted); letter-spacing: 0; }
.group-note { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 0.7rem; }
.calc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.5rem; }
.calc-options label { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.calc-options input { margin-top: 0.28rem; accent-color: var(--navy-700); }
.calc-group-complex { background: oklch(0.975 0.015 30); border: 1px solid oklch(0.88 0.04 30); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; margin: 0; }

.page-slider { margin-bottom: 0.2rem; }
.page-slider label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.page-slider output { color: var(--navy-700); font-weight: 700; }
.page-slider input[type="range"] { width: 100%; accent-color: var(--navy-700); }
.slider-note { font-size: 0.82rem; color: var(--ink-muted); margin: 0.5rem 0 0; }

.calc-output { position: sticky; bottom: 0.75rem; margin-top: 1.5rem; padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--navy-800); color: var(--on-navy); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(0.8rem); pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.calc-output.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.calc-output-zone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; margin-bottom: 0.7rem; background: oklch(0.97 0.01 250 / 0.14); color: var(--on-navy); }
.calc-output-zone .zone-icon { font-size: 0.7rem; }
.calc-output-zone[data-zone="green"]  .zone-icon { color: var(--zone-green); }
.calc-output-zone[data-zone="yellow"] .zone-icon { color: var(--zone-yellow); }
.calc-output-zone[data-zone="red"]    .zone-icon { color: var(--zone-red); }
.calc-output-price { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0.2rem 0; letter-spacing: -0.02em; }
.calc-output-price strong { color: var(--clay-400); }
.calc-output-setup, .calc-output-domain { font-size: 0.88rem; color: var(--on-navy-muted); margin: 0.2rem 0; }
.calc-estimate-note { font-size: 0.82rem; color: var(--clay-400); margin: 0.5rem 0; font-weight: 500; }
.calc-disclaimer { font-size: 0.8rem; color: var(--on-navy-muted); margin-top: 0.6rem; font-style: italic; }
.calc-redbox { margin-top: 1rem; padding: 1.1rem; border-radius: var(--radius); background: oklch(0.97 0.01 250 / 0.1); border: 1px solid oklch(0.97 0.01 250 / 0.2); }
.calc-redbox p { color: var(--on-navy); font-size: 0.92rem; }
.calc-redbox .btn-secondary { color: var(--on-navy); border-color: oklch(0.97 0.01 250 / 0.4); margin-top: 0.4rem; }

.terms-block { margin-top: 2rem; padding: 1.5rem 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.terms-block h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.terms-list { margin: 0; padding-left: 1.2rem; }
.terms-list li { margin-bottom: 0.55rem; font-size: 0.95rem; }

.lead-form { margin-top: 2rem; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.lead-form h3 { font-size: 1.25rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.1rem 0; }
.lead-form label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; gap: 0.35rem; }
.lead-form input { padding: 0.7rem 0.8rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: var(--bg); transition: border-color var(--t); }
.lead-form input:focus { border-color: var(--navy-700); outline: none; }
.lead-wide { grid-column: 1 / -1; }
.lead-note { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.8rem; }

/* ---------- Offer ---------- */
.offer-sub { color: var(--ink-muted); margin-bottom: 1.6rem; font-size: 1.1rem; }
.offer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.offer-list { padding: 0; margin: 0; list-style: none; }
.offer-list li { padding: 0.6rem 0 0.6rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.offer-list li::before { content: "✓"; position: absolute; left: 0; top: 0.55rem; color: var(--navy-700); font-weight: 700; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--navy-100); }
.compare-card h3 { margin-bottom: 0.8rem; }
.compare-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-strong); margin: 0; font-size: 0.95rem; }
.compare-ours { color: var(--navy-700); font-weight: 600; }
.compare-ours strong { color: var(--navy-800); }
.compare-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.7rem; }
.offer-cap { margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: var(--navy-100); border-radius: var(--radius); font-size: 0.95rem; border-left: 3px solid var(--navy-700); }

/* ---------- Process ---------- */
.process-steps { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.process-steps li { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--bg); transition: transform var(--t), border-color var(--t); }
.process-steps li:hover { transform: translateY(-2px); border-color: var(--navy-300); }
.step-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--navy-700); color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.7rem; }
.process-timeline { font-size: 1.1rem; margin-top: 1.2rem; }
.process-timeline strong { color: var(--navy-700); }
.process-guide { font-weight: 600; font-size: 1.15rem; font-family: var(--font-display); }

/* ---------- Fit ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.fit-col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--bg); }
.fit-yes { border-top: 4px solid var(--navy-700); }
.fit-no { border-top: 4px solid var(--line-strong); }
.fit-col h3 { margin-bottom: 0.7rem; }
.fit-col ul { padding-left: 1.2rem; margin: 0; }
.fit-col li { margin-bottom: 0.5rem; }
.fit-note { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.8rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy-700); font-weight: 700; transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq p { color: var(--ink-muted); margin: 0; max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 1.8rem; background: var(--navy-900); color: var(--on-navy-muted); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--on-navy); }
.footer-tag { margin: 0.6rem 0 0.8rem; max-width: 38ch; font-size: 0.92rem; }
.footer-attr { font-size: 0.9rem; margin: 0; }
.footer-attr a { color: var(--on-navy); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--on-navy); margin: 0 0 0.7rem; }
.footer-col p, .footer-col a { display: block; font-size: 0.92rem; margin: 0 0 0.45rem; color: var(--on-navy-muted); text-decoration: none; }
.footer-col a:hover { color: var(--on-navy); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid oklch(0.97 0.01 250 / 0.12); font-size: 0.85rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; position: fixed; bottom: 1rem; right: 1rem; z-index: 60; background: var(--clay-500); color: var(--navy-900); padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .price-split, .problem-grid, .offer-grid, .fit-grid,
  .calc-options, .lead-grid, .process-steps, .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-content > * { animation: none; }
}
