/* Diesel-laskuri.net — moderni automyynti/laskuri-teema */
:root {
  --ink: #0b1220;
  --panel: #0f1a2e;
  --panel-2: #13233f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef7;
  --muted: #93a4bd;
  --diesel: #c8ff3d;      /* diesel = lime */
  --diesel-deep: #9bd400;
  --bensa: #ff5a3c;       /* bensa = orange/red */
  --teal: #2dd4bf;
  --card: #ffffff;
  --card-ink: #0b1220;
  --card-muted: #5a6b86;
  --card-line: #e6ebf2;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(3, 8, 20, 0.45);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--diesel); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: #fff; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--diesel), var(--diesel-deep));
  display: grid; place-items: center; color: #0b1220; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(155, 212, 0, 0.35);
}
.brand small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 9px;
}
.nav-links a:hover { background: var(--panel-2); text-decoration: none; }
.nav-links a.active { color: var(--diesel); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(45, 212, 191, 0.12), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(200, 255, 61, 0.10), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 60px 0 48px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 16px;
  font-weight: 900; letter-spacing: -0.03em; color: #fff;
}
.hero h1 .hl { color: var(--diesel); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--diesel); }

/* ---------- Calculator ---------- */
.calc-section { padding: 44px 0 20px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.card {
  background: var(--card); color: var(--card-ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--card-line); overflow: hidden;
}
.card-head {
  padding: 16px 22px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--card-line);
}
.card-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.card-head .tag { margin-left: auto; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-diesel { background: rgba(155, 212, 0, 0.16); color: #5b7d00; }
.tag-bensa { background: rgba(255, 90, 60, 0.14); color: #c23a1f; }
.card-head img.car { width: 56px; height: auto; }
.card-body { padding: 20px 22px 24px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--card-muted); margin-bottom: 6px; }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--card-line); border-radius: 11px; overflow: hidden; transition: border-color .15s; background: #fff; }
.input-group:focus-within { border-color: var(--diesel-deep); }
.input-group input {
  flex: 1; border: 0; padding: 12px 14px; font-size: 1.05rem; font-weight: 700; color: var(--card-ink);
  outline: none; width: 100%; background: transparent; -moz-appearance: textfield;
}
.input-group .unit { display: flex; align-items: center; padding: 0 14px; background: #f3f6fa; color: var(--card-muted); font-size: 0.85rem; font-weight: 600; border-left: 1px solid var(--card-line); white-space: nowrap; }

.calc-action { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.km-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; color: var(--text); }
.km-card .field label { color: var(--muted); }
.km-card .input-group { background: var(--panel-2); border-color: var(--line-strong); }
.km-card .input-group input { color: #fff; }
.km-card .input-group .unit { background: rgba(0,0,0,0.25); border-left-color: var(--line-strong); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, var(--diesel), var(--diesel-deep));
  color: #0b1220; font-weight: 800; font-size: 1.05rem;
  border: 0; border-radius: 12px; padding: 15px 26px; cursor: pointer;
  width: 100%; transition: transform .12s, box-shadow .12s;
  box-shadow: 0 10px 26px rgba(155, 212, 0, 0.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(155, 212, 0, 0.42); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* ---------- Results ---------- */
.results { margin-top: 30px; display: none; }
.results.show { display: block; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.verdict {
  text-align: center; padding: 26px; border-radius: var(--radius); margin-bottom: 22px;
  border: 1px solid var(--line-strong); background: var(--panel);
}
.verdict .big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin: 6px 0; }
.verdict.win .big { color: var(--diesel); }
.verdict.lose .big { color: var(--bensa); }
.verdict .sub { color: var(--muted); font-size: 0.98rem; }

.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-align: center;
}
.stat .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 900; margin-top: 4px; letter-spacing: -0.02em; }
.stat .v.diesel { color: var(--diesel); }
.stat .v.bensa { color: var(--bensa); }
.stat .v.save { color: var(--teal); }

.chart-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.chart-card h4 { margin: 0 0 8px; color: var(--card-ink); font-size: 1.05rem; }
.chart-box { width: 100%; height: 360px; }

/* ---------- Content / prose ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.section .eyebrow { color: var(--diesel); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.prose { max-width: 760px; color: var(--text); }
.prose p { color: #c3cfe0; margin: 0 0 16px; }
.prose h3 { color: #fff; font-size: 1.2rem; margin: 28px 0 10px; }
.prose ul { color: #c3cfe0; padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--panel-2); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; color: #fff; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Forms (contact) ---------- */
.form-card { background: var(--card); color: var(--card-ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 620px; }
.form-card .field label { color: var(--card-muted); }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; border: 1.5px solid var(--card-line); border-radius: 11px; padding: 12px 14px;
  font-family: var(--font); font-size: 1rem; color: var(--card-ink); outline: none; background: #fff;
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--diesel-deep); }
.form-card textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { font-size: 1.4rem; flex-shrink: 0; }
.info-list .k { font-weight: 700; color: #fff; }
.info-list .vv { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: #070c16; border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--panel); padding: 14px 20px; gap: 4px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: block; }
}
