/* ============================================================
   SERVERITEENUSED.EE — V2 "SIGNAL"
   Dark navy hero/footer frames light content. One accent.
   Signature: 3D exploded full-stack in hero.
   Fonts self-hosted: Space Grotesk / Inter / JetBrains Mono.
   ============================================================ */

/* ---- FONTS ------------------------------------------------ */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---- TOKENS ----------------------------------------------- */
:root {
  /* dark world */
  --d-bg: #060B14;
  --d-bg2: #0B1424;
  --d-surface: rgba(255, 255, 255, 0.04);
  --d-surface-2: rgba(255, 255, 255, 0.07);
  --d-line: rgba(255, 255, 255, 0.09);
  --d-line-strong: rgba(255, 255, 255, 0.16);
  --d-ink: #F2F5FA;
  --d-ink-soft: #93A1B7;

  /* light world */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #0B1424;
  --ink-soft: #414D61;
  --ink-faint: #5D6B82;
  --line: #E2E7EF;
  --line-strong: #C6CFDC;

  /* accent */
  --accent: #FF5C1A;          /* heledatel pindadel ainult suurte/dekoratiivsete elementide jaoks */
  --accent-strong: #C43A00;   /* tekstitase heledal taustal (WCAG AA) */
  --accent-hover: #FF7A47;
  --accent-ink: #FFF8F4;
  --on-accent: #1D0E02;       /* tekst oranžil nupul (WCAG AA) */
  --accent-soft: rgba(255, 92, 26, 0.09);
  --accent-glow: rgba(255, 92, 26, 0.35);
  --ok: #37C978;              /* tumedal taustal */
  --ok-strong: #178047;       /* heledal taustal */

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(11, 20, 36, 0.06), 0 12px 32px -12px rgba(11, 20, 36, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(11, 20, 36, 0.06), 0 24px 48px -16px rgba(11, 20, 36, 0.28);

  --t-fast: 160ms;
  --t-base: 300ms;
  --t-slow: 650ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- BASE ------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .cta-block :focus-visible,
.site-footer :focus-visible, .site-header :focus-visible, .mobile-nav :focus-visible,
.trust-bar :focus-visible { outline-color: var(--accent); }

/* ankrud ei tohi sticky päise alla jääda */
[id] { scroll-margin-top: 92px; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* section eyebrow as URL path — /teenused, /protsess … */
.path {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}
.path::before { content: ''; }

/* ---- REVEAL (hidden state only when JS is present) ----------
   Fallback-animatsioon avab sisu ka siis, kui main.v2.js ei lae;
   JS eemaldab animatsiooni (style.animation='none') kui IO tootab. */
@keyframes reveal-auto { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); animation: reveal-auto var(--t-slow) var(--ease) 2.2s forwards; }
.js .reveal.in { opacity: 1; transform: none; }
/* tilt ei tohi parida reveal'i transform-transitionit */
.js .reveal.is-tilting { transition: opacity var(--t-slow) var(--ease); }

/* ---- BUTTONS ----------------------------------------------- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-base) var(--ease), transform var(--t-fast) ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 32px -8px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow { display: inline-flex; width: 1.05em; height: 1.05em; transition: transform var(--t-fast) ease; }
.btn-primary .arrow svg { width: 100%; height: 100%; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost { background: transparent; color: var(--d-ink); border-color: var(--d-line-strong); }
.btn-ghost:hover { border-color: var(--d-ink); }

/* ---- HEADER (dark glass — every page opens dark) ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 11, 20, 0.9);
  background: color-mix(in srgb, var(--d-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--d-line);
  color: var(--d-ink);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--d-line-strong), 0 4px 14px -6px rgba(0, 0, 0, 0.6);
}
.brand-mark img { display: block; width: 38px; height: 38px; border-radius: 50%; }
.nav-center { display: flex; justify-content: center; gap: 0.25rem; }
.nav-center a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--d-ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav-center a:hover { color: var(--d-ink); }
.nav-center a[aria-current="page"] { color: var(--d-ink); background: var(--d-surface-2); }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; }
.nav-end .btn-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--d-ink);
  border: 1px solid var(--d-line-strong);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease;
}
.nav-end .btn-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--d-line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.mobile-toggle span { display: block; height: 2px; width: 100%; background: var(--d-ink); border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-fast) ease; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 55;
  background: rgba(6, 11, 20, 0.97);
  background: color-mix(in srgb, var(--d-bg) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--d-line);
  padding: 1rem var(--gutter) 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--d-ink); font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--d-line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---- HERO --------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(255, 92, 26, 0.13), transparent 60%),
    radial-gradient(900px 600px at 12% 88%, rgba(38, 92, 179, 0.16), transparent 62%),
    linear-gradient(180deg, var(--d-bg2), var(--d-bg));
  color: var(--d-ink);
  overflow: hidden;
}
/* blueprint dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 80% at 55% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 55% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3.5rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  min-height: calc(84vh - 72px);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--d-ink-soft);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .accent { color: var(--accent); }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--d-ink-soft);
  margin-bottom: 2.1rem;
}
.hero-lede strong { color: var(--d-ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--d-ink-soft);
}
.hero-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(55, 201, 120, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(55, 201, 120, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(55, 201, 120, 0.05); }
}

/* ---- SIGNATURE: exploded full-stack ------------------------- */
.stack-scene {
  position: relative;
  perspective: 1300px;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 440px;
}
.stack {
  position: relative;
  width: min(390px, 82%);
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotate(-38deg);
  transition: transform var(--t-slow) var(--ease);
}
.stack-layer {
  position: relative;
  height: 120px;
  margin-top: -56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 34px 54px -26px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  display: flex;
  align-items: flex-start;
  padding: 0.8rem 1rem;
}
.stack-layer:first-child { margin-top: 0; }
.stack-layer .tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--d-ink);
  opacity: 0.85;
}
.stack-layer .tag::before {
  content: '●';
  color: var(--ok);
  font-size: 0.6rem;
  margin-right: 0.5rem;
  vertical-align: 2px;
}
.stack-layer.is-top { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(135deg, rgba(255, 92, 26, 0.30), rgba(255, 92, 26, 0.08)); }
.stack-layer.is-top .tag { color: var(--accent-ink); opacity: 1; }
.stack-layer.is-top .tag::before { color: var(--accent); }
/* elevations */
.stack-layer:nth-child(1) { transform: translateZ(150px); }
.stack-layer:nth-child(2) { transform: translateZ(100px); }
.stack-layer:nth-child(3) { transform: translateZ(50px); }
.stack-layer:nth-child(4) { transform: translateZ(0); }
/* idle float */
@keyframes stack-float {
  0%, 100% { transform: rotateX(52deg) rotate(-38deg) translateZ(0); }
  50% { transform: rotateX(52deg) rotate(-38deg) translateZ(14px); }
}
.stack.floating { animation: stack-float 7s ease-in-out infinite; }
.stack-glow {
  position: absolute;
  inset: auto;
  width: 76%;
  height: 42%;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(18px);
  opacity: 0.65;
  pointer-events: none;
}

