/* MIKATEK Huolto-Service — site styles. One stylesheet, no JavaScript.
   Port of the approved Claude Design export claude-design-export-2026-09-25-fable51-v2
   (2026-09-25): structure, copy and visual design from the export, component
   mechanics from the previous build. The export is a desktop file; every phone
   layout below is this port's, not the export's.
   See DESIGN.md for the contract. */

/* Typefaces, self-hosted (CSP is default-src 'self'). The Archivo 400, 500 and
   600 files are byte-identical copies of one variable font, as exported. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/Archivo-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMMono-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMMono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/DMMono-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/DMMono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/SairaCondensed-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/SairaCondensed-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SairaCondensed-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SairaCondensed-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SairaCondensed-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SairaCondensed-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Grounds */
  --ground-dark: #1c1a17;
  --ground-light: #f3f0ea;
  --ground-note: #e9e5dc;
  --ground-accent: #c8271a;

  /* Accent (buttons, markers, current-page rule, hover) */
  --accent: #c8271a;
  --accent-hover: #a91f14;
  /* --accent is 3.11:1 on --ground-dark; lightened for text there (4.50:1). */
  --accent-on-dark: #e64b3f;

  /* Text on the light ground */
  --ink: #1c1a17;
  --text-on-light: #3d3933;
  --text-muted: #5a554d;
  /* Export #7d776d (3.90:1 on cream), darkened to pass 4.5:1. Also the link
     underline on both grounds (3:1 non-text on each). */
  --text-faint: #736d64;

  /* Text on the dark ground */
  --text-bright-on-dark: #f3f0ea;
  --text-on-dark: #dcd7cd;
  --label-on-dark: #bdb7ac;

  /* Hairlines */
  --rule-on-dark: #33302a;
  --rule-on-light: #d9d4cb;

  --white: #ffffff;
  --scrim: rgb(28 26 23 / 0.86);
  /* Export alpha 0.6 gives 2.84:1 against --accent; 0.64 gives 3.04:1. */
  --underline-on-accent: rgb(255 255 255 / 0.64);

  /* Families */
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  /* Type scale. Export px values as rem; sizes under the DESIGN.md floors
     are lifted to the floor (see the Typography section there). */
  --step-label: 0.85rem;       /* eyebrows, markers, captions, table headers (export 11-13px) */
  --step-note: 0.875rem;       /* table row notes, contents sub-links (export 14px) */
  --step-nav: 0.9375rem;       /* nav links, button "Soita" label (export 15px) */
  --step-small: 0.95rem;       /* fact labels, footer, price cells, notes (export 15px) */
  --step-body: 1rem;
  --step-copy: 1.0625rem;      /* section prose (export 17px) */
  --step-copy-m: 1.125rem;     /* service-row prose (export 18px) */
  --step-copy-l: 1.1875rem;    /* ECU-row prose (export 19px) */
  --step-lead: clamp(1.125rem, 1.8vw, 1.3125rem);
  --step-intro: clamp(1.0625rem, 1.7vw, 1.1875rem);
  --step-uutta-text: clamp(1rem, 1.7vw, 1.1875rem);

  --step-h1: clamp(3.25rem, 9vw, 6rem);
  /* Export clamp(48px, 7.5vw, 84px) let "Venemoottoreiden" overflow its
     column between 976 and 1215 px; the middle term is bounded to the column. */
  --step-h1-home: clamp(3rem, 7.3vw - 0.5rem, 5.25rem);
  --step-h2-xl: clamp(2.5rem, 5vw, 3.5rem);
  --step-h2: clamp(2rem, 4vw, 2.75rem);
  --step-h2-band: clamp(2.125rem, 4.5vw, 3rem);
  --step-h2-strip: clamp(1.875rem, 3.5vw, 2.5rem);
  --step-h3: 2rem;
  --step-h3-price: clamp(1.625rem, 3vw, 1.875rem);
  --step-prose-h2: 2rem;
  /* Export minimum 34px; 30px so "Kaikki merkit" fits a 375 px 2x2 cell. */
  --step-fact: clamp(1.875rem, 4vw, 3rem);
  --step-uutta-label: clamp(2.25rem, 4.5vw, 3rem);
  --step-uutta-title: clamp(1.625rem, 3.2vw, 2.25rem);
  --step-btn: 1.5rem;
  --step-btn-lg: 1.625rem;
  --step-phone: clamp(3.25rem, 9vw, 6rem);
  /* Export clamp(52px, 10vw, 112px) overflowed its column from 920 to 1215 px
     once the number became unbreakable (non-breaking spaces). */
  --step-phone-home: clamp(3.25rem, 9.9vw - 0.55rem, 7rem);
  --step-phone-404: clamp(2.75rem, 8vw, 5rem);

  /* Layout */
  --max: 80rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --gap-cols: clamp(2rem, 5vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground-light);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, li, dd {
  text-wrap: pretty;
}

