/* ============================================================
   erkuns — styles (SKEEM Rev A)
   Üle võetud mockupist 1:1 (sinna rakendatud 2026-07-28);
   SKEEM-overrides on faili lõpus. Reeglid: raadius 0, varje ei
   ole (jooned, mitte blur), üks sinine #0047C7, 22px joonestik.
   ============================================================ */

/* IBM Plex Sans, selbst gehostet — SKEEM: die Prosa-Stimme (Archivo ersetzt) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-sans-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-sans-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-sans-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono, selbst gehostet — die Stimme der Dokumente */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-mono-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-mono-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* SKEEM tokens (visuaalsüsteem Rev A, sheet 04) */
  --desk: #ffffff;          /* paper — page ground */
  --sheet: #ffffff;         /* paper */
  --sheet-dim: #f7f8fa;     /* ink-050 zebra */
  --ink: #101418;           /* ink-900 body */
  --ink-soft: #4a5158;      /* ink-500 secondary */
  --ink-faint: #626b75;     /* ink-300 rules + UI */
  --rule: #c9cfd6;          /* ink-200 decorative hairline */
  --edge: #78818b;          /* ink-300 — meaningful borders */
  --grid: #edeff2;          /* ink-100 page grid */
  --blue: #0047c7;          /* blue-500 — the path, the action */
  --blue-deep: #002e82;     /* blue-700 hover */
  --blue-wash: #eaf0fc;     /* blue-100 callout wash */
  --red: #d0342c;           /* red-600 annotation only */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Nur fuer die Scroll-Reveals: --ease-out ist ein harter Ease-out, der
     fast die ganze Deckkraft sofort aendert und den Rest kriechen laesst.
     Bei 0.75s ist dieser Schwanz lang genug, dass mehrere Frames gleich
     aussehen und es stockt wirkt, obwohl kein Frame faellt. Diese Kurve
     verteilt die Aenderung gleichmaessig ueber die Dauer. */
  --ease-reveal: cubic-bezier(0.4, 0, 0.2, 1);
  /* elevation is a rule, never a blur: the "shadow" is a 1px ink-300 ring */
  --sheet-shadow: 0 0 0 1px #78818b;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--blue-wash); color: var(--ink); }

img, svg, canvas { max-width: 100%; display: block; }

/* Display-Stimme: Plex Sans 600 — SKEEM: alle Headings 600, nie schwerer */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.018em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Akzent = Kuli-Unterstreichung */
.accent {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M3 6.5 C 25 2.5, 48 8, 70 5 S 105 6.5, 117 3.5' fill='none' stroke='%232244cc' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.13em;
  padding-bottom: 0.14em;
}

/* ---------- Stempel (Signatur-Element, sparsam) ---------- */

.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 2.5px solid currentColor;
  outline: 1.5px solid currentColor;
  outline-offset: 2.5px;
  padding: 5px 13px;
  transform: rotate(-5deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
}

/* ---------- eyebrow / section titles ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.08;
  max-width: 26ch;
  text-wrap: balance;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--sheet);
}

.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: var(--sheet);
  border-bottom: 1px solid var(--edge);
  transition: padding 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.site-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 16px -10px rgba(23, 23, 27, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  margin-right: auto;
}

.brand-mark { width: 24px; height: 24px; }

.brand-name {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav { display: flex; gap: 26px; }

.main-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--blue); }

/* Mobiilimenüü CTA ja nupp: töölaual peidus, kuvatakse ≤940px reeglites.
   Värv kordub, sest .main-nav a võidab .btn-primary spetsiifilisuse */
