/*
Theme Name: Intraweb
Theme URI: https://intraweb.ee
Author: Intraweb OÜ
Author URI: https://intraweb.ee
Description: Käsitsi kirjutatud tume modernistlik ühelehe-teema Intrawebi kodulehele. Space Grotesk + Archivo, aktsentvärv valitav kohandajas, hele/tume režiim.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intraweb
*/

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --acc: #ccff33; /* ülekirjutatav kohandajast (Välimus → Kohanda → Intraweb) */
  --bg: #0c0c0d;
  --fg: #f2f0ea;
  --muted: #a4a29b;
  --dim: #6b6a64;
  --dimmer: #8f8d84;
  --faint: #3a3a3f;
  --line: #26262a;
  --panel: #141417;
  --onacc: #0c0c0d;
  --grid: rgba(255, 255, 255, .035);
  --acc-text: var(--acc);
  --acc-fill: var(--acc);
  --display: "Space Grotesk", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --pad-x: clamp(20px, 4.2vw, 48px);
}
html[data-theme="light"] {
  --bg: #f4f3ee;
  --fg: #141313;
  --muted: #57554e;
  --dim: #8f8d84;
  --dimmer: #6b6a64;
  --faint: #cfcdc4;
  --line: #dcdad2;
  --panel: #eae8e1;
  --grid: rgba(0, 0, 0, .05);
  --acc-text: color-mix(in srgb, var(--acc) 55%, #141313);
  --acc-fill: color-mix(in srgb, var(--acc) 55%, #141313);
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--acc) 35%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  z-index: 100; padding: 10px 16px;
  background: var(--acc); color: var(--onacc);
  font-weight: 800; text-decoration: none;
}

.iw-wrap { max-width: 1276px; margin: 0 auto; padding-inline: var(--pad-x); }

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes iwrise { from { transform: translateY(1.05em); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* Nihe = täpselt üks .iw-mgroup (front-page.php joonistab neid 8) → õmblusteta kordus. */
@keyframes iwmarquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% / 8)); } }
@keyframes iwblink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes iwbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes iwdrift { 0%, 100% { transform: translate(-8%, 0) scale(1); } 50% { transform: translate(10%, 6%) scale(1.18); } }
@keyframes iwspin { to { transform: rotate(360deg); } }

/* ── Grain overlay ──────────────────────────────────────────────── */
.iw-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: soft-light;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Buttons ────────────────────────────────────────────────────── */
.iw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 800;
  font-size: 14px; line-height: 1.2;
  background: var(--acc); color: var(--onacc);
  border: 1px solid transparent; border-radius: 0;
  padding: 9px 15px;
  transition: filter .15s;
}
.iw-btn:hover { filter: brightness(1.08); }
.iw-btn:active { filter: brightness(.94); }
.iw-btn--lg { font-size: 16px; padding: 14px 24px; }

.iw-theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 0;
  background: transparent; cursor: pointer; color: var(--fg);
  padding: 0;
  transition: border-color .15s;
}
.iw-theme-btn:hover { border-color: var(--dim); }
.iw-theme-btn svg { display: block; }

/* ── Nav ────────────────────────────────────────────────────────── */
.iw-nav {
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 6;
}
.iw-nav .iw-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.iw-logo {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -.03em;
  color: var(--fg); text-decoration: none;
}
.iw-logo-sq {
  width: .16em; height: .16em;
  background: var(--acc-fill);
  margin: 0 .12em;
  transform: translateY(.02em);
}
.iw-nav-right { display: flex; align-items: center; gap: 18px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.iw-hero {
  position: relative; z-index: 6;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6.5vw, 76px);
  overflow: hidden;
}
.iw-hero-gridbg {
  position: absolute; inset: 0;
  pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0, #000 30%, transparent 78%);
}
.iw-hero-glow {
  position: absolute; top: -40%; left: 14%;
  width: 62%; height: 150%;
  pointer-events: none;
  filter: blur(90px); opacity: .55;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 26%, transparent), transparent);
  animation: iwdrift 15s ease-in-out infinite;
}
.iw-hero-mouse {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 26%), color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%);
  transition: background .1s linear;
}
.iw-hero-spin {
  position: absolute; top: -56px; right: -56px;
  pointer-events: none; opacity: .07;
  animation: iwspin 44s linear infinite;
}
.iw-hero-inner { position: relative; z-index: 2; }
.iw-kicker {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dimmer);
}
.iw-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(46px, 8.9vw, 108px);
  line-height: .92; letter-spacing: -.04em;
  margin: 34px 0 0 -.05em;
}
.iw-h1 > span { display: block; }
.iw-word { display: inline-block; color: var(--acc-text); }
.iw-word.is-in { animation: iwrise .6s cubic-bezier(.2, .7, .2, 1) both; }
.iw-hero-foot {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 40px;
  margin-top: 48px;
}
.iw-lede {
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6;
  max-width: 52ch; margin: 0;
  color: var(--muted);
}
.iw-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--dim);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.iw-scroll-arrow { display: block; font-size: 20px; animation: iwbob 1.8s ease-in-out infinite; }