/* Links: ink text, a quiet underline that still clears 3:1 on its ground. */

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--text-faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Focus: ink ring on the light ground, cream on dark, white on the red band. */

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

/* Phone and email links in running text: the hit area is extended to 44 px
   without changing the line box. */

.ground-light p a[href^="tel:"]:not(.btn),
.ground-light p a[href^="mailto:"],
.ground-dark p a[href^="tel:"]:not(.btn),
.ground-dark p a[href^="mailto:"],
.ground-accent p a[href^="tel:"],
.ground-dark dd a,
footer p a {
  display: inline-block;
  padding-block: 0.5rem;
  margin-block: -0.5rem;
}

main p {
  max-width: 68ch;
}

/* Grounds */

.ground-light {
  background: var(--ground-light);
  color: var(--ink);
}

.ground-dark {
  background: var(--ground-dark);
  color: var(--text-bright-on-dark);
}

.ground-dark a {
  color: var(--text-bright-on-dark);
}

.ground-dark a:hover {
  color: var(--white);
  text-decoration-color: var(--text-bright-on-dark);
}

.ground-dark :focus-visible {
  outline-color: var(--text-bright-on-dark);
}

.ground-accent {
  background: var(--ground-accent);
  color: var(--white);
}

.ground-accent :focus-visible {
  outline-color: var(--white);
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */

.skip {
  position: absolute;
  left: 0.75rem;
  top: -20rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--text-bright-on-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* Eyebrows and markers: DM Mono, tracked, uppercase. They name a section in
   the reader's words; the numbered markers are the export's. */

.eyebrow {
  margin: 0 0 1.125rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ground-dark .eyebrow {
  color: var(--label-on-dark);
}

.eyebrow-accent,
.marker {
  color: var(--accent);
}

.ground-dark .eyebrow-accent {
  color: var(--accent-on-dark);
}

.marker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  line-height: 1.5;
}

.caption {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Header */

header {
  background: var(--ground-light);
  border-bottom: 1px solid var(--rule-on-light);
}

.header-inner {
  display: grid;
  grid-template-areas:
    "brand"
    "call"
    "nav";
  gap: 0.75rem 2rem;
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.875rem var(--gutter) 0.25rem;
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand .logo {
  width: auto;
  height: clamp(2.5rem, 5vw, 3.5rem);
}

.brand .potkuri {
  flex: none;
  width: clamp(2rem, 4vw, 2.75rem);
  height: auto;
  border-radius: 50%;
}

.site-nav {
  grid-area: nav;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0 -0.75rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.875rem 0.75rem 0.75rem;
  border-bottom: 2px solid transparent;
  font-size: var(--step-nav);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-call {
  grid-area: call;
  justify-self: stretch;
  justify-content: center;
}

/* From 32rem the brand and the phone button share the first row. */

@media (min-width: 32rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand call"
      "nav nav";
  }

  .header-call {
    justify-self: end;
  }
}

/* From 75rem everything fits one row: 1087 px needed, 1120 px available. */

@media (min-width: 75rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav call";
    padding-bottom: 0.875rem;
  }

  .site-nav {
    justify-self: start;
  }
}

/* The phone button, the one call to action. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-btn);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.btn span {
  font-family: var(--font-body);
  font-size: var(--step-nav);
  font-weight: 500;
  letter-spacing: 0;
}

.btn:hover,
.btn:active {
  background: var(--accent-hover);
  color: var(--white);
}

.ground-dark .btn,
.ground-dark .btn:hover {
  color: var(--white);
}

.btn-lg {
  gap: 0.875rem;
  padding: 1.125rem 1.75rem;
  font-size: var(--step-btn-lg);
}

.btn-lg span {
  font-size: var(--step-body);
}

/* Arrow link: the quiet secondary action. */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-size: var(--step-body);
  font-weight: 500;
}

/* Hero (front page): text and one photo. Stacks below ~970 px. */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr));
  gap: var(--gap-cols);
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero .eyebrow {
  margin-bottom: 1.75rem;
}

