/* ==========================================================================
   Balticloop - light, simple, layered design
   Black + white shades for hierarchy, logo navy/teal as accents only.
   ========================================================================== */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  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"; src: url("../fonts/plex-sans-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  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"; src: url("../fonts/plex-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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"; src: url("../fonts/plex-sans-latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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"; src: url("../fonts/plex-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  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"; src: url("../fonts/plex-sans-latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap;
  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: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Inter"; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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 {
  /* shades of black/white = hierarchy */
  --ink: #0b0d10;        /* headings, primary buttons */
  --text: #2b3139;       /* body text */
  --muted: #677079;      /* secondary text */
  --faint: #a3aab1;      /* tertiary, decorations */
  --line: #e7e9ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --surface: #ffffff;    /* cards, form, buttons */
  --surface-rgb: 255, 255, 255;
  --veil-rgb: 255, 255, 255; /* page colour, for see-through header/veils */
  --on-ink: #ffffff;     /* text on --ink fills */
  --band: #0b0d10;       /* black CTA band + icon tiles (stay dark in both themes) */
  --hero-tint: #f1f6f6;
  --field-line: #d5dade;
  --error: #c62f3f;
  --focus-ring: rgba(11, 13, 16, 0.08);
  /* logo colours = accents only */
  --navy: #16324f;
  --teal: #5fa39c;
  --teal-ink: #3d7c75;   /* teal dark enough for text on white */
  --accent-grad: linear-gradient(95deg, #5fa39c 0%, #16324f 85%);
  /* depth */
  --sh-1: 0 1px 2px rgba(11, 13, 16, 0.04), 0 2px 8px rgba(11, 13, 16, 0.04);
  --sh-2: 0 2px 4px rgba(11, 13, 16, 0.04), 0 14px 34px -10px rgba(11, 13, 16, 0.14);
  --sh-3: 0 4px 10px rgba(11, 13, 16, 0.05), 0 28px 56px -16px rgba(11, 13, 16, 0.22);
  --radius: 18px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: only light;
}

/* Light only (owner, 2026-10-30). "only light" also tells Chrome / Samsung Internet
   not to auto-darken ("force dark") the page. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { -webkit-tap-highlight-color: transparent; }
a, button, input, textarea, label { touch-action: manipulation; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--on-ink); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 800px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
p + p { margin-top: 14px; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.eyebrow--dark { color: var(--teal); }
.accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; border-radius: 12px; }
.btn--primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 20px -10px rgba(11, 13, 16, 0.6); }
.btn--primary:hover { background: var(--navy); color: var(--on-ink); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(22, 50, 79, 0.6); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { color: var(--ink); border-color: var(--faint); transform: translateY(-1px); }
.btn--light { background: #fff; color: #0b0d10; }
.btn--light:hover { background: var(--teal); color: #0b0d10; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(var(--veil-rgb), 0.86); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__word span { color: var(--teal); }
.logo-mark { width: 40px; height: 25px; flex: none; }
.nav { margin-inline: auto; display: flex; align-items: center; }
.nav__list { display: flex; gap: 6px; }
.nav__link { display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.97rem; transition: color 0.2s, background-color 0.2s; }
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .site-header__actions { margin-left: 0; }

/* ET | EN segmented switch */
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang__opt { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 5px 9px; border-radius: 7px; text-align: center; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); }
.lang__opt:hover { color: var(--ink); }
.lang__opt.is-active { background: var(--ink); color: var(--on-ink); box-shadow: var(--sh-1); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn__bars { top: 21px; }
.menu-btn__bars::before { content: ""; left: 0; right: 0; top: -6px; }
.menu-btn__bars::after { content: ""; left: 0; right: 0; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav + .site-header__actions { margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gutter) 20px;
    padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 12px; font-size: 1.05rem; color: var(--text); }
  .nav__cta { display: inline-flex; min-height: 50px; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.15rem; } .logo-mark { width: 34px; }
  .site-header__inner { gap: 12px; }
  .site-header__actions { gap: 8px; }
}
@media (max-width: 340px) { .brand__word { font-size: 1.05rem; } .brand { gap: 7px; } .logo-mark { width: 30px; } }
/* open menu: scrollable if the screen is short (landscape phones) */
@media (max-width: 980px) { .nav.is-open { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; } }

