/* Itse isännöidyt fontit (@fontsource, SIL Open Font License 1.1). Ei yhteyttä Googleen. */
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/big-shoulders-display-latin-700-normal.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:'Big Shoulders Display';font-style:normal;font-display:swap;font-weight:800;src:url(fonts/big-shoulders-display-latin-800-normal.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:'Inter Tight';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/inter-tight-latin-400-normal.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:'Inter Tight';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/inter-tight-latin-500-normal.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:'Inter Tight';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/inter-tight-latin-600-normal.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:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/jetbrains-mono-latin-400-normal.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:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/jetbrains-mono-latin-500-normal.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:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/jetbrains-mono-latin-700-normal.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}

/* =========================================================
   AMERICAR OY — design system
   Muotoilu: "myyntiesite" (US window sticker) -estetiikka
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brändivärit poimittu logosta (AmeriCar_300.jpg) */
  --red: #dd1f27;          /* logon punainen — pinnat, napit, grafiikka */
  --red-text: #c71c23;     /* sama sävy hieman tummennettuna pientä tekstiä varten (AA) */
  --red-dark: #b1191f;     /* hover */
  --blue: #0d4d8d;         /* logon sininen */
  --blue-light: #8fb4d6;   /* vaalennus tummalle pohjalle */

  --asphalt: #0c1826;      /* logon sinisestä johdettu tumma */
  --asphalt-2: #152438;
  --asphalt-3: #22334a;
  --steel: #55606d;
  --steel-light: #8b97a6;
  --line: #d2d7dd;
  --line-soft: #e3e7eb;
  --concrete: #e8eaee;
  --paper: #ffffff;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1220px;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --pad-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(12, 24, 38, .06), 0 12px 32px -18px rgba(12, 24, 38, .35);
  --shadow-lift: 0 2px 4px rgba(12, 24, 38, .08), 0 26px 50px -24px rgba(12, 24, 38, .45);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.62;
  color: var(--asphalt);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Focus & skip link ---------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--asphalt); color: #fff; padding: .7rem 1.1rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--pad-y); }