.hero h1 {
  margin: 0 0 1.75rem;
  font-size: var(--step-h1-home);
  line-height: 0.96;
}

.hero .tagline {
  max-width: 35rem;
  margin: 0 0 2.75rem;
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--text-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin: 0;
}

.hero-media {
  position: relative;
  min-height: clamp(20rem, 50vw, 40rem);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption,
.page-hero-media figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.875rem 1.125rem;
  background: var(--scrim);
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text-on-dark);
}

/* Phones: the hero photo runs edge to edge under the text. */

@media (max-width: 47.99rem) {
  .hero-media,
  .page-hero-media {
    margin-inline: calc(-1 * var(--gutter));
  }
}

/* Facts strip: four frozen facts. 2 x 2 until 60rem, then one row. */

.facts-section {
  border-top: 1px solid var(--rule-on-dark);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 -1.25rem;
  padding: 0;
  list-style: none;
  background: var(--rule-on-dark);
}

.facts li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 2.25rem 1.25rem 2.5rem;
  background: var(--ground-dark);
}

.facts b {
  font-family: var(--font-display);
  font-size: var(--step-fact);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.facts span {
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--label-on-dark);
}

@media (min-width: 60rem) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "Uutta!" band: the red strip. Label and text sit side by side from ~640 px. */

.uutta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: clamp(1.5rem, 3vw, 2rem) clamp(1.625rem, 3vw, 2.25rem);
}

.uutta-label {
  flex: 0 0 12.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-uutta-label);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.uutta-body {
  flex: 1 1 25rem;
  min-width: 0;
}

.uutta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-uutta-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.uutta-text {
  margin: 0;
  font-size: var(--step-uutta-text);
  line-height: 1.5;
}

.uutta a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-btn-lg);
  font-weight: 700;
  white-space: nowrap;
  text-decoration-color: var(--underline-on-accent);
  text-decoration-thickness: 2px;
}

.uutta a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* Front page services: photo column and the numbered list. */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 6rem 6.5rem;
}

.h2-xl {
  margin: 0 0 2rem;
  font-size: var(--step-h2-xl);
  line-height: 1;
}

.services {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services > li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-on-light);
}

.services > li:first-child {
  padding-top: 0;
}

.services > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.services .marker {
  margin: 0;
  padding-top: 0.5rem;
}

.services h3 {
  margin: 0 0 0.625rem;
  font-size: var(--step-h3);
  line-height: 1.05;
}

.services p {
  margin: 0;
  font-size: var(--step-copy);
  line-height: 1.6;
  color: var(--text-on-light);
}

.services ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-copy);
  line-height: 1.5;
  color: var(--text-on-light);
}

/* Van band: photo, text, photo on one dark row from 60rem. Below that the
   text leads and the two photos sit side by side under it. */

.van-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.van-inner img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.van-text {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 1.5rem;
}

.van-text .eyebrow {
  margin-bottom: 0.875rem;
}

.van-text h2,
.band-h2 {
  margin: 0 0 1rem;
  font-size: var(--step-h2-band);
  line-height: 1;
}

.van-text p:last-child {
  margin: 0;
  font-size: var(--step-copy);
  line-height: 1.6;
  color: var(--text-on-dark);
}

@media (min-width: 60rem) {
  .van-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
  }

  .van-inner img {
    flex: 1 1 15.625rem;
    min-width: 0;
    width: auto;
    max-height: 32.5rem;
    aspect-ratio: auto;
  }

  .van-text {
    flex: 1 1 15.625rem;
    min-width: 0;
    padding: 2.5rem var(--gutter) 2.75rem;
  }
}

/* Strip: one line under the van band. */

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.strip-inner h2 {
  margin: 0;
  font-size: var(--step-h2-strip);
  line-height: 1;
}

.strip-inner .link-arrow {
  flex: none;
}

