/* =========================================================
   Korvaava — yhteinen tyylitiedosto
   Noudattaa Menevän brändiohjetta (standards/brand/BRANDIOHJE.md)
   Sankariväri #00AE65 · Sofia Pro · pilleripainikkeet · pehmeät varjot
   ========================================================= */

/* ---------- Sofia Pro ---------- */
@font-face {
  font-family: "Sofia Pro";
  src: url("assets/fonts/SofiaPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("assets/fonts/SofiaPro-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("assets/fonts/SofiaPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brändivärit — BRANDIOHJE.md luku 2 */
  --green: #00AE65;              /* Main Green, sankariväri */
  --green-dark: #006644;         /* Main Green Dark — tekstit, linkit, eyebrow */
  --green-2: #00877C;            /* Compliment Green */
  --green-3: #004D46;            /* Compliment Green Dark — tummat pinnat */
  --slate-dark: #003B45;
  --blue-dark: #001231;
  --brand-hover: #00C272;

  /* Aksentit — säästeliäästi */
  --yellow: #FFF35F;
  --yellow-light: #FFFF99;
  --turquoise: #A3E6EE;

  /* Pinnat */
  --paper: #F9F9F9;              /* Ghost White, sivun pohja */
  --soft: #E6F7EF;               /* vaalea vihreä pinta */
  --soft-2: #F1F8F5;
  --soft2: #F1F8F5;              /* alias, käytössä HTML:ssä */

  /* Teksti ja viivat */
  --ink: #2B3733;                /* leipäteksti */
  --text-strong: #000000;        /* otsikot */
  --muted: #5C6864;
  --muted-2: #7C8884;
  --line: #E7EAE9;

  /* Funktionaaliset tilavärit */
  --alarm: #B3261E;
  --alarm-soft: #FBE9E7;
  --success: #006644;
  --success-soft: #E6F7EF;

  --container: 1200px;
  --gutter: 24px;

  /* Pyöristykset — kortit 20, kentät 14, painikkeet pilleri */
  --radius-s: 14px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;

  /* Varjot — pehmeitä, matalia, neutraaleja */
  --shadow-1: 0 2px 8px rgba(10,20,17,0.07);
  --shadow-2: 0 8px 24px rgba(10,20,17,0.09);
  --shadow-3: 0 18px 48px rgba(10,20,17,0.12);
  --shadow-green: 0 12px 30px rgba(0,174,101,0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-brand: linear-gradient(120deg, #00AE65 0%, #00877C 48%, #003B45 100%);
  --font-sans: "Sofia Pro", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(249,249,249,0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand .logo {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: var(--radius-field, 14px);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px;
  box-shadow: var(--shadow-green);
}
.brand .name {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand .name .b {
  font-size: 20px; font-weight: 700; color: var(--text-strong);
  letter-spacing: -0.02em;
}
.brand .name .s {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.brand:hover { text-decoration: none; }

.navlinks {
  display: flex; align-items: center; gap: 6px;
}
.navlinks a {
  padding: 10px 16px;
  color: var(--ink);
  font-size: 15px; font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background var(--ease-out) 180ms, color var(--ease-out) 180ms;
}
.navlinks a:hover {
  background: var(--soft);
  color: var(--green-dark);
  text-decoration: none;
}
.navlinks .back {
  color: var(--muted);
  font-weight: 700;
}

.menubtn {
  display: none;
  background: var(--soft);
  border: none;
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.menubtn svg { color: var(--green-dark); margin: 0 auto; }

@media (max-width: 880px) {
  .navlinks { display: none; }
  .menubtn  { display: flex; align-items: center; justify-content: center; }
  html { scroll-padding-top: 80px; }
}

/* =========================================================
   Buttons — pilleri, vihreä sankariväri
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 28px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background var(--ease-out) 200ms, transform var(--ease-out) 120ms,
              color var(--ease-out) 200ms, border-color var(--ease-out) 200ms;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn:focus-visible { outline: 4px solid rgba(0,174,101,0.55); outline-offset: 2px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-green:hover { background: var(--brand-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-soft {
  background: #fff;
  color: var(--green-dark);
  border: 1.5px solid var(--line);
}
.btn-soft:hover { background: var(--soft); color: var(--green-dark); }

.btn-arrow::after {
  content: '→';
  font-weight: 700;
  font-size: 18px;
}

/* =========================================================
   Section base
   ========================================================= */
section { padding: 96px 0; }
section.compact { padding: 64px 0; }
section.tight { padding: 48px 0; }
section.green-bg { background: var(--green-3); color: #fff; }
section.soft-bg { background: var(--soft); }
section.soft2-bg { background: var(--soft-2); }

@media (max-width: 760px) {
  section { padding: 64px 0; }
  section.compact { padding: 48px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--green);
}
section.green-bg .eyebrow { color: var(--turquoise); }
section.green-bg .eyebrow .dot { background: #fff; }

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; line-height: 1.0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.18; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
section.green-bg h1,
section.green-bg h2,
section.green-bg h3,
section.green-bg h4 { color: #fff; }

p { margin: 0; line-height: 1.6; }
.lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  max-width: 60ch;
  line-height: 1.55;
}
section.green-bg .lede { color: rgba(255,255,255,0.88); }
.mut { color: var(--muted); }

.section-head { max-width: 800px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lede { margin-top: 16px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* =========================================================
   Card / grid utilities
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow-1);
  transition: transform var(--ease-out) 200ms, box-shadow var(--ease-out) 200ms;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-m);
  background: var(--soft);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink); font-size: 17px; line-height: 1.6; }
.card .inline-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-weight: 700; font-size: 15px;
  color: var(--green-dark);
}
.card .inline-link:hover { color: var(--green); text-decoration: none; }
.card .inline-link::after { content: '→'; font-weight: 700; }

/* Step card */
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.step-card .num {
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--ink); font-size: 17px; }

section.soft-bg .card,
section.soft-bg .step-card { border-color: rgba(0,174,101,0.14); background: #fff; }

/* Time limits cards */
.limit-card {
  background: #fff;
  border-left: 6px solid var(--green);
  border-radius: var(--radius-m);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-1);
}
.limit-card .k {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.limit-card .v {
  font-size: 36px; font-weight: 700; color: var(--green-dark);
  letter-spacing: -0.03em; margin-top: 10px; line-height: 1;
}
.limit-card .u {
  font-size: 16px; color: var(--muted); font-weight: 400;
  margin-top: 8px;
}

/* Big stat / pricing block */
.pricing-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-2);
}
.pricing-block .topnum {
  font-size: clamp(64px, 10vw, 88px);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.035em;
  line-height: 1;
}
.pricing-block .topnum span {
  font-size: 28px; font-weight: 700; color: var(--green-dark); letter-spacing: -0.02em;
  margin-left: 10px;
}
.pricing-block .topnum .label {
  display: block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.pricing-block .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.pricing-block .row .k {
  font-weight: 700;
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.pricing-block .row .v {
  font-weight: 700; font-size: 28px; color: var(--green-dark); letter-spacing: -0.02em;
}
.pricing-block .pct {
  background: var(--soft); color: var(--green-dark);
  padding: 18px 22px; border-radius: var(--radius-m);
  font-weight: 400; font-size: 17px; line-height: 1.55;
}
.pricing-block .pct b { font-weight: 700; }

/* Order options block */
.order-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-l);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  color: #fff;
}
.order-card .icon-lg {
  width: 64px; height: 64px;
  border-radius: var(--radius-l);
  background: rgba(255,255,255,0.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.order-card h3 { color: #fff; }
.order-card .big {
  font-size: 36px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
}
.order-card .sub { color: rgba(255,255,255,0.72); font-size: 15px; }
.order-card .btn { width: 100%; }

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 18px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 32px;
  width: 32px; height: 32px;
  background: var(--soft);
  color: var(--green-dark);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  transition: background var(--ease-out) 180ms, color var(--ease-out) 180ms;
}
.faq-item[open] summary::after { content: '−'; background: var(--green); color: #fff; }
.faq-item .ans {
  padding: 0 24px 22px 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

/* Footer */
.footer {
  background: var(--green-3);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px 0;
}
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.footer .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p, .footer a { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.65; }
.footer a { font-weight: 700; }
.footer a:hover { color: #fff; }
.footer .colophon {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.footer .colophon a { color: rgba(255,255,255,0.55); font-weight: 400; }
.footer .partner-links { display: flex; flex-direction: column; gap: 12px; }
.footer .partner-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer .partner-links a::after { content: '→'; font-weight: 700; opacity: 0.7; }
@media (max-width: 760px) {
  .footer .row { grid-template-columns: 1fr; gap: 36px; }
  .footer .colophon { flex-direction: column; gap: 8px; }
}

/* Forms */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 18px;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 17px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--ease-out) 180ms, box-shadow var(--ease-out) 180ms;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,174,101,0.18);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field .help { font-size: 14px; color: var(--muted); margin-top: 2px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soft);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 15px; font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.checks label input { accent-color: var(--green); width: 16px; height: 16px; }

.radio-pills { display: inline-flex; gap: 0; padding: 4px; background: var(--soft); border-radius: var(--radius-pill); }
.radio-pills label {
  /* position: relative pitää .sr-piilotetun radion labelin sisällä.
     Ilman tätä se sijoittuu sivun oikealle laidalle ja aiheuttaa
     vaakasuuntaisen vierityksen. */
  position: relative;
  padding: 10px 18px; border-radius: var(--radius-pill);
  cursor: pointer; font-weight: 700; color: var(--green-dark); font-size: 15px;
  transition: background var(--ease-out) 180ms;
}
.radio-pills label.on { background: #fff; box-shadow: var(--shadow-1); }

/* Hero generic */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
  font-weight: 700;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 999px;
}
section.green-bg .hero-trust,
.dark-hero .hero-trust { color: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.18); }
section.green-bg .hero-trust span::before,
.dark-hero .hero-trust span::before { background: #fff; }

/* Mock device */
.mock-screen {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  padding: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mock-screen .mock-bar {
  display: flex; gap: 6px; padding: 6px 4px 12px;
}
.mock-screen .mock-bar i {
  width: 10px; height: 10px; border-radius: 999px; background: var(--line);
}
.mock-screen .mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px;
  border-radius: var(--radius-m);
  background: var(--soft-2);
  margin-bottom: 8px;
}
.mock-screen .mock-row.alarm { background: var(--alarm-soft); }
.mock-screen .mock-row .left { display: flex; gap: 14px; align-items: center; }
.mock-screen .mock-row .av {
  width: 36px; height: 36px; border-radius: 999px;
  background: #fff; color: var(--green-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  flex: 0 0 36px;
  font-size: 14px;
}
.mock-screen .mock-row .nm { font-weight: 700; color: var(--text-strong); font-size: 14px; }
.mock-screen .mock-row .tm { font-size: 12px; color: var(--muted); }
.mock-screen .mock-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--success-soft); color: var(--green-dark);
  text-transform: uppercase;
}
.mock-screen .mock-tag.alarm { background: #fff; color: var(--alarm); border: 1px solid var(--alarm); }
.mock-screen .mock-head {
  padding: 6px 8px 16px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.mock-screen .mock-head .t { font-weight: 700; color: var(--text-strong); font-size: 16px; }
.mock-screen .mock-head .d { font-size: 12px; color: var(--muted); }

/* Pricing table */
.price-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.price-table .pt-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 0;
  align-items: stretch;
}
.price-table .pt-row + .pt-row { border-top: 1px solid var(--line); }
.price-table .pt-cell {
  padding: 22px 24px;
}
.price-table .pt-row.head .pt-cell {
  background: var(--soft);
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-dark);
}
.price-table .pt-row .price {
  font-size: 28px; font-weight: 700; color: var(--green-dark); letter-spacing: -0.03em; line-height: 1;
}
.price-table .pt-row .delta {
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.price-table .pt-row .delta.minus { color: var(--green); }
.price-table .pt-row .delta.plus  { color: var(--alarm); }
.price-table .pt-row .desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.price-table .pt-row.featured {
  background: var(--soft-2);
}
@media (max-width: 760px) {
  .price-table .pt-row { grid-template-columns: 1fr; }
  .price-table .pt-row.head { display: none; }
  .price-table .pt-cell { padding: 16px 20px; }
  .price-table .pt-row .pt-cell:first-child { padding-bottom: 4px; }
}

/* Big formula */
.formula {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0;
}
.formula .eq {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.formula .eq .res { color: var(--yellow); }
.formula .cap {
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
}

/* Manifesto items */
.manifesto { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .manifesto { grid-template-columns: 1fr; } }
.manifesto-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-l);
  padding: 28px;
}
.manifesto-item .n {
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--turquoise); margin-bottom: 8px;
}
.manifesto-item h3 { color: #fff; margin-bottom: 10px; font-size: 22px; }
.manifesto-item p { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.6; }

/* =========================================================
   Kela-erotus — pakollinen selvennys (Kelan edellytys)
   ========================================================= */
.kela-note {
  background: var(--yellow-light);
  border-radius: var(--radius-m);
  padding: 16px 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--green-3);
  border-left: 6px solid var(--yellow);
  margin-top: 28px;
  max-width: 760px;
}
.kela-note b { font-weight: 700; }

.kela-bar {
  background: var(--green-3);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 0;
  text-align: center;
}
.kela-bar b { color: #fff; font-weight: 700; }

/* Visually hidden */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================================================
   Kuljetuslajin valitsin aikarajoille
   ========================================================= */
.limit-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.lp-tab {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--ease-out) 180ms, color var(--ease-out) 180ms,
              border-color var(--ease-out) 180ms;
}
.lp-tab:hover { border-color: var(--green); }
.lp-tab.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}

/* Neljä tasavertaista korttia — käyttäjäryhmät */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid-4 { grid-template-columns: 1fr; } }

/* Paperikalenterin pienoiskuva tilausvaihtoehto-kortissa */
.order-card .order-preview {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: -6px auto 4px;
}

/* Lomakkeen alahuomautus */
.form-note {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.form-note a { font-weight: 700; }

/* =========================================================
   Oikeusketju — palvelun perusteluketju numeroituna
   ========================================================= */
.chain { max-width: 860px; display: flex; flex-direction: column; gap: 0; }
.chain-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.chain-step:last-child { border-bottom: 1px solid var(--line); }
.chain-step .n {
  width: 52px; height: 52px; border-radius: var(--radius-m);
  background: var(--soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
}
.chain-step.key .n { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.chain-step p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.chain-step p b { color: var(--text-strong); }
.chain-step .note {
  margin-top: 8px; font-size: 16.5px; color: var(--muted); line-height: 1.5;
}
@media (max-width: 620px) {
  .chain-step { grid-template-columns: 42px 1fr; gap: 16px; }
  .chain-step .n { width: 42px; height: 42px; font-size: 18px; }
  .chain-step p { font-size: 17.5px; }
}