.section--dark { background: var(--asphalt); color: #fff; }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Otsikon ja sitä seuraavan tekstin väli — skaalautuu otsikon koon mukaan,
   jotta iso otsikko ei näytä liimautuvan leipätekstiin kiinni */
h1 + p, h1 + .lede { margin-top: 1.9rem; }
h2 + p, h2 + .lede { margin-top: 2rem; }
h3 + p, h3 + .lede { margin-top: 1.1rem; }
h4 + p, h4 + .lede { margin-top: .9rem; }
h2 + ul, h3 + ul, h2 + ol, h3 + ol { margin-top: 1.25rem; }
/* Myyntiesitteen otsikko + moottoririvi on tarkoituksella tiivis pari */
.sticker__head h3 + p { margin-top: .55rem; }
h1 { font-size: clamp(2.6rem, 7.6vw, 5.6rem); line-height: 1.0; }
h2 { font-size: clamp(1.95rem, 4.8vw, 3.4rem); line-height: 1.04; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.1; }
p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-text);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.25rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .28;
  max-width: 140px;
}
.section--dark .eyebrow { color: var(--blue-light); }
.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--steel);
  max-width: 62ch;
}
.section--dark .lede { color: #b3bfcd; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--dark { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.btn--dark:hover { background: var(--asphalt-3); border-color: var(--asphalt-3); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--asphalt); border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 24, 38, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: saturate(160%) blur(8px);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

/* Etusivu: navigaatio kelluu läpinäkyvänä heron päällä, jotta logo erottuu */
.header--overlay {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
/* Pehmeä tummennus ylälaitaan, jotta valikkoteksti pysyy luettavana videon päällä */
.header--overlay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 190%;
  background: linear-gradient(to bottom, rgba(12, 24, 38, .78) 0%, rgba(12, 24, 38, .45) 45%, rgba(12, 24, 38, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
/* Kun sivua vieritetään, palkki muuttuu kiinteäksi luettavuuden vuoksi */
.header--overlay.is-stuck {
  background: rgba(12, 24, 38, .97);
  border-bottom-color: rgba(255, 255, 255, .1);
  backdrop-filter: saturate(160%) blur(8px);
}
.header--overlay.is-stuck::before { opacity: 0; }
/* Mobiilivalikko auki -> tausta aina kiinteä */
.header--overlay:has(.nav[data-open="true"]) {
  background: rgba(12, 24, 38, .97);
}
.header--overlay:has(.nav[data-open="true"])::before { opacity: 0; }
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
/* Logo on brändiväreissään, joten se tarvitsee vaalean pohjan kuten alkuperäisellä
   sivustolla — muuten sininen osa katoaa tummaan taustaan (1,8:1). */
.brand__plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: .5rem .8rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.brand__logo {
  display: block;
  width: auto;
  height: 28px;
}
.brand__since {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--steel-light);
  text-transform: uppercase;
  padding-left: .7rem;
  border-left: 1px solid rgba(255, 255, 255, .2);
  white-space: nowrap;
}
@media (max-width: 460px) {
  .brand__logo { height: 24px; }
  .brand__plate { padding: .45rem .65rem; }
  .brand__since { display: none; }
}
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  display: block;
  padding: .55rem .8rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ccd6e1;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.nav__cta { margin-left: .65rem; }
.nav__cta .btn {
  width: auto;
  padding: .62rem 1.1rem;
  white-space: nowrap;
}
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff;
  transition: transform .22s ease, opacity .22s ease;
}
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(4px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

@media (max-width: 1179px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--asphalt);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: none;
    margin-left: 0;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1.4rem; gap: 0; }
  .nav__link { padding: .95rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .9rem; }
  .nav__cta { margin-left: 0; margin-top: 1rem; }
  .nav__cta .btn { width: 100%; padding: .85rem 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--asphalt);
  color: #fff;
  overflow: hidden;
  min-height: min(92vh, 940px);
  display: flex;
  align-items: flex-end;
}
@supports (min-height: 92svh) { .hero { min-height: min(92svh, 940px); } }
.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.hero__fallback { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__fallback { display: block; }
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12,24,38,.88) 0%, rgba(12,24,38,.60) 48%, rgba(12,24,38,.15) 100%),
    linear-gradient(to top, rgba(12,24,38,.96) 2%, rgba(12,24,38,0) 42%);
}
.hero__inner {
  position: relative;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem)) clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  gap: 2rem;
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--blue-light);
}
.hero h1 { max-width: 15ch; }
.hero h1 .thin { display: block; font-weight: 400; color: #c2cedd; margin-top: .3em; font-size: .52em; line-height: 1.2; letter-spacing: 0; }
.hero__sub { max-width: 46ch; color: #c2cedd; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__plate {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 24, 38, .72);
  backdrop-filter: blur(6px) saturate(120%);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.hero__plate div { padding: 1.15rem 1.35rem; border-right: 1px solid rgba(255, 255, 255, .14); }
.hero__plate div:last-child { border-right: 0; }
.hero__plate dt {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: #a9b8ca; margin-bottom: .35rem;
}
.hero__plate dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; text-transform: uppercase; line-height: 1;
}
@media (max-width: 620px) {
  .hero__plate div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero__plate div:last-child { border-bottom: 0; }
}

/* ---------- Page hero (alasivut) ---------- */
.pagehead { background: var(--asphalt); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.pagehead h1 { font-size: clamp(2.4rem, 6.5vw, 4.75rem); }
.pagehead .lede { color: #b3bfcd; margin-top: 2.1rem; }
.crumbs { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 1.25rem; }
.crumbs a { color: var(--steel-light); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Myyntiesite (auto-kortti) ---------- */
.grid-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}
.sticker {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.sticker:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--steel-light); }
.sticker__media { position: relative; aspect-ratio: 3 / 2; background: var(--asphalt-2); overflow: hidden; }
.sticker__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sticker:hover .sticker__media img { transform: scale(1.035); }
.sticker__tag {
  position: absolute; top: .85rem; left: .85rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: .32rem .6rem; border-radius: 2px;
}
.sticker__tag--used { background: var(--asphalt); }
.sticker__tag--sold { background: var(--blue); color: #fff; }

.sticker__bar {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--blue); color: #fff;
  padding: .45rem .95rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
}
.sticker__bar span:last-child { color: #bcd3e8; }

.sticker__head { padding: 1.1rem 1.15rem .9rem; border-bottom: 1px dashed var(--line); }
.sticker__brand {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red-text); margin-bottom: .45rem;
}
.sticker__title { font-size: 1.3rem; line-height: 1.12; }
.sticker__engine { font-size: .9rem; color: var(--steel); margin-top: .55rem; }

.specs { padding: .35rem 1.15rem; display: grid; }
.specs__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .78rem;
}
.specs__row:last-child { border-bottom: 0; }
.specs__row dt { color: var(--steel); letter-spacing: .04em; }
.specs__row dd { margin: 0; font-weight: 500; text-align: right; }

.sticker__price { margin-top: auto; padding: 1rem 1.15rem; background: #f5f6f7; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price + .price { margin-top: .35rem; }
.price span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.price b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.price--main b { font-size: 1.85rem; color: var(--asphalt); line-height: 1; }
.price--sold b { color: var(--blue); }
.sticker__cta { padding: 0 1.15rem 1.15rem; background: #f5f6f7; display: grid; gap: .5rem; }

/* ---------- Sarjataulukko ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
/* Avain/arvo-taulukko (2 saraketta) mahtuu puhelimeen ilman vaakavieritystä */
table.data--kv { min-width: 0; }
@media (max-width: 560px) {
  table.data--kv th, table.data--kv td { padding: .7rem .7rem; white-space: normal; }
  table.data--kv tbody th { font-size: .95rem; width: 38%; }
  table.data--kv td { font-size: .78rem; overflow-wrap: anywhere; }
}
table.data caption { text-align: left; padding: 1rem 1.15rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--line); }
table.data th, table.data td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--blue); border-bottom: 0;
}
table.data tbody th { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; }
table.data td { font-family: var(--font-mono); font-size: .85rem; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #f7f8f9; }
.data__note { font-size: .85rem; color: var(--steel); margin-top: .9rem; }

/* ---------- Palvelut / kortit ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-top: 3px solid var(--red);
}
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--steel); font-size: .97rem; }
.card__cta { margin-top: auto; padding-top: 2.25rem; }
.card__cta .btn { width: 100%; }
.card ul.ticks { margin-top: 1.15rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--steel); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}
.section--dark .card { background: var(--asphalt-2); border-color: rgba(255,255,255,.12); }
.section--dark .card p, .section--dark .ticks li { color: #b3bfcd; }

/* ---------- Sitaatit ---------- */
.grid-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.quote {
  background: var(--asphalt-2);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote__label {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue-light);
}
.quote blockquote { font-size: 1.05rem; line-height: 1.5; color: #eaeef3; }
.quote figcaption { margin-top: auto; font-family: var(--font-mono); font-size: .74rem; color: var(--steel-light); line-height: 1.6; }
.quote figcaption b { display: block; color: #fff; font-weight: 500; letter-spacing: .06em; }

/* ---------- Yrittäjän kirje ---------- */
.letter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3.25rem); }
.letter p { color: var(--steel); line-height: 1.7; }
.letter__sign { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.letter__sign b { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; display: block; }
.letter__sign span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* ---------- Varaosat ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1rem; border: 1px solid var(--line); background: var(--paper);
  border-radius: 100px; text-decoration: none; color: var(--asphalt);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.chip:hover, .chip.is-active { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }

.parts-group { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.parts-group > summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase;
  transition: background-color .16s ease;
}
.parts-group > summary::-webkit-details-marker { display: none; }
.parts-group > summary:hover { background: #f5f6f7; }
.parts-group > summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.35rem; color: var(--red-text); line-height: 1;
}
.parts-group[open] > summary::after { content: "–"; }
.parts-group[open] > summary { border-bottom: 1px solid var(--line); }
.parts-group__body { padding: 1.25rem 1.3rem 1.5rem; }
.parts-group__body h4 {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-text); margin: 1.4rem 0 .7rem;
}
.parts-group__body h4:first-child { margin-top: 0; }
.parts-list { display: grid; gap: 0; }
.parts-list li {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}
.parts-list li:last-child { border-bottom: 0; }
.parts-list .part-price { font-family: var(--font-mono); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.stocklist {
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.9; color: var(--steel);
  column-width: 110px; column-gap: 1.5rem;
  max-height: 260px; overflow: auto;
  border: 1px solid var(--line); background: var(--paper);
  padding: 1rem 1.2rem; border-radius: var(--radius);
}

/* ---------- Yhteystiedot ---------- */
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 3px solid var(--red);
}
.contact-card h3 { margin-bottom: .35rem; }
.contact-card .role { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.1rem; }
.contact-list { display: grid; gap: .6rem; margin-top: 1.25rem; }
.contact-list a { font-family: var(--font-mono); font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.contact-list a:hover { color: var(--red-text); text-decoration: underline; }
.hours { display: grid; gap: .5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .82rem; }
.hours span:first-child { color: var(--steel); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Lomake ---------- */
.form { display: grid; gap: 1rem; }
.form__legend {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-text);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  margin-top: .5rem;
}
.form__legend:first-child { margin-top: 0; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--asphalt);
  box-shadow: 0 0 0 3px rgba(12, 24, 38, .12);
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--steel); }
.form__consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-family: var(--font-mono); font-size: .8rem; padding: .85rem 1rem; border-radius: var(--radius); display: none; }
.form__status[data-state="ok"] { display: block; background: #e8f2ea; border: 1px solid #b6d6bf; color: #1d5b30; }
.form__status[data-state="error"] { display: block; background: #fdeceb; border: 1px solid #f0bfbc; color: var(--red-dark); }

/* ---------- Nauha / CTA ---------- */
.stripe {
  background: var(--red); color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.stripe__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.25rem; }
.stripe h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.stripe p { color: rgba(255, 255, 255, .88); max-width: 46ch; margin-top: 1rem; line-height: 1.6; }
.stripe .btn--ghost { border-color: #fff; color: #fff; }
.stripe .btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

/* ---------- Kumppanit ---------- */
.partners { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.partners a {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel-light); text-decoration: none;
}
.partners a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--asphalt); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .2em; color: var(--blue-light); margin-bottom: 1rem; text-transform: uppercase; }
.footer p, .footer li { color: #b3bfcd; font-size: .92rem; }
.footer a { color: #b3bfcd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { display: grid; gap: .5rem; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--steel-light);
}
.footer .brand__plate { background: transparent; padding: 0; box-shadow: none; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius);
  transition: background-color .16s ease, border-color .16s ease;
}
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 17px; height: 17px; fill: currentColor; color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; background: var(--asphalt); color: #fff; padding-block: 5rem; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 15rem); line-height: .8; color: var(--red); }
.notfound p { color: #b3bfcd; margin: 2.1rem auto 2.25rem; max-width: 46ch; }
.notfound .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Tulostus ---------- */
@media print {
  .header, .footer, .stripe, .hero__media, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .sticker { break-inside: avoid; box-shadow: none; }
}

/* =========================================================
   Autokortit — koko kortti vie autosivulle
   ========================================================= */
.sticker--link .sticker__media { display: block; }
.sticker__title a { color: inherit; text-decoration: none; }
.sticker__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.sticker__count {
  position: absolute; right: .85rem; bottom: .85rem;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(12, 24, 38, .82); color: #fff; padding: .3rem .55rem; border-radius: 2px;
}

/* =========================================================
   Autosivu
   ========================================================= */
.auto-top {
  background: var(--asphalt); color: #fff;
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 4.5rem);
}
.auto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}
@media (max-width: 960px) { .auto-layout { grid-template-columns: 1fr; } }