/* ── Marquee ────────────────────────────────────────────────────── */
.iw-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 6;
  padding: 16px 0;
}
.iw-marquee {
  display: flex; width: max-content;
  animation: iwmarquee 22s linear infinite;
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -.01em;
  color: var(--muted);
}
.iw-mgroup { display: flex; gap: 40px; padding-right: 40px; white-space: nowrap; }
.iw-mgroup .iw-msep { color: var(--acc-text); }

/* ── Sections ───────────────────────────────────────────────────── */
.iw-section { position: relative; z-index: 6; }
.iw-label {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
}
.iw-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.iw-label-note { font-size: 13px; color: var(--dim); }

/* Teenused */
.iw-services { padding: 64px 0 24px; }
.iw-services .iw-label { margin-bottom: 8px; }
.iw-srow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) auto 60px;
  gap: 32px; align-items: center;
  padding: 34px 20px; margin: 0 -20px;
  border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background .25s, padding .25s;
}
.iw-srow:last-child { border-bottom: 1px solid var(--line); }
.iw-srow:hover { background: var(--panel); padding-left: 32px; padding-right: 32px; }
.iw-snum {
  font-family: var(--display); font-weight: 700;
  font-size: 15px; color: var(--acc-text);
}
.iw-stitle {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em;
  margin: 0;
}
.iw-sdesc { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.iw-sprice {
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right; white-space: nowrap;
}
.iw-sprice-from {
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.iw-sprice-sum {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1;
  margin-top: 8px;
}
.iw-sprice-unit { font-size: 12px; color: var(--muted); margin-top: 7px; }
.iw-sarrow { font-size: 26px; text-align: right; color: var(--acc-text); }

/* Protsess */
.iw-process { padding: 56px 0 24px; }
.iw-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.iw-step { padding: 32px 24px 40px; border-right: 1px solid var(--line); }
.iw-step:first-child { padding-left: 0; }
.iw-step:last-child { border-right: 0; padding-right: 0; }
.iw-step-num {
  font-family: var(--display); font-weight: 700;
  font-size: 15px; color: var(--acc-text);
}
.iw-step h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 23px; letter-spacing: -.015em;
  margin: 18px 0 12px;
}
.iw-step p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

.iw-callout {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--panel);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.iw-callout p {
  font-size: 18px; line-height: 1.4; font-weight: 600;
  margin: 0; max-width: 56ch;
}
.iw-callout .iw-acc { color: var(--acc-text); }
.iw-callout .iw-btn { flex: none; }

/* Lubadus */
.iw-promise { padding: 72px 0; border-top: 1px solid var(--line); margin-top: 40px; }
.iw-promise .iw-label { margin-bottom: 28px; }
.iw-promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.iw-promise-grid p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(23px, 2.9vw, 34px); line-height: 1.18; letter-spacing: -.02em;
  margin: 0; padding: 26px 0;
  border-top: 1px solid var(--line);
}
.iw-promise-grid .iw-acc { color: var(--acc-text); }

