:root {
  --bg: #06000D;
  --card: #130028;
  --ink: #EDE0FF;
  --heading: #D4AAFF;
  --sub: #9B7ACC;
  --muted: #8A6FB0;
  --accent: #9B00FF;
  --pink: #FF00CC;
  --border: #2A0055;
  --cta-text: #FFFFFF;
  --top-btn-bg: rgba(19, 0, 40, 0.92);
  --mark-shadow: 0 0 28px rgba(155, 0, 255, 0.4);
  --cta-shadow: 0 0 22px rgba(255, 0, 204, 0.35);
  --ok: #42C980;
  --danger: #FF5C8A;
  --radius: 14px;
  --max: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="light"] {
  --bg: #FFF8E0;
  --card: #FFFFFF;
  --ink: #000000;
  --heading: #111111;
  --sub: #444444;
  --muted: #666666;
  --accent: #42C980;
  --pink: #5585E8;
  --border: #000000;
  --cta-text: #000000;
  --top-btn-bg: #FFFFFF;
  --mark-shadow: 3px 3px 0 #000;
  --cta-shadow: 3px 3px 0 #000;
  --ok: #1F8A4C;
  --danger: #C62828;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--heading);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--cta-text);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .site-header {
  border-bottom-width: 2.5px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  box-shadow: var(--mark-shadow);
  object-fit: cover;
}

html[data-theme="light"] .brand img {
  border: 2px solid #000;
}

.brand-text {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: none;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--top-btn-bg);
}

.lang button {
  background: transparent;
  border: 0;
  color: var(--sub);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 10px;
  cursor: pointer;
}

.lang button.on {
  background: var(--accent);
  color: var(--cta-text);
}

.day {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--top-btn-bg);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .lang,
html[data-theme="light"] .day,
html[data-theme="light"] .cta,
html[data-theme="light"] .card,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .chip {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--cta-text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--cta-shadow);
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta.block {
  width: 100%;
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.cta-sm {
  display: none;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.play-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

html[data-lang="en"] .lang-fi,
html[data-lang="fi"] .lang-en {
  display: none;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.hero {
  text-align: center;
  padding: 28px 0 12px;
  position: relative;
}

.hero-visual {
  position: relative;
  width: min(280px, 80vw);
  height: 180px;
  margin: 0 auto 18px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  animation: spin 28s linear infinite;
}

.hero-bag {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  animation: bob 3.2s ease-in-out infinite;
}

.hero-bag svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(155, 0, 255, 0.35));
}

.hero-rocket {
  position: absolute;
  width: 42px;
  height: 42px;
  right: 8%;
  top: 12%;
  animation: float-r 4s ease-in-out infinite;
}

.hero-rocket svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes float-r {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(8px) rotate(26deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-bag,
  .hero-rocket,
  .dot {
    animation: none !important;
  }
}

.logo-lg {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  margin: 0 auto 14px;
  box-shadow: var(--mark-shadow);
  object-fit: cover;
}

html[data-theme="light"] .logo-lg {
  border: 2.5px solid #000;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

h1 .line2 {
  display: block;
  color: var(--heading);
}

html[data-theme="light"] h1 .line2 {
  color: #42C980;
}

.lede {
  font-size: 16px;
  color: var(--sub);
  max-width: 34em;
  margin: 0 auto 22px;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.subcta {
  font-size: 13px;
  color: var(--sub);
}

.section {
  margin-top: 48px;
}

.section h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 14px;
}

html[data-theme="light"] .section h2 {
  font-size: 14px;
  color: #222;
}

.section-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}

.section-copy {
  color: var(--sub);
  margin-bottom: 18px;
  font-size: 15px;
}

.steps,
.grid-2,
.chips {
  list-style: none;
  display: grid;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.card p,
.card li {
  font-size: 14px;
  color: var(--sub);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--heading);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

html[data-theme="light"] .step-num {
  background: #000;
  color: #FFF8E0;
}

.chips {
  grid-template-columns: 1fr;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
}

.chip .mark {
  color: var(--pink);
  font-weight: 900;
}

.chip.soon {
  opacity: 0.75;
  font-weight: 600;
}

.chip.soon .mark {
  color: var(--muted);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.area-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
}

html[data-theme="light"] .area-list li {
  border-width: 2px;
  box-shadow: 2px 2px 0 #000;
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.business-check {
  margin-bottom: 12px;
}

.ytunnus-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ytunnus-row #d-ytunnus-a {
  flex: 1 1 auto;
  min-width: 0;
}

.ytunnus-row #d-ytunnus-b {
  flex: 0 0 56px;
  text-align: center;
}

.ytunnus-sep {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  color: var(--heading);
  line-height: 1;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

#billing-block {
  margin-top: 12px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--sub);
  text-align: left;
}

.check input {
  margin-top: 3px;
}

.form-msg {
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 700;
}

.form-msg.ok {
  color: var(--ok);
}

.form-msg.err {
  color: var(--danger);
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

html[data-theme="light"] .faq details {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.faq details p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 14px;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.dot:nth-child(1) { left: 12%; top: 70%; animation: bob 2.8s ease-in-out infinite; }
.dot:nth-child(2) { left: 78%; top: 58%; background: var(--accent); animation: bob 3.4s ease-in-out infinite 0.4s; }
.dot:nth-child(3) { left: 22%; top: 18%; animation: bob 3s ease-in-out infinite 0.8s; }

@media (min-width: 640px) {
  .header-inner {
    padding: 12px 24px;
  }

  .nav-links {
    display: flex;
  }

  .cta-sm {
    display: inline-flex;
  }

  .hero-cta-row {
    flex-direction: row;
    justify-content: center;
  }

  .cta.block {
    width: auto;
  }

  .steps,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .steps .span-2 {
    grid-column: 1 / -1;
  }

  .chips {
    grid-template-columns: 1fr 1fr;
  }

  .wrap {
    padding: 36px 24px 88px;
  }
}

@media (min-width: 900px) {
  .wrap {
    max-width: 860px;
  }
}

.admin-preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(135deg, #9B00FF, #FF00CC);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-bar a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
}

.admin-login {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta-text);
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border: 1px solid var(--border);
  box-shadow: var(--cta-shadow);
}

.admin-login:hover {
  filter: brightness(1.08);
}

html[data-theme="light"] .admin-login {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

.testaa-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  padding-top: calc(16px + constant(safe-area-inset-top));
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: calc(16px + constant(safe-area-inset-bottom));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.testaa-popup[hidden] {
  display: none !important;
}

.testaa-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 0, 13, 0.78);
}

html[data-theme="light"] .testaa-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.testaa-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  box-shadow: 0 0 32px rgba(155, 0, 255, 0.35);
}

