/* VehiVideo: yhteiset tyylit etusivulle ja tilaussivuille */
:root {
  --ink: #0E0E10;
  --charcoal: #18181C;
  --frame: #2C2C33;
  --red: #D94F3A;
  --red-dark: #B83D2A;
  --red-soft: #FDECEA;
  --grey: #6B6B72;
  --grey-on-dark: #B5B5BC;
  --line: #E4E4E8;
  --surface: #F7F7F8;
  --white: #FFFFFF;
  --max: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font: 800 22px/1 Archivo, sans-serif; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.logo span { color: var(--red); }
.nav { display: none; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--grey); }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: 600 16px/1.2 Inter, sans-serif; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.bg-surface { background: var(--surface); }
.section-head { max-width: 38em; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--grey); font-size: 18px; }
.lead { font-size: 18px; color: var(--grey); }

/* Video stages */
.stage { position: relative; background: var(--charcoal); border-radius: var(--radius); overflow: hidden; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: var(--charcoal); }
.fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  padding: 24px; text-align: center; color: #9A9AA2; font-size: 14px;
}
.stage.is-missing .fallback { display: grid; }
.stage.is-missing video, .stage.is-missing .play, .stage.is-missing .sound { display: none; }
.stage.is-missing.has-cover .fallback { display: none; }

/* Kansikuva mainokselle: näkyy kunnes video käynnistetään */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.is-started .cover { display: none; }

.play {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; background: rgba(14, 14, 16, 0.18); color: var(--white); cursor: pointer;
  font: 600 15px/1 Inter, sans-serif;
}
.play-dot {
  width: 80px; height: 80px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; transition: transform .15s;
  box-shadow: 0 10px 30px rgba(14, 14, 16, 0.35);
}
.play-dot svg { width: 28px; height: 28px; margin-left: 5px; fill: var(--ink); }
.play:hover .play-dot { transform: scale(1.06); }
.play-label { background: rgba(14, 14, 16, 0.78); padding: 8px 14px; border-radius: 999px; }
.stage.is-started .play { display: none; }

.sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 8px 12px;
  background: rgba(14, 14, 16, 0.78); color: var(--white);
  font: 600 13px/1 Inter, sans-serif; cursor: pointer;
}
.sound svg { width: 16px; height: 16px; fill: currentColor; }
.sound:hover { background: var(--ink); }
.stage.is-focus .sound { display: none; }
.sound-lg { left: 14px; right: auto; bottom: 14px; padding: 11px 16px; font-size: 14px; }
.sound-lg svg { width: 18px; height: 18px; }
/* Kun mainos pyörii mykkänä, iso play-nappi piiloon. Jos selain estää automaattisen toiston, iso nappi näkyy. */
.stage.is-looping .play { display: none; }
.stage-wide:not(.is-looping) .sound-lg { display: none; }

/* Puhelinkehys. Kehyksen muoto seuraa videon omaa kuvasuhdetta,
   joten pystyvideo näkyy pystypuhelimessa ja mitään ei rajata pois. */
.media {
  display: flex; align-items: center; justify-content: center;
  height: 480px; padding: 20px;
  background: var(--surface); border-radius: var(--radius);
}
@media (max-width: 599px) { .media { height: 440px; padding: 16px; } }
.device {
  /* Kehys on varjona, jotta videon kuvasuhde osuu tarkalleen eikä reunoille jää mustaa */
  height: calc(100% - 14px); aspect-ratio: 9 / 16; max-width: calc(100% - 14px);
  border-radius: 24px; background: var(--ink);
  box-shadow: 0 0 0 7px var(--frame), 0 30px 50px -28px rgba(14, 14, 16, 0.65);
}
.device video { position: absolute; inset: 0; background: var(--ink); }
.media.is-landscape { height: auto; }
.media.is-landscape .device { height: auto; width: calc(100% - 14px); border-radius: 16px; }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 54px); }
}
.hero .lead { margin: 20px 0 28px; max-width: 30em; }
.hero-prices { margin-top: 22px; font-size: 15px; color: var(--grey); }
.hero-prices strong { color: var(--ink); font-weight: 600; }
.stage-wide { aspect-ratio: 16 / 9; box-shadow: 0 34px 70px -34px rgba(14, 14, 16, 0.55); }

