/* ============ Puhastid — Eccua.fi ============ */

:root {
  --bone: #FAF8F3;
  --bone-2: #F2EEE4;
  --paper: #FFFFFF;
  --ink: #1A1815;
  --ink-2: #2B2823;
  --muted: #6B6558;
  --muted-2: #9A937F;
  --line: #E5DFD0;
  --line-2: #D9D2BE;
  --forest: #2F5D3A;
  --forest-2: #244A2E;
  --forest-3: #3B6B4A;
  --moss-tint: #EAF0E5;
  --sand: #E8E0CC;
  --stone: #C9C0A8;
  --lime: #BFD53C;
  --lime-2: #A7BF2E;
  --danger: #8E2F2F;

  --font-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-soft: 0 1px 2px rgba(28, 22, 12, 0.04), 0 12px 32px -16px rgba(28, 22, 12, 0.12);
  --shadow-card: 0 1px 2px rgba(28, 22, 12, 0.04), 0 24px 60px -28px rgba(28, 22, 12, 0.18);

  /* tweakable */
  --tw-h-scale: 1;
  --tw-h-weight: 500;
  --tw-radius: 18px;
  --tw-radius-sm: 10px;
  --tw-section-pad: 88px;
  --tw-hero-pad: 64px;
  --tw-gap: 24px;
  --tw-card-pad: 28px;
}

/* ===== Tweakable palettes ===== */
body.pal-forest { /* default — already in :root */ }

body.pal-navy {
  --forest: #1F3A6B;
  --forest-2: #15294F;
  --forest-3: #2B4F8C;
  --moss-tint: #E4ECF7;
}
body.pal-rust {
  --forest: #A8431F;
  --forest-2: #7E3318;
  --forest-3: #C45A2E;
  --moss-tint: #F7E9DD;
}
body.pal-charcoal {
  --forest: #1A1815;
  --forest-2: #000000;
  --forest-3: #3A352E;
  --moss-tint: #ECEAE3;
}
body.pal-olive {
  --forest: #5A6B2E;
  --forest-2: #46541F;
  --forest-3: #758740;
  --moss-tint: #EFEEDF;
}
body.pal-clay {
  --forest: #8A4E3B;
  --forest-2: #6E3D2D;
  --forest-3: #A36450;
  --moss-tint: #F4E7DE;
}

