/* Landing page (ignithor.com/). Identity "Thunder Spine": Pompeian, Ember, black, ivory. */
:root {
  --obsidian: #000000;
  --red: #86262b;
  --red-deep: #5e191d;
  --red-light: #d98d90; /* Pompeian tint for small text on black (contrast) */
  --stone: #f4f1ee;
  --surface: #ffffff;
  --surface-2: #efebe7;
  --border: #e2dbd4;
  --muted: #615a54;
  --sidebar-muted: #9a928b;
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--obsidian);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--stone); }
a { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--red); color: var(--stone); border-color: var(--red); }
.btn.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ghost { color: var(--stone); background-color: transparent; border-color: #3a3a3a; }
.btn.ghost:hover { border-color: var(--stone); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* --- Header + hero (dark) --- */
.dark { background: var(--obsidian); color: var(--stone); position: relative; overflow: hidden; }
header.nav { position: relative; z-index: 2; }
header.nav .wrap { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
header.nav .brand { display: block; line-height: 0; }
header.nav .brand img { width: 190px; height: auto; } /* compact logo: 180 px or wider */
header.nav .links { display: flex; gap: 22px; margin-left: 18px; }
header.nav .links a { color: var(--sidebar-muted); text-decoration: none; font-size: 14px; }
header.nav .links a:hover { color: var(--stone); }
header.nav .grow { flex: 1; }
.langs { display: flex; gap: 4px; }
.langs button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer;
  background: transparent; color: var(--sidebar-muted); border: 1px solid #2a2a2a; border-radius: 6px; padding: 4px 8px;
}
.langs button.on { color: var(--stone); border-color: var(--stone); }

.hero { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--red-light); }
.eyebrow.on-dark { color: var(--red-light); }
.ember { background: var(--red-deep); color: var(--stone); position: relative; overflow: hidden; }
.ember .btn.primary { background: var(--stone); color: var(--red-deep); border-color: var(--stone); }
.ember .btn.primary:hover { background: #fff; border-color: #fff; }
.ember .btn.ghost { border-color: #9a5a5d; }
.hero .sub { color: #cfc8c1; font-size: 18px; margin-top: 20px; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { color: var(--sidebar-muted); font-size: 13px; margin-top: 14px; }
.hero [hidden] { display: none; }
.hero-services { margin-top: 20px; }
.hero-services input { width: 100%; max-width: 30rem; min-height: 46px; padding: 9px 12px; font: inherit; font-size: 16px; border: 1px solid #746862; color: var(--stone); background: #25201e; border-radius: 8px; }
.hero-services input:focus-visible { outline: 2px solid #ffbbb2; outline-offset: 3px; }
.industry-choices { max-width: 30rem; }
.industry-choices summary { width: fit-content; padding: 8px 0; color: #ffbbb2; cursor: pointer; }
.industry-choices-list { display: flex; flex-wrap: wrap; gap: 6px; }
.industry-choices-list button { padding: 8px 12px; min-height: 44px; color: var(--stone); background: #25201e; border: 1px solid #746862; border-radius: 8px; cursor: pointer; font: inherit; }
.industry-choices-list button:hover { border-color: #ffbbb2; }
#industry-demo p { color: #d2c8c4; }
.hero :is(button, a, summary):focus-visible { outline: 2px solid #ffbbb2; outline-offset: 3px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; font-weight: 600; font-size: 13px; background: #3a1517; color: var(--red-light); }
.badge .n { background: #c4473f; color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 13px; }

/* --- Sections --- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; background: #f5e4e5; color: var(--red); display: flex; align-items: center; justify-content: center; }
.step-icon svg { display: block; }
.step-n { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--obsidian); color: var(--stone); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: 15px; }
.step .quote { font-size: 14px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; color: var(--obsidian); font-style: italic; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.signal { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--stone); display: flex; flex-direction: column; gap: 6px; }
.signal .icon { width: 44px; height: 44px; border-radius: 12px; background: #f5e4e5; color: var(--red); display: flex; align-items: center; justify-content: center; }
.signal .icon svg { display: block; }
.signal p { color: var(--muted); font-size: 14.5px; }
.more { margin-top: 22px; color: var(--muted); font-size: 15px; }
.section-head .more { margin-top: 8px; }
.section-head .lead-line { font-size: 21px; font-weight: 700; color: var(--obsidian); line-height: 1.35; }

.who { display: flex; flex-wrap: wrap; gap: 10px; }
.who span { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; font-size: 15px; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: '✓'; color: #2f7a50; font-weight: 700; flex: none; }

.cta-band { text-align: center; }
.cta-band .wrap { padding-top: 80px; padding-bottom: 80px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band p { color: #ead6d6; max-width: 560px; font-size: 17px; }
.cta-band .demo-founder { font-size: 14px; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

footer.site { background: var(--obsidian); color: var(--sidebar-muted); font-size: 13px; border-top: 1px solid #1f1f1f; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; }
footer.site a { color: var(--sidebar-muted); }
footer.site .grow { flex: 1; }

/* Bilingual page: hide the language not chosen (html lang is set by legal.js; Estonian without JS). */
html[lang="et"] [data-lang="en"], html[lang="en"] [data-lang="et"] { display: none !important; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 56px; gap: 36px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .grid3 { grid-template-columns: minmax(0, 1fr); }
  section.block { padding: 56px 0; }
}
@media (max-width: 480px) {
  header.nav .wrap { gap: 10px; }
  header.nav .signin { display: none; }
  .hero .sub { font-size: 16px; }
}

/* Phone menu (site/menu.js): below 1000 px (the five links in Estonian need about 950 on one line) the header links
   fold behind a button and open as a list under the header, in the page's flow (the dark band hides what sticks out
   of it). Sign-in joins the list where its button is hidden. */
header.nav .links a { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: transparent; color: var(--stone); border: 1px solid #2a2a2a; border-radius: 8px;
}
.menu-toggle:hover { border-color: var(--stone); }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
header.nav .links .menu-only { display: none; }
@media (max-width: 1000px) {
  header.nav .links { display: none; }
  header.nav .wrap { flex-wrap: wrap; }
  header.nav.has-menu .menu-toggle { display: inline-flex; }
  header.nav.open .links {
    display: flex; flex-direction: column; gap: 0; order: 10; flex-basis: 100%; margin: 4px 0 0;
    border-top: 1px solid #2a2a2a;
  }
  header.nav.open .links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #1c1c1c; }
}
/* on phones the logo (180 px at least) leaves no room for the language switch as well: it moves into the list */
header.nav .links .menu-langs { display: none; }
@media (max-width: 480px) {
  header.nav .wrap > .langs { display: none; }
  header.nav .links .menu-only { display: block; }
  header.nav .links .menu-langs { display: flex; padding: 14px 0 6px; }
}

/* were inline styles (the Content-Security-Policy allows none) */
.hero-title { margin-top: 14px; }
.section-head.flush { margin-bottom: 0; }
.checks.tight { margin-top: 12px; }

/* About us (/meist) */
header.nav .links a[aria-current="page"] { color: var(--stone); }
.about-hero { position: relative; z-index: 1; }
.about-hero .wrap { padding-top: 48px; padding-bottom: 88px; max-width: 1120px; }
.about-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-top: 14px; max-width: 820px; }
.about-hero h1 em { font-style: italic; color: var(--red-light); }
.about-hero .sub { color: #cfc8c1; font-size: 18px; margin-top: 20px; max-width: 640px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 980px; }
.team .person { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.team .photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; }
.team h3 { font-size: 22px; }
.team .role { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 2px; }
.team .bio { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 10px; }
@media (max-width: 640px) { .about-hero .wrap { padding-top: 24px; padding-bottom: 56px; } .about-hero .sub { font-size: 16px; } }

/* Demo booking chat window (site/demo.js, docs/DEMO-BOOKING.md) */
.demo-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 50; border: 0; border-radius: 99px; padding: 12px 20px;
  background: var(--red); color: var(--stone); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.demo-launcher:hover { background: var(--red-deep); }
.demo-panel { position: fixed; right: 20px; bottom: 80px; z-index: 51; width: 360px; max-width: calc(100vw - 32px);
  max-height: min(600px, calc(100vh - 110px)); display: none; flex-direction: column; background: var(--surface);
  color: var(--obsidian); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.demo-panel.open { display: flex; }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #141211; color: var(--stone); }
.demo-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red-deep); display: flex; align-items: center;
  justify-content: center; font-weight: 700; flex: none; }
.demo-who { flex: 1; }
.demo-name { font-weight: 600; font-size: 15px; }
.demo-status { font-size: 12px; color: var(--sidebar-muted); }
.demo-close { background: none; border: 0; color: var(--sidebar-muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.demo-close:hover { color: var(--stone); }
.demo-log { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.demo-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; }
.demo-msg.bot { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.demo-msg.me { background: var(--red-deep); color: var(--stone); border-bottom-right-radius: 4px; align-self: flex-end; }
.demo-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-slot, .demo-day { white-space: nowrap; font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--obsidian); cursor: pointer; }
.demo-slot:hover, .demo-slot:focus-visible, .demo-day:hover, .demo-day:focus-visible { border-color: var(--red); color: var(--red); }
.demo-slot.more, .demo-day.more { color: var(--muted); }
.demo-form { display: flex; flex-direction: column; gap: 8px; }
.demo-input { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.demo-input:focus { outline: 2px solid var(--red-light); border-color: var(--red); }
.demo-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.demo-submit { font: inherit; font-weight: 600; padding: 10px; border: 0; border-radius: 8px; background: var(--red); color: var(--stone); cursor: pointer; }
.demo-submit:disabled { opacity: 0.6; cursor: default; }
.demo-back { font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; align-self: flex-start; padding: 0; }
.demo-error { color: var(--red-deep); font-size: 13px; }
.demo-error:empty { display: none; }
.demo-note { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .demo-launcher { right: 12px; bottom: 12px; }
  .demo-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}

/* Motion (site/motion.js): sections fade in as they scroll into view, the steps' connecting line fills, cards lift on
   hover. Only with JavaScript, and never for people who turned motion off in their system settings. */
.steps { position: relative; }
.step { position: relative; z-index: 1; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; background: var(--red);
  opacity: 0.35; transform-origin: left center; z-index: 0; }
.step, .signal, .team .person { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.step:hover, .signal:hover, .team .person:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); border-color: #d6ccc3; }
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .steps::before { transform: scaleX(0); transition: transform 1.1s ease 0.2s; }
.motion .steps.in::before { transform: scaleX(1); }
@media (max-width: 900px) { .steps::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .step, .signal, .team .person { transition: none; }
  .step:hover, .signal:hover, .team .person:hover { transform: none; }
}

/* The example card comes alive (site/examples.js): the score ring fills and counts up, the reasons appear one by one,
   the trend lines draw themselves. Without JavaScript or with motion turned off, it simply shows the end state. */
.score { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.dial { position: relative; width: 48px; height: 48px; }
.ring { width: 48px; height: 48px; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: #3a2a29; }
.ring .fill { stroke: #e0605a; stroke-linecap: round; transition: stroke-dasharray 1.1s cubic-bezier(.3,.7,.2,1); }
.dial .n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--stone); }
@keyframes ex-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ex-pop { animation: ex-pop 0.45s ease both; }
@keyframes ex-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.trend.ex-draw polyline { stroke-dasharray: 100; animation: ex-draw 1s ease both; }

/* Sales workflow and measurable outcomes. */
.compare-wrap { max-width: 960px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px; }
.compare thead th { background: var(--surface-2); color: var(--muted); font-size: 13px; }
.compare tbody :is(th, td) { border-top: 1px solid var(--border); }
.compare tbody th { width: 23%; }
.compare tbody td:last-child { width: 33%; background: #fbf3f3; }

@media (max-width: 700px) {
  .compare-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  table.compare { display: block; line-height: 1.5; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tbody tr { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
  .compare tbody :is(th, td) { padding: 0 16px; border: 0; }
  .compare tbody th { width: auto; padding-top: 14px; font-size: 18px; line-height: 1.3; }
  .compare tbody td { padding-top: 6px; padding-bottom: 14px; }
  .compare tbody td:last-child { width: auto; padding: 10px 16px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; color: var(--red-deep); }
}

/* KKK */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.qa summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; color: var(--red); }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* "Helistame sulle" in the final band (site/callback.js) */
.callback { max-width: 620px; margin: 30px auto 0; padding-top: 26px; border-top: 1px solid rgba(244, 241, 238, 0.22); }
.callback[hidden] { display: none; }
.callback-lead { margin: 0 0 14px; font-weight: 600; }
.callback-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.callback label { display: flex; flex-direction: column; gap: 5px; text-align: left; font-size: 13px; color: rgba(244, 241, 238, 0.85); flex: 1 1 170px; }
.callback input { font: inherit; font-size: 15px; color: var(--obsidian); background: var(--stone); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; }
.callback input:focus { outline: 2px solid var(--stone); outline-offset: 2px; }
.callback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.callback-msg { min-height: 1.2em; margin: 12px 0 0; font-weight: 600; }
.callback-msg.err { color: #ffd2d4; }
.callback-fine { margin: 6px 0 0; font-size: 12.5px; color: rgba(244, 241, 238, 0.7); }
.callback-fine a { color: rgba(244, 241, 238, 0.85); }

/* Homepage example and live lead preview */
.lead-preview {
  background: #151312;
  color: var(--stone);
  border: 1px solid #3d3533;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.38);
  min-width: 0;
  scroll-margin-top: 24px;
}
.lead-preview [hidden] { display: none; }
.lead-preview h2 { font-family: var(--display); font-size: clamp(23px, 3.2vw, 31px); line-height: 1.1; margin: 0 0 16px; }
.lead-preview h3 { font-family: var(--display); font-size: 23px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.lead-preview-controls { display: grid; gap: 10px; }
.lead-preview-controls label, .lead-preview-service-picker { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; }
.lead-preview-controls label { max-width: 230px; }
.lead-preview select {
  background: #25201e;
  color: var(--stone);
  border: 1px solid #514743;
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  padding: 5px 8px;
  width: 100%;
}
.lead-preview :is(a, button, select, [role="tabpanel"]):focus-visible { outline: 2px solid #ffbbb2; outline-offset: 3px; }
.lead-preview-status { color: #d2c8c4; margin: 10px 0; font-size: 13px; }
.lead-preview-status:empty { display: none; }
.lead-preview-featured { border: 1px solid #47403a; border-radius: 12px; padding: 14px; background: #1e1a18; }
.lead-preview-featured-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.lead-preview-featured-head > div { flex: 1 1 150px; min-width: 0; }
.lead-preview-match { margin-top: 7px; }
.lead-preview-match .n { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; line-height: 1; }
.lead-preview-score-caption { display: grid; gap: 2px; }
.lead-preview-score-caption small { color: #d2c8c4; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .lead-preview-score .ring .fill { transition: none; }
}
.lead-preview-company-meta { font-size: 13px; color: #d2c8c4; margin: 4px 0 10px; }
.lead-preview-evidence { border-top: 1px solid #433a36; padding-top: 9px; margin-top: 9px; }
.lead-preview-opportunity { margin-top: 9px; }
.lead-preview-call { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #28211e; }
.lead-preview-call blockquote { margin: 4px 0 0; font: 16px/1.45 var(--display); overflow-wrap: anywhere; }
.lead-preview-featured strong { font-size: 13px; }
.lead-preview-featured p { font-size: 14px; line-height: 1.45; margin: 3px 0 0; }
.lead-preview-featured a { color: #ffbbb2; }
.lead-preview-links { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.lead-preview-featured a { display: inline-flex; align-items: center; min-height: 28px; }
.lead-preview-links { margin-top: 6px; }
.lead-preview-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; margin: 10px 0; list-style: none; }
.lead-preview-teasers li { display: flex; gap: 5px; align-items: center; min-width: 0; color: #ddd2cd; padding: 8px; font-size: 12px; border: 1px solid #47403a; border-radius: 8px; }
.lead-preview-teasers svg { width: 17px; height: 17px; flex: none; }
.lead-preview-signup { width: 100%; justify-content: center; min-height: 44px; text-align: center; }
.lead-preview-unlock-note { margin: 7px 0 0; color: #d2c8c4; font-size: 12px; line-height: 1.45; }
.lead-preview-fallback p { margin: 8px 0 12px; color: #d2c8c4; font-size: 14px; }
.lead-preview-retry { margin-top: 10px; }

.example-summary { margin: 12px 0; }
.example-summary dt { font-size: 13px; font-weight: 700; }
.example-summary dd { margin: 2px 0 10px; font-size: 14px; line-height: 1.45; }
.example-details { margin-top: 12px; border-top: 1px solid #433a36; }
.example-details summary { padding: 12px 0; cursor: pointer; font-weight: 600; font-size: 14px; color: #ffbbb2; }
.example-preview .example-heat { color: var(--red-light); }
.example-preview .need { margin: 4px 0 0; padding-inline-start: 17px; font-size: 14px; line-height: 1.45; }
.example-preview .need li + li { margin-top: 3px; }
.example-preview .need li::marker { color: #e0605a; }
.example-preview .now { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 4px; font-size: 14px; }
.example-preview .now :is(.when, .trend) { margin-inline-start: auto; }
.example-preview .when { font-size: 12px; color: #d2c8c4; }

@media (max-width: 480px) {
  .lead-preview { scroll-margin-top: 12px; }
  .lead-preview select { font-size: 16px; }
  .lead-preview-featured a { min-height: 36px; }
  .hero .ctas { margin-top: 16px; gap: 8px; }
  .hero .ctas .btn { white-space: normal; }
  .hero .wrap { gap: 20px; }
}

/* --- Homepage 2026-11: sticky header, sliding menu underline, language menu (site/menu.js) --- */
header.nav.sticky { position: sticky; top: 0; z-index: 40; background: var(--obsidian); transition: background 0.3s, box-shadow 0.3s; }
header.nav.sticky .wrap { transition: padding 0.3s; }
header.nav.sticky .brand img { transition: width 0.3s; }
header.nav.sticky.scrolled { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 #1f1f1f; }
header.nav.sticky.scrolled .wrap { padding-top: 8px; padding-bottom: 8px; }
header.nav.sticky.scrolled .brand img { width: 150px; }
header.nav .links { position: relative; }
.nav-ink { position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; border-radius: 2px; background: var(--red-light); opacity: 0;
  pointer-events: none; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
header.nav .links.inked .nav-ink { opacity: 1; }
.lang-menu { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; color: var(--sidebar-muted); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; }
.lang-current:hover, .lang-current[aria-expanded="true"] { color: var(--stone); border-color: #2a2a2a; }
.lang-current .chev { transition: transform 0.2s; }
.lang-current[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-current:focus-visible, .lang-list button:focus-visible { outline: 2px solid #ffbbb2; outline-offset: 2px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px;
  background: #141111; border: 1px solid #2a2a2a; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list button, .menu-langs button { letter-spacing: 0; font-weight: 500; font-size: 14px; }
.lang-list button { text-align: left; border: 0; padding: 8px 10px; border-radius: 6px; }
.lang-list button:hover { background: #241e1e; color: var(--stone); }
.lang-list button.on::after { content: " ✓"; color: var(--red-light); }
@media (max-width: 1000px) { .nav-ink { display: none; } }
@media (max-width: 480px) { header.nav .wrap > .lang-menu { display: none; } }

/* --- Signal map (site/signals.js): real recent changes light up on a dot map of Estonia; counter and feed --- */
.signal-map { position: relative; min-width: 0; }
.signal-canvas { position: relative; }
.signal-canvas canvas { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(transparent, #000 9%); mask-image: linear-gradient(transparent, #000 9%); }
.signal-chips { position: absolute; inset: 0; pointer-events: none; }
.signal-chip { position: absolute; transform: translate(-50%, -130%); background: var(--stone); color: var(--red-deep); font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 7px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); animation: signal-chip 2.6s ease forwards; }
@keyframes signal-chip {
  0% { opacity: 0; transform: translate(-50%, -90%); }
  12% { opacity: 1; transform: translate(-50%, -130%); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -155%); }
}
.signal-total, .signal-feed { display: none; }
.signal-map.has-data .signal-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; color: var(--sidebar-muted); font-size: 14px; }
.signal-total .n { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--stone); font-variant-numeric: tabular-nums; }
.signal-map.has-data .signal-feed { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.signal-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid #2c2523;
  border-radius: 10px; background: #15110f; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s; }
.signal-item.enter { opacity: 0; transform: translateY(-10px); }
.signal-kind { font-weight: 600; font-size: 14px; color: var(--stone); }
.signal-where { grid-column: 1; font-size: 13px; color: var(--sidebar-muted); }
.signal-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--red-light); white-space: nowrap; }
.signal-item:first-child .signal-kind::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fbf8a;
  margin-right: 8px; vertical-align: 2px; animation: signal-live 1.6s infinite; }
@keyframes signal-live { 0% { box-shadow: 0 0 0 0 rgba(95, 191, 138, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(95, 191, 138, 0); } }
.hero-leads { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; min-width: 0; padding-top: 44px; border-top: 1px solid #241d1b; }
.hero-leads > section { width: min(100%, 640px); }
.hero-leads > #example-lead { width: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
.hero-leads > .hero-services { width: min(100%, 480px); margin-top: 0; }

/* --- "Keda sa otsid?": the map answers (site/market.js) --- */
.hero-ask { margin-top: 26px; max-width: 34rem; }
.hero-ask label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.hero-ask-row { display: flex; gap: 8px; padding: 6px; border: 1px solid #5d4a45; border-radius: 14px; background: #1a1513;
  transition: border-color 0.2s, box-shadow 0.2s; }
.hero-ask-row:focus-within { border-color: var(--red-light); box-shadow: 0 0 0 4px rgba(217, 141, 144, 0.16); }
.hero-ask input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; font: inherit; font-size: 17px; border: 0; outline: 0; color: var(--stone); background: transparent; }
.hero-ask input::placeholder { color: #a89d96; opacity: 1; }
.hero-ask button[disabled] { opacity: 0.6; cursor: default; }
.signal-map.answered .signal-total, .signal-map.answered .signal-feed { display: none; }
.market-answer:not([hidden]) { display: block; margin-top: 10px; }
.market-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 17px; color: var(--stone); }
.market-head .n { font-family: var(--display); font-size: 46px; line-height: 1; font-weight: 700; color: #ffd6b2; font-variant-numeric: tabular-nums; }
.market-sub { color: #cfc8c1; font-size: 15px; margin-top: 2px; }
.market-read { color: var(--sidebar-muted); font-size: 13px; margin-top: 6px; }
.market-leads { list-style: none; display: grid; gap: 8px; margin: 12px 0 0; padding: 0; }
.market-leads:empty { display: none; }
.market-lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 13px; border: 1px solid #453530;
  border-radius: 10px; background: #17110f; animation: market-lead 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes market-lead { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.market-name { grid-column: 1; display: flex; gap: 6px; align-items: center; min-height: 14px; }
.market-name i { display: block; height: 9px; width: 92px; border-radius: 5px; background: #8c7a70; filter: blur(3px); }
.market-name i + i { width: 46px; }
.market-what { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.market-kind { font-weight: 600; font-size: 14px; color: var(--stone); }
.market-where { font-size: 13px; color: var(--sidebar-muted); }
.market-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: #ffd6b2; white-space: nowrap; }
.market-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.market-reset { font: inherit; font-size: 14px; color: #cfc8c1; background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.market-reset:hover { color: var(--stone); }
@media (max-width: 480px) {
  .hero-ask-row { flex-direction: column; }
  .hero-ask-row .btn { justify-content: center; }
  .hero-ask input { flex: none; }
  .signal-map { scroll-margin-top: 76px; }
}

/* --- Lead story (site/motion.js): the example card fills in as the page scrolls --- */
.lead-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.lead-story-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-light); margin-bottom: 8px; }
.lead-steps { list-style: none; counter-reset: lead; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.lead-steps li { counter-increment: lead; position: relative; padding: 2px 0 2px 46px; color: #cfc8c1; font-size: 15px; line-height: 1.5; }
.lead-steps li::before { content: counter(lead); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #6c5650; color: var(--stone); font: 700 15px var(--display); background: var(--obsidian); }
.lead-steps strong { display: block; color: var(--stone); font: 700 19px/1.25 var(--display); }
@media (min-width: 901px) {
  .lead-stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .lead-steps { gap: 26px; margin-top: 30px; }
  .lead-story h2 { font-size: clamp(30px, 3.4vw, 42px); }
  .lead-steps strong { font-size: 22px; }
  .lead-steps li { font-size: 16px; }
  .lead-stage .example { padding: 24px 26px; border-radius: 18px; box-shadow: 0 30px 65px rgba(0, 0, 0, 0.5), 0 0 90px rgba(134, 38, 43, 0.28); }
  .lead-stage .example h3 { font-size: 28px; }
  .lead-stage .example-summary dd { font-size: 17px; margin-bottom: 16px; }
  .lead-stage .lead-preview-call { padding: 14px 16px; }
  .lead-stage .lead-preview-call blockquote { font-size: 20px; }
}
.lead-fill .lead-steps li { opacity: 0.42; transition: opacity 0.5s; }
.lead-fill .lead-steps li::before { transition: background 0.5s, border-color 0.5s; }
.lead-fill .lead-steps li.on { opacity: 1; }
.lead-fill .lead-steps li.on::before { background: var(--red); border-color: var(--red); }
.lead-fill .lead-steps li strong { transition: color 0.5s; }
.lead-fill .lead-steps li.current strong { color: #ffd6b2; }
.lead-fill .fill-part { filter: blur(6px); opacity: 0.3; transform: translateY(8px); transition: filter 0.6s, opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lead-fill .fill-part.filled { filter: none; opacity: 1; transform: none; }
/* the card stays in place while it fills: needs the dark band not to be a scroll container of its own */
@supports (overflow: clip) {
  .dark { overflow: clip; }
  .lead-fill.pinned::after, .lead-fill.let-go::after { content: ""; display: block; height: 70vh; } /* the way the card stays along */
  .lead-fill.pinned .lead-stage { position: sticky; top: var(--pin-top, 92px); }
}
.hero .btn { transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.hero .btn:hover { transform: translateY(-1px); }
/* the headline's last words take turns */
.hero-title .rot { display: grid; overflow: hidden; }
.hero-title .rot-word { grid-area: 1 / 1; transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.6s; }
.hero-title .rot-word.in { transform: translateY(100%); opacity: 0; }
.hero-title .rot-word.out { transform: translateY(-100%); opacity: 0; }

/* --- How it works as a scroll story (site/motion.js): an example card moves step by step, the line fills as you scroll --- */
.story-track { display: none; position: relative; height: 56px; margin-top: 22px; }
@media (min-width: 1101px) { .story-on .story-track { display: block; } }
.story-card { position: absolute; top: 0; left: 0; width: calc(25% - 15px); display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07); font-size: 13px;
  transform: translateX(calc(var(--at, 0) * (100% + 20px))); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.story-tag { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.story-step { display: none; }
.story-step.on { display: inline; animation: story-in 0.45s ease both; }
@keyframes story-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.story-on .steps.story::before, .story-on .steps.story.in::before { transform: scaleX(var(--p, 0)); transition: transform 0.15s linear; opacity: 0.6; }
.step .step-icon { transition: background 0.3s, color 0.3s; }
.step.reached .step-icon { background: var(--red); color: var(--stone); }

/* --- Founder avatar (booking section, demo launcher) --- */
.cta-band .demo-founder { display: inline-flex; align-items: center; gap: 12px; text-align: left; line-height: 1.35; }
.face { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--stone); color: var(--red-deep); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.demo-launcher.with-face { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; transition: transform 0.2s, background 0.2s; }
.demo-launcher.with-face:hover { transform: translateY(-2px); }
.demo-launcher .face { width: 32px; height: 32px; font-size: 12px; }

/* --- Footer --- */
footer.site.big { position: relative; overflow: hidden; }
.footer-map { position: absolute; right: -40px; bottom: -30px; width: min(560px, 70vw); height: auto; pointer-events: none; }
footer.site .wrap.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-top: 64px; padding-bottom: 40px; }
.footer-contact h2 { font-size: clamp(30px, 4vw, 44px); color: var(--stone); }
.footer-contact h2 em { font-style: italic; color: var(--red-light); }
.footer-contact ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.footer-contact li svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #1a1515; color: var(--red-light); }
footer.site.big a { color: #cfc8c1; text-decoration: none; transition: color 0.2s; }
footer.site.big a:hover { color: var(--stone); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col strong { color: var(--stone); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
footer.site .wrap.footer-bottom { position: relative; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid #1f1f1f; }
@media (max-width: 900px) {
  footer.site .wrap.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-map { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-item, .hero-title .rot-word, .story-card, .nav-ink, header.nav.sticky, header.nav.sticky .wrap { transition: none; }
  .signal-item:first-child .signal-kind::before, .signal-chip, .story-step.on, .market-lead { animation: none; }
}