/* Product cards */
.products { display: grid; gap: 20px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; display: flex; flex-direction: column;
}
@media (min-width: 720px) { .product { padding: 28px; } }
@media (min-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; gap: 24px; }
  @supports (grid-template-rows: subgrid) {
    .product { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.tag {
  justify-self: start; align-self: flex-start;
  background: var(--red-soft); color: var(--red-dark);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.product .media { margin-top: 16px; }
.media-note { margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface); }
.caption { font-size: 14px; color: var(--grey); margin-top: 8px; }
.product h3 { margin-top: 24px; }
.product .desc { color: var(--grey); margin-top: 8px; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 20px 0 24px; }
.ticks li { position: relative; padding: 5px 0 5px 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 12px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.buy { border-top: 1px solid var(--line); padding-top: 20px; align-self: end; }
.price { font: 800 40px/1 Archivo, sans-serif; letter-spacing: -0.02em; }
.price small { font: 400 14px/1 Inter, sans-serif; color: var(--grey); letter-spacing: 0; margin-left: 6px; }
.alt-price { margin-top: 10px; font-size: 15px; color: var(--grey); }
.alt-price strong { color: var(--ink); font-weight: 600; }
.buy .btns { margin-top: 18px; }
.buy .btn { flex: 1 1 180px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { font: 800 15px/1 Archivo, sans-serif; color: var(--grey); }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { color: var(--grey); }

/* Photo guide */
.guide { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .guide { grid-template-columns: 1fr 1fr; gap: 64px; } }
.guide img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); width: 100%; }
.guide ul { margin: 20px 0 0; padding-left: 20px; color: var(--grey); }
.guide li { margin: 8px 0; }
.guide li strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 27px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--grey); padding: 0 0 22px; max-width: 42em; }

/* Dealer band */
.dealer { background: var(--charcoal); color: var(--white); }
.dealer .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .dealer .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.dealer .lead { color: var(--grey-on-dark); margin-top: 16px; max-width: 30em; }
.dealer .small { color: var(--grey-on-dark); font-size: 15px; margin-top: 16px; }
.dealer .small a { color: var(--white); }
.mascot { margin-top: 32px; max-width: 240px; }
.mascot .media { background: none; padding: 7px; height: 420px; justify-content: flex-start; }

.form-card {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px;
}
@media (min-width: 720px) { .form-card { padding: 28px; } }

/* Closing */
.closing .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .closing .wrap { grid-template-columns: 1fr auto; gap: 48px; } }
.closing p { color: var(--grey); margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--grey); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer address { font-style: normal; margin-top: 14px; line-height: 1.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { grid-column: 1 / -1; color: #8B8B92; }

/* Order pages */
.order-hero { padding: 40px 0 56px; }
.order-hero .wrap { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) {
  .order-hero { padding: 64px 0 80px; }
  .order-hero .wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
}
.order-price { font: 800 34px/1 Archivo, sans-serif; letter-spacing: -0.02em; margin: 18px 0 14px; }
.order-price small { font: 400 15px/1 Inter, sans-serif; color: var(--grey); letter-spacing: 0; margin-left: 6px; }
.order-hero .lead { max-width: 32em; }
.order-steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.order-steps li { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; }
.order-steps b { font: 800 16px/1 Archivo, sans-serif; color: var(--grey); }
.order-media { width: 100%; max-width: 360px; justify-self: center; }
@media (min-width: 900px) { .order-media { justify-self: end; } }
@media (min-width: 900px) { .order-media .media { height: 540px; } }
.order-media .caption { text-align: center; }

.notes { display: grid; gap: 12px; margin-bottom: 32px; }
@media (min-width: 900px) { .notes { grid-template-columns: 1fr 1fr; } }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--grey); font-size: 15px; }
.note strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.order-body { max-width: 780px; }
.order-body h2 { margin-bottom: 20px; }
.cross {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.cross p { color: var(--grey); }
.cross p strong { color: var(--ink); }
.terms { font-size: 14px; color: var(--grey); margin-top: 16px; }
