/* ============================================================
   MPEST Service — brändi-CSS
   Logo on lihava, kursiivi, levennetty grotesk → koko ilme
   rakennetaan siitä: Archivo (leveys 62–125), musta/valkoinen/
   signaalikeltainen, terävät kulmat, paksut viivat, sälemotiivi.
   ============================================================ */
:root {
  --black: #0A0A0A;
  --black-2: #161616;
  --white: #FFFFFF;
  --grey-100: #F4F4F2;
  --grey-200: #E3E3DF;
  --grey-400: #A9A9A4;
  --grey-600: #6B6B67;
  --blue: #1C3F95;
  --blue-deep: #142E70;
  --blue-tint: #E8EEFA;
  /* legacy aliases */
  --yellow: var(--blue);
  --yellow-deep: var(--blue-deep);
  --wa: #25D366;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --rule: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--white); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- typography ---------- */
h1, h2, h3 { margin: 0; }
h1, h2, .h-xl, .big-price, .huge-phone, .stats dd, .hero-price, .calc strong {
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .95;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); margin-bottom: .5em; }
.h-xl { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h1 em, h2 em { font-style: italic; color: var(--blue); }
.hero h1 em, .page-head h1 em, .sec.dark h2 em { color: var(--white); }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 108; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .35rem; }
.label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-variation-settings: "wdth" 90; color: var(--grey-600); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.label.on-dark { color: var(--grey-400); }
.sec-num { display: inline-block; background: var(--blue); color: var(--white); padding: .2rem .45rem; letter-spacing: 0; font-variation-settings: "wdth" 110; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 34em; }
.fine { font-size: .85rem; color: var(--grey-600); max-width: 48em; }
.prose p { max-width: 38em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .4em; }
.narrow { max-width: 780px; }
.link { font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; font-variation-settings: "wdth" 100; border-bottom: 2px solid var(--blue); padding-bottom: .15rem; color: var(--blue); }
.link:hover { border-bottom-width: 3px; }
.link.on-dark { color: var(--white); border-color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  font-variation-settings: "wdth" 105;
  padding: .95rem 1.4rem; border: 2px solid transparent; border-radius: 0; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-lg { padding: 1.15rem 1.7rem; font-size: 1rem; }
.btn-yellow { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-yellow:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--white); color: var(--black); }
.btn-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--black); color: var(--white); border-bottom: 1px solid #2A2A2A; }
.top-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; height: 72px; }
.brand img { width: 132px; }
.nav { display: flex; gap: 2rem; justify-content: center; }
.nav a { font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 100; padding: .4rem 0; border-bottom: var(--rule) solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--white); }
.only-mobile { display: none !important; }
.top-cta { padding: .7rem 1.1rem; }
.menu { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.menu span { display: block; height: 3px; background: var(--white); transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 900px) {
  .top-row { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .brand img { width: 112px; }
  .nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--black); flex-direction: column; gap: 0; padding: 1rem 20px 7rem; overflow-y: auto; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.9rem; font-weight: 800; font-variation-settings: "wdth" 115; padding: .9rem 0; border-bottom: 1px solid #2A2A2A; letter-spacing: -.01em; }
  .nav a.active { color: var(--grey-400); border-color: #2A2A2A; }
  .nav .only-mobile { display: flex !important; }
  .nav .btn { margin-top: 1rem; }
  .top-cta { display: none; }
  .menu { display: flex; justify-self: end; }
}

/* ---------- slat motif ---------- */
.slats { background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); }

/* ---------- hero ---------- */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 2px, transparent 2px 16px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: stretch; position: relative; }
.hero-copy { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { color: var(--grey-200); }
.hero-price { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 1.4rem 0 0; color: var(--grey-400); }
.hero-price span { color: var(--white); }
.hero-photo { margin: 0; position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .hero-photo img { position: static; height: 100%; }
}

/* ---------- ticker strip ---------- */
.ticker { background: var(--grey-100); color: var(--black); border-bottom: 1px solid var(--grey-200); overflow: hidden; }
.ticker .wrap { display: flex; flex-wrap: wrap; gap: .3rem 0; padding: .7rem 0; font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; font-variation-settings: "wdth" 100; }
.ticker span { padding-right: 1.6rem; margin-right: 1.6rem; border-right: 1px solid var(--grey-400); }
.ticker span:last-child { border: 0; margin: 0; padding: 0; }

/* ---------- sections ---------- */
.sec { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.sec.grey { background: var(--grey-100); }
.sec.dark { background: var(--black); color: var(--white); }
.sec.dark .fine { color: var(--grey-400); }
.sec-head h2 { max-width: 14ch; }
.sec-head .lead { color: var(--grey-600); }
.sec.dark .sec-head .lead { color: var(--grey-200); }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 2rem; } }