/* Kontakt / CTA */
.iw-cta { padding: 76px 0 44px; border-top: 1px solid var(--line); }
.iw-cta-grid {
  display: grid; grid-template-columns: 1.45fr .85fr;
  gap: 56px; align-items: center;
}
.iw-h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: .98; letter-spacing: -.03em;
  margin: 0 0 0 -.04em;
}
.iw-h2 > span { display: block; }
.iw-h2 .iw-acc { display: inline; color: var(--acc-text); }
.iw-cta-actions {
  display: flex; gap: 16px; margin-top: 34px;
  align-items: center; flex-wrap: wrap;
}
.iw-cta-alt { font-size: 15px; color: var(--muted); }
.iw-cta-alt a { color: var(--fg); font-weight: 600; text-decoration: none; }
.iw-cta-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.iw-cta-aside {
  border-left: 1px solid var(--line);
  padding-left: 40px;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.iw-avail {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.iw-avail-dot {
  width: 8px; height: 8px; display: block;
  background: var(--acc-fill);
  animation: iwblink 1.8s ease-in-out infinite;
}
.iw-cta-aside p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
.iw-cta-meta {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.iw-footer {
  position: relative; z-index: 6;
  overflow: hidden;
  padding: 24px 0 20px;
  border-top: 1px solid var(--line);
}
.iw-wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 16.5vw, 200px);
  line-height: .8; letter-spacing: -.045em;
  color: var(--panel);
  margin: 0 0 -.06em -.06em;
  user-select: none;
  display: inline-flex; align-items: center;
}
.iw-wordmark-sq {
  width: .13em; height: .13em;
  background: color-mix(in srgb, var(--acc) 55%, var(--panel));
  margin: 0 .1em;
  transform: translateY(.04em);
}
.iw-foot-row {
  display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
  padding-top: 16px;
}
.iw-foot-link { color: var(--dim); text-decoration: none; }
.iw-foot-link:hover { color: var(--acc-text); }

/* ── Alamlehed ──────────────────────────────────────────────────── */
.iw-page-hero {
  position: relative; overflow: hidden; z-index: 6;
  padding: clamp(44px, 6.5vw, 76px) 0 clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.iw-page-hero .iw-hero-gridbg, .iw-page-hero .iw-hero-glow { z-index: 0; }
.iw-page-hero .iw-wrap { position: relative; z-index: 2; }
.iw-page-spin {
  position: absolute; top: -70px; right: -70px;
  pointer-events: none; opacity: .06;
  animation: iwspin 44s linear infinite;
}
.iw-crumb {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dimmer);
}
.iw-crumb a { color: var(--dimmer); text-decoration: none; }
.iw-crumb a:hover { color: var(--acc-text); }
.iw-crumb .iw-crumb-sep { color: var(--acc-text); }
.iw-h1--page {
  font-size: clamp(40px, 6.6vw, 84px);
  margin: 24px 0 0 -.04em;
  line-height: .96;
}
.iw-h1--page > span { display: inline; }
.iw-h1--page .iw-acc { color: var(--acc-text); }

.iw-page-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px 64px; align-items: start;
  padding: clamp(36px, 5vw, 56px) var(--pad-x) 72px;
  position: relative; z-index: 6;
  max-width: 1276px; margin: 0 auto;
}
.iw-page-aside {
  position: sticky; top: 40px;
  border-left: 1px solid var(--line);
  padding-left: 36px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.iw-page-aside .iw-btn { margin-top: 4px; }

/* Sisu tüpograafia */
.iw-prose { counter-reset: iwh2; max-width: 70ch; }
.iw-prose > p:first-child {
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6;
  color: var(--fg);
}
.iw-prose p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 16px; }
.iw-prose strong, .iw-prose b { color: var(--fg); }
.iw-prose a { color: var(--acc-text); text-underline-offset: 3px; }
.iw-prose h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -.02em;
  line-height: 1.1;
  margin: 46px 0 16px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.iw-prose h2::before {
  counter-increment: iwh2;
  content: counter(iwh2, decimal-leading-zero);
  display: block;
  font-size: 14px; letter-spacing: .04em;
  color: var(--acc-text);
  margin-bottom: 14px;
}
.iw-prose h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 21px; letter-spacing: -.015em;
  margin: 32px 0 12px;
}
.iw-prose ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.iw-prose li {
  position: relative;
  padding: 11px 0 11px 26px;
  color: var(--muted); line-height: 1.55;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.iw-prose li::before {
  content: '◆';
  position: absolute; left: 0; top: 13px;
  color: var(--acc-text); font-size: 10px;
}
.iw-prose li:last-child { border-bottom: 0; }
.iw-prose ol { padding-left: 22px; margin: 18px 0 26px; }
.iw-prose ol li { border: 0; padding: 6px 0; }
.iw-prose ol li::before { content: none; }
.iw-prose img { margin: 24px 0; }
/* CTA-nupp sisu sees: .iw-prose a (0,1,1) võidaks muidu .iw-btn värvi (0,1,0)
   ja tekst kaoks aktsentvärvi peale. .iw-prose a.iw-btn = (0,2,1) võtab tagasi. */
.iw-prose a.iw-btn {
  color: var(--onacc); text-decoration: none;
  margin: 6px 0 30px;
}
.iw-prose a.iw-btn:hover { text-decoration: none; }
.iw-prose blockquote {
  margin: 26px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--acc-fill);
  font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: -.01em;
}