.main-nav .nav-cta { display: none; color: #fff; }
.main-nav .nav-cta:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---------- language switch ---------- */

.lang-switch {
  display: flex;
  border: 1px solid var(--edge);
  border-radius: 2px;
  overflow: hidden;
  background: var(--sheet);
}

.lang-switch a {
  display: block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  padding: 6px 10px;
  transition: color 0.15s, background-color 0.15s;
}
.lang-switch a + a { border-left: 1px solid var(--edge); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(32px, 5vh, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-eyebrow { margin-bottom: 24px; }

.hero-title {
  font-size: clamp(31px, 4.9vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }

.hero-sub {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* --- Signatur: Arve → kanne → tempel --- */

.hero-artifact {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 440px;
  justify-self: end;
  width: 100%;
}

.ha-doc {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--edge);
  box-shadow: var(--sheet-shadow);
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-soft);
  transform: none; /* SKEEM: nie rotieren */
}

.ha-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.ha-doc-head span { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.04em; }

.ha-field {
  padding: 1px 4px;
  margin: -1px -4px;
  animation: ha-scan 0.5s var(--ease-out) both;
  animation-delay: calc(1s + var(--s) * 0.4s);
}
@keyframes ha-scan {
  from { background: transparent; color: inherit; }
  to { background: var(--blue-wash); color: var(--blue-deep); }
}

.ha-line.dim { color: var(--ink-faint); font-size: 11.5px; }

.ha-stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  animation: ha-stamp-in 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  animation-delay: 3s;
  /* kasvab oma alumisest paremast nurgast: suurendatud tempel ei ulatu telefonis ekraanist välja (2026-11-26) */
  transform-origin: 100% 100%;
}
@keyframes ha-stamp-in {
  from { transform: scale(1.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ha-stamp.stamp { position: absolute; }

.ha-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  background: #fff;
  border: 1px solid var(--edge);
  box-shadow: var(--sheet-shadow);
  font-family: var(--font-mono);
  font-size: 12px;
  animation: ha-rise 0.5s var(--ease-out) both;
  animation-delay: 2.4s;
}
@keyframes ha-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ha-cell {
  padding: 9px 12px;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ha-cell:first-child {
  border-left: 0;
  background: var(--sheet-dim);
  color: var(--ink-faint);
}
.ha-cell.hc-ok { color: var(--blue); font-weight: 600; }

.ha-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: right;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.hero-stats li { display: grid; gap: 4px; }
.hero-stats strong {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- tools ---------- */

.tools-strip {
  padding: 26px 0 40px;
}

.tools-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--sheet);
  border: 1px solid var(--edge);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Sektionen = Papierbögen ---------- */

.section {
  padding: 14px 0;
}
.section:last-of-type { padding-bottom: clamp(40px, 6vw, 72px); }

.section > .container {
  background: var(--sheet);
  border: 1px solid var(--edge);
  box-shadow: var(--sheet-shadow);
  padding: clamp(36px, 5vw, 72px);
}

/* ---------- problem → lösung ---------- */

.problem-rows {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
}

.problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.problem-row:first-child { border-top: 1px solid var(--rule); }

.pain, .fix {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
}
.pain p { color: var(--ink-faint); }
.fix p { color: var(--ink); font-weight: 550; }

.mark {
  font-family: var(--font-mono);
  font-size: 14px;
  flex: 0 0 auto;
  min-width: 2ch; /* "x" ja "->" sama laiad, et tekst algaks mõlemas reas samast kohast (2026-11-26) */
}
.mark-x { color: var(--red); }
.mark-arrow { color: var(--blue); }

/* ---------- services ---------- */

.cards-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card {
  position: relative;
  background: var(--sheet);
  padding: clamp(24px, 3vw, 36px);
  transition: background-color 0.25s var(--ease-out);
}
.card:hover { background: var(--sheet-dim); }

.card-index {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.card-icon {
  width: 34px; height: 34px;
  stroke: var(--blue);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  font-stretch: 112%;
  margin-bottom: 10px;
}

.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- process (echte Sequenz → Nummern bleiben) ---------- */

.process-track {
  margin-top: clamp(44px, 6vw, 76px);
  position: relative;
}

.process-line {
  position: absolute;
  top: 19px; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.process-line-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.2s;
}
.in .process-line-fill { transform: scaleX(1); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--sheet);
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--sheet);
}

.process-step h3 {
  font-size: 20px;
  font-stretch: 112%;
  margin-bottom: 10px;
}
.process-step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- case ---------- */

.case-intro {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--ink-soft);
}

.case-cards {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-sector {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 19px;
  font-stretch: 112%;
  margin-bottom: 10px;
}

.case-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  flex-grow: 1;
}

.case-metric {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}
.case-metric strong {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  font-stretch: 112%;
  color: var(--blue);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.case-metric span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.case-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 66ch;
}
.case-note-price { color: var(--ink-soft); }

.case-cta {
  margin-top: 28px;
}
/* kitsal telefonil murdub nupu tekst kahele reale, mitte üle ekraani serva (2026-11-26) */
.case-cta .btn {
  white-space: normal;
  text-align: center;
}

.case-demo {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.case-demo-eyebrow {
  margin-bottom: 12px;
}

.case-demo-lead {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 60ch;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.case-visual {
  margin: 0;
  background: var(--sheet-dim);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 36px);
}

.case-visual-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

.case-flow { min-width: 0; }

.case-run {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.case-run .demo-cards { grid-template-columns: 1fr; margin-top: 0; }
.case-run .demo-btn { margin-top: 4px; }

.pipeline-svg { width: 100%; height: auto; }

/* Sammuselgitus demo ajal: joonistatud kast aktiivse sõlme kohal.
   Positsioon protsentides (--tx/--ty, vt index.html); kate on
   rasterpind nagu form-success, et jooned selle all ei segaks. */
.case-flow { position: relative; }

.pipe-tip {
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  transform: translate(var(--dx, -50%), calc(-100% + 4px));
  max-width: 200px;
  width: max-content;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  background-color: var(--desk);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out),
              visibility 0s linear 0.3s;
  z-index: 2;
}
.pipe-tip.on {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--dx, -50%), -100%);
  transition-delay: 0s;
}

.pipe-path {
  fill: none;
  stroke: rgba(23, 23, 27, 0.4);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  stroke-dashoffset: 400;
  opacity: 0;
  transition: stroke-dashoffset 1.8s var(--ease-out), opacity 0.4s;
}
.in .pipe-path { stroke-dashoffset: 0; opacity: 1; }
.in .pipe-path:nth-of-type(1) { transition-delay: 0.35s; }
.in .pipe-path:nth-of-type(2) { transition-delay: 0.85s; }
.in .pipe-path:nth-of-type(3) { transition-delay: 1.35s; }

.pipe-node circle {
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.pipe-node-end circle {
  fill: var(--blue);
  stroke: none;
}

.pipe-node text {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}
.pipe-node .pipe-sub {
  fill: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.pipe-node-end text { fill: #fff; }
.pipe-node-end .pipe-sub { fill: rgba(255, 255, 255, 0.75); }

.pipe-node {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(0.2s + var(--n) * 0.4s);
}
.in .pipe-node { opacity: 1; transform: translateY(0); }

.case-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ---------- interaktive pipeline-demo ---------- */

.demo-btn {
  margin-top: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--blue);
  background: var(--sheet);
  transition: background-color 0.2s, color 0.2s;
}
.demo-btn:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}
.demo-btn:disabled { opacity: 0.5; cursor: default; }
.demo-btn .play { font-size: 11px; }

.demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.demo-doc, .demo-sheet {
  background: var(--sheet);
  border: 1px solid var(--edge);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  min-height: 128px;
}

.demo-doc-title {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.doc-field {
  color: var(--ink-soft);
  padding: 0 4px;
  margin: 0 -4px;
  transition: background-color 0.35s, color 0.35s;
}
.doc-field.scanned {
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.demo-sheet-title {
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-sheet-title::before {
  content: "";
  width: 11px; height: 11px;
  border: 1px solid currentColor;
}

.sheet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.45s var(--ease-out);
}
.sheet-row.on { opacity: 1; }
.sheet-row .k { color: var(--ink-faint); }
.sheet-row .v { color: var(--ink); text-align: right; }
.sheet-row .v.ok { color: var(--blue); font-weight: 600; }

.demo-packet {
  fill: var(--blue);
}

/* ---------- faq ---------- */

.faq-list {
  margin-top: clamp(32px, 4vw, 52px);
  max-width: 760px;
  border-top: 1px solid var(--rule);
}

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 21px 4px;
  font-size: clamp(16px, 1.7vw, 18.5px);
  font-weight: 600;
  color: var(--ink);
}
.faq-q:hover span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}

.faq-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 62ch;
  padding: 0 4px 24px;
}

/* ---------- founders ---------- */

.founders-intro {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
}

.founders-grid {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.founder-card {
  background: var(--sheet);
  padding: clamp(24px, 3vw, 36px);
}

/* Portreed: identne kaader (silmad ~40% kõrgusel), ühtne mustvalge töötlus */
.founder-avatar {
  display: block;
  width: 96px; height: 96px;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: 2px;
  filter: grayscale(1) contrast(1.08);
  margin-bottom: 20px;
}

.founder-card h3 { font-size: 20px; font-stretch: 112%; }

.founder-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 6px 0 14px;
}

.founder-card > p:last-child { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- contact ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-sub {
  margin-top: 20px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.contact-alt {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.contact-alt a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-alt a:hover { color: var(--blue-deep); }

.contact-form {
  position: relative;
  background: var(--sheet-dim);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 20px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.label-optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 12px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
}

.field.invalid input,
.field.invalid textarea { border-color: var(--red); }

.field-error {
  min-height: 0;
  font-size: 13px;
  color: var(--red);
}
.field-error:empty { display: none; }

.form-success {
  position: absolute;
  inset: 0;
  background: var(--sheet-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 32px;
  animation: fade-in 0.5s var(--ease-out);
}
.form-success[hidden] { display: none; }

/* Eingangsstempel statt Häkchen-Kreis */
.success-check {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 2.5px solid currentColor;
  outline: 1.5px solid currentColor;
  outline-offset: 2.5px;
  padding: 6px 14px;
  transform: rotate(-5deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  animation: ha-stamp-in 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) 0.3s both;
}

.form-success h3 { font-size: 21px; font-stretch: 112%; }
.form-success p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- footer ---------- */

.site-footer {
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.footer-inner nav { display: flex; gap: 24px; }

.footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 0;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--blue); }

/* ---------- reveal system (nur Fade) ---------- */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s var(--ease-reveal);
  /* --d staggert Geschwister. Der Deckel begrenzt nur die Ausreisser (0.34s,
     0.4s); die restlichen 35 Werte bleiben unangetastet. 0.3s statt 0.2s, weil
     ein engerer Deckel die Bloecke fast gleichzeitig ankommen laesst und das
     hektisch wirkt — der Versatz ist hier das, was es ruhig macht. */
  transition-delay: min(var(--d, 0s), 0.3s);
}
[data-reveal].in {
  opacity: 1;
}

/* Zellen in Rasterlinien-Grids nicht einzeln faden — sonst
   erscheint das Grid als grauer Block, bis alle Zellen da sind */
.cards-grid > [data-reveal],
.founders-grid > [data-reveal] {
  opacity: 1;
  transition: none;
}

/* ---------- responsive ---------- */

/* Header: Brand + Sprachwahl + CTA brauchen unter 940px den Platz der Nav;
   die Nav wandert in ein Burger-Dropdown */
@media (max-width: 940px) {
  .main-nav { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: var(--sheet);
    border: 1px solid var(--edge);
    border-radius: 2px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s var(--ease-out), opacity 0.2s;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--edge);
    padding: 6px 0 14px;
    box-shadow: 0 12px 24px -16px rgba(23, 23, 27, 0.3);
  }
  .site-header.nav-open .main-nav a:not(.nav-cta) {
    padding: 12px clamp(16px, 5vw, 32px);
    font-size: 16px;
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-artifact { justify-self: start; max-width: 420px; }

  .cards-grid,
  .founders-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .case-visual-grid { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 32px); }
  .case-flow { max-width: 460px; margin-inline: auto; }
  .case-run { max-width: 460px; margin-inline: auto; width: 100%; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-line { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; }
  .process-line-fill { width: 100%; transform: scaleY(0); transform-origin: top; height: 100%; transition-property: transform; }
  .in .process-line-fill { transform: scaleY(1); }
  .process-step { padding-left: 62px; position: relative; }
  .step-num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
}

@media (max-width: 720px) {
  .problem-row { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats { gap: 20px 36px; }
  .container { width: calc(100% - 32px); }
  .section > .container { padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 32px); }
  .demo-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Auf sehr schmalen Screens: Platz für Brand + Sprachwahl,
     der Buchungs-CTA wandert dafür ins Burger-Menü */
  .site-header .btn-small { display: none; }
  .header-inner { justify-content: space-between; }
  .site-header.nav-open .main-nav .nav-cta {
    display: block;
    margin: 10px clamp(16px, 5vw, 32px) 0;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .btn { padding: 13px 22px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .brand-name { font-size: 13.5px; letter-spacing: 0.06em; }
  .header-inner { gap: 16px; }
  .lang-switch a { padding: 5px 8px; font-size: 11px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-reveal] { opacity: 1; }
  .pipe-path { stroke-dashoffset: 0; opacity: 1; }
  .pipe-node { opacity: 1; transform: none; }
  .process-line-fill { transform: none; }
}

/* ============================================================
   SKEEM overrides — visuaalsüsteem Rev A angewendet 2026-07-28.
   Regeln: Radius 0 überall, keine Schatten (Linien statt Blur),
   ein Blau #0047C7, 22px-Zeichnungsraster, Wortmarke = Logo-SVG
   (Sans-Variante vorläufig — Sans vs. Mono ist Rihhards Call).
   ============================================================ */

*, *::before, *::after { border-radius: 0 !important; }

/* Das Blatt: weißes Papier mit 22px-Raster (ink-100) */
body {
  background-color: var(--desk);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Header: weiß, Abschluss ist eine Linie — nie ein Schatten */
.site-header { border-bottom: 1px solid var(--edge); }
.site-header.scrolled { box-shadow: none; }

/* Karten sind gezeichnete Container: 1px ink-300 Rahmen */
.card { border: 1px solid var(--edge); }

/* Logo in der Kopfzeile (min. 16px, Schutzraum via Padding des Headers) */
.brand-logo { height: 22px; width: auto; display: block; }

/* Stempel wird zum SKEEM-Tag: mono micro-caps im 1px-Kasten, ungedreht */
.stamp {
  transform: none;
  border-width: 1px;
  outline: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  mix-blend-mode: normal;
  opacity: 1;
}

/* Akzent: gerade 2px-Linie in blue-500 statt Kuli-Schwung — keine Kurven.
   text-decoration statt Background: sitzt an der Baseline und bricht pro
   Zeile korrekt um, statt in die Folgezeile zu ragen */
.accent {
  background: none;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.13em;
  text-decoration-skip-ink: auto;
}

/* Fokus/Inputs: 2px blue-500 Outline statt Schatten-Ring */
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  box-shadow: none !important;
}

/* ============================================================
   Raster-Look (2026-08-11): Papierbögen entfernt — alle Inhalte
   liegen direkt auf dem 22px-Raster, kein Weiß dazwischen.
   Gezeichnete Linien bleiben, Füllungen werden transparent.
   Ausnahmen (müssen decken): Header, Eingabefelder, Erfolgs-
   Overlay, Schritt-Nummern, Pipeline-Knoten.
   ============================================================ */

.section { padding: clamp(32px, 4.5vw, 56px) 0; }

.section > .container {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Kartenraster: statt Hairline-Tabelle auf Weiß nun bordierte,
   transparente Zellen im 22px-Abstand (eine Rastereinheit) */
.cards-grid,
.founders-grid {
  background: transparent;
  border: 0;
  gap: 22px;
}
.card,
.founder-card { background: transparent; }
.founder-card { border: 1px solid var(--edge); }

.tool-pill { background: transparent; }

/* Hero-Artefakt: Dokument und Buchungszeile ohne Papierfüllung */
.ha-doc,
.ha-row { background: transparent; box-shadow: none; }
.ha-cell:first-child { background: transparent; }

.case-visual { background: transparent; border: 0; }

.demo-doc,
.demo-sheet,
.demo-btn { background: transparent; }

.contact-form { background: transparent; }

/* Erfolgs-Overlay muss das Formular weiter abdecken →
   Rasterfläche statt grauem Blatt */
.form-success {
  background-color: var(--desk);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Schritt-Nummer: weißer Halo entfällt; der Chip selbst bleibt
   gefüllt, damit er die Prozesslinie dahinter verdeckt */
.step-num { box-shadow: none; }

/* Breite Karte unter Setup S und M (AI-Töötuba, 2026-11-23):
   Text links, Preis rechts; unter 900px wie jede andere Karte */
.cs-cards .card-wide { grid-column: 1 / -1; }
.card-wide-body {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(200px, 1fr);
  gap: 48px;
  align-items: end;
}
.card-wide-body h3 { margin-bottom: 10px; }
/* /S, /M, /T sitzen oben rechts: Titel halten Abstand (vorher Ueberlappung unter 430px) */
.cs-cards .card h3 { padding-right: 32px; }
@media (max-width: 900px) {
  .card-wide-body { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Teenuselehed (2026-11-24): üks leht teenuse kohta, ET + EN,
   töötuba ka DE (misc/planning/tools/build-service-pages.py).
   Joonis on HTML, et tekst elaks (otsing, tõlge, suum); sõlmed
   on valged, nagu avalehe joonisel, sest lehe all on 22px raster.
   ============================================================ */

.svc-page { padding: 118px 0 72px; }

.svc-crumb {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.svc-crumb a { color: inherit; text-decoration: none; }

.svc-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 820px;
  text-wrap: balance;
}
.svc-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 22px 0;
}

/* Joonis: sõlmed reas, ühendused ortogonaalsed, erand kukub alla */
.svc-fig {
  margin: 66px 0 0;
  padding: 28px 28px 20px;
  border: 1px solid var(--edge);
  background: var(--sheet);
}
.fig-flow {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 26px;
  margin: 0 0 18px;
}
.fig-node {
  position: relative;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.fig-node strong { font-size: 13px; font-weight: 500; line-height: 1.35; }
.fig-node span { font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.fig-node + .fig-node:not(.is-exc)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -40px;
  width: 32px;
  height: 1.5px;
  background: var(--ink);
}
.fig-node + .fig-node:not(.is-exc)::after {
  content: "";
  position: absolute;
  top: calc(50% - 4.25px);
  left: -9px;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.fig-node.is-active { border-color: var(--blue); }
.fig-node.is-active strong { color: var(--blue); }
.fig-node.is-opt { border: 1px dashed var(--edge); }
.fig-node.is-opt strong { color: var(--ink-soft); }
.fig-node.is-exc {
  grid-row: 2;
  grid-column: var(--col);
  border: 1px dashed var(--red);
}
.fig-node.is-exc strong { color: var(--red); }
.fig-node.is-exc::before {
  content: "";
  position: absolute;
  top: -26px;
  left: calc(50% - 0.75px);
  width: 1.5px;
  height: 18px;
  background: var(--red);
}
.fig-node.is-exc::after {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% - 5px);
  border-top: 8px solid var(--red);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.fig-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  border: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.fig-title span { padding: 8px 10px; }
.fig-title span:first-child { font-weight: 600; }
.fig-title span + span { border-left: 1px solid var(--edge); }

/* Tekst vasakul, hinnatabel paremal */
.svc-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 66px;
  align-items: start;
  margin-top: 66px;
}
.svc-text { display: grid; gap: 44px; max-width: 654px; }
.svc-block h2 { font-size: 21px; line-height: 1.25; }
.svc-block p { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.svc-list { display: grid; gap: 6px; margin-top: 10px; }
.svc-list li { font-size: 16px; line-height: 1.55; }
.svc-list li::before { content: "- "; }
.svc-micro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.svc-spec { margin: 0; border: 1px solid var(--edge); background: var(--sheet); }
.svc-spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
}
.svc-spec div + div { border-top: 1px solid var(--rule); }
.svc-spec dt { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.svc-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.svc-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.svc-faq { margin-top: 66px; }
.svc-faq h2 { font-size: 28px; line-height: 1.15; margin-bottom: 22px; }
.svc-q { padding: 16px 0; border-top: 1px solid var(--rule); }
.svc-q h3 { font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.svc-q p { margin-top: 8px; max-width: 700px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

.svc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 66px;
  padding-top: 44px;
  border-top: 1.5px solid var(--ink);
}
.svc-cta h2 { font-size: 28px; line-height: 1.15; }
.svc-cta p { margin-top: 8px; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* Jaluse teenuste rida (kõigil lehtedel) */
.footer-services {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding-bottom: 18px;
}
.footer-services-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-services nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-svc { font-size: 15px; font-weight: 500; color: var(--blue); text-decoration: none; }

/* Avalehe kaardi link teenuselehele */
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

/* Telefonis (komp): pealkiri, hind, joonis, tekst. svc-two kaob paigutusest,
   et hind saaks joonise ette tulla. */
/* Hover ainult hiire jaoks, et puudutus ei jätaks olekut külge (mobile-native) */
@media (hover: hover) and (pointer: fine) {
  .svc-crumb a:hover { color: var(--blue); }
  .footer-svc:hover,
  .card-link:hover { text-decoration: underline; }
}

@media (max-width: 900px) {
  .svc-page > .container { display: flex; flex-direction: column; }
  .svc-page .svc-two { display: contents; }
  .svc-crumb { order: 0; }
  .svc-hero { order: 1; }
  .svc-price { order: 2; margin-top: 44px; }
  .svc-fig { order: 3; margin-top: 44px; }
  .svc-text { order: 4; margin-top: 44px; max-width: none; }
  .svc-faq { order: 5; }
  .svc-cta { order: 6; }
}

/* Joonis läheb püstiseks enne, kui viie sõlme read hakkavad sõnu poolitama
   (980, et ka Windowsi 17px kerimisribaga ei poolitu "Anwendungsfall").
   Peatee on üks pidev joon vasakul (taust), nii et erand E1 hargneb sellest
   paremale ja ei jää teele ette. */
@media (max-width: 980px) {
  .svc-fig { padding: 20px 16px 16px; }
  .fig-flow {
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(var(--ink), var(--ink)) no-repeat 22px 0 / 1.5px 100%;
  }
  .fig-node,
  .fig-node.is-exc { grid-row: auto; grid-column: 1; order: var(--o); }
  .fig-node.is-exc { margin-left: 44px; }
  .fig-node + .fig-node:not(.is-exc)::before { content: none; }
  .fig-node + .fig-node:not(.is-exc)::after {
    top: -9px;
    left: 16.25px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--ink);
    border-bottom: 0;
  }
  .fig-node.is-exc::before { top: 50%; left: -22px; width: 14px; height: 1.5px; }
  .fig-node.is-exc::after {
    top: calc(50% - 4.25px);
    left: -9px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--red);
    border-right: 0;
  }
  .fig-title { grid-template-columns: minmax(0, 1fr) auto; }
  .fig-title span:nth-child(2),
  .fig-title span:nth-child(4) { display: none; }
}

@media (max-width: 720px) {
  .svc-page { padding-top: 96px; }
  .svc-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-cta h2, .svc-faq h2 { font-size: 24px; }
}