/* spec-grid (viat / lupaukset) */
.spec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.spec-grid li { border-top: var(--rule) solid var(--black); padding: 1.2rem 0 1.8rem; }
.spec-grid .num { display: block; font-weight: 800; font-variation-settings: "wdth" 118; font-size: 1rem; color: var(--grey-600); margin-bottom: 1.8rem; }
.spec-grid p { margin: 0; color: var(--grey-600); }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid .num { margin-bottom: .8rem; } }

/* big price */
.big-price { font-size: clamp(3.4rem, 7vw, 6.8rem); margin: 0; display: flex; align-items: baseline; gap: .4em; }
.big-price small { font-size: .95rem; font-weight: 700; letter-spacing: .06em; font-variation-settings: "wdth" 100; color: var(--grey-600); }
.big-price + .big-price { margin-bottom: 1.4rem; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; margin: 0 0 1rem; border-top: var(--rule) solid var(--black); }
.spec th { text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-variation-settings: "wdth" 90; padding: .8rem 0; border-bottom: 2px solid var(--black); color: var(--grey-600); }
.spec td { padding: .85rem 0; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.spec td:last-child, .spec th:last-child { text-align: right; }
.spec td:not(:first-child) { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.spec th:not(:first-child) { color: var(--black); }
.spec thead + tbody td:nth-child(2), .spec th:nth-child(2) { text-align: right; }
.spec td.win { background: var(--blue-tint); color: var(--blue); padding-left: .6rem; padding-right: .6rem; }
.spec a { border-bottom: 2px solid var(--blue); }
.spec a:hover { color: var(--blue); }

/* calculator */
.calc { background: var(--black); color: var(--white); padding: 2rem; }
.calc .label { color: var(--grey-400); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #2A2A2A; }
.calc-lbl { font-size: .95rem; color: var(--grey-200); }
.calc-row strong { font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.calc-row.hl { border-bottom: 0; }
.calc-row.hl strong { color: var(--white); }
.calc-row.hl { order: 10; background: var(--blue); margin: 1.2rem -2rem -2rem; padding: 1.2rem 2rem 1.4rem; }
.calc-row.hl .calc-lbl { color: var(--white); }
.calc { display: flex; flex-direction: column; }
.calc .fine { order: 5; margin: 1rem 0 0; }
.calc-field { display: inline-flex; align-items: stretch; border: 2px solid var(--white); }
.calc-field input { font: inherit; font-weight: 800; font-size: 1.6rem; width: 3.2em; text-align: center; border: 0; background: transparent; color: var(--white); padding: .3rem 0; -moz-appearance: textfield; font-variation-settings: "wdth" 118; }
.calc-field input::-webkit-outer-spin-button, .calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field input:focus { outline: none; }
.calc-field button { font: inherit; font-weight: 800; font-size: 1.3rem; width: 2.6rem; border: 0; background: var(--white); color: var(--black); cursor: pointer; }
.calc-field button:hover { background: var(--grey-200); }
.calc .fine { margin: 1.2rem 0 0; color: var(--grey-400); }

/* peetu + stats */
.peetu { grid-template-columns: 4fr 7fr; align-items: center; }
.photo-sq { margin: 0; max-width: 420px; }
.photo-sq img { width: 100%; height: auto; border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; padding-top: 1.2rem; border-top: 1px solid #3A3A3A; }
.stats div { margin: 0; }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-400); font-variation-settings: "wdth" 90; font-weight: 700; margin-bottom: .3rem; }
.stats dd { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sec:not(.dark) .stats dt { color: var(--grey-600); }
.sec:not(.dark) .stats { border-color: var(--black); }
@media (max-width: 900px) { .peetu { grid-template-columns: 1fr; } .photo-sq { max-width: 380px; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { border-top: var(--rule) solid var(--black); padding-top: 1.2rem; }
.steps .num { display: block; font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1; color: var(--blue); margin-bottom: 1rem; }
.steps p { margin: 0; color: var(--grey-600); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 1.2rem; } .steps .num { font-size: 2.4rem; } }

/* faq */
.faq { margin: 0; border-top: var(--rule) solid var(--black); }
.faq div { padding: 1.2rem 0; border-bottom: 1px solid var(--grey-200); }
.faq dt { font-weight: 700; margin-bottom: .35rem; font-variation-settings: "wdth" 105; }
.faq dd { margin: 0; color: var(--grey-600); max-width: 44em; }

/* subpage head */
.page-head { background: var(--black); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 2px, transparent 2px 16px); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 16ch; margin-bottom: 1.2rem; }
.page-head .lead { color: var(--grey-200); }
.page-head.tall { padding: clamp(6rem, 12vw, 9rem) 0; }
.huge-phone { display: block; font-size: clamp(2.4rem, 8vw, 6.4rem); color: var(--white); margin: .2rem 0 1.4rem; font-variant-numeric: tabular-nums; }
.huge-phone:hover { color: var(--grey-200); }
.wide-photo { margin: 0 auto; aspect-ratio: 21 / 8; overflow: hidden; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 6px; }
.photo-strip img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 800px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip img:nth-child(2) { grid-column: 1 / -1; } .photo-strip img { height: 200px; } .wide-photo { aspect-ratio: 4 / 3; } }

/* contact / form */
.contact { grid-template-columns: 5fr 7fr; }
.form { display: grid; gap: 1.2rem; background: var(--grey-100); padding: 2rem; border-top: var(--rule) solid var(--black); }
.form label { display: grid; gap: .4rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-variation-settings: "wdth" 95; }
.form label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--grey-600); }
.form input, .form textarea { font: inherit; font-size: 1rem; width: 100%; background: var(--white); border: 2px solid var(--black); padding: .75rem .9rem; border-radius: 0; color: var(--black); text-transform: none; letter-spacing: 0; font-variation-settings: "wdth" 100; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--grey-600); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--black); }
.form .check a { border-bottom: 2px solid var(--blue); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: .95rem; }
.form-msg.err { color: #B4232C; font-weight: 600; }
.form-msg a { border-bottom: 2px solid var(--blue); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* cta + footer */
.cta { background: var(--blue); color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0; }
.cta .label { color: rgba(255,255,255,.7); }
.cta h2 em { color: var(--white); font-style: italic; }
.cta-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.cta .btn-yellow { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta .btn-yellow:hover { background: var(--blue-tint); border-color: var(--blue-tint); }
.cta .btn-white:hover { background: var(--white); color: var(--blue); }
@media (max-width: 800px) { .cta-row { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

.foot { background: var(--black); color: var(--grey-200); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand img { width: 150px; margin-bottom: 1rem; }
.foot-brand p { color: var(--grey-400); max-width: 30ch; }
.foot p { line-height: 1.9; margin: 0; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid #2A2A2A; font-size: .82rem; color: var(--grey-600); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* mobile bar */
.bar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; background: var(--black); padding-bottom: env(safe-area-inset-bottom); border-top: 2px solid #2A2A2A; }
  .bar .btn { border-radius: 0; padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .menu span { transition: none; } }

/* ---------- mobile fixes ---------- */
@media (max-width: 600px) {
  .spec td:not(:first-child), .spec th:not(:first-child) { white-space: normal; padding-left: .6rem; }
  .spec td:first-child { padding-right: .4rem; }
  .spec a { word-break: break-all; }
  .spec { table-layout: fixed; }
  .spec td:first-child, .spec th:first-child { width: 42%; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.05rem; font-variation-settings: "wdth" 108; overflow-wrap: anywhere; }
  h2 { font-size: 1.55rem; }
  .big-price { font-size: 3rem; }
  .huge-phone { font-size: 2.3rem; }
  .calc { padding: 1.4rem; }
  .calc-row.hl { margin: 1rem -1.4rem -1.4rem; padding: 1rem 1.4rem 1.2rem; }
  .calc-row strong { font-size: 1.7rem; }
  .form { padding: 1.4rem; }
  .ticker span { padding-right: .9rem; margin-right: .9rem; }
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.photo-sq figcaption { text-align: center; font-size: .8rem; color: var(--grey-600); padding: .9rem 0 0; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-variation-settings: "wdth" 95; }
.sec.dark .photo-sq figcaption { color: var(--grey-400); }

.msgbox { background: var(--grey-100); padding: 2rem; }
.msgbox h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.msgbox .actions { margin-top: 1.2rem; }
@media (max-width: 480px) { .msgbox { padding: 1.4rem; } }