/* ---- TRUST BAR ---------------------------------------------- */
.trust-bar { background: var(--d-bg); border-top: 1px solid var(--d-line); }
.trust-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1.8rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.trust-item {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--d-ink-soft);
  white-space: nowrap;
}
.trust-item .ok { color: var(--ok); }

/* ---- SECTIONS ------------------------------------------------ */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; margin-top: 0.6rem; }
.section-title em { font-style: normal; color: var(--accent-strong); }
.section-aside { max-width: 22rem; font-size: 0.95rem; color: var(--ink-faint); }
.section-aside a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color var(--t-fast) ease; }
.section-aside a:hover { border-color: var(--accent-strong); }

/* ---- SERVICE CARDS (avaleht) --------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 1.1rem;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) ease;
  will-change: transform;
}
.svc-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.svc-card h3 { font-size: 1.28rem; }
.svc-card .svc-desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; flex-grow: 1; }
.svc-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  width: fit-content;
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-top: 0.35rem;
}
.svc-more svg { width: 1em; height: 1em; transition: transform var(--t-fast) ease; }
.svc-card:hover .svc-more svg { transform: translateX(3px); }

/* ---- PROCESS (real sequence → numbered) ----------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-strong);
  display: block;
  margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }

/* ---- WORK CARDS ------------------------------------------------ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) ease;
  will-change: transform;
}
.work-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.work-thumb { aspect-ratio: 16 / 10; background: linear-gradient(145deg, #0B1424, #1A2436); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-slow) var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem 0.35rem; }
.work-title { font-size: 1.15rem; }
.work-tags { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); }
.work-desc { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.work-all { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---- WHY GRID --------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.1rem;
}
.why-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.why-cell h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.why-cell h3 em { font-style: normal; color: var(--accent-strong); }
.why-cell p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }
.why-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.why-icon svg { width: 20px; height: 20px; }

/* ---- AREAS ------------------------------------------------------- */
.areas-flow { display: flex; flex-wrap: wrap; gap: 0.5rem 0.4rem; align-items: baseline; max-width: 56rem; }
.areas-flow .city {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  color: var(--ink-soft);
  transition: color var(--t-fast) ease;
}
.areas-flow .city:hover { color: var(--accent-strong); }
.areas-flow .sep { color: var(--line-strong); }

/* ---- FAQ ----------------------------------------------------------- */
.faq { max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  transition: color var(--t-fast) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-q { flex: 1; }
.faq-plus { position: relative; flex: none; width: 14px; height: 14px; align-self: center; }
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink-faint);
  transition: transform var(--t-base) var(--ease), background var(--t-fast) ease;
}
.faq-plus::before { width: 14px; height: 2px; }
.faq-plus::after { width: 2px; height: 14px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--accent-strong); }
.faq-body { padding: 0 0.25rem 1.3rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; max-width: 46rem; }
.faq-body a { color: var(--accent-strong); border-bottom: 1px solid currentColor; }
.faq-body strong { color: var(--ink); }