/* ── EL / EIS toetuse leht ──────────────────────────────────────── */
.iw-page-lede { margin-top: 24px; max-width: 60ch; }

.iw-eis { position: relative; z-index: 6; padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 6vw, 80px); }
.iw-eis-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px 72px; align-items: start;
}
.iw-eis-main { max-width: 66ch; }
.iw-eis-main > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.iw-eis-main > p:last-child { margin-bottom: 0; }

.iw-eis-aside {
  position: sticky; top: 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.iw-eis-logo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 28px 20px;
}
.iw-eis-logo img { width: 100%; height: auto; }
.iw-eis-logo figcaption {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #e0ded6;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #6b6a64; text-align: center;
}

.iw-facts { margin: 0; border-top: 1px solid var(--line); }
.iw-fact { padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.iw-facts dt {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.iw-facts dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg); }

/* Blogi / arhiiv (varuvaade) */
.iw-content { padding: 64px 0 80px; position: relative; z-index: 6; }
.iw-content h1.iw-page-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -.03em; line-height: 1.02;
  margin: 0 0 32px;
}
.iw-entry { border-top: 1px solid var(--line); padding: 32px 0; }
.iw-entry h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; font-size: 28px; }
.iw-entry h2 a { color: var(--fg); text-decoration: none; }
.iw-entry h2 a:hover { color: var(--acc-text); }
.iw-entry-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .iw-eis-grid { grid-template-columns: 1fr; }
  .iw-eis-aside { position: static; max-width: 420px; }
  .iw-page-grid { grid-template-columns: 1fr; }
  .iw-page-aside {
    position: static;
    border-left: 0; border-top: 1px solid var(--line);
    padding-left: 0; padding-top: 28px;
  }
}
@media (max-width: 900px) {
  .iw-srow { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 12px 20px; }
  .iw-snum { grid-column: 1; grid-row: 1; }
  .iw-stitle { grid-column: 2; grid-row: 1; }
  .iw-sarrow { grid-column: 3; grid-row: 1; font-size: 22px; }
  .iw-sdesc { grid-column: 2 / 4; grid-row: 2; }
  .iw-sprice {
    grid-column: 2 / 4; grid-row: 3;
    flex-direction: row; align-items: baseline; justify-content: flex-start;
    gap: 9px; text-align: left;
  }
  .iw-sprice-from, .iw-sprice-sum, .iw-sprice-unit { margin-top: 0; }
  .iw-sprice-sum { font-size: 22px; }
  .iw-steps { grid-template-columns: 1fr 1fr; }
  .iw-step { padding: 28px 24px 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .iw-step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .iw-step:nth-child(even) { padding-left: 24px; }
  .iw-step:nth-last-child(-n+2) { border-bottom: 0; }
  .iw-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .iw-cta-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
}
@media (max-width: 760px) {
  .iw-hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .iw-scroll { display: none; }
  .iw-promise-grid { grid-template-columns: 1fr; }
  .iw-marquee { font-size: 18px; }
  .iw-nav .iw-wrap { padding-block: 14px; }
  .iw-callout { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .iw-steps { grid-template-columns: 1fr; }
  .iw-step, .iw-step:nth-child(odd), .iw-step:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .iw-step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .iw-step:last-child { border-bottom: 0; }
  .iw-srow { grid-template-columns: 32px minmax(0, 1fr) 30px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iw-marquee, .iw-hero-glow, .iw-hero-spin, .iw-scroll-arrow, .iw-avail-dot, .iw-word {
    animation: none !important;
  }
}

/* ── Kontaktivorm (Contact Form 7) ──────────────────────────────── */
.iw-form { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 44px; }
.iw-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin: 0 0 28px; }
.iw-field { display: flex; flex-direction: column; gap: 8px; }
.iw-field > .iw-flabel { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.iw-field .wpcf7-form-control-wrap { display: block; }
.iw-field input[type="text"],
.iw-field input[type="email"],
.iw-field textarea,
.iw-field select {
  display: block; width: 100%;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px;
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  transition: border-color .15s;
}
.iw-field input:focus, .iw-field textarea:focus, .iw-field select:focus { border-color: var(--acc-text); outline: none; }
.iw-field textarea { resize: vertical; min-height: 150px; }
.iw-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-color: var(--bg);
  text-overflow: ellipsis;
}
.iw-field select option { background: var(--bg); color: var(--fg); }
.iw-field .wpcf7-form-control-wrap:has(select) { position: relative; }
.iw-field .wpcf7-form-control-wrap:has(select)::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim);
  transform: translateY(-70%) rotate(45deg);
}
.iw-field--full { grid-column: 1 / -1; }
.iw-hp { position: absolute !important; left: -9999px !important; }