/* --- galleria --- */
.gallery { min-width: 0; }
.gallery__stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--asphalt-2); }
.gallery__main { display: block; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__nav, .lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12, 24, 38, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.25rem; cursor: pointer;
  transition: background-color .16s ease;
}
.gallery__nav:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.gallery__nav--prev, .lightbox__nav--prev { left: .9rem; }
.gallery__nav--next, .lightbox__nav--next { right: .9rem; }
.gallery__counter, .lightbox__counter {
  position: absolute; left: .9rem; bottom: .9rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  background: rgba(12, 24, 38, .82); color: #fff; padding: .35rem .6rem; border-radius: 2px;
}
.gallery__zoom {
  position: absolute; right: .9rem; bottom: .9rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(12, 24, 38, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  padding: .45rem .7rem; border-radius: 2px; cursor: pointer;
}
.gallery__zoom:hover { background: var(--red); border-color: var(--red); }
.gallery__thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: .5rem;
  overflow-x: auto; padding: .75rem 0 .5rem; margin: 0; list-style: none;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.gallery__thumb {
  display: block; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden;
  outline: 2px solid transparent; outline-offset: -2px; opacity: .62;
  transition: opacity .16s ease, outline-color .16s ease; scroll-snap-align: start;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; outline-color: var(--red); }
@media (max-width: 560px) {
  .gallery__nav { width: 40px; height: 40px; }
  .gallery__thumbs { grid-auto-columns: 84px; }
}

/* --- hinta- ja tietokortti --- */
.auto-card {
  background: var(--paper); color: var(--asphalt);
  border-radius: var(--radius); border-top: 4px solid var(--red);
  padding: clamp(1.4rem, 3vw, 2rem);
  position: sticky; top: calc(var(--header-h) + 1.25rem);
}
@media (max-width: 960px) { .auto-card { position: static; } }
.auto-card .eyebrow { margin-bottom: .9rem; }
.auto-card h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.04; }
.auto-card__version { margin-top: .75rem; color: var(--steel); font-size: .95rem; }
.auto-card__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding-block: 1.1rem; border-block: 1px solid var(--line);
}
.auto-card__price span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.auto-card__price b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.auto-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin: 1.4rem 0 0; }
.auto-card__facts dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.auto-card__facts dd { margin: .3rem 0 0; font-weight: 600; font-size: 1rem; }
.auto-card__cta { display: grid; gap: .6rem; margin-top: 1.6rem; }
.auto-card__notes { margin: 1.25rem 0 0; display: grid; gap: .45rem; font-size: .86rem; color: var(--steel); }
.auto-card__notes a { color: var(--blue); font-weight: 600; }