/* ---------- Parallax depth background ---------- */
.px { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.px__layer { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; will-change: transform; }
.px__layer--mid { filter: blur(0.6px); }
.px use, .px circle, .px path { vector-effect: non-scaling-stroke; }
#loop path { vector-effect: non-scaling-stroke; }
/* light presets */
/* far blobs: radial gradients fade to transparent, so there are never hard edges */
.px-a { fill: url(#glow-teal); opacity: 0.55; }
.px-b { fill: url(#glow-navy); opacity: 0.3; }
.px-line { fill: none; stroke: var(--navy); stroke-width: 2; opacity: 0.22; }
.px-line--far { stroke: var(--teal); stroke-width: 10; opacity: 0.12; }
.px-line--near { stroke: var(--teal-ink); stroke-width: 2.5; opacity: 0.85; }
.px-ring { fill: none; stroke: var(--navy); stroke-width: 1.5; opacity: 0.16; }
.px-ring--near { stroke: var(--teal-ink); opacity: 0.6; }
.px-wire { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 4 7; opacity: 0.22; }
.px-dot { fill: var(--navy); opacity: 0.55; }
.px-dot:nth-of-type(3n) { fill: var(--teal); opacity: 0.9; }
/* dark preset (black CTA band) */
.px--dark .px-a { opacity: 0.5; }
.px--dark .px-b { opacity: 1; }
.px--dark .px-line { stroke: #fff; opacity: 0.16; }
.px--dark .px-line--far { stroke: var(--teal); opacity: 0.14; }
.px--dark .px-line--near { stroke: var(--teal); opacity: 0.9; }
.px--dark .px-ring { stroke: #fff; opacity: 0.14; }
.px--dark .px-ring--near { stroke: var(--teal); opacity: 0.7; }
.px--dark .px-wire { stroke: #fff; opacity: 0.18; }
.px--dark .px-dot { fill: #fff; opacity: 0.7; }
.px--dark .px-dot:nth-of-type(3n) { fill: var(--teal); opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(1000px 600px at 80% 30%, var(--hero-tint), transparent 70%), var(--bg); }
.hero--home { min-height: calc(88vh - var(--header-h)); min-height: calc(88svh - var(--header-h)); display: flex; align-items: center; padding: clamp(56px, 9vw, 120px) 0; }
.hero--page { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
/* soft white veil behind the text so shapes never hurt readability */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgb(var(--veil-rgb)) 0%, rgba(var(--veil-rgb), 0.85) 38%, rgba(var(--veil-rgb), 0) 68%); }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.8rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; }
.hero__title--page { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); }
.hero__lead { margin-top: 22px; max-width: 58ch; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }
.hero__lead + .hero__lead { margin-top: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 760px) {
  /* phones: widen + shift the layers so the right-hand shapes sit behind the text, softly */
  .hero .px__layer { left: -150%; width: 260%; }
  .hero::after { background: rgba(var(--veil-rgb), 0.55); }
  .hero .px { opacity: 0.75; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .hero__title { font-size: clamp(2rem, 0.6rem + 8.4vw, 2.5rem); }
  .hero__title--page { font-size: clamp(2rem, 0.6rem + 8.4vw, 2.3rem); }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 28px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-soft); }
.section--first { padding-top: clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-lead { color: var(--muted); font-size: 1.15rem; }

/* cards (layered: soft page -> white card -> lifted on hover) */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .card { padding: 24px 22px; } .point, .step, .service__fits { padding: 22px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); }
.card--link { text-decoration: none; color: inherit; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
@media (hover: hover) { .card--link:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; } }
.card__num { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--faint); letter-spacing: 0.06em; }
.card__title { font-size: 1.35rem; }
.card__text { color: var(--muted); }
.card__more { margin-top: auto; padding-top: 14px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.card__more span { display: inline-block; transition: transform 0.3s var(--ease); }
@media (hover: hover) { .card--link:hover .card__more span { transform: translateX(5px); } }

/* home: "Vähem käsitööd" band */
.section--band { background: var(--bg-soft); overflow: hidden; isolation: isolate; }
.band__inner { position: relative; z-index: 1; }
.band__title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.point { padding: 26px; background: rgba(var(--surface-rgb), 0.88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.point h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.point p { color: var(--muted); font-size: 0.98rem; }
.point__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--band); }
.point__icon svg { width: 28px; height: 18px; stroke: var(--teal); stroke-width: 2.5; }

/* black CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: #c4cad0; padding: clamp(72px, 10vw, 128px) 0; }
.cta-band__inner { position: relative; z-index: 1; max-width: 860px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.cta-band__title { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.cta-band__text { font-size: 1.15rem; max-width: 52ch; }
@media (max-width: 480px) { .cta-band__text { font-size: 1.05rem; } .cta-band .btn { width: 100%; } }
.cta-band .btn { margin-top: 12px; }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 8px 0 14px; }
.service__fits { align-self: start; padding: 26px; background: var(--bg-soft); border-radius: var(--radius); }
.service__fits-label { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 0.75rem; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.pricing { text-align: center; display: grid; justify-items: center; gap: 16px; }

/* ---------- Interactive workflow demos (/demo/, rewritten 2026-11-07) ---------- */
.demo [hidden] { display: none !important; }
.demos { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.demo { --demo-accent: var(--teal); --demo-accent-ink: var(--teal-ink); --demo-accent-soft: rgba(95, 163, 156, 0.12); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); padding: clamp(22px, 3vw, 38px); scroll-margin-top: calc(var(--header-h) + 16px); }
.demo__head { max-width: 680px; margin-bottom: 26px; }
.demo__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.demo__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--demo-accent-soft); color: var(--demo-accent-ink); flex: none; }
.demo__title { margin: 6px 0 10px; }
.demo__text { color: var(--muted); }
.demo__note { margin-top: 22px; font-size: 0.85rem; color: var(--muted); max-width: 760px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; border-radius: 10px; }

/* shared: incoming message card + file chip */
.msg { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.msg__label, .qt__trace-label { font-family: var(--font-head); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--demo-accent-ink); }
.msg__from { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.msg__body { color: var(--text); font-size: 0.95rem; }
.file-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.file-chip::before { content: ""; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }

/* 01 drawing -> quote */
.dq { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .dq { grid-template-columns: minmax(0, 1fr); } }
.dq__input, .dq__run { display: grid; gap: 16px; min-width: 0; }
.dq__run > .btn { justify-self: start; }
.dq__drawing { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px; }
.dq__drawing svg { display: block; width: 100%; height: auto; }
.plan__roof { fill: #f4f7f7; stroke: var(--ink); stroke-width: 3; }
.plan__ridge { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 14 8; }
.plan__valley { stroke: var(--muted); stroke-width: 1.5; }
.plan__arrow { fill: none; stroke: var(--muted); stroke-width: 2; }
.plan__title { font: 600 20px var(--font-head); fill: var(--muted); text-anchor: end; letter-spacing: 0.06em; }
.dq-dim line { stroke: var(--faint); stroke-width: 1.5; transition: stroke 0.3s; }
.dq-dim text { font: 500 22px var(--font-body); fill: var(--muted); text-anchor: middle; transition: fill 0.3s; }
.dq-dim--note text { text-anchor: start; font-weight: 600; }
.dq-dim.is-hit line { stroke: var(--teal); stroke-width: 2.5; }
.dq-dim.is-hit text { fill: var(--teal-ink); font-weight: 700; }
.dq__pitch { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.dq__pitch-label { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.dq__pitch-label output { font-family: var(--font-head); color: var(--teal-ink); }
.dq__pitch input { width: 100%; accent-color: var(--teal-ink); }
.dq__pitch-hint { font-size: 0.82rem; color: var(--muted); }

/* step list (quote) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flow__step { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; padding: 8px 0; color: var(--faint); }
.flow__dot { grid-row: span 2; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: background 0.3s, border-color 0.3s; }
.flow__label { font-weight: 600; font-size: 0.95rem; }
.flow__out { font-size: 0.88rem; color: var(--muted); min-height: 0; }
.flow__step.is-running { color: var(--ink); }
.flow__step.is-running .flow__dot { border-color: var(--teal); animation: demo-pulse 0.9s ease-in-out infinite; }
.flow__step.is-done { color: var(--ink); }
.flow__step.is-done .flow__dot { background: var(--teal); border-color: var(--teal); }
@keyframes demo-pulse { 50% { box-shadow: 0 0 0 5px rgba(95, 163, 156, 0.22); } }

/* quote table */
.qt { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.qt__head, .qt__line { display: grid; grid-template-columns: minmax(0, 1fr) 76px 64px 86px; gap: 10px; align-items: baseline; padding: 10px 14px; }
.qt__head { background: var(--bg-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.qt__head span:not(:first-child), .qt__qty, .qt__price, .qt__sum { text-align: right; font-variant-numeric: tabular-nums; }
.qt__row { border-top: 1px solid var(--line); animation: demo-rowin 0.35s var(--ease) both; }
.qt__line { cursor: pointer; list-style: none; font-size: 0.9rem; }
.qt__line::-webkit-details-marker { display: none; }
.qt__name { color: var(--ink); font-weight: 500; }
.qt__name::before { content: "›"; display: inline-block; width: 14px; color: var(--faint); transition: transform 0.2s; }
.qt__row[open] .qt__name::before { transform: rotate(90deg); }
.qt__sum { font-weight: 600; color: var(--ink); }
@media (hover: hover) { .qt__line:hover { background: var(--bg-soft); } }
.qt__trace { padding: 4px 14px 14px 28px; display: grid; gap: 6px; }
.qt__trace ol { margin: 0; padding-left: 18px; color: var(--text); font-size: 0.85rem; display: grid; gap: 3px; font-variant-numeric: tabular-nums; }
.qt__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; padding: 14px; border-top: 1px solid var(--line); background: var(--bg-soft); font-variant-numeric: tabular-nums; }
.qt__totals dt { color: var(--muted); }
.qt__totals dd { margin: 0; text-align: right; }
.qt__totals .is-total { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.qt__changed { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--teal-ink); }
@media (max-width: 520px) {
  .qt__head { display: none; }
  .qt__line { grid-template-columns: 1fr auto; row-gap: 2px; }
  .qt__name { grid-column: 1 / -1; }
  .qt__price { display: none; }
  .qt__qty { text-align: left; color: var(--muted); }
}
@keyframes demo-rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 02 shared company brain */
.br__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.br__company { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.br__sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.br__sources li { font-size: 0.78rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.br__sources li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: 1px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.seg__btn { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.seg__btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.br__tabs { margin-bottom: 18px; }
@media (max-width: 480px) { .br__tabs { display: flex; flex-wrap: nowrap; } .br__tabs .seg__btn { flex: 1 1 0; min-width: 0; padding: 7px 6px; font-size: 0.8rem; line-height: 1.2; white-space: normal; text-align: center; } }
.br__panel { display: grid; gap: 16px; }
.doc__label { font-family: var(--font-head); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); }

/* RAG map */
.rag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rag__mapbox { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.rag__maphead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.8rem; color: var(--muted); }
.rag__corpus { font-weight: 600; color: var(--ink); }
.rag__map { display: block; width: 100%; aspect-ratio: 2 / 1; background: var(--bg-soft); border-radius: 10px; cursor: grab; touch-action: pan-y; }
.rag__map:active { cursor: grabbing; }
@media (max-width: 640px) { .rag__map { aspect-ratio: 1 / 1; } }
.rag__live { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.rag__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: demo-pulse 1.6s ease-in-out infinite; }
.br__why { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.br__why li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.br__why strong { font-family: var(--font-head); color: var(--ink); font-size: 0.98rem; }
.br__why span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 820px) { .br__why { grid-template-columns: minmax(0, 1fr); } }
.rag__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: rs; }
.rag__steps li { counter-increment: rs; font-size: 0.78rem; line-height: 1.35; color: var(--faint); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; transition: color 0.3s, border-color 0.3s; }
.rag__steps li::before { content: counter(rs) ". "; font-weight: 700; }
.rag__steps li.is-on { color: #2f7f78; border-color: var(--line); box-shadow: inset 0 2px 0 #2f7f78; font-weight: 600; }
.rag__steps li.is-done { color: var(--text); }
@media (max-width: 480px) { .rag__steps { grid-template-columns: minmax(0, 1fr); } }
.rag__out { display: grid; gap: 12px; min-width: 0; }
.rag__out:has(> [data-answer][hidden]):has(> [data-hits][hidden]) { display: none; }
.rag__hits ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .rag__hits ol { grid-template-columns: minmax(0, 1fr); } }
.rag__hits { display: grid; gap: 8px; }
.rag__hits ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rag__hits li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.88rem; animation: demo-rowin 0.35s var(--ease) both; }
.rag__hit-meta { font-size: 0.74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rag__answer { padding: 14px 16px; border-radius: 12px; background: rgba(95, 163, 156, 0.1); border: 1px solid rgba(95, 163, 156, 0.35); color: var(--ink); font-size: 0.95rem; animation: demo-rowin 0.35s var(--ease) both; }
.rag__answer.is-unknown { background: var(--bg-soft); border-color: var(--line); }

/* brief */
.brief { display: grid; gap: 10px; max-width: 760px; }
.brief__when { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.brief__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief__item { display: grid; grid-template-columns: 118px 1fr; gap: 2px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; animation: demo-rowin 0.35s var(--ease) both; }
.brief__tag { grid-row: span 2; font-size: 0.76rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.brief__item--act .brief__tag { color: #a4661f; }
.brief__item p { color: var(--ink); font-size: 0.93rem; }
.brief__src { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 520px) { .brief__item { grid-template-columns: 1fr; } .brief__tag { grid-row: auto; } }

/* learns */
.learn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .learn { grid-template-columns: minmax(0, 1fr); } }
.learn__main { display: grid; gap: 12px; }
.learn__draft, .learn__fix { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s, background 0.3s, opacity 0.3s; }
.learn__draft p { color: var(--ink); }
.learn__draft.is-wrong { border-color: #d9a3a9; text-decoration: line-through; text-decoration-color: rgba(198, 47, 63, 0.5); }
.learn__draft.is-wrong .msg__label { text-decoration: none; }
.learn__draft.is-busy { opacity: 0.4; }
.learn__draft.is-right { border-color: var(--teal); background: rgba(95, 163, 156, 0.08); }
.learn__fix { background: var(--bg-soft); animation: demo-rowin 0.35s var(--ease) both; }
.learn__draft .learn__follows { font-size: 0.82rem; font-weight: 600; color: var(--teal-ink); }
.rules { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.rules__list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.rules__list li { font-size: 0.9rem; color: var(--ink); }
.rules__list li small { display: block; font-size: 0.76rem; color: var(--muted); }
.rules__list li.is-new { animation: demo-rowin 0.35s var(--ease) both; }
.rules__list li.is-new span { background: rgba(95, 163, 156, 0.18); border-radius: 4px; padding: 0 3px; }

/* 03: booking auto-reply (chat + calendar) */
.db { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .db { grid-template-columns: minmax(0, 1fr); } }
.db__chatcol { display: grid; gap: 14px; min-width: 0; }
.demo__pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.pill { font: inherit; font-size: 0.86rem; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (hover: hover) { .pill:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--faint); } }
.pill--slot { border-color: var(--teal); color: var(--teal-ink); }
.pill:disabled { opacity: 0.5; cursor: default; }
.chat { display: grid; gap: 10px; min-height: 220px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.chat__msg { display: grid; gap: 4px; max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; animation: demo-rowin 0.3s var(--ease) both; }
.chat__msg--you { justify-self: end; background: var(--surface); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.chat__msg--bot { justify-self: start; background: rgba(95, 163, 156, 0.13); border-bottom-left-radius: 4px; }
.chat__who { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chat__msg--bot .chat__who { color: var(--teal-ink); }
.chat__typing { color: var(--muted); font-style: italic; }
.chat__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat__facts { justify-self: end; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: flex-end; max-width: 88%; animation: demo-rowin 0.3s var(--ease) both; }
.chat__facts-label { font-size: 0.75rem; color: var(--muted); }
.tag { font-size: 0.76rem; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px dashed var(--teal); color: var(--teal-ink); }
.cal { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.cal__title { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 3px; }
.cal__dh { display: grid; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink); padding-bottom: 4px; }
.cal__dh small { font-weight: 400; color: var(--muted); font-size: 0.7rem; }
.cal__h { font-size: 0.72rem; color: var(--muted); align-self: center; font-variant-numeric: tabular-nums; }
.cal__slot { height: 24px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 0.75rem; color: #fff; transition: background 0.3s, border-color 0.3s; }
.cal__slot.is-busy { background: #e9ecef; border-color: #e9ecef; }
.cal__slot.is-offer { border: 2px solid var(--teal); background: rgba(95, 163, 156, 0.12); }
.cal__slot.is-booked { background: var(--teal-ink); border-color: var(--teal-ink); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.76rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); background: var(--surface); }
.lg--busy::before { background: #e9ecef; border-color: #e9ecef; }
.lg--offer::before { border: 2px solid var(--teal); background: rgba(95, 163, 156, 0.12); }
.lg--booked::before { background: var(--teal-ink); border-color: var(--teal-ink); }
.cal__note { font-size: 0.85rem; color: var(--teal-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .qt__row, .rag__hits li, .rag__answer, .brief__item, .learn__fix, .rules__list li.is-new, .chat__msg, .chat__facts { animation: none; }
  .flow__step.is-running .flow__dot, .rag__live-dot { animation: none; }
}

/* ---------- About page ---------- */
.story h2 { margin-bottom: 18px; }
.story__lead { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--ink); margin-bottom: 14px; }
.person { gap: 6px; }
.person__photo { aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, #eef2f3, #dfe5e8); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; letter-spacing: -0.03em; color: var(--faint); }
.person__name { font-size: 1.35rem; }
.person__role { color: var(--muted); }
.person__email { font-size: 0.95rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 14px; margin-top: 30px; }
.contact__info dt { font-size: 0.85rem; color: var(--muted); }
.contact__info dd { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.contact__info dd a { color: var(--ink); text-decoration: none; }
.contact__info dd a:hover { color: var(--teal-ink); }
.contact__sub { font-size: 1.1rem; margin: 32px 0 10px; }
.contact__people { display: grid; gap: 6px; }
.contact__people span { display: inline-block; min-width: 150px; color: var(--text); }
.contact__people a, .contact__info dd a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact__people { gap: 12px; }
  .contact__people li { display: grid; }
  .contact__people a { display: inline-block; padding: 4px 0; justify-self: start; }
  .contact__info dd a { display: inline-block; padding: 4px 0; }
  .form .btn { justify-self: stretch; }
}
.form { gap: 16px; padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--sh-3); }
.form__title { font-size: 1.4rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font-size: max(16px, 1rem); -webkit-appearance: none; appearance: none; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.field textarea { resize: vertical; min-height: 130px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.form .btn { justify-self: start; }
.form__note { font-size: 0.88rem; color: var(--muted); }
.form__status { min-height: 1.4em; font-size: 0.95rem; color: var(--muted); }
.form__status.is-error { color: var(--error); }
.form__status.is-success { color: var(--teal-ink); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Legal / case studies ---------- */
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.legal__updated { color: var(--muted); margin: 10px 0 24px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.case-list { display: grid; gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 56px; color: var(--muted); font-size: 0.95rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand p { margin-top: 12px; }
.site-footer__list { display: grid; gap: 8px; align-content: start; }
.site-footer__list a { color: var(--muted); text-decoration: none; }
.site-footer__list a:hover { color: var(--ink); }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link__ico { flex: none; }
@media (pointer: coarse) { .site-footer__list { gap: 2px; } .site-footer__list li { min-height: 40px; display: flex; align-items: center; } .site-footer__list a { padding: 8px 0; } }
.site-footer__bottom { padding-block: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Case study card: home page + "Meie töö / Our work" (Juku 13.11) */
.case-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .case-feature { grid-template-columns: 1fr; } }
.case-feature__body { display: grid; gap: 14px; }
.case-feature__title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; }
.case-feature__summary { color: var(--muted); font-size: 1.05rem; margin: 0; }
.case-stats { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .case-stats { grid-template-columns: 1fr; } }
.case-stat { display: grid; gap: 4px; padding: 16px 18px; background: var(--bg-soft); border-radius: calc(var(--radius) - 6px); border-top: 3px solid var(--teal); }
.case-stat__value { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--teal-ink); }
.case-stat__label { color: var(--text); font-size: 0.92rem; line-height: 1.35; }
.case-feature__read { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.case-feature__read .btn { margin: 0; }
.case-quote { margin: 0; padding: clamp(24px, 3vw, 34px); background: var(--bg-soft); border-radius: 14px; }
.case-quote__mark { display: block; width: 28px; height: 21px; color: var(--teal); margin-bottom: 14px; }
.case-quote blockquote { margin: 0; }
.case-quote p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.case-quote figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.case-feature__foot { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 10px; }
.case-feature__foot .btn { margin: 0; }
.case-big { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.case-big__value { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--teal-ink); letter-spacing: -0.02em; }
.case-big__label { font-size: 1.05rem; color: var(--text); font-weight: 500; }

/* ---------- One case study as a web page (/meie-too/<slug>/, Juku 15.11) ---------- */
.cs-wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.cs-hero { background: var(--bg-soft); padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.cs-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.cs-hero__text { display: grid; gap: 14px; justify-items: start; }
.cs-back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; font-weight: 500; text-decoration: none; margin-bottom: 6px; }
.cs-back:hover { color: var(--ink); }
.cs-title { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.cs-lead { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.65; color: var(--text); max-width: 38em; }
.cs-quote { margin: 0; padding: clamp(24px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); }
.cs-quote__mark { width: 30px; height: 22px; color: var(--teal); margin-bottom: 14px; }
.cs-quote blockquote { margin: 0; }
.cs-quote p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.cs-quote figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.cs-facts { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cs-facts li { display: grid; gap: 8px; align-content: start; padding: 22px 22px; border-left: 1px solid var(--line); min-width: 0; font-size: 0.93rem; line-height: 1.45; color: var(--text); }
.cs-facts li:first-child { border-left: 0; }
.cs-facts__big { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .cs-hero__grid { grid-template-columns: 1fr; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts li:nth-child(3) { border-left: 0; }
  .cs-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.cs-band { padding: clamp(56px, 7vw, 80px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-band--white { background: var(--surface); }
.cs-band h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.01em; }
.cs-intro { margin: 12px 0 0; max-width: 42em; font-size: 1.05rem; line-height: 1.65; }
.cs-mt { margin-top: clamp(48px, 6vw, 64px) !important; }
.cs-rows { margin-top: 20px; }
.cs-rows__head, .cs-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.cs-rows__head { padding-bottom: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cs-rows__head span:last-child { color: var(--teal-ink); }
.cs-row { padding: 22px 0; border-top: 1px solid var(--line); }
.cs-row h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.cs-row p { margin: 0; font-size: 0.97rem; line-height: 1.6; }
.cs-row__before { color: var(--muted); }
.cs-row__now { color: var(--text); padding-left: 16px; border-left: 2px solid var(--teal); }
.cs-row__tag { display: none; }
@media (max-width: 760px) {
  .cs-rows__head { display: none; }
  .cs-row { grid-template-columns: 1fr; gap: 10px; }
  .cs-row__tag { display: block; margin-bottom: 2px; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
  .cs-row__now .cs-row__tag { color: var(--teal-ink); }
}
.cs-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.cs-steps li { counter-increment: s; min-width: 0; }
.cs-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal-ink); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.cs-steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.cs-steps p { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--text); }
@media (max-width: 860px) { .cs-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cs-steps { grid-template-columns: 1fr; } }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.cs-two p { margin: 12px 0 0; font-size: 1.02rem; line-height: 1.65; }
@media (max-width: 760px) { .cs-two { grid-template-columns: 1fr; } }
.section-more { margin-top: 20px; }

.phone-who { color: var(--muted); font-size: 0.9em; }
.card__fit { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.card__fit b { color: var(--ink); font-weight: 600; }
.page-home .section--work { padding-top: 0; }