/* Brand carousel under the strip (front page only): one engine per make,
   CSS-only crossfade, 8 slides x 5 s = 40 s. Each slide holds 12.5 % and
   fades over 3.75 % (1.5 s). If the slide count changes, the delays, the
   duration and the keyframe percentages change together. Under
   prefers-reduced-motion the first slide shows statically. Slides are
   1600x640 (5:2), generated stand-ins logged in IMAGES-SOURCES.md until
   Mika's own photos replace them. */

.brand-carousel {
  position: relative;
  max-width: 48rem;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--ground-dark);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.brand-carousel .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: brand-fade 40s infinite;
}

.brand-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-carousel figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.625rem 1rem;
  background: var(--ground-dark);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-carousel .slide:nth-child(1) { animation-delay: 0s; }
.brand-carousel .slide:nth-child(2) { animation-delay: 5s; }
.brand-carousel .slide:nth-child(3) { animation-delay: 10s; }
.brand-carousel .slide:nth-child(4) { animation-delay: 15s; }
.brand-carousel .slide:nth-child(5) { animation-delay: 20s; }
.brand-carousel .slide:nth-child(6) { animation-delay: 25s; }
.brand-carousel .slide:nth-child(7) { animation-delay: 30s; }
.brand-carousel .slide:nth-child(8) { animation-delay: 35s; }

@keyframes brand-fade {
  0% { opacity: 0; }
  3.75% { opacity: 1; }
  12.5% { opacity: 1; }
  16.25% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel .slide {
    animation: none;
  }
  .brand-carousel .slide:first-child {
    opacity: 1;
  }
}

/* Closing phone block (.cta-band): label, the number in display type, and
   one line of context. One per page, at the end. */

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap-cols);
  align-items: end;
  padding-block: 5rem 5.5rem;
}

.cta-band h2 {
  margin: 0 0 1.125rem;
}

.phone-xl {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-phone);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.cta-note {
  margin: 0.875rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.06em;
  color: var(--label-on-dark);
}

.cta-text {
  margin: 0;
  font-size: var(--step-copy);
  line-height: 1.7;
  color: var(--text-on-dark);
}

.cta-text + .cta-text {
  margin-top: 1rem;
}

/* Front page closing: the propeller pair flanks the heading (DESIGN.md). */

.cta-home .cta-grid {
  padding-block: 5.5rem 6rem;
}

.cta-home .phone-xl {
  font-size: var(--step-phone-home);
}

.cta-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}

.cta-brand h2 {
  margin: 0;
}


/* Page heads (subpages): the dark title band. */

.page-head-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap-cols);
  align-items: end;
  padding-block: 5rem 4.5rem;
}

.page-head-solo {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.page-head h1,
.page-hero h1 {
  margin: 0;
  font-size: var(--step-h1);
  line-height: 0.95;
}

.page-head .lead,
.page-hero .lead {
  margin: 0;
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--text-on-dark);
}

/* ECU page head: eyebrow, h1, lead and a photo. */

.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr));
  gap: var(--gap-cols);
  align-items: stretch;
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero-text .eyebrow {
  margin-bottom: 1.5rem;
}

.page-hero-text h1 {
  margin-bottom: 1.75rem;
}

.page-hero-text .lead {
  max-width: 35rem;
}

.page-hero-media {
  position: relative;
  min-height: clamp(18.75rem, 45vw, 30rem);
}

.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service rows (palvelut, ecu-viritys): text beside a photo, hairline
   between rows. Text comes first in the source; .row-media-first puts the
   photo on the left from two columns up. */

.rows > .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap-cols);
  align-items: center;
  padding-block: 5rem;
  border-bottom: 1px solid var(--rule-on-light);
}

.rows > .row-last {
  padding-bottom: 6rem;
  border-bottom: 0;
}

.rows > .row-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  align-items: start;
}

.rows h2 {
  margin: 0 0 1.125rem;
  font-size: var(--step-h2);
  line-height: 1;
}

.row-list h2 {
  margin: 0;
}

.rows p {
  margin: 0;
  font-size: var(--step-copy-m);
  line-height: 1.6;
  color: var(--text-on-light);
}

.marker-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.marker-row .marker {
  margin: 0;
}