/* Kontrollküsimus (CF7 [quiz]). Markup on CF7 oma: .wpcf7-form-control-wrap > label >
   span.wpcf7-quiz-label + input. Wrapper on <div>, MITTE <label> — CF7 joonistab oma
   labeli ja label-labeli sees oleks vigane HTML. */
.iw-field--quiz .wpcf7-form-control-wrap > label {
  display: flex; align-items: center; gap: 14px;
}
.iw-field--quiz .wpcf7-quiz-label {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; color: var(--fg);
  white-space: nowrap;
}
.iw-field--quiz input[type="text"] { width: 92px; flex: none; text-align: center; }

/* CF7 nupp, spinner, veateated */
.iw-form input[type="submit"] { width: auto; }
.iw-form .wpcf7 .wpcf7-spinner { margin: 0 0 0 14px; vertical-align: middle; }
.iw-form .wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 700; color: #b3402e; }
.iw-field input.wpcf7-not-valid,
.iw-field textarea.wpcf7-not-valid,
.iw-field select.wpcf7-not-valid { border-color: #b3402e; }
.iw-form .wpcf7 form.wpcf7-form .wpcf7-response-output {
  margin: 28px 0 0; padding: 12px 16px;
  border: 1px solid var(--acc-text); border-radius: 0;
  color: var(--acc-text); font-weight: 700;
}
.iw-form .wpcf7 form.wpcf7-form.invalid .wpcf7-response-output,
.iw-form .wpcf7 form.wpcf7-form.unaccepted .wpcf7-response-output,
.iw-form .wpcf7 form.wpcf7-form.payment-required .wpcf7-response-output,
.iw-form .wpcf7 form.wpcf7-form.spam .wpcf7-response-output,
.iw-form .wpcf7 form.wpcf7-form.failed .wpcf7-response-output,
.iw-form .wpcf7 form.wpcf7-form.aborted .wpcf7-response-output { border-color: #b3402e; color: #b3402e; }
.iw-form-note { font-weight: 700; padding: 12px 16px; border: 1px solid var(--acc-text); color: var(--acc-text); margin: 0 0 28px; }
.iw-form-note--err { border-color: #b3402e; color: #b3402e; }
.iw-form-note a { color: inherit; }

@media (max-width: 900px) {
  .iw-form-grid { grid-template-columns: 1fr 1fr; }
  .iw-field--budget { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .iw-form-grid { grid-template-columns: 1fr; } }

/* ── Peamenüü lingid ────────────────────────────────────────────── */
.iw-menu {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px);
  list-style: none; margin: 0; padding: 0 16px;
}
.iw-menu a {
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  transition: color .15s;
}
.iw-menu a:hover { color: var(--fg); }
.iw-menu a.is-active { color: var(--acc-text); }
@media (max-width: 900px) { .iw-menu { display: none; } }
/* Viies menüüpunkt ("ChatGPT reklaamid") murraks 901–1160px vahemikus teisele reale;
   kitsendame seal vahet ja tähesammu, et riba jääks ühele reale. Mõõdetud 901–1500px. */
@media (min-width: 901px) and (max-width: 1160px) {
  .iw-menu { gap: 11px; padding: 0 8px; }
  .iw-menu a { font-size: 11.5px; letter-spacing: .02em; }
}
@media (min-width: 961px) and (max-width: 1160px) {
  .iw-menu { gap: 14px; padding: 0 12px; }
  .iw-menu a { font-size: 12px; letter-spacing: .03em; }
}

/* ── Mobiilimenüü (burger) ──────────────────────────────────────── */
.iw-burger { display: none; }
@media (max-width: 900px) {
  .iw-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: 0;
    background: transparent; color: var(--fg);
    cursor: pointer; padding: 0;
    transition: border-color .15s;
  }
  .iw-burger:hover { border-color: var(--dim); }
  .iw-nav { position: relative; }
  .iw-nav.is-open { z-index: 50; }
  .iw-nav.is-open .iw-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    margin: 0; padding: 0; z-index: 40;
  }
  .iw-nav.is-open .iw-menu li { border-top: 1px solid var(--line); }
  .iw-nav.is-open .iw-menu a { display: block; padding: 14px var(--pad-x); font-size: 14px; }
}

/* ── Maandumisleht (Google Ads) ──────────────────────────────────── */
.iw-lp-hero {
  position: relative; overflow: hidden; z-index: 6;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.iw-lp-hero .iw-hero-gridbg, .iw-lp-hero .iw-hero-glow { z-index: 0; }
.iw-lp-hero .iw-wrap { position: relative; z-index: 2; }
.iw-lp-hero .iw-page-spin { top: -80px; right: -80px; }
.iw-lp-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: .96; letter-spacing: -.038em;
  margin: 26px 0 0 -.04em;
  max-width: 16ch;
}
.iw-lp-h1 .iw-acc { color: var(--acc-text); }
.iw-lp-lede { margin-top: 26px; max-width: 58ch; }
.iw-lp-actions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 34px;
}
.iw-lp-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 9px 15px;
  transition: border-color .15s, color .15s;
}
.iw-lp-ghost:hover { border-color: var(--acc-text); color: var(--acc-text); }