/* ===== Background tones ===== */
body.bg-bone   { --bone: #FAF8F3; --bone-2: #F2EEE4; --line: #E5DFD0; --line-2: #D9D2BE; }
body.bg-paper  { --bone: #FFFFFF; --bone-2: #F4F4F2; --line: #E8E6E1; --line-2: #DBD9D2; }
body.bg-clay   { --bone: #F4ECDF; --bone-2: #ECE0CB; --line: #DDD0B6; --line-2: #CFC09F; }
body.bg-stone  { --bone: #EEEAE2; --bone-2: #E2DCCF; --line: #CFC8B6; --line-2: #BCB39C; }
body.bg-mist   { --bone: #F3F3F1; --bone-2: #E8E8E4; --line: #D9D9D3; --line-2: #C8C8C0; }

/* ===== Dark mode ===== */
body.dark {
  --bone: #15140F;
  --bone-2: #1F1D17;
  --paper: #1B1915;
  --ink: #F2EEE2;
  --ink-2: #DDD7C5;
  --muted: #98917F;
  --muted-2: #6F6957;
  --line: #2B2820;
  --line-2: #3A372D;
  --moss-tint: rgba(255,255,255,0.05);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 14px 36px -14px rgba(0,0,0,0.55);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.5), 0 28px 60px -24px rgba(0,0,0,0.7);
}
body.dark .estonia { background: #0B0A07; border: 1px solid var(--line); }
body.dark .form-section { background: #0E0C09; }

/* ===== Font families ===== */
body.font-inter-tight { --font-display: "Inter Tight", "Inter", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; }
body.font-fraunces    { --font-display: "Fraunces", Georgia, serif; --font-body: "Inter", system-ui, sans-serif; }
body.font-grotesk     { --font-display: "Space Grotesk", system-ui, sans-serif; --font-body: "Space Grotesk", system-ui, sans-serif; }
body.font-serif-mix   { --font-display: "Instrument Serif", Georgia, serif; --font-body: "Inter", system-ui, sans-serif; }
body.font-dm          { --font-display: "DM Sans", system-ui, sans-serif; --font-body: "DM Sans", system-ui, sans-serif; }

/* Italic flourish on Instrument Serif em */
body.font-serif-mix .h1 em { font-style: italic; font-weight: 400; }
body.font-fraunces .h1 { letter-spacing: -0.04em; }
body.font-fraunces .h1 em { font-style: italic; font-weight: 400; }

/* ===== Density ===== */
body.density-compact   { --tw-section-pad: 56px; --tw-hero-pad: 40px; --tw-gap: 16px; --tw-card-pad: 20px; }
body.density-regular   { --tw-section-pad: 88px; --tw-hero-pad: 64px; --tw-gap: 24px; --tw-card-pad: 28px; }
body.density-spacious  { --tw-section-pad: 128px; --tw-hero-pad: 96px; --tw-gap: 36px; --tw-card-pad: 40px; }
body section { padding-top: var(--tw-section-pad); padding-bottom: var(--tw-section-pad); }
body .hero { padding-top: var(--tw-hero-pad); padding-bottom: calc(var(--tw-hero-pad) + 24px); }
body .why-card { padding: var(--tw-card-pad); }
body .configurator { padding: calc(var(--tw-card-pad) - 6px); }
body .contact-card { padding: var(--tw-card-pad); }

/* ===== Headline scale/weight ===== */
body .h1 { font-weight: var(--tw-h-weight); font-size: clamp(34px, calc(5.4vw * var(--tw-h-scale)), calc(68px * var(--tw-h-scale))); }
body .h2 { font-weight: var(--tw-h-weight); font-size: clamp(26px, calc(3.6vw * var(--tw-h-scale)), calc(44px * var(--tw-h-scale))); }

/* ===== Radius ===== */
body .configurator, body .why-card, body .ship-map, body .form, body .estonia, body .form-section { border-radius: var(--tw-radius); }
body .contact-card, body .product, body .chip, body .field input, body .field select, body .field textarea, body .radio { border-radius: calc(var(--tw-radius-sm) * 0.7); }
body .btn { border-radius: 999px; }
body.square-btns .btn { border-radius: calc(var(--tw-radius-sm) * 0.6); }
body.square-btns .lang-toggle, body.square-btns .lang-toggle button { border-radius: 6px; }

/* ===== Configurator style variants ===== */
body.cfg-elevated .configurator {
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
body.cfg-flat .configurator {
  box-shadow: none;
  background: var(--bone-2);
  border-color: transparent;
}
body.cfg-outlined .configurator {
  box-shadow: none;
  background: transparent;
  border-color: var(--ink);
}
body.cfg-dark .configurator {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
body.cfg-dark .configurator .cfg-label,
body.cfg-dark .configurator .cfg-hint { color: rgba(250,248,243,0.55); }
body.cfg-dark .configurator .chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: rgba(250,248,243,0.85);
}
body.cfg-dark .configurator .chip:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
body.cfg-dark .configurator .chip.on {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
body.cfg-dark .configurator .chip.on .unit { color: rgba(26,24,21,0.6); }
body.cfg-dark .configurator .price-row { border-bottom-color: rgba(255,255,255,0.12); }
body.cfg-dark .configurator .price-meta .lbl,
body.cfg-dark .configurator .price-meta .sub { color: rgba(250,248,243,0.55); }
body.cfg-dark .configurator .price-value { color: var(--bone); }
body.cfg-dark .configurator .product { background: linear-gradient(180deg, #2A2825 0%, #1E1C19 100%); }
body.cfg-dark .configurator .badge { background: rgba(0,0,0,0.4); color: rgba(250,248,243,0.7); border-color: rgba(255,255,255,0.1); }
body.cfg-dark .configurator .tank-meta { color: rgba(250,248,243,0.85); }
body.cfg-dark .configurator .tank-meta .lbl { color: rgba(250,248,243,0.4); }

/* ===== Hero layout variants ===== */
body.hero-rev .hero-grid { grid-template-columns: 1fr 1.22fr; }
body.hero-rev .hero-grid > div:first-child { order: 2; }
body.hero-rev .hero-grid > div:last-child { order: 1; }
body.hero-50 .hero-grid { grid-template-columns: 1fr 1fr; }
body.hero-stack .hero-grid { grid-template-columns: 1fr; max-width: 920px; margin-left: auto; margin-right: auto; gap: 40px; }

/* ===== Size selector pattern variants ===== */
.size-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -4px 18px;
  padding-left: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.size-strip::-webkit-scrollbar { height: 4px; }
.size-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.size-strip .chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 64px;
}

.size-slider {
  margin-bottom: 18px;
}
.size-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.size-slider-head .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.size-slider-head .v small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.size-slider-track {
  position: relative;
  height: 32px;
  margin: 0 8px;
}
.size-slider-line {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
}
.size-slider-fill {
  position: absolute;
  top: 14px;
  left: 0;
  height: 4px;
  background: var(--forest);
  border-radius: 999px;
  transition: width 0.15s ease;
}
.size-slider-tick {
  position: absolute;
  top: 12px;
  width: 1px;
  height: 8px;
  background: var(--line-2);
  transform: translateX(-0.5px);
}
.size-slider-tick.major {
  height: 12px;
  top: 8px;
  background: var(--muted-2);
}
.size-slider-thumb {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--forest);
  box-shadow: 0 2px 6px rgba(28,22,12,0.18);
  transform: translateX(-8px);
  transition: left 0.15s ease;
}
.size-slider-marks {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

body.cfg-dark .size-slider-head .v { color: var(--bone); }
body.cfg-dark .size-slider-head .v small { color: rgba(250,248,243,0.5); }
body.cfg-dark .size-slider-line { background: rgba(255,255,255,0.12); }
body.cfg-dark .size-slider-thumb { background: var(--ink); border-color: var(--bone); }
body.cfg-dark .size-slider-tick { background: rgba(255,255,255,0.15); }
body.cfg-dark .size-slider-tick.major { background: rgba(255,255,255,0.35); }
body.cfg-dark .size-slider-marks { color: rgba(250,248,243,0.45); }

/* ===== Map ===== */
.map-water-bg { fill: var(--bone-2); }
.map-land { fill: var(--bone); stroke: var(--line-2); }
.map-grid { stroke: rgba(120,140,160,0.14); }
.map-route { stroke: var(--forest); fill: none; }
.map-pin { fill: var(--forest); }
.map-pin-ring { fill: none; stroke: var(--forest); }
.map-text-city { fill: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; }
.map-text-sub { fill: var(--muted); font-family: var(--font-mono); letter-spacing: 0.03em; }
.map-text-faint { fill: var(--muted-2); font-family: var(--font-mono); letter-spacing: 0.04em; }
.map-origin-bg { fill: var(--ink); }
.map-origin-text { fill: var(--bone); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; }
.map-origin-stem { stroke: var(--ink); fill: var(--ink); }
.map-compass-bg { fill: var(--bone); stroke: var(--line-2); }
.map-compass-n { fill: var(--forest); }
.map-compass-s { fill: var(--line-2); }
.map-scale { stroke: var(--ink); }
.map-lake { fill: rgba(120,140,160,0.12); stroke: rgba(120,140,160,0.25); stroke-width: 0.5; }

body.dark .map-grid { stroke: rgba(255,255,255,0.06); }
body.dark .map-water-bg { fill: #0E0C09; }
body.dark .map-land { fill: #1B1915; stroke: #3A372D; }
body.dark .map-lake { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.08); }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--bone-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 22px 0;
}
@media (max-width: 720px) { .trust-strip .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 18px 0; } }
.trust-strip .item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.trust-strip .item:last-child { border-right: 0; }
@media (max-width: 720px) {
  .trust-strip .item { padding: 0 16px; }
  .trust-strip .item:nth-child(2n) { border-right: 0; }
}
.trust-strip .item .n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.trust-strip .item .l {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--forest); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
@media (max-width: 520px) { .wrap { padding: 0 12px; } }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hdr.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 243, 0.94);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  display: block;
  height: 78px;
  width: auto;
  flex-shrink: 0;
}
.logo-divider {
  width: 1px;
  height: 24px;
  background: var(--line-2);
}
.logo-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.logo-tag b {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.12em;
}
body.dark .logo-img { filter: brightness(0) invert(1); }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--forest);
  display: grid;
  place-items: center;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.logo .domain {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a.nav-link:hover {
  background: var(--bone-2);
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 8px;
}
.lang-toggle button {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.15s ease;
}
.lang-toggle button.on {
  background: var(--ink);
  color: var(--bone);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--forest);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--forest-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(47, 93, 58, 0.6);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bone-2); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav .nav-link { display: none; }
  /* Keep primary CTA visible on mobile — it is the site's conversion path.
     Hamburger is hidden because its handler is unimplemented; mobile nav
     would need a real drawer to be useful. */
  .menu-btn { display: none; }
  /* Tighten gap on mobile so logo + lang toggle + CTA all fit.
     Height matches desktop (94px) to give the 78px logo breathing room. */
  .hdr-inner { height: 94px; gap: 12px; }
}
@media (max-width: 520px) {
  /* Hide the ECCUA.FI / LASIKUITUSÄILIÖT block on phones — its width was
     pushing the whole document past the viewport, which was the root cause
     of the right-side dead space. Logo image alone preserves brand recognition. */
  .logo-tag, .logo-divider { display: none; }
}
@media (max-width: 420px) {
  /* On very narrow phones the CTA label gets tight next to the FI/EN toggle.
     Trim its horizontal padding so it stays on a single line without wrapping. */
  .hdr .btn-primary { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  .hdr .btn-primary .arrow { display: none; }
}

/* ===== Mobile spacing — override the body.density-* vars at mobile breakpoints.
   The density rules use higher specificity (body.section, body.hero) than plain
   section/hero media queries, so we override the CSS variables themselves. ===== */
@media (max-width: 720px) {
  body {
    --tw-section-pad: 40px;
    --tw-hero-pad: 24px;
    --tw-card-pad: 22px;
    --tw-gap: 18px;
  }
}
@media (max-width: 520px) {
  body {
    --tw-section-pad: 32px;
    --tw-hero-pad: 16px;
    --tw-card-pad: 18px;
    --tw-gap: 14px;
  }
}

/* ===== Defensive: prevent any rogue oversized element from forcing the document
   wider than the viewport on mobile. Belt-and-braces against future regressions.
   Scoped to <img> only — global svg rules would override the explicit width/height
   attributes on inline icons throughout the site. ===== */
html, body { overflow-x: hidden; }
img { max-width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 88px;
  position: relative;
}
@media (max-width: 900px) { .hero { padding: 24px 0 36px; } }
@media (max-width: 520px) { .hero { padding: 16px 0 28px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--forest);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.h1 em {
  font-style: normal;
  color: var(--forest);
}
/* Reserves vertical space on desktop so the word-by-word headline reveal
   does not push the lead/bullets up then back down as words appear.
   Disabled on mobile, where the reservation would just create dead space. */
.h1-reserve { min-height: 333px; }
@media (max-width: 980px) { .h1-reserve { min-height: 0; } }
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  max-width: 560px;
}
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
  padding: 6px 0;
}
.feature-list .tick {
  flex: 0 0 16px;
  margin-top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--moss-tint);
  display: grid;
  place-items: center;
  color: var(--forest);
}
.feature-list .tick svg { width: 9px; height: 9px; }

/* ---------- Configurator (right column) ---------- */
.configurator {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.cfg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cfg-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cfg-hint {
  font-size: 12px;
  color: var(--muted-2);
}

/* Size chip strip */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.chip {
  position: relative;
  min-width: 52px;
  padding: 9px 10px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  border-color: var(--forest-3);
  color: var(--ink);
}
.chip .unit {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: -1px;
  letter-spacing: 0.02em;
}
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.chip.on .unit { color: rgba(250,248,243,0.65); }

/* Product image */
.product {
  position: relative;
  aspect-ratio: 5 / 3.4;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F4F1E7 0%, #E8E2CF 100%);
  overflow: hidden;
  margin-bottom: 18px;
}
.product .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.product .placeholder-note {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.product .stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(154, 147, 127, 0.08) 14px 15px
  );
}

/* SVG tank illustration */
.tank-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.tank-meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tank-meta .lbl { color: var(--muted); }

/* Price block */
.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.price-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-meta .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-meta .sub {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.price-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: right;
}
.price-value.flash {
  opacity: 0.4;
  transform: translateY(-2px);
}

.cta-row {
  display: flex;
  gap: 10px;
}
.cta-row .btn-primary { flex: 1; }

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
  position: relative;
}
@media (max-width: 720px) { section { padding: 40px 0; } }
@media (max-width: 520px) { section { padding: 32px 0; } }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 8px 0 0;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.sec-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.55;
}

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; gap: 16px; } }
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.why-card:hover {
  border-color: var(--forest-3);
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--forest);
  letter-spacing: 0.1em;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.why-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.why-card .icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--moss-tint);
  display: grid;
  place-items: center;
  color: var(--forest);
  margin-bottom: 4px;
}