.marker-row .eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.row figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.row .caption {
  margin-top: 0.625rem;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-copy-m);
  line-height: 1.5;
}

.plain-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule-on-light);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--rule-on-light);
}

/* ECU rows: heading left, prose right, no photos. */

.rows-ecu > .row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  align-items: start;
  padding-block: 4.5rem;
}

.rows-ecu > .row-last {
  padding-bottom: 6rem;
}

.rows-ecu h2 {
  margin: 0;
}

.rows-ecu p {
  font-size: var(--step-copy-l);
}

@media (min-width: 60rem) {
  .row-media-first > figure,
  .row-media-first > .photo-pair {
    order: -1;
  }
}

/* Object-position utilities: the export's crop values, by value. */

.op-50-0 { object-position: 50% 0%; }
.op-50-22 { object-position: 50% 22%; }
.op-50-38 { object-position: 50% 38%; }
.op-50-40 { object-position: 50% 40%; }
.op-50-45 { object-position: 50% 45%; }
.op-50-48 { object-position: 50% 48%; }
.op-50-55 { object-position: 50% 55%; }
.op-50-60 { object-position: 50% 60%; }
.op-60-50 { object-position: 60% 50%; }

/* Hinnasto */

.intro {
  border-bottom: 1px solid var(--rule-on-light);
}

.intro p {
  max-width: 47.5rem;
  margin: 0;
  padding-block: clamp(2rem, 4vw, 3rem);
  font-size: var(--step-intro);
  line-height: 1.55;
  color: var(--text-on-light);
}

.price-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

/* Contents list: a static list of in-page anchors. Beside the tables from
   907 px, above them below that. Up to 56rem the thirteen ECU links flow into
   two columns so the list stays short on a phone. */

.toc {
  flex: 1 1 13.75rem;
  max-width: 17.5rem;
}

.toc .eyebrow {
  margin-bottom: 0.875rem;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-block: 0.375rem;
  font-size: var(--step-nav);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* Top-level contents links read as links: red underline, an arrow, red on
   hover (Linus 2026-09-25: they looked like plain headings). */
.toc > ul > li > a::after {
  content: "\2192";
  font-weight: 400;
  color: var(--accent);
}

.toc > ul > li > a:hover {
  color: var(--accent);
}

.toc ul ul a {
  padding-left: 1rem;
  border-left: 1px solid var(--rule-on-light);
  font-size: var(--step-note);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
}

.toc ul ul a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.toc ul ul a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc > ul > li + li {
  margin-top: 0.375rem;
}

@media (max-width: 56rem) {
  .toc {
    max-width: none;
  }

  .toc ul ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
}

.prices {
  flex: 999 1 min(100%, 35rem);
  min-width: 0;
}

.prices h2 {
  margin: 0 0 1.25rem;
  font-size: var(--step-h2-xl);
  line-height: 1;
}

.prices .eyebrow {
  margin-bottom: 0.875rem;
}

.price-section {
  margin-bottom: 6rem;
}

.price-section-ecu {
  margin-bottom: 6.5rem;
}

.price-section-mail {
  margin-bottom: 4rem;
}

.price-section-mail h2 {
  font-size: var(--step-h2);
}

.section-intro {
  max-width: 45rem;
  margin: 0 0 3rem;
  font-size: var(--step-copy);
  line-height: 1.6;
  color: var(--text-on-light);
}

.price-section-mail .section-intro {
  margin-bottom: 2.25rem;
}

.price-group {
  margin-bottom: 3rem;
}

.price-section-ecu .price-group {
  margin-bottom: 3.5rem;
}

.price-group h3,
.prices h3 {
  margin: 0 0 0.375rem;
  font-size: var(--step-h3-price);
  line-height: 1.05;
  scroll-margin-top: 1.5rem;
}

.prices [id] {
  scroll-margin-top: 1.5rem;
}

.group-note {
  margin: 0;
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--text-muted);
}

.group-after {
  margin: 0.875rem 0 0;
  font-size: var(--step-small);
  line-height: 1.55;
  color: var(--text-on-light);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-body);
  line-height: 1.4;
}

th,
td {
  padding: 0.8125rem 0;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--rule-on-light);
}