html[data-theme="light"] .testaa-card {
  border-width: 2.5px;
  box-shadow: 4px 4px 0 #000;
}

.testaa-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .testaa-x {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

.testaa-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 36px 10px 0;
}

.testaa-lead {
  color: var(--sub);
  font-size: 15px;
  margin-bottom: 4px;
}

.testaa-card .form {
  margin-top: 10px;
  gap: 8px;
}

.testaa-card .form[hidden],
.testaa-title[hidden],
.testaa-lead[hidden] {
  display: none;
}

.testaa-card .field input {
  padding: 10px 12px;
}

.testaa-card .form-msg {
  min-height: 0;
}

.testaa-card .form-msg.ok {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
  margin: 12px 36px 8px 0;
}

.testaa-card .check a {
  color: var(--heading);
}

body.testaa-open {
  overflow: hidden;
}

/* Driver funnel + calculator */
.driver-gate {
  text-align: center;
}

.sell-calc {
  display: grid;
  gap: 18px;
}

.sell-controls {
  display: grid;
  gap: 16px;
}

.sell-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.sell-field legend,
.sell-field > label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}

.sell-field > label strong {
  text-transform: none;
  letter-spacing: 0;
  color: var(--heading);
  font-size: 14px;
}

.sell-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sell-pill {
  cursor: pointer;
}

.sell-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sell-pill span {
  display: block;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  background: var(--card);
}

.sell-pill input:checked + span {
  background: var(--accent);
  color: var(--cta-text);
  box-shadow: var(--cta-shadow);
}

html[data-theme="light"] .sell-pill span {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

#calc-days {
  width: 100%;
  accent-color: var(--pink);
}

.sell-day-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.sell-hero-stats {
  display: grid;
  gap: 10px;
}

.sell-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, var(--card)), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.sell-hero.accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 40%, var(--card)), var(--card));
}

html[data-theme="light"] .sell-hero {
  border-width: 2.5px;
  box-shadow: 3px 3px 0 #000;
}

.sell-hero .k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sub);
}

.sell-hero .v {
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 4px;
}

.sell-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sell-mini > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

html[data-theme="light"] .sell-mini > div {
  border-width: 2px;
  box-shadow: 2px 2px 0 #000;
}

.sell-mini .k {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.sell-mini strong {
  font-size: 16px;
}

.sell-charts {
  display: grid;
  gap: 12px;
}

.sell-donut-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.sell-donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.sell-donut-hole {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.sell-donut-hole strong {
  font-size: 20px;
}

.sell-donut-hole span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.sell-legend {
  list-style: none;
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
}

.sell-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.sell-legend .dot.pink { background: var(--pink); }
.sell-legend .dot.violet { background: var(--accent); }

.sell-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 200px;
  padding-top: 8px;
}

#sellVanBars {
  grid-template-columns: repeat(3, 1fr);
}