/* Made in Estonia */
.estonia {
  background: var(--ink);
  color: var(--bone);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .estonia { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
}
.estonia .eyebrow { color: var(--lime); }
.estonia .eyebrow .dot { background: var(--lime); }
.estonia h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--bone);
  text-wrap: balance;
}
.estonia p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 248, 243, 0.78);
  max-width: 52ch;
  margin: 0 0 18px;
}
.estonia .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.estonia .stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--bone);
}
.estonia .stat .lbl {
  font-size: 13px;
  color: rgba(250,248,243,0.6);
  margin-top: 6px;
  line-height: 1.4;
}

.estonia-card {
  background: rgba(250, 248, 243, 0.05);
  border: 1px solid rgba(250, 248, 243, 0.12);
  border-radius: 16px;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.estonia-card .k { color: rgba(250,248,243,0.55); }
.estonia-card .v { color: var(--bone); }
.estonia-card .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(250,248,243,0.12);
}
.estonia-card .row:last-child { border: 0; }

/* Shipping */
.ship {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .ship { grid-template-columns: 1fr; gap: 32px; } }
.ship p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 52ch;
}
.ship-map {
  position: relative;
  aspect-ratio: 720 / 1150;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bone-2);
  overflow: hidden;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 200px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.contact-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.contact-card .cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-card .cc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--moss-tint);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card .cc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.contact-card .cc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-card .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.contact-card .v {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
  /* Allow long values (addresses, multi-word names) to wrap inside the card
     instead of overflowing past the right edge on narrow mobile widths. */
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.contact-card .v.sm {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: 0;
  margin-top: 2px;
  font-family: var(--font-body);
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Belt-and-braces: hide any final escape past the card's rounded corner. */
.contact-card { overflow: hidden; }
.contact-card .cc-body { min-width: 0; }
.contact-card .cc-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.contact-card .cc-action .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.contact-card:hover .cc-action .arrow { transform: translateX(3px); }

/* ===== Inline contact in form-side ===== */
.form-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}
.form-contact-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.form-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.form-contact-item:hover { color: var(--forest); }
.form-contact-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--moss-tint);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.form-contact-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.form-contact-text .v {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.form-contact-text .s {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  /* Address line — must wrap inside the form section on narrow phones. */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== Downloads ===== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--tw-radius, 18px);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dl-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.dl-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--moss-tint);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dl-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.dl-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.dl-arrow {
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.dl-card:hover .dl-arrow {
  color: var(--forest);
  transform: translateY(2px);
}

/* ===== Shipping price callout ===== */
.ship-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--moss-tint);
  border: 1px solid var(--line);
  border-radius: var(--tw-radius, 18px);
}
.ship-price-l {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.ship-price-lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
}
.ship-price-amt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.ship-price-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}
.ship-price .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .ship-price { padding: 16px 18px; gap: 12px; }
  .ship-price-l { flex-wrap: wrap; }
  .ship-price-amt { font-size: 22px; }
  .ship-price-note { white-space: normal; }
}