/* Usaldusriba — juuksekarva-joonega eraldatud faktid */
.iw-lp-trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(38px, 5vw, 58px);
  border-top: 1px solid var(--line);
}
.iw-lp-trust div {
  padding: 22px 24px 4px;
  border-right: 1px solid var(--line);
}
.iw-lp-trust div:first-child { padding-left: 0; }
.iw-lp-trust div:last-child { border-right: 0; padding-right: 0; }
.iw-lp-tnum {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(23px, 2.5vw, 30px); line-height: 1;
  letter-spacing: -.02em;
}
.iw-lp-tlabel {
  display: block; margin-top: 9px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
}

/* Pakkumised — kolm tulpa püstiste joontega, sama keel mis .iw-steps */
.iw-lp-offers { padding: clamp(56px, 6vw, 72px) 0 0; }
.iw-lp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.iw-lp-card {
  display: flex; flex-direction: column;
  padding: 34px 28px 40px;
  border-right: 1px solid var(--line);
}
.iw-lp-card:first-child { padding-left: 0; }
.iw-lp-card:last-child { border-right: 0; padding-right: 0; }
.iw-lp-cnum {
  font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: .06em;
  color: var(--acc-text);
}
.iw-lp-cname {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(21px, 2.2vw, 26px); line-height: 1.1;
  letter-spacing: -.02em;
  margin: 14px 0 0;
}
.iw-lp-cnote { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.iw-lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.iw-lp-pfrom {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
  flex-basis: 100%;
}
.iw-lp-psum {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 3.6vw, 46px); line-height: 1;
  letter-spacing: -.03em;
}
.iw-lp-punit { font-size: 13px; color: var(--muted); }
.iw-lp-list { list-style: none; margin: 26px 0 0; padding: 0; }
.iw-lp-list li {
  position: relative;
  padding-left: 20px; margin-bottom: 11px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.iw-lp-list li::before {
  content: "◆";
  position: absolute; left: 0; top: 0;
  font-size: 8px; line-height: 2.6;
  color: var(--acc-text);
}
.iw-lp-ccta {
  margin-top: auto; padding-top: 26px;
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  color: var(--fg); align-self: flex-start;
}
.iw-lp-ccta span { color: var(--acc-text); transition: transform .15s; display: inline-block; }
.iw-lp-ccta:hover { text-decoration: underline; text-underline-offset: 4px; }
.iw-lp-ccta:hover span { transform: translate(3px, -3px); }
.iw-lp-foot {
  margin: 26px 0 0; font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 18px;
}

/* KKK — details/summary, ilma JS-ita */
.iw-lp-faq { padding: clamp(56px, 6vw, 72px) 0 0; }
.iw-lp-faq .iw-label { margin-bottom: 26px; }
.iw-lp-q {
  border-top: 1px solid var(--line);
}
.iw-lp-q:last-of-type { border-bottom: 1px solid var(--line); }
.iw-lp-q > summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  list-style: none; cursor: pointer;
  padding: 24px 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(17px, 1.8vw, 20px); line-height: 1.3;
  letter-spacing: -.015em;
  transition: color .15s;
}
.iw-lp-q > summary::-webkit-details-marker { display: none; }
.iw-lp-q > summary:hover { color: var(--acc-text); }
.iw-lp-q > summary::after {
  content: "+";
  font-family: var(--body); font-weight: 400;
  font-size: 26px; line-height: 1; color: var(--acc-text);
  flex: none;
}
.iw-lp-q[open] > summary::after { content: "–"; }
.iw-lp-a {
  margin: 0; padding: 0 0 26px;
  max-width: 74ch;
  font-size: 15px; line-height: 1.65; color: var(--muted);
}

