/* MadTaxi sākumlapa (index.html, en/index.html). Pārējās lapas lieto style.css. */
:root {
  --y: #FFC400;
  --y-soft: #FFE27A;
  --ink: #0B0B0C;
  --ink-2: #141416;
  --ink-3: #1C1C20;
  --line: rgba(255, 255, 255, .09);
  --muted: rgba(255, 255, 255, .64);
  --paper: #FAF8F3;
  --paper-2: #F1EEE6;
  --text: #121212;
  --text-muted: #5B5B5F;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.03em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(32px, 5vw, 56px); }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255,196,0,.25); }
.dark .eyebrow { color: var(--muted); }
.section-head { max-width: 720px; display: grid; gap: 16px; margin-bottom: 48px; }
.section-head p { font-size: 18px; color: var(--text-muted); }
.dark .section-head p { color: var(--muted); }
section { padding: 110px 0; scroll-margin-top: 72px; }
.dark { background: var(--ink); color: #fff; }

/* Pogas */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-y { background: var(--y); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255,196,0,.7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid rgba(0,0,0,.08); transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; font-weight: 800; font-size: 17px; }
.store small { font-size: 11px; font-weight: 600; opacity: .65; letter-spacing: .02em; }

/* Navigācija */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11,11,12,.78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links { margin-left: auto; order: 2; }
.lang-top { order: 3; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background .15s; }
.lang-top:hover { background: rgba(255,255,255,.08); }
.menu-btn { order: 4; }
.nav-cta { margin-left: 8px; min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: 150px 0 90px;
}
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(255,196,0,.32) 0%, rgba(255,196,0,0) 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--y); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-qr { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-qr img { width: 76px; height: 76px; border-radius: 12px; background: #fff; padding: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); }
.chip svg { width: 16px; height: 16px; color: var(--y); }

.phone-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 48px;
  background: #000; padding: 11px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 100px -30px rgba(0,0,0,.9), 0 30px 120px -40px rgba(255,196,0,.45);
  transform: rotate(-4deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 2; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--text); border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-size: 14px; font-weight: 700; line-height: 1.25;
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 600; color: var(--text-muted); font-size: 12px; }
.float-card .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--y); display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.fc-1 { left: -10px; top: 18%; }
.fc-2 { right: -14px; top: 52%; animation-delay: -2s; }
.fc-3 { left: 6%; bottom: 6%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Vērtību josla */
.strip { background: var(--y); color: var(--ink); padding: 18px 0; overflow: hidden; }
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.strip-track span::after { content: "✦"; margin-left: 48px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cenu kalkulators */
.calc { background: var(--paper); }
.calc-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 32px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 80px -40px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.06);
}
.calc-info { background: var(--ink); color: #fff; padding: 48px; display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.calc-info::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -160px; background: radial-gradient(circle, rgba(255,196,0,.35), transparent 65%); }
.calc-info h2 { font-size: clamp(30px, 4vw, 44px); }
.calc-info p { color: var(--muted); }
.calc-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.calc-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-weight: 600; }
.calc-list svg { width: 20px; height: 20px; color: var(--y); flex: none; margin-top: 2px; }
.calc-form { padding: 48px; display: grid; gap: 16px; align-content: start; }
.field { position: relative; display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; color: var(--text-muted); }
.field input {
  width: 100%; height: 58px; padding: 0 18px 0 48px; border-radius: 16px; border: 1.5px solid #E4E1D8;
  background: var(--paper) no-repeat 16px center / 20px; font: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(255,196,0,.35); }
.field .dot { position: absolute; left: 19px; bottom: 23px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); }
.field .dot.to { background: var(--y); border-color: var(--y); border-radius: 3px; }
.fare-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); border: 1px solid rgba(0,0,0,.06); max-height: 280px; overflow-y: auto; }
.fare-suggestions li { padding: 12px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.fare-suggestions li:hover { background: var(--paper-2); }
.calc-form .btn { width: 100%; margin-top: 4px; }
.fare-result { margin-top: 6px; display: grid; gap: 14px; }
.fare-meta { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.fare-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fare-price { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1.5px solid #ECE8DE; }
.fare-price:first-child { background: var(--y); border-color: var(--y); }
.fare-price span { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.fare-price:first-child span { color: rgba(0,0,0,.7); }
.fare-price strong { font-size: 24px; letter-spacing: -.02em; }
.fare-note { font-size: 13px; color: var(--text-muted); }
.fare-error { color: #B42318; font-weight: 600; }
.fare-result .btn-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; }

/* Funkcijas */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); display: grid; gap: 12px; align-content: start; grid-column: span 2;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.tile h3 { font-size: 22px; letter-spacing: -.02em; }
.tile p { color: var(--text-muted); }
.tile .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--paper-2); display: grid; place-items: center; }
.tile .ico svg { width: 26px; height: 26px; }
.tile.big { grid-column: span 3; min-height: 360px; }
.tile.wide { grid-column: span 4; }
.tile.y { background: var(--y); border-color: var(--y); }
.tile.y p { color: rgba(0,0,0,.72); }
.tile.y .ico { background: rgba(0,0,0,.08); }
.tile.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile.ink p { color: var(--muted); }
.tile.ink .ico { background: rgba(255,255,255,.08); color: var(--y); }
.tile .shot { position: absolute; right: -30px; bottom: -60px; width: 46%; border-radius: 22px; transform: rotate(-6deg); box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); }
.tile.big .txt { max-width: 56%; display: grid; gap: 12px; }