/* Form */
.form-section {
  background: var(--bone-2);
  border-radius: 24px;
  padding: 64px;
}
@media (max-width: 720px) { .form-section { padding: 36px 24px; border-radius: 18px; } }
@media (max-width: 520px) { .form-section { padding: 28px 14px; border-radius: 16px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; gap: 28px; } }

.form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 720px) { .form { padding: 24px; } }
@media (max-width: 520px) { .form { padding: 18px; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field label .req { color: var(--forest); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.field .err {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 2px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* On narrow phones the two radio cards (Jätevesi / Sammutusvesi) cannot fit
   side-by-side without overflowing the form — the long Finnish word
   "Pelastusviranomaisen" sets an intrinsic minimum width per card that
   pushes the form past the viewport. Stack to one column at <=520px. */
@media (max-width: 520px) { .radio-row { grid-template-columns: 1fr; } }
.radio {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 14px 14px 14px 42px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Allow the card to shrink below its content's intrinsic min-width, and
     let long words break instead of forcing the grid wider. */
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.radio:hover { border-color: var(--forest-3); }
.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio .ring {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  transition: all 0.15s ease;
}
.radio.on { border-color: var(--forest); background: var(--moss-tint); }
.radio.on .ring {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 3px var(--moss-tint);
}
.radio .t {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.radio .s {
  font-size: 12px;
  color: var(--muted);
}

/* Inline error shown when sendInquiry() throws (network, FormSubmit rejection). */
.form-submit-err {
  font-size: 13px;
  line-height: 1.45;
  color: var(--danger);
  background: rgba(180, 50, 50, 0.06);
  border: 1px solid rgba(180, 50, 50, 0.2);
  border-radius: 9px;
  padding: 10px 12px;
  margin: 4px 0 12px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-actions .tos {
  font-size: 12px;
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.45;
}

.form-side h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 8px 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.form-side p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 38ch;
  margin: 0 0 24px;
}
.form-side .meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-side .meta-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: flex-start;
}
.form-side .meta-list .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--forest);
  background: var(--moss-tint);
  padding: 3px 7px;
  border-radius: 4px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--moss-tint);
  display: grid;
  place-items: center;
  color: var(--forest);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.form-success p {
  font-size: 15px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 24px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .small {
  font-size: 13px;
  color: var(--muted);
}
.foot-nav {
  display: flex;
  gap: 18px;
}
.foot-nav a {
  font-size: 13px;
  color: var(--muted);
}
.foot-nav a:hover { color: var(--ink); }

/* Anchors offset */
.anchor {
  display: block;
  height: 0;
  scroll-margin-top: 80px;
}

/* Section divider rule */
.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}


/* ============ Motion layer (Framer Motion) ============ */

/* Header scroll-shrink — pad/height collapses just slightly */
.hdr { transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease; }
.hdr-inner { transition: height 0.2s ease; }
.hdr.scrolled .hdr-inner { height: 64px; }
.hdr.scrolled {
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
}
body.dark .hdr.scrolled { background: rgba(21, 20, 15, 0.88); }

/* Shared layoutId pill — chip/lang */
.chip { position: relative; isolation: isolate; }
.chip .chip-label { position: relative; z-index: 1; display: inline-block; }
.chip-pill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(28, 22, 12, 0.08), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.chip { transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.chip:hover { transform: translateY(-1px); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.chip.on .unit { color: rgba(250,248,243,0.65); }

body.cfg-dark .chip-pill { background: var(--bone); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }

/* Lang toggle motion pill */
.lang-toggle button { position: relative; isolation: isolate; }
.lang-pill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}
body.square-btns .lang-pill { border-radius: 6px; }
.lang-toggle button.on { background: transparent; }
.lang-toggle button.on::before { content: ""; }

/* Tank container — sits between .product and the SVG; carries motion */
.product .tank-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.product .tank-wrap > div { position: absolute; inset: 0; }

/* Price value — kill the old .flash transform; AnimatedNumber handles it now */
.price-value.flash { opacity: 1; transform: none; }
.price-value { transition: none; font-variant-numeric: tabular-nums; }
.price-dash { display: inline; margin: 0 2px; color: var(--muted); }

/* Why card: hover lift + accent border at low opacity */
.why-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--forest) 35%, transparent);
  box-shadow: 0 18px 40px -28px rgba(28, 22, 12, 0.25);
}

/* Primary CTA — lift + soft shadow */
.btn-primary {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px -8px rgba(28, 22, 12, 0.18);
}
.btn-primary:hover {
  background: var(--forest-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(47, 93, 58, 0.55);
}
.btn-primary:active { transform: scale(0.98); }
.btn-magnetic { will-change: transform; }

/* Spinner */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Form: focus ring is slightly softer + animated border */
.field input,
.field select,
.field textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input.has-err,
.field select.has-err,
.field textarea.has-err {
  border-color: var(--danger);
  background: rgba(142, 47, 47, 0.04);
}
.field .err {
  overflow: hidden;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
}

/* Success check — bigger ring, draws via Framer Motion */
.form-success .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--forest) 12%, var(--moss-tint));
  border: 1px solid color-mix(in oklch, var(--forest) 30%, transparent);
  color: var(--forest);
  display: grid;
  place-items: center;
}