thead th {
  padding: 0.875rem 0 0.625rem;
  border-bottom-color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

th:first-child,
td:first-child {
  padding-right: 1.5rem;
}

/* Price column: right-aligned, mono figures. Prices carry non-breaking
   spaces, so the column never splits a number from its unit. */

th:last-child,
td:last-child {
  text-align: right;
}

td:last-child {
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A price cell holding a sentence instead of a figure ("Lähetä ECU:n tiedot, kysy
   tarjous") must wrap, or the whole price column slides off a phone screen:
   the mail-in table measured 432px in a 335px column at 375px (2026-11-12). */
.price-section-mail td:last-child {
  white-space: normal;
  max-width: 11rem;
}

.row-note {
  display: block;
  font-size: var(--step-note);
  color: var(--text-muted);
}

.note-box {
  margin: 0 0 6rem;
  padding: 1.5rem 1.75rem;
  background: var(--ground-note);
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--text-on-light);
}

.note-label {
  margin-right: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.mail-note {
  margin: 1.25rem 0 0;
  font-size: var(--step-small);
  line-height: 1.55;
  color: var(--text-on-light);
}

/* Galleria: fixed 3:2 tiles, one column on phones, then 2 and 3. */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem 1.5rem;
  padding-block: 4rem 6rem;
}

.gallery figure {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ground-note);
}

.gallery figcaption {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text-on-light);
}

/* Yhteystiedot */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap-cols);
  padding-block: 5rem 5.5rem;
}

.contact-grid h1 {
  margin: 0 0 2.5rem;
  font-size: var(--step-h1);
  line-height: 0.95;
}

.contact-grid .cta-text {
  margin-top: 1rem;
}

.contact-block {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  margin: 0;
  font-size: var(--step-copy);
  line-height: 1.55;
  color: var(--text-on-dark);
}

.contact-block dt {
  padding-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-on-dark);
}

.contact-block dt:not(:first-child) {
  margin-top: 0.875rem;
}

.contact-block dd {
  margin: 0;
}

.contact-block .map-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.contact-block .mono {
  font-family: var(--font-mono);
  font-size: var(--step-small);
}

@media (min-width: 30rem) {
  .contact-block {
    grid-template-columns: 8.75rem minmax(0, 1fr);
    row-gap: 1.125rem;
  }

  .contact-block dt:not(:first-child) {
    margin-top: 0;
  }
}

.onsite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  gap: var(--gap-cols);
  align-items: center;
  padding-block: 5rem 6rem;
}

.onsite-photos {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0.75rem;
}

.onsite-photos img:first-child {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.onsite-photos img:last-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onsite-grid p:last-child {
  margin: 0;
  font-size: var(--step-copy-m);
  line-height: 1.6;
  color: var(--text-on-light);
}

/* Tietosuojaseloste: the privacy text in the export's frame. */

.prose {
  max-width: 68ch;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--step-prose-h2);
  line-height: 1.05;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  font-size: var(--step-copy);
  line-height: 1.65;
  color: var(--text-on-light);
}

/* 404: one dark field between header and footer. */

.fill {
  display: flex;
  flex-direction: column;
}

.fill > section {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

.fill > section > .wrap {
  width: 100%;
}

.error-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap-cols);
  align-items: end;
  padding-block: 6rem;
}

.error-grid h1 {
  margin: 0 0 1.25rem;
  font-size: var(--step-h1);
  line-height: 0.95;
}

.error-grid .eyebrow {
  margin-bottom: 1.25rem;
}

.error-grid .cta-text {
  max-width: 32.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--step-copy-m);
  line-height: 1.6;
}

.error-grid .phone-xl {
  font-size: var(--step-phone-404);
}

.error-grid .eyebrow-call {
  margin-bottom: 0.875rem;
}

/* Footer */

footer {
  background: var(--ground-light);
  border-top: 1px solid var(--rule-on-light);
  color: var(--text-on-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 3rem var(--gutter) 2.5rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  flex: 1 1 26.25rem;
  min-width: 0;
}

.footer-main .logo {
  align-self: flex-start;
  width: auto;
  height: 2.75rem;
}

.footer-main p {
  margin: 0;
  font-size: var(--step-small);
  line-height: 1.7;
}

.footer-main a {
  font-weight: 500;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.04em;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-on-light);
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-meta span {
  color: var(--text-faint);
}
