/* Kilometrix - landing. Paleta e cea din aplicația mobilă (dark). */
:root {
  --bg: #0b0f14;
  --bg-soft: #0e141b;
  --card: #141a22;
  --card-raised: #1a222c;
  --border: #232d38;
  --text: #e8edf2;
  --muted: #8a97a5;
  --faint: #5b6772;
  --primary: #5b9dff;
  --primary-deep: #2f6fe4;
  --on-primary: #06101f;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 16px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
a { color: var(--primary); text-decoration: none; }
.accent { color: var(--primary); }
.accent-green { color: var(--green); }
.accent-amber { color: var(--amber); }

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

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

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: 15px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 6px 24px rgba(47, 111, 228, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(47, 111, 228, .45); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-inner { justify-content: space-between; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 40px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 560px; height: 560px; top: -180px; right: -120px; background: rgba(47, 111, 228, .22); }
.glow-b { width: 420px; height: 420px; bottom: -160px; left: -140px; background: rgba(52, 211, 153, .10); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.lead strong { color: var(--green); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 16px; color: var(--muted); opacity: .85;
}
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 10.5px; line-height: 1.2; }
.store-badge b { display: block; color: var(--text); font-size: 14px; line-height: 1.25; }

/* Mockup telefon */
.hero-visual { position: relative; justify-self: center; }
.phone {
  width: 290px; background: #05080c;
  border: 1px solid var(--border); border-radius: 38px; padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(35, 45, 56, .35);
  position: relative;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #05080c; border-radius: 12px; z-index: 2; }
.phone-screen { background: var(--bg); border-radius: 30px; padding: 48px 14px 16px; min-height: 520px; }
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 0 4px; }
.app-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.app-sub { color: var(--faint); font-size: 12px; }
.chip { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.chip-green { background: #0d2b22; color: var(--green); }
.chip-blue { background: #12203a; color: var(--primary); }
.chip-amber { background: #2e2510; color: var(--amber); }
.trip { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.trip-route { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; }
.trip-arrow { color: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-a { background: var(--primary); }
.dot-b { background: var(--green); }
.trip-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 7px; }
.trip-live { border-color: rgba(91, 157, 255, .45); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 157, 255, .5); } 70% { box-shadow: 0 0 0 9px rgba(91, 157, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 157, 255, 0); } }
.app-summary { display: flex; gap: 8px; margin-top: 14px; }
.app-summary > div { flex: 1; background: var(--card-raised); border-radius: 12px; padding: 9px 11px; }
.app-summary small { display: block; color: var(--faint); font-size: 10.5px; }
.app-summary b { font-size: 14px; }
.app-pdf { border: 1px solid rgba(91, 157, 255, .4); }
.app-pdf b { color: var(--primary); }

.float-card {
  position: absolute; background: var(--card-raised); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--muted); font-size: 11.5px; }
.float-1 { top: 88px; left: -78px; } .float-1 b { color: var(--green); }
.float-2 { bottom: 96px; right: -64px; }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 72px; padding-top: 36px; padding-bottom: 8px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat b { font-family: var(--font-head); font-size: 30px; color: var(--primary); display: block; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------- Pasi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 30px; }
.step-num {
  position: absolute; top: -20px; left: 24px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: 12px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 20px rgba(47, 111, 228, .4);
}
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Functionalitati ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { transition: transform .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(91, 157, 255, .5); }
.f-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(91, 157, 255, .12);
  border: 1px solid rgba(91, 157, 255, .22);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: 28px; }
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-head label { font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 10px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; }
.field-head output { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.field-row { display: flex; justify-content: space-between; align-items: center; }
.field-row label:first-child { margin-bottom: 0; }
.hint { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-btn {
  flex: 1; padding: 10px 8px; border: none; background: transparent; border-radius: 9px;
  color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: all .15s ease;
}
.seg-btn.active { background: var(--card-raised); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background .18s;
}
.switch span::before {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .18s;
}
.switch input:checked + span { background: var(--primary-deep); }
.switch input:checked + span::before { transform: translateX(20px); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--border); outline: none; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer;
}
.range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 6px; }

.calc-out {
  background: linear-gradient(160deg, #10161f 0%, #121a2b 55%, #101725 100%);
  padding: 32px 28px;
  position: sticky; top: 88px;
}
.r-block { margin-bottom: 24px; }
.r-block small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.r-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.r-mid { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.r-split { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.r-note { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.r-hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.r-disclaimer { color: var(--faint); font-size: 12.5px; line-height: 1.55; }

/* ---------- Pret ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 36px auto 0; align-items: stretch; }
.price-grid .price-card { margin: 0; max-width: none; display: flex; flex-direction: column; }
.price-grid .price-list { flex: 1; }
/* planul recomandat, evidențiat cu accentul primary */
.price-pro { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 18px 48px rgba(47, 111, 228, 0.16); }
.price-name { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.price-pro .price-name { color: var(--primary); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; } }
.price-card { max-width: 520px; margin: 36px auto 0; padding: 32px; }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.price-num b { font-family: var(--font-head); font-size: 44px; }
.price-num span { color: var(--muted); font-size: 15px; margin-left: 6px; }
.price-list { list-style: none; margin-bottom: 20px; }
.price-list li { padding: 9px 0 9px 30px; position: relative; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--border); }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.price-note { color: var(--faint); font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq-wrap h2 { margin-bottom: 32px; }
.faq { margin-bottom: 12px; padding: 0; overflow: hidden; }
.faq summary {
  padding: 18px 24px; cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 22px; font-weight: 600; transition: transform .18s; flex-shrink: 0; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 14.5px; }
.footer-links a:hover { color: var(--primary); }
.footer-legal p { color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Pagina de confidentialitate ---------- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
/* paginile de retur din Stripe (plata-reusita / plata-anulata / abonament-actualizat) */
.return-page { text-align: center; max-width: 560px; }
.legal-page .return-check { font-size: 40px; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 12px; }
/* returul din portal e neutru (poate fi și o anulare), nu verde de „succes" */
.legal-page .return-check--brand { color: var(--primary); }
.return-cta { margin-top: 28px; }
.legal-page .return-hint { color: var(--faint); font-size: 13px; margin-top: 16px; }
.legal-page h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 8px; }
.legal-meta { color: var(--faint); font-size: 13.5px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; margin: 32px 0 8px; }
.legal-page p { color: var(--muted); font-size: 15.5px; }