/* Reduced motion: hard kill remaining transforms */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover,
  .chip:hover,
  .why-card:hover { transform: none !important; }
}


/* ============ Typography pass (surgical) ============ */

/* ---- Numerals & quotes globally ----
   Tabular nums where digits align/animate; smart quotes & dashes. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(:root, body) {
  quotes: "“" "”" "‘" "’";
}
:root[lang="fi"] {
  quotes: "”" "”" "’" "’";
}

/* Optical sizing for any serif headlines (Fraunces, Instrument). */
.h1, .h2, .h3, h1, h2, h3, .form-side h2, .estonia h2, .form-success h3, .why-card h3 {
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

/* Tighter negative tracking at display sizes (overrides earlier defaults). */
body .h1 { letter-spacing: -0.025em; }
body .h2,
body .estonia h2,
body .form-side h2 { letter-spacing: -0.02em; }
.why-card h3 { letter-spacing: -0.012em; }
/* Fraunces is already at -0.04em — leave it alone */
body.font-fraunces .h1 { letter-spacing: -0.04em; }

/* text-wrap niceties */
.h1, .h2, .h3, h1, h2, h3, .form-side h2, .estonia h2, .form-success h3, .why-card h3 {
  text-wrap: balance;
}
.lead, .sec-intro, .estonia p, .ship p, .form-side p, .why-card p, .feature-list li,
.contact-card .v.sm, .form-contact-text .s, .meta-list li {
  text-wrap: pretty;
}

/* Tabular nums on anything that animates, aligns in columns, or shows a number */
.price-value, .price-meta, .size-slider-head .v, .size-slider-marks,
.contact-card .v, .ship-price-amt, .form-side .meta-list .n,
.estonia .stat .n, .trust-strip .item .n, .badge,
.product .badge, .num, .v.sm {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Reusable "unit" pattern: 0.6em, slight raise, hair-tracking.
   Applies to m³ / € next to any large number. */
.unit,
.size-slider-head .v .unit,
.chip .unit,
.product .badge .unit {
  display: inline-block;
  font-size: 0.6em;
  letter-spacing: 0.1em;
  font-weight: inherit;
  margin-left: 0.18em;
  vertical-align: 0.18em;
  color: inherit;
  opacity: 0.85;
  text-transform: none;
}
/* Make sure earlier rules don't break the m³ in chips */
.chip .unit { display: inline-block; margin-left: 0.14em; }

/* ---- Right-column hierarchy: demote the size readout ---- */
.size-slider-head .v {
  font-size: 1.5rem;          /* ~24px down from 28px */
  font-weight: 450;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.size-slider-head .v .num {
  font-feature-settings: "tnum" 1, "lnum" 1;
}
/* The price stays the focal point — same family, bigger and bolder */
.price-value {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.price-dash {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--muted);
  font-weight: 400;
}

/* ---- Supporting paragraph ---- */
.hero .lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: color-mix(in oklch, var(--ink) 70%, transparent);
  max-width: 56ch;
  margin-bottom: 28px;
}
body.dark .hero .lead { color: color-mix(in oklch, var(--ink) 75%, transparent); }

/* ---- Bullet/feature grid: even row heights, tight marker gap ---- */
.feature-list {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: start;
  column-gap: 28px;
  row-gap: 4px;
  max-width: 60ch;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in oklch, var(--ink) 85%, transparent);
}
/* If any single item would wrap, collapse to one column at narrower widths */
@media (max-width: 760px) {
  .feature-list { grid-template-columns: 1fr; max-width: 56ch; }
}
.feature-list .tick {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: color-mix(in oklch, var(--forest) 70%, var(--moss-tint));
  color: var(--bone);
}
.feature-list .tick svg { width: 8px; height: 8px; stroke-width: 2.4; }

/* ---- Price meta subordination ---- */
.price-meta {
  gap: 4px;
  letter-spacing: 0;
}
.price-meta .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-meta .sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: color-mix(in oklch, var(--ink) 50%, transparent);
  text-transform: none;
}