/* --- kohokohdat --- */
.auto-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .auto-intro { grid-template-columns: 1fr; } }
.ticks--lg { display: grid; gap: .8rem; }
.ticks--lg li { font-size: 1.02rem; color: var(--asphalt); }

/* --- tekniset tiedot --- */
.spec-table {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .4rem clamp(1rem, 3vw, 1.75rem);
}
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.spec-table dt { color: var(--steel); font-size: .95rem; }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 700px) { .spec-table { grid-template-columns: 1fr; } }

/* --- varusteet --- */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.equip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); }
.equip h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.equip .ticks { display: grid; gap: .5rem; }

/* --- koko näytön galleria --- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(6, 12, 20, .96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 12, 20, .96); }
.lightbox img { max-width: min(96vw, 1440px); max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.1rem; cursor: pointer;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__counter { left: 50%; transform: translateX(-50%); bottom: 1.25rem; }

/* ---- Tietosuojaseloste ja muut tekstisivut ---- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 3rem; }
.legal h2:first-child { margin-top: 0; }
.legal h2 + p { margin-top: 1rem; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: .9rem; }
.legal .ticks { margin-top: 1rem; }
.legal a { color: var(--red-text, #C71C23); text-decoration: underline; text-underline-offset: 2px; }
.form__consent a { color: inherit; text-decoration: underline; }
.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