/* ---- CTA BLOCK (dark) ----------------------------------------------- */
.cta-block {
  position: relative;
  background:
    radial-gradient(800px 380px at 50% 0%, rgba(255, 92, 26, 0.14), transparent 65%),
    linear-gradient(180deg, var(--d-bg2), var(--d-bg));
  color: var(--d-ink);
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 20%, #000 20%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.cta-block h2 { position: relative; font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 1rem; }
.cta-block h2 em { font-style: normal; color: var(--accent); }
.cta-block p { position: relative; color: var(--d-ink-soft); max-width: 32rem; margin: 0 auto 2rem; }
.cta-block .btn-primary { position: relative; }

/* ---- PAGE HERO (alalehed, kompaktne tume päis) ------------------------ */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 82% 10%, rgba(255, 92, 26, 0.11), transparent 60%),
    linear-gradient(180deg, var(--d-bg2), var(--d-bg));
  color: var(--d-ink);
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 100% at 30% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 30% 0%, #000 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}
.page-hero .path { position: relative; display: block; margin-bottom: 1rem; }
.page-hero h1 { position: relative; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero-lede { position: relative; max-width: 36rem; color: var(--d-ink-soft); font-size: 1.05rem; line-height: 1.65; }
.page-hero-lede strong { color: var(--d-ink); }

/* ---- SERVICE BLOCKS (teenused leht) ------------------------------------ */
.service-blocks { display: grid; gap: 1.25rem; }
.service-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) ease;
  will-change: transform;
}
.service-block:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.service-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.service-block-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.7rem; }
.service-block-desc { color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.6rem; max-width: 30rem; }
.service-block-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.service-block-price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}
.service-block-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; align-content: center; }
.service-block-features li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.service-block-features li::before {
  content: '✓';
  font-family: var(--font-mono);
  color: var(--ok-strong);
  flex: none;
}

/* ---- COMPARE TABLE ------------------------------------------------------ */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.95rem;
}
.compare-table th, .compare-table td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: var(--bg); }
.compare-table thead th small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; color: var(--accent-strong); margin-top: 0.2rem; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td.yes { color: var(--ok-strong); font-weight: 600; }
.compare-table td.no { color: var(--ink-faint); }
.compare-table td:nth-child(2), .compare-table td:nth-child(3),
.compare-table th:nth-child(2), .compare-table th:nth-child(3) { text-align: center; }

/* ---- CONTACT ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.05rem;
}
.contact-info h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.contact-item { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-soft); font-size: 0.97rem; }
.contact-item svg { width: 19px; height: 19px; color: var(--accent-strong); flex: none; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.15rem;
}
.form-group, .captcha-row { display: grid; gap: 0.45rem; }
.form-group label, .captcha-row label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form-group input, .form-group textarea, .captcha-row input {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.form-group input:focus, .form-group textarea:focus, .captcha-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.error-msg { display: none; color: #D73A3A; font-size: 0.83rem; }
.has-error input, .has-error textarea { border-color: #D73A3A; }
.has-error .error-msg { display: block; }
.form-alert {
  background: #FDF0EE;
  border: 1px solid #F0C6C0;
  color: #A32C1D;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
}
.form-note { font-size: 0.83rem; color: var(--ink-faint); }
.form-note a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.form-note a:hover { color: var(--accent-strong); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- PROSE (privaatsus jm) ------------------------------------------------ */
.prose {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.prose h2 { font-size: 1.4rem; margin: 1.8rem 0 0.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.65; }
.prose p { margin-bottom: 0.9rem; }
.prose a { color: var(--accent-strong); border-bottom: 1px solid currentColor; }
.prose ul { padding-left: 1.2rem; margin: 0.6rem 0 1rem; }

/* ---- FOOTER (dark) --------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--d-bg), #04080F);
  color: var(--d-ink);
  border-top: 1px solid var(--d-line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-statement {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-statement em { font-style: normal; color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--d-ink-soft);
  margin-bottom: 0.9rem;
}
.footer-grid a, .footer-grid p { display: block; color: var(--d-ink); font-size: 0.95rem; line-height: 1.9; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .muted { color: var(--d-ink-soft); font-size: 0.86rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--d-line);
  padding-block: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--d-ink-soft);
}

/* ---- RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stack-scene { min-height: 340px; order: -1; margin-top: 1rem; }
  .stack { width: min(300px, 70%); }
}
@media (max-width: 900px) {
  .nav-center, .nav-end .btn-cta { display: none; }
  .mobile-toggle { display: flex; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .service-block-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stack-scene { min-height: 280px; }
  .stack { width: min(250px, 76%); }
  .stack-layer { height: 88px; margin-top: -40px; }
  .hero .wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---- REDUCED MOTION ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .stack.floating { animation: none; }
  .hero-status .dot { animation: none; }
}