/* ---- Eyebrow refinement (subtle, consistent everywhere) ---- */
.eyebrow,
.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-num { letter-spacing: 0.16em; }

/* ---- Body prose width caps below the fold ---- */
.sec-intro,
.estonia p,
.ship > div > p,
.form-side p,
.why-card p {
  max-width: 64ch;
  text-wrap: pretty;
}
.why-card p {
  line-height: 1.55;
  color: color-mix(in oklch, var(--ink) 72%, transparent);
}

/* ---- Form labels in micro-uppercase ---- */
.field > label,
.field > .field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
/* Radio labels keep their own treatment — they're not the field's label */
.field label.radio {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  margin-bottom: 0;
}
.field label.radio .t {
  text-transform: none;
  letter-spacing: -0.005em;
}
.field label.radio .s {
  text-transform: none;
  letter-spacing: 0;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;            /* body-lg, also prevents iOS zoom */
  line-height: 1.5;
  font-weight: 400;
}

/* ---- Section padding rhythm (desktop 96-128, mobile 64-80) ---- */
body section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
body .hero  { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 112px); }
@media (max-width: 720px) {
  body section { padding-top: clamp(56px, 12vw, 80px); padding-bottom: clamp(56px, 12vw, 80px); }
}
/* Don't fight the density-* tweaks — only use the new clamps when the tweak isn't set */
body.density-compact section,
body.density-regular section,
body.density-spacious section {
  padding-top: var(--tw-section-pad);
  padding-bottom: var(--tw-section-pad);
}