/* CTA-riba enne vormi */
.iw-lp-cta { padding-top: clamp(56px, 6vw, 72px); }

@media (max-width: 900px) {
  .iw-lp-trust { grid-template-columns: 1fr 1fr; }
  .iw-lp-trust div { padding: 20px 20px 16px; }
  .iw-lp-trust div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .iw-lp-trust div:nth-child(2n+1) { padding-left: 0; }
  .iw-lp-trust div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .iw-lp-grid { grid-template-columns: 1fr; }
  .iw-lp-card {
    padding: 30px 0 34px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .iw-lp-card:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .iw-lp-trust { grid-template-columns: 1fr; }
  .iw-lp-trust div { border-right: 0; padding: 18px 0 14px; }
  .iw-lp-trust div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .iw-lp-actions .iw-btn, .iw-lp-actions .iw-lp-ghost { width: 100%; }
}

/* Fokuseeritud maandumisleht (/<teenus>/pakkumine/): üks pakkumine üle laiuse,
   loend kahes veerus. Tulpade juuksekarva-jooni siin pole, sest tulpi on üks. */
.iw-lp-grid--single { grid-template-columns: 1fr; }
.iw-lp-grid--single .iw-lp-card {
  padding-left: 0; padding-right: 0;
  border-right: 0; border-bottom: 0;
}
.iw-lp-grid--single .iw-lp-list {
  columns: 2; column-gap: 56px;
  margin-top: 30px;
}
.iw-lp-grid--single .iw-lp-list li { break-inside: avoid; }
.iw-lp-other {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.iw-lp-other .iw-lp-ccta { margin-top: 0; padding-top: 0; }
@media (max-width: 760px) {
  .iw-lp-grid--single .iw-lp-list { columns: 1; }
}