/* Soļi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 32px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.step::before { counter-increment: s; content: "0" counter(s); font-weight: 800; font-size: 15px; color: var(--y); letter-spacing: .08em; }
.step h3 { font-size: 24px; }
.step p { color: var(--muted); }

/* Šoferi */
.drivers .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.drivers h2 em { font-style: normal; background: var(--ink); color: var(--y); padding: 0 .14em; border-radius: .14em; }
.drivers { background: var(--y); color: var(--ink); }
.drivers .eyebrow { color: rgba(0,0,0,.65); }
.drivers .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.12); }
.drivers .lead { font-size: 19px; color: rgba(0,0,0,.72); margin: 18px 0 30px; max-width: 520px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { background: rgba(255,255,255,.55); border-radius: 22px; padding: 22px; display: grid; gap: 4px; border: 1px solid rgba(0,0,0,.06); }
.tier strong { font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.tier span { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.65); }
.tier.top { background: var(--ink); color: #fff; }
.tier.top span { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.perks svg { width: 22px; height: 22px; flex: none; }

/* Uzņēmumiem */
.biz .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.biz-card { background: #fff; border-radius: 32px; padding: 36px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.06); display: grid; gap: 18px; }
.inv-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed #E4E1D8; font-weight: 600; }
.inv-row span:last-child { font-weight: 800; }
.inv-total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; padding-top: 6px; }
.biz ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.biz li { display: flex; gap: 12px; font-weight: 600; }
.biz li svg { width: 22px; height: 22px; flex: none; color: var(--ink); background: var(--y); border-radius: 50%; padding: 3px; }

/* BUJ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details { background: #fff; border-radius: 20px; padding: 0 26px; border: 1px solid rgba(0,0,0,.06); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; font-weight: 500; transition: transform .2s; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--text-muted); }

/* Lejupielādes CTA */
.cta-final { padding: 40px 0 110px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 40px; background: var(--ink); color: #fff;
  padding: 72px 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.cta-box::before { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -420px; background: radial-gradient(circle, rgba(255,196,0,.4), transparent 62%); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(34px, 5vw, 60px); }
.cta-box p { color: var(--muted); font-size: 18px; margin: 16px 0 30px; }
.cta-qr { justify-self: end; background: #fff; border-radius: 28px; padding: 18px; display: grid; gap: 10px; text-align: center; color: var(--text); font-weight: 700; font-size: 14px; }
.cta-qr img { width: 220px; height: 220px; }

/* Kājene */
footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 36px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.foot h4 { color: #fff; margin: 0 0 16px; font-size: 15px; }
.foot a { display: block; text-decoration: none; padding: 5px 0; color: rgba(255,255,255,.72); }
.foot a:hover { color: var(--y); }
.foot p { max-width: 320px; margin-top: 14px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Parādīšanās animācija */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero .wrap, .drivers .wrap, .biz .wrap, .calc-card, .cta-box { grid-template-columns: 1fr; }
  .phone-stage { min-height: 520px; margin-top: 10px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.big, .tile.wide { grid-column: span 1; }
  .tile.big { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .cta-qr { justify-self: start; }
}
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 10px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin: 6px 0 0; }
  .menu-btn { display: grid; place-items: center; }
  .lang-top { margin-left: auto; }
  .nav .wrap { gap: 10px; }
  .nav { background: rgba(11,11,12,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 64px; }
  .hero-qr { display: none; }
  .float-card { font-size: 13px; padding: 10px 12px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.big { grid-column: span 1; min-height: 0; }
  .tile.big .txt { max-width: none; }
  .tile .shot { position: static; width: 70%; margin: 12px auto -70px; transform: rotate(-4deg); }
  .calc-info, .calc-form { padding: 32px 22px; }
  .fare-prices { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tier { padding: 16px 12px; }
  .tier strong { font-size: 30px; }
  .cta-box { padding: 48px 24px; border-radius: 28px; }
  .cta-qr { display: none; }
  .foot { grid-template-columns: 1fr; }
  .store { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Licences atmaksas kampaņa šoferu sadaļā */
.promo { margin-top: 26px; background: var(--ink); color: #fff; border-radius: 22px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; max-width: 520px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); }
.promo-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--y); display: grid; place-items: center; font-size: 24px; }
.promo b { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.promo p { margin: 6px 0 10px; color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.45; }
.promo a { color: var(--y); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.promo a:hover { text-decoration: underline; }