/* ---- Slider scale labels: align with anchor tick positions ---- */
.size-slider-marks {
  position: relative;
  display: block;
  /* Match the track's horizontal inset (margin: 0 8px), then add a
     small extra inset so the rightmost label never clips the panel edge. */
  margin: 0 12px 0 8px;
  padding: 2px 0 0;
  height: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.size-slider-marks span {
  position: absolute;
  top: 2px;
  font-variant-numeric: tabular-nums;
}
/* 5/25/50/75/100 anchor positions match the slider's tick layout
   (i / max * 100% where SIZES has 19 entries 5..100 step 5).
   We position by % so labels sit under their corresponding major ticks. */
.size-slider-marks span:nth-child(1) { left: 0%; transform: translateX(0); }      /* 5 */
.size-slider-marks span:nth-child(2) { left: calc((25 - 5) / 95 * 100%); }        /* 25 */
.size-slider-marks span:nth-child(3) { left: calc((50 - 5) / 95 * 100%); }        /* 50 */
.size-slider-marks span:nth-child(4) { left: calc((75 - 5) / 95 * 100%); }        /* 75 */
.size-slider-marks span:nth-child(5) {
  left: 100%;
  transform: translateX(calc(-100% - 2px));
} /* 100 — small inset so the "m³" never clips the panel edge */

/* ---- Logo tag clearer hierarchy ---- */
.logo-tag b {
  font-weight: 600;
  letter-spacing: -0.005em;
}
.logo-tag span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Badge tabular nums + unit ---- */
.product .badge {
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.product .badge .num {
  font-weight: 700;
  letter-spacing: 0;
}
.product .badge .unit {
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---- Smoother h1 lead trim ---- */
.h1 {
  text-box: trim-both cap alphabetic;  /* progressive enhancement */
}

/* Dark variants for new opacity-based colors */
body.dark .feature-list li { color: color-mix(in oklch, var(--ink) 88%, transparent); }
body.dark .why-card p     { color: color-mix(in oklch, var(--ink) 75%, transparent); }
body.dark .price-meta .sub { color: color-mix(in oklch, var(--ink) 60%, transparent); }


/* ============ Typography pass — corrections ============ */

/* Also reduce the slider's own bottom margin so the marks sit closer
   to the slider track and don't overlap the product image below. */
.size-slider { margin-bottom: 8px; }
.size-slider-track { margin-bottom: 0; }

/* Marks: absolute children must shrink-to-fit and not wrap. */
.size-slider-marks span {
  position: absolute;
  top: 2px;
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Scope the 0.6em unit treatment to LARGE numeric displays only.
   Resets it to its surrounding font size in small contexts so m³
   stays legible in chips, badges, and slider marks. */
.unit { font-size: 0.6em; }
.chip .unit,
.product .badge .unit,
.size-slider-marks .unit,
.contact-card .unit,
.feature-list .unit {
  font-size: inherit;
  vertical-align: baseline;
  margin-left: 0.18em;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.product .badge .unit { opacity: 0.85; font-weight: 500; }

/* Compact spacing inside chips so the m³ unit sits flush with the number */
.chip .chip-label { display: inline-block; white-space: nowrap; }

/* Make sure the badge stays one line */
.product .badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

/* Tank-meta one line */
.tank-meta { white-space: nowrap; }

/* Keep the headline word spacing tight — text-wrap balance can stretch
   inline-block words. Set a small negative word-spacing so motion words
   sit closer together. */
.h1 { word-spacing: -0.04em; }