.sell-bar {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 200px;
  padding: 0;
  font: inherit;
}

.sell-bar-fill {
  width: 100%;
  max-width: 56px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--pink), var(--accent));
  flex: 0 0 auto;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.sell-bar.on .sell-bar-fill,
.sell-bar:hover .sell-bar-fill {
  filter: brightness(1.12);
  transform: scaleY(1.02);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 35%, transparent);
}

.sell-bar-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--heading);
}

.sell-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}

.sell-line {
  width: 100%;
  height: auto;
  display: block;
}

.sell-line text {
  fill: var(--heading);
  font-size: 10px;
  font-weight: 700;
}

.sell-line text.axis {
  fill: var(--muted);
  font-size: 9px;
}

.sell-line circle {
  fill: var(--accent);
}

.sell-line circle.on {
  fill: var(--pink);
  stroke: var(--ink);
  stroke-width: 2;
}

@media (min-width: 720px) {
  .sell-hero-stats {
    grid-template-columns: 1.1fr 1.1fr;
  }

  .sell-mini {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .sell-charts {
    grid-template-columns: 1fr 1fr;
  }
}

.driver-gate .section-title {
  font-size: clamp(26px, 6vw, 34px);
}

.calc-panel,
.driver-form-panel {
  margin-top: 18px;
}

.calc {
  display: grid;
  gap: 16px;
}

.calc-head h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.calc-head p {
  color: var(--sub);
  font-size: 14px;
}

.calc-head .calc-lead {
  color: var(--ink);
  font-size: clamp(15px, 3.4vw, 20px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.calc-layout {
  display: grid;
  gap: 16px;
}

.calc-inputs,
.calc-results {
  display: grid;
  gap: 12px;
}

.calc-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

html[data-theme="light"] .calc-block,
html[data-theme="light"] .calc-stat,
html[data-theme="light"] .calc-chip {
  border-width: 2.5px;
  box-shadow: 2px 2px 0 #000;
}

.calc-block h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}

.calc-row {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.calc-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}

.calc-help {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.calc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calc-inline input[type="number"],
.calc-inline input[type="time"],
.calc-block input[type="number"],
.calc-block input[type="time"],
.calc-block input[type="range"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}

.calc-inline input[type="number"] {
  width: 88px;
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.calc-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.calc-chip:hover,
.calc-chip:focus-visible {
  border-color: var(--accent);
}

.calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.calc-stat .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sub);
  font-weight: 800;
}

.calc-stat .v {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
  color: var(--ink);
  word-break: break-word;
}

.calc-alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.calc-alert.warn {
  background: color-mix(in srgb, #f5c542 25%, var(--card));
  border: 1px solid #c9a227;
  color: var(--ink);
}

.calc-alert.bad {
  background: color-mix(in srgb, var(--danger) 18%, var(--card));
  border: 1px solid var(--danger);
  color: var(--ink);
}

html[data-theme="light"] .calc-alert.warn {
  background: #FFF3C4;
  color: #000;
}

html[data-theme="light"] .calc-alert.bad {
  background: #FFD6DE;
  color: #000;
}

.calc-detail {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--sub);
}

.calc-detail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
  padding-bottom: 6px;
}

.calc-detail strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.calc-timeline-track {
  position: relative;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--border) 35%, var(--bg));
  overflow: hidden;
  margin-top: 8px;
}

.calc-tl {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  opacity: 0.9;
}

.calc-tl.ajo { background: var(--accent); }
.calc-tl.stopit { background: var(--pink); }
.calc-tl.pesula { background: var(--heading); }
.calc-tl.tauko { background: var(--muted); }

.calc-deadline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--danger);
  transform: translateX(-1px);
}

.calc-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.calc-overflow {
  color: var(--danger);
  font-weight: 800;
  font-size: 13px;
  margin-top: 6px;
}

.calc-growth {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: end;
  min-height: 140px;
}

.calc-bar {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 120px;
}

.calc-bar-fill {
  background: color-mix(in srgb, var(--accent) 70%, var(--pink));
  border-radius: 8px 8px 4px 4px;
  min-height: 8px;
}

.calc-bar.on .calc-bar-fill {
  box-shadow: 0 0 0 2px var(--ink);
}

.calc-bar-label {
  font-size: 11px;
  font-weight: 800;
}

.calc-bar-meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.calc-story {
  font-size: 14px;
  color: var(--sub);
  margin-top: 8px;
}

.calc-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.radio-row {
  display: grid;
  gap: 8px;
}

.radio-row label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 720px) {
  .calc-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .pct-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .calc-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
