/* ProfitRide — the site's only stylesheet. Plain CSS, no build step.
   Same palette as the app: near-black, phosphorescent green, red; soft
   moving color spots and gradients for depth. */

:root {
  --bg: #07090a;
  --bg-2: #0b0e11;
  --surface: #12161a;
  --surface-2: #1a1f24;
  --card: #383c44;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f5;
  --muted: #a3aab2;
  --faint: #6e767f;
  --green: #00ff9d;
  --teal: #3ee8ff;
  --red: #ff3b5c;
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 16px; }

.container { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--green); color: #000; padding: 8px 14px; border-radius: 8px; }

/* Anchors (#zone, #calculator, #pret…) land below the sticky header, not under it. */
[id] { scroll-margin-top: 76px; }

.accent { color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Green-to-teal text that slowly shimmers. */
.grad {
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 35%, var(--green) 70%, #b6ffe0 85%, var(--green) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* ---------- Moving color spots ---------- */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; background: rgba(0, 255, 157, 0.32); top: -120px; right: -80px; }
.aurora span:nth-child(2) { width: 420px; height: 420px; background: rgba(62, 232, 255, 0.18); top: 180px; right: 260px; animation-duration: 23s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 360px; height: 360px; background: rgba(255, 59, 92, 0.14); bottom: -120px; left: -80px; animation-duration: 27s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(40px, -30px) scale(0.94); }
}

/* ---------- Reveal on scroll (only when JS runs) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
.js [data-reveal][data-delay="4"] { transition-delay: 0.32s; }
.js [data-reveal][data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo span { color: var(--green); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
/* Six links fit from about 940px; below that the header keeps its first five. */
@media (max-width: 940px) { .nav .nav-more { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green), #3dffc0); color: #04130c; box-shadow: 0 8px 26px rgba(0, 255, 157, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(0, 255, 157, 0.42); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px;
  border-radius: 16px; background: linear-gradient(180deg, #1d2329, #14181c); border: 1px solid var(--border-strong);
  color: var(--text); min-width: 190px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.store:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--green); box-shadow: 0 10px 28px rgba(0, 255, 157, 0.16); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.store strong { display: block; font-size: 17px; line-height: 1.25; white-space: nowrap; }
.store.is-soon { cursor: default; }
.store.is-soon:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 255, 157, 0.1); color: var(--green); font-weight: 700; font-size: 14px;
  border: 1px solid rgba(0, 255, 157, 0.28);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(0, 255, 157, 0); } }

.eyebrow { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }

/* ---------- Sections ---------- */

section { position: relative; padding: 96px 0; overflow-x: clip; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; margin-bottom: 0; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); }
.alt::before { /* a soft light where the section starts */
  content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.5), transparent);
}
.glow-spot { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }

/* ---------- Hero ---------- */

.hero { overflow: hidden; padding: 64px 0 88px; }
.hero .container { z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero h1 .grad { display: block; }
.hero-lead { font-size: 20px; color: #c9ced4; max-width: 560px; }
.hero .pill { margin-bottom: 22px; }
.hero-actions { margin: 30px 0 18px; }
.offer {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 14px 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.16), rgba(62, 232, 255, 0.06) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 255, 157, 0.45);
  animation: offer-glow 3.2s ease-in-out infinite;
}
@keyframes offer-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(0, 255, 157, 0.14), inset 0 0 18px rgba(0, 255, 157, 0.05); }
  50% { box-shadow: 0 0 38px rgba(0, 255, 157, 0.3), inset 0 0 22px rgba(0, 255, 157, 0.1); }
}
.offer-free { font-size: clamp(28px, 4vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.offer-then { color: #cfd6dc; font-size: 15px; line-height: 1.35; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.16); text-align: left; }
.offer-then b { color: #fff; font-size: 17px; }
.offer-then span { display: block; white-space: nowrap; }
.offer-then .sep { display: none; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { display: flex; justify-content: center; }

.phone-stage { position: relative; padding: 24px 40px; }
.phone-stage::before { /* light under the phone */
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 70%; height: 60px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 255, 157, 0.35), transparent 70%); filter: blur(12px);
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* Floating chips beside the phone: what the voice says, the avoided zone. */
.chip {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; max-width: 250px;
  padding: 11px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.35;
  background: rgba(20, 24, 28, 0.78); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.chip svg { width: 20px; height: 20px; flex: none; }
.chip-voice { left: -34px; bottom: 150px; animation: bob 6s ease-in-out infinite; }
.chip-voice svg { stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-zone { right: -26px; top: 118px; border-color: rgba(255, 59, 92, 0.45); animation: bob 7s ease-in-out infinite reverse; }
.chip small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chip-zone small { color: #ff8da1; }
.chip .wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.chip .wave i { width: 3px; border-radius: 2px; background: var(--green); animation: wave 1.1s ease-in-out infinite; }
.chip .wave i:nth-child(1) { height: 8px; }
.chip .wave i:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.chip .wave i:nth-child(3) { height: 11px; animation-delay: 0.3s; }
.chip .wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip[hidden] { display: none; }
.chip [data-voice], .chip [data-zone] { display: block; }
.chip .swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Phone mockup ---------- */

.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.2; flex: none;
  border-radius: 46px; background: linear-gradient(145deg, #1a1d22, #07080a); padding: 11px;
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(0, 255, 157, 0.1);
}
.phone::before { /* camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 88px; height: 24px; margin-left: -44px;
  background: #000; border-radius: 14px; z-index: 5;
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 47%, rgba(120, 130, 150, 0.18) 47.5%, rgba(120, 130, 150, 0.18) 49.5%, transparent 50%),
    linear-gradient(25deg, transparent 58%, rgba(120, 130, 150, 0.14) 58.5%, rgba(120, 130, 150, 0.14) 60%, transparent 60.5%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.03) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.03) 58px 60px),
    #1d2127;
}
.screen .route {
  position: absolute; left: 30%; top: 44%; width: 44%; height: 20%;
  border: 4px solid rgba(90, 160, 255, 0.55); border-color: rgba(90, 160, 255, 0.55) transparent transparent rgba(90, 160, 255, 0.55);
  border-radius: 40px 0 0 0;
}
.screen .pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #3d8bff; }
.offer-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 22px;
  background: #f1f2f4; border-radius: 22px 22px 0 0; color: #1c1e22;
}
.offer-sheet .line { height: 9px; border-radius: 5px; background: #d3d5d9; margin-bottom: 9px; }
.offer-sheet .price { height: 16px; width: 42%; border-radius: 6px; background: #b9bcc2; margin-bottom: 12px; }
.offer-sheet .accept { margin-top: 14px; height: 40px; border-radius: 20px; background: #2c2f35; }

.phone.sm { width: 220px; border-radius: 36px; padding: 8px; }
.phone.sm::before { top: 16px; width: 64px; height: 18px; margin-left: -32px; }
.phone.sm .screen { border-radius: 29px; }
.phone.sm .offer-sheet { padding: 14px 14px 16px; }
.phone.sm .offer-sheet .accept { height: 30px; }
/* The card keeps its proportions on the small phones, just smaller. */
.phone.sm .rcard { zoom: 0.74; top: 62px; }

/* ---------- The ProfitRide card (same layout as the app's) ---------- */

.rcard {
  --rc: var(--green);
  position: absolute; left: 12px; right: 12px; top: 56px; z-index: 3;
  border-radius: 20px; padding: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card) 88%, var(--rc)) 0%, var(--card) 45%, #25282e 100%);
  border: 1.5px solid color-mix(in srgb, var(--rc) 75%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--rc) 30%, transparent), 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.5s, box-shadow 0.5s;
  font-variant-numeric: tabular-nums;
}
.rcard.is-bad { --rc: var(--red); }
/* Spelled out too: some mobile browsers were slow to repaint the gauges
   from the inherited variable alone. */
.rcard.is-bad .gauge .fill { stroke: var(--red); }
.rcard.is-bad .gauge-lg .val b, .rcard.is-bad .gauge-sm .val i, .rcard.is-bad .badge { color: var(--red); }
.rcard.is-bad .badge { border-color: var(--red); }
.rcard-top { display: flex; align-items: center; gap: 12px; }
.gauge { position: relative; flex: none; }
.gauge svg { width: 100%; height: 100%; }
.gauge .track { stroke: rgba(255, 255, 255, 0.1); }
.gauge .fill { stroke: var(--rc); transition: stroke-dasharray 0.7s ease, stroke 0.5s; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rc) 60%, transparent)); }
.gauge .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gauge .val b { color: var(--rc); transition: color 0.5s; font-weight: 800; }
.gauge .val i { font-style: normal; color: rgba(255, 255, 255, 0.7); }
.gauge-lg { width: 94px; height: 94px; }
.gauge-lg .val b { font-size: 26px; }
.gauge-lg .val i { font-size: 12px; margin-top: 3px; }
.rcard-info { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1.2px solid var(--rc); color: var(--rc); font-weight: 800; font-size: 13px; transition: color 0.5s, border-color 0.5s;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rc); }
.fare { margin-top: 5px; font-size: 22px; font-weight: 800; color: #fff; white-space: nowrap; line-height: 1.15; }
.platform { font-weight: 700; font-size: 15px; color: #fff; }
.rcard-sep { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 8px 2px 6px; }
.band {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; padding: 6px 12px; border-radius: 12px;
  background: #e52e3a; color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.3;
}
.band svg { width: 15px; height: 15px; flex: none; }
.band-lines { display: flex; flex-direction: column; min-width: 0; }
.band-lines span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band[hidden] { display: none; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.mini { display: flex; flex-direction: column; align-items: center; }
.gauge-sm { width: 56px; height: 56px; }
.gauge-sm .val b { color: #fff; font-size: 14px; }
.gauge-sm .val i { font-size: 9px; color: var(--rc); font-weight: 700; margin-top: 2px; }
.mini span { font-size: 9.5px; font-weight: 700; color: rgba(255, 255, 255, 0.6); margin-top: 1px; letter-spacing: 0.02em; }

/* Compact strip */
.rcard.compact { padding: 7px 14px 7px 7px; }
.rcard.compact .gauge-lg { width: 66px; height: 66px; }
.rcard.compact .gauge-lg .val b { font-size: 17px; }
.rcard.compact .gauge-lg .val i { font-size: 9.5px; }
.rcard.compact .fare { font-size: 19px; margin-top: 3px; }
.rcard.compact .badge { font-size: 11px; padding: 2px 8px; }
.rcard.compact .platform { margin-left: auto; font-size: 13px; }

/* Edge lights ("Lumini") */
.edge-lights::before, .edge-lights::after {
  content: ""; position: absolute; top: 12%; bottom: 12%; width: 22px; z-index: 4; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  animation: lights 2.6s ease-in-out infinite;
}
.edge-lights::before { left: 0; background: linear-gradient(90deg, #fff 0 2px, var(--lc) 2px 5px, transparent 22px); }
.edge-lights::after { right: 0; background: linear-gradient(270deg, #fff 0 2px, var(--lc) 2px 5px, transparent 22px); }
@keyframes lights { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- Icons ---------- */

.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(62, 232, 255, 0.08));
  border: 1px solid rgba(0, 255, 157, 0.22);
}
.icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Zones ---------- */

.zones .container { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.zones-visual { display: flex; justify-content: center; }
.only {
  display: inline-block; background: linear-gradient(135deg, #ff3b5c, #ff7a59); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: 0.02em; box-shadow: 0 8px 24px rgba(255, 59, 92, 0.3);
}
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #d3d8dd; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 255, 157, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300FF9D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.lead-sm { color: var(--muted); font-size: 19px; }
.zone-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.zone-tags span {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255, 59, 92, 0.1); border: 1px solid rgba(255, 59, 92, 0.3); color: #ffc2cd;
}
.zone-tags span:last-child { background: transparent; border-style: dashed; color: var(--muted); }
.quote {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 59, 92, 0.12), rgba(255, 59, 92, 0.03)); border: 1px solid rgba(255, 59, 92, 0.25);
  color: #eef0f2; font-style: italic;
}
.quote svg { width: 22px; height: 22px; flex: none; stroke: #ff8da1; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* ---------- Cash register (zones, mirrored: copy left, phone right) ---------- */

.register .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.register-copy h2 { text-wrap: balance; }
.register-visual { display: flex; justify-content: center; }
.register-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: step; }
.register-steps li { position: relative; padding-left: 46px; min-height: 32px; color: var(--muted); line-height: 1.45; }
.register-steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(62, 232, 255, 0.1)); border: 1px solid rgba(0, 255, 157, 0.25);
  color: var(--green); font-weight: 800; font-size: 15px;
}
.register-steps strong { color: var(--text); }
.register-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.register-tags span {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(0, 255, 157, 0.08); border: 1px solid rgba(0, 255, 157, 0.26); color: #bfffe3;
}
/* The app's amber: what the driver must check himself. */
.nowrap { white-space: nowrap; }
.register-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(0, 255, 157, 0.02)); border: 1px solid rgba(0, 255, 157, 0.24);
  color: #d3d8dd; font-size: 15.5px; line-height: 1.5;
}
.register-note strong { color: var(--green); }
.register-note svg { width: 22px; height: 22px; flex: none; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.register-price { margin: 20px 0 0; color: var(--muted); }
.register-price strong { color: var(--text); white-space: nowrap; }
.register-more { margin: 24px 0 0; }

/* The phone, and the register's printer beside it, overlapping its edge. */
.register-stage { position: relative; padding: 24px 104px 24px 0; }
.printer { position: absolute; right: 0; top: 404px; width: 164px; z-index: 6; }
.printer-slot {
  position: relative; z-index: 2; height: 18px; border-radius: 9px;
  background: linear-gradient(180deg, #2b3137, #121518); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.printer-slot::before { /* the paper slit */
  content: ""; position: absolute; left: 14px; right: 26px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #000;
}
.printer-slot::after { /* connected */
  content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.receipt-shadow { position: absolute; top: 9px; left: 17px; right: 29px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5)); }
.receipt-feed { overflow: hidden; }
.receipt {
  --tooth: 5px;
  padding: 14px 10px 18px; background: linear-gradient(180deg, #d9d6cf, #f6f3ec 14px); color: #24272b;
  font: 600 9.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: center;
  /* torn edge at the bottom */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.receipt b { display: block; font-weight: 800; white-space: nowrap; }
.receipt-title { font-size: 10.5px; letter-spacing: 0.04em; margin-bottom: 4px; }
.receipt-foot { margin-top: 6px; letter-spacing: 0.08em; }
.receipt-bar { display: block; width: 80%; height: 5px; margin: 4px auto 0; border-radius: 3px; background: #cfcbc2; }
.receipt-bar.short { width: 52%; }
.receipt-bar.mid { width: 66%; }
.receipt hr { border: 0; border-top: 1px dashed rgba(36, 39, 43, 0.4); margin: 7px 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 6px; text-align: left; white-space: nowrap; }
.receipt-row.total { font-weight: 800; font-size: 11px; }

/* ---------- The cash card (CashReceiptCard in the app) ---------- */

.ccard {
  position: absolute; left: 3%; width: 90%; top: 30%; z-index: 3;
  padding: 6px 11px 11px; border-radius: 16px; color: #fff; line-height: 1.25; text-align: left;
  background: rgba(14, 18, 16, 0.95); border: 1.5px solid var(--green);
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.22), 0 14px 30px rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
}
.ccard-grip { width: 26px; height: 3px; margin: 0 auto 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.ccard-head { display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; }
.ccard-head i { font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; color: rgba(255, 255, 255, 0.67); }
.ccard-amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.ccard-amount b { font-size: 26px; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.ccard-cui {
  flex: none; display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 12px;
  border: 1.2px dashed var(--green); color: var(--green); font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.ccard-line { margin: 3px 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.67); }
.ccard-actions { display: flex; gap: 7px; margin-top: 9px; }
.ccard-actions span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 17px; font-weight: 800; white-space: nowrap; }
.ccard-print { position: relative; flex: 1.6 1 0; background: var(--green); color: #000; font-size: 13px; }
.ccard-print::after { /* the tap, in the demo */
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6); opacity: 0; pointer-events: none;
}
.ccard-edit { flex: 1 1 0; border: 1.2px solid var(--green); color: var(--green); font-size: 12px; }
.ccard-done {
  position: absolute; left: 11px; right: 11px; top: 13px; bottom: 11px; opacity: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.ccard-done b { color: var(--green); font-size: 18px; font-weight: 800; }
.ccard-done span { margin-top: 3px; font-size: 12.5px; }

/* The demo, once the section is in view: SCOATE BON is tapped, the card says
   "Bon scos" and the receipt comes out, then the card is ready again and the
   receipt is taken. Without motion everything stays as drawn: the ready card,
   the receipt out. */
.register-visual.in .ccard-print { animation: cash-press 10s ease-in-out 0.8s infinite both; }
.register-visual.in .ccard-print::after { animation: cash-tap 10s ease-out 0.8s infinite both; }
.register-visual.in .ccard-ready { animation: cash-ready 10s ease 0.8s infinite both; }
.register-visual.in .ccard-done { animation: cash-done 10s ease 0.8s infinite both; }
.register-visual.in .receipt { animation: cash-receipt 10s 0.8s infinite both; }
@keyframes cash-press { 0%, 11% { transform: none; } 13% { transform: scale(0.94); } 16%, 100% { transform: none; } }
@keyframes cash-tap {
  0%, 11% { opacity: 0; transform: scale(0.2); }
  12% { opacity: 1; transform: scale(0.4); }
  18%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes cash-ready { 0%, 16% { opacity: 1; } 19%, 60% { opacity: 0; } 64%, 100% { opacity: 1; } }
@keyframes cash-done { 0%, 16% { opacity: 0; } 19%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes cash-receipt {
  0%, 18% { transform: translateY(-101%); opacity: 1; animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
  42% { transform: none; opacity: 1; }
  90% { transform: none; opacity: 1; animation-timing-function: ease-in; }
  97% { transform: translateY(18px); opacity: 0; }
  98%, 100% { transform: translateY(-101%); opacity: 0; }
}

/* The card's other states (x-cash-card state="big" / "paper"), on their own
   beside the copy rather than over a phone. Same scale as above: the app's
   dp times about 0.79. */
.ccard.is-big { border-color: #ffc400; box-shadow: 0 0 24px rgba(255, 196, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.5); }
.ccard-title { margin-top: 3px; font-size: 26px; white-space: nowrap; letter-spacing: -0.01em; }
.ccard-title b { font-weight: 800; }
.ccard-slide {
  position: relative; height: 46px; margin-top: 9px; border-radius: 23px; overflow: hidden;
  background: rgba(0, 255, 157, 0.07); border: 1.2px solid var(--green);
}
.ccard-trail { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; border-radius: 23px; opacity: 0; background: linear-gradient(90deg, rgba(0, 255, 157, 0.3), rgba(0, 255, 157, 0.92)); }
.ccard-slide-label { position: absolute; inset: 0 6px 0 46px; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ccard-knob {
  position: absolute; left: 3px; top: 3px; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--green);
  box-shadow: 0 0 0 2px rgba(14, 18, 16, 0.95), 0 0 10px rgba(0, 255, 157, 0.55);
}
.ccard-knob svg { width: 19px; height: 19px; fill: none; stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ccard-actions.even span { flex: 1 1 0; height: 33px; font-size: 11.5px; }
.ccard-edit.quiet { border-color: rgba(255, 255, 255, 0.45); color: rgba(255, 255, 255, 0.85); }
.ccard-cause { margin: 2px 0 0; color: var(--red); font-size: 12px; line-height: 1.35; }
.ccard-ask { margin: 6px 0 0; color: #ffc400; font-size: 12px; line-height: 1.35; }
.ccard-stack { display: grid; gap: 6px; margin-top: 8px; }
.ccard-stack span {
  display: flex; align-items: center; justify-content: center; height: 33px; border-radius: 17px;
  border: 1.2px solid var(--green); color: var(--green); font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.ccard-stack .fill { background: var(--green); color: #000; }
/* Once in view, the knob is slid to the end: the receipt would print. */
.casa-state.in .ccard-knob { animation: ccard-knob 6s var(--ease) 0.6s infinite both; }
.casa-state.in .ccard-trail { animation: ccard-trail 6s var(--ease) 0.6s infinite both; }
.casa-state.in .ccard-slide-label { animation: ccard-label 6s var(--ease) 0.6s infinite both; }
@keyframes ccard-knob {
  0%, 25% { left: 3px; opacity: 1; }
  55%, 78% { left: calc(100% - 41px); opacity: 1; }
  84% { left: calc(100% - 41px); opacity: 0; }
  85% { left: 3px; opacity: 0; }
  92%, 100% { left: 3px; opacity: 1; }
}
@keyframes ccard-trail {
  0%, 25% { width: 44px; opacity: 0; }
  29% { opacity: 1; }
  55%, 78% { width: 100%; opacity: 1; }
  84%, 100% { width: 100%; opacity: 0; }
}
@keyframes ccard-label { 0%, 25% { opacity: 1; } 33%, 84% { opacity: 0; } 92%, 100% { opacity: 1; } }

/* ---------- Casă de marcat (/casa-de-marcat) ---------- */

/* The hero's offer: the plan's name on a line of its own, free to wrap, so
   the hero's left column never outgrows its share (981–1015px). */
.offer-then .offer-plan { display: block; white-space: normal; }
/* The title, a touch smaller where the two columns are at their narrowest:
   at 60px "Bonul cursei cash," (about 490px) outgrows the left column below
   about 1023px and leaves "cash," alone on a line. Up to 1060px, so a 17px
   scrollbar (Windows) is covered too. */
@media (min-width: 981px) and (max-width: 1060px) { .casa-hero h1 { font-size: 54px; } }

/* Three steps, in cards (numbered like the guide's). */
.casa-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: casa-step; }
.casa-steps li {
  padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border); transition: border-color 0.35s;
}
.casa-steps li:hover { border-color: rgba(0, 255, 157, 0.35); }
.casa-steps li::before {
  counter-increment: casa-step; content: counter(casa-step); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 16px; border-radius: 12px; color: var(--green); font-weight: 800;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(62, 232, 255, 0.1)); border: 1px solid rgba(0, 255, 157, 0.25);
}
.casa-steps h3 { font-size: 18px; margin-bottom: 6px; }
.casa-steps p { color: var(--muted); margin: 0; font-size: 15.5px; }
/* The home section's green note, under the steps. */
.casa-note { max-width: 820px; margin: 36px auto 0; }

/* Linking the register: a drawing beside the steps (like the zones). */
.casa-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.casa-split-visual { display: flex; justify-content: center; padding: 64px 0 34px; }
.casa-split-visual .float { width: min(300px, 100%); }
.casa-split-copy .guide { margin-top: 24px; }
.casa-split-copy .guide ol li { padding: 16px 18px 16px 66px; }
.casa-split-copy .guide ol li::before { left: 16px; top: 16px; }
.casa-split-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.casa-split-note + .casa-split-note { margin-top: 8px; }
/* Keys as they're written on the register. */
.casa-split kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 7px;
  border-radius: 7px; font: 800 13px/1 var(--font); color: var(--green); white-space: nowrap; vertical-align: 1px;
  background: rgba(0, 255, 157, 0.08); border: 1px solid rgba(0, 255, 157, 0.35); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* The register, stylized: no keys drawn (the steps name them), only its
   display in PC mode, Bluetooth on, the link to the phone and the paper
   coming out of the printer. */
.till {
  position: relative; padding: 32px 22px 24px; border-radius: 30px;
  background: linear-gradient(150deg, #1d2228, #0a0c0e);
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(0, 255, 157, 0.1);
}
.till::before { /* the printer's slit */
  content: ""; position: absolute; z-index: 2; top: 13px; left: 50%; width: 150px; height: 6px; margin-left: -75px;
  border-radius: 3px; background: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.till-paper { /* out of the slit, torn at the top */
  position: absolute; z-index: 1; left: 50%; bottom: calc(100% - 16px); width: 124px; margin-left: -62px;
  display: grid; gap: 7px; padding: 16px 14px 18px; background: linear-gradient(0deg, #d9d6cf, #f4f1ea 14px);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
}
.till-paper i { display: block; width: 100%; height: 5px; border-radius: 3px; background: #cfcbc2; }
.till-paper i.short { width: 56%; margin: 0 auto; }
.till-paper i.mid { width: 72%; margin: 0 auto; }
.till-display {
  display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 22px 0 18px; border-radius: 14px;
  background: linear-gradient(180deg, #05120c, #0a1d14); border: 1px solid rgba(0, 255, 157, 0.28); box-shadow: inset 0 0 22px rgba(0, 255, 157, 0.14);
}
.till-display b { font: 700 40px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; color: var(--green); text-shadow: 0 0 12px rgba(0, 255, 157, 0.65); }
.till-bt { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.till-bt::before { /* Bluetooth on: a slow ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(0, 255, 157, 0.5); opacity: 0;
  animation: till-ring 2.4s ease-out infinite;
}
.till-bt svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(0, 255, 157, 0.7)); }
@keyframes till-ring { 0% { transform: scale(0.7); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.till-link {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.till-led { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.till-flow { /* the link to the phone, moving */
  flex: 1; height: 2px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, rgba(0, 255, 157, 0.75) 0 6px, transparent 6px 12px);
  animation: till-flow 1.2s linear infinite;
}
@keyframes till-flow { to { background-position: 12px 0; } }
.till-link svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.till-chip { /* what the app says once it's linked */
  position: absolute; z-index: 3; left: 0; right: 0; bottom: -26px; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 11px; border-radius: 16px; line-height: 1.25;
  background: rgba(20, 24, 28, 0.86); border: 1px solid rgba(0, 255, 157, 0.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.till-chip svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: rgba(0, 255, 157, 0.16); fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.till-chip b { display: block; font-size: 14px; }
.till-chip small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.casa-needs {
  max-width: 900px; margin: 64px auto 0; padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border);
}
.casa-needs h3 { margin: 0; }
.casa-needs .checks { grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 18px; }

/* What else, in cards */
.casa-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.casa-feature {
  padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border); transition: border-color 0.35s;
}
.casa-feature:hover { border-color: rgba(0, 255, 157, 0.35); }
.casa-feature .icon { margin-bottom: 16px; }
.casa-feature h3 { font-size: 18px; margin-bottom: 6px; }
.casa-feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* The card when the amount is big, and when the paper runs out. */
.casa-states { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: start; }
.casa-state {
  padding: 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border);
}
.casa-state .ccard { position: relative; left: auto; top: auto; width: 100%; max-width: 290px; margin: 0 auto 24px; zoom: 1.2; }
.casa-state > h3 { margin-bottom: 8px; text-wrap: balance; }
.casa-state > p { color: var(--muted); margin: 0; }

/* Free, and with ProfitRide Pro */
.casa-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto 40px; }
.casa-tier { padding: 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.casa-tier h3 { font-size: 18px; margin: 0; }
.casa-tier .checks { margin-top: 16px; }
.casa-tier.is-plus { border-color: rgba(0, 255, 157, 0.35); background: linear-gradient(160deg, rgba(0, 255, 157, 0.08), transparent 60%), var(--surface); }
.casa-tier.is-plus h3 { color: var(--green); }

/* ---------- Calculator ---------- */

.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; max-width: 980px; margin: 0 auto; }
.calc-result { display: flex; flex-direction: column; align-items: center; gap: 18px; position: sticky; top: 90px; }
.rcard.static { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: 330px; zoom: 1.15; }
.calc-voice {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-weight: 600; font-size: 15px;
}
.calc-voice .wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.calc-voice .wave i { width: 3px; border-radius: 2px; background: var(--green); animation: wave 1.1s ease-in-out infinite; }
.calc-voice .wave i:nth-child(1) { height: 8px; }
.calc-voice .wave i:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.calc-voice .wave i:nth-child(3) { height: 11px; animation-delay: 0.3s; }
.calc-voice .wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.calc-form {
  display: grid; gap: 20px; padding: 26px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border);
}
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.range output { color: var(--green); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.range small { display: block; color: var(--faint); font-size: 13px; margin-top: 6px; }
.range input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--green), var(--teal)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, 0.1);
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.15s;
}
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.range input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.range input[type="range"]:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
.calc-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.seg label { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: linear-gradient(135deg, var(--green), #3dffc0); color: #04130c; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- Mini features ---------- */

.mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mf {
  text-align: center; padding: 26px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%), var(--surface);
  border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s;
}
.mf:hover { transform: translateY(-4px); border-color: rgba(0, 255, 157, 0.35); }
.mf .icon { margin: 0 auto 14px; }
.mf h3 { font-size: 17px; margin-bottom: 6px; }
.mf p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Price ---------- */

.price-card {
  position: relative; max-width: 560px; margin: 0 auto; text-align: center; padding: 46px 36px; border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.16), transparent 65%), var(--surface);
  isolation: isolate;
}
/* A light that runs around the border. */
.price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), rgba(0, 255, 157, 0.15), var(--green), rgba(62, 232, 255, 0.7), rgba(0, 255, 157, 0.15) 40%, rgba(0, 255, 157, 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.price-free { font-size: clamp(42px, 7vw, 60px); font-weight: 800; line-height: 1.05; margin-bottom: 10px; }
.price-then { font-size: 20px; margin-bottom: 26px; }
.price-then strong { font-size: 28px; }
.price-then { margin-bottom: 28px; }
.price-card .stores { justify-content: center; }
/* Two levels side by side; each card is the one above, its light offset. */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.price-grid .price-card { max-width: none; margin: 0; padding: 46px 30px; display: flex; flex-direction: column; }
.price-grid .price-card .stores { margin-top: auto; }
.price-grid .price-free { font-size: clamp(40px, 4.6vw, 54px); }
.price-card.plus::before { animation-delay: -3s; }
.price-card.plus .eyebrow span { white-space: nowrap; }
/* "Tot ce are ProfitRide…": wraps on phones with its own line height, not
   the price line's. */
.price-includes { display: inline-block; line-height: 1.45; text-wrap: balance; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(0, 255, 157, 0.3); background: linear-gradient(160deg, rgba(0, 255, 157, 0.05), transparent 60%), var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- CTA ---------- */

.cta { text-align: center; overflow: hidden; }
.cta .container { z-index: 1; }
.cta .stores { justify-content: center; margin-top: 28px; }

/* ---------- Guide (Cum pornești) ---------- */

.page-head { position: relative; padding-top: 64px; padding-bottom: 28px; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 700px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 36px; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 16px;
  padding: 10px 26px; border-radius: 12px; cursor: pointer; transition: background 0.25s, color 0.25s;
}
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--green), #3dffc0); color: #04130c; }
.guide { display: grid; gap: 16px; max-width: 820px; }
.guide[hidden] { display: none; }
.guide ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: g; }
.guide ol li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px 20px 74px; }
.guide ol li::before {
  counter-increment: g; content: counter(g); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(62, 232, 255, 0.1)); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid rgba(0, 255, 157, 0.25);
}
.guide li strong { display: block; font-size: 18px; margin-bottom: 4px; }
.guide li p { color: var(--muted); margin: 0; }
.help { margin-top: 18px; background: rgba(255, 195, 0, 0.06); border: 1px solid rgba(255, 195, 0, 0.25); border-radius: 18px; padding: 22px 24px; }
.help h3 { color: #ffd54a; }
.help ul { margin: 0; padding-left: 20px; color: #d3d8dd; }
.help li { margin-bottom: 8px; }

/* ---------- Recomandă un coleg (/coleg/COD) ---------- */

.coleg { max-width: 640px; padding-bottom: 96px; }
.coleg h1 { font-size: clamp(32px, 5vw, 48px); }
.coleg .coleg-offer { color: var(--green); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.coleg-code {
  display: block; width: 100%; margin: 28px 0; padding: 18px 16px; text-align: center; cursor: pointer;
  background: rgba(0, 255, 157, 0.04); border: 1.5px dashed var(--green); border-radius: 16px; color: var(--text); font: inherit;
  transition: background 0.25s, box-shadow 0.25s;
}
.coleg-code:hover, .coleg-code.copied { background: rgba(0, 255, 157, 0.1); box-shadow: 0 0 24px rgba(0, 255, 157, 0.2); }
.coleg-code span { display: block; }
.coleg-label, .coleg-hint { color: var(--muted); font-size: 12px; }
.coleg-label { letter-spacing: 0.16em; text-transform: uppercase; }
.coleg-value {
  margin: 6px 0; color: var(--green); font-size: clamp(28px, 8vw, 36px); font-weight: 800; letter-spacing: 0.12em;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.55); overflow-wrap: anywhere;
}
.coleg .stores { margin-top: 8px; }
.coleg .coleg-foot { color: var(--faint); font-size: 13px; margin-top: 24px; }
.coleg-go {
  display: block; width: 100%; margin: 4px 0 0; padding: 20px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #04110b; font: inherit; font-size: 20px; font-weight: 900;
  box-shadow: 0 0 28px rgba(0, 255, 157, 0.45); transition: transform 0.15s, box-shadow 0.25s;
}
.coleg-go:hover { box-shadow: 0 0 40px rgba(0, 255, 157, 0.65); }
.coleg-go:active, .coleg-go.copied { transform: scale(0.98); }
.coleg .coleg-go-note { text-align: center; color: var(--muted); margin: 12px 0 0; }
.coleg .coleg-or { color: var(--faint); font-size: 14px; margin: 30px 0 0; }
.coleg .stores { transition: box-shadow 0.4s; border-radius: 18px; }
.coleg .stores.lit { box-shadow: 0 0 0 2px var(--green), 0 0 30px rgba(0, 255, 157, 0.35); }
@media (prefers-reduced-motion: reduce) { .coleg-go { transition: none; } }

/* ---------- Forms (Suport) ---------- */

.support-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; padding-bottom: 96px; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.18); }
.field .error { color: #ff7d93; font-size: 14px; margin-top: 6px; display: block; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; margin: 0; }
.radios input { width: auto; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 14px; background: rgba(0, 255, 157, 0.1); border: 1px solid rgba(0, 255, 157, 0.3); color: #cfffe9; font-weight: 600; }
.aside { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.aside p { color: var(--muted); }

/* ---------- Legal pages ---------- */

.legal { max-width: 800px; padding-bottom: 96px; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: #cdd2d8; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 15px; }
.todo { background: rgba(255, 195, 0, 0.15); color: #ffd54a; padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { position: relative; border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 360px; margin-top: 14px; }
.legal-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }

/* ---------- Mobile bottom bar ---------- */

.tabbar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container, .zones .container, .register .container { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .hero-copy, .zones-copy, .register-copy { text-align: center; }
  .hero-lead, .zones-copy p, .register-copy p { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero-links, .hero-points { justify-content: center; }
  .section-head { margin-left: auto; margin-right: auto; text-align: center; }
  .zone-tags, .register-tags { justify-content: center; }
  .zones-visual { order: 2; }
  /* The steps and the warning stay left-aligned, in a narrower column. */
  .register-steps, .register-note { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
  .support-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; }
  .price-grid .price-card { padding: 46px 36px; }
  .price-grid .price-free { font-size: clamp(42px, 7vw, 60px); }
  .casa-split { grid-template-columns: 1fr; gap: 24px; }
  .casa-split-visual { order: 2; }
  .casa-split-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .casa-split-copy .lead-sm { margin-left: auto; margin-right: auto; }
  .casa-split-copy .guide, .casa-split-note { text-align: left; }
  .casa-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  section { padding: 72px 0; }
  .nav { display: none; }
  .site-header .container { height: 60px; }
  .hero-lead { font-size: 18px; }

  /* Store buttons side by side, their content centered. */
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
  .store { min-width: 0; justify-content: center; padding: 11px 10px; gap: 9px; }
  .store svg { width: 24px; height: 24px; }
  .store strong { font-size: 15px; }
  .store small { font-size: 11px; }
  .hero-links .btn { width: 100%; max-width: 420px; }
  /* Narrow screens: the offer big on top, the price on one line under it. */
  .offer { display: flex; flex-direction: column; max-width: 420px; margin: 0 auto 14px; padding: 14px 16px 12px; gap: 9px; }
  .offer-then { border-left: 0; padding: 9px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: center; align-self: stretch; }
  .offer-then span, .offer-then .sep { display: inline; }

  .calc { grid-template-columns: 1fr; gap: 22px; }
  .calc-result { position: static; }
  .rcard.static { zoom: 1; }
  .calc-form { padding: 20px; }
  .mini-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mf { padding: 18px 14px; }
  .mf h3 { font-size: 15.5px; }
  .mf p { font-size: 13.5px; }

  .chip { display: none; }
  .phone-stage { padding: 10px 0; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .logo { justify-content: center; }
  .footer-grid p { margin-left: auto; margin-right: auto; }
  .legal-note { text-align: center; }
  .price-card, .price-grid .price-card { padding: 36px 22px; }
  .price-card .stores { grid-template-columns: 1fr; max-width: 260px; }
  .register-stage { padding: 10px 28px 10px 0; }
  .printer { top: 392px; width: 156px; }
  .receipt-shadow { left: 15px; right: 27px; }
  .receipt { padding-left: 8px; padding-right: 8px; }
  .stores.single { grid-template-columns: 1fr; max-width: 260px; }
  .casa-steps { grid-template-columns: 1fr; gap: 12px; max-width: 560px; }
  .casa-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding: 18px; }
  .casa-steps li::before { grid-row: span 2; margin: 0; }
  .casa-note { margin-top: 28px; }
  .casa-split-visual { padding: 56px 0 30px; }
  .casa-needs { margin-top: 48px; padding: 22px 20px; }
  .casa-needs .checks { grid-template-columns: 1fr; }
  .casa-features { grid-template-columns: 1fr; gap: 12px; }
  .casa-feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .casa-feature .icon { grid-row: span 2; margin: 0; }
  .casa-states { grid-template-columns: 1fr; gap: 16px; max-width: 560px; }
  .casa-state { padding: 22px 18px; }
  .casa-state .ccard { zoom: 1.1; }
  .casa-tiers { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; max-width: 560px; }
  .form { padding: 22px; }

  .tabbar {
    /* One column per link: four, or five with "Casă" (profitride.register_live). */
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(11, 14, 17, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 4px 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--green); }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 380px) {
  .phone { width: 270px; }
  .phone .rcard { zoom: 0.9; }
  .ccard { padding: 5px 9px 10px; }
  .ccard-amount b { font-size: 23px; }
  .ccard-cui { padding: 0 7px; }
  .register-stage { padding-right: 24px; }
  .printer { top: 350px; width: 150px; }
  .receipt { font-size: 9px; }
  .casa-state .ccard { zoom: 1; }
  .ccard-slide-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* /placa: the driver's board for the cash register on iPhone (draft). */
.placa-hero .container { grid-template-columns: 1fr; }
.placa-hero .hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.placa-hero .hero-lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.placa-link { margin-top: 14px !important; }
.placa-link a { color: var(--green); font-weight: 700; }
.placa-guide { margin: 0 auto; }
.placa-buy { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.placa-note { text-align: center; margin: 22px auto 0; max-width: 680px; }
.placa-slogan { text-align: center; margin-top: 36px; font-weight: 800; font-size: 20px; color: var(--green); }

/* /placa install card (pagina.js): a ring with the percentage, the state
   in data-state: idle, iphone, waiting, writing, verifying, done, error. */
.pi-card { max-width: 460px; margin: 0 auto; text-align: center; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-strong); border-radius: 28px; padding: 30px 26px 26px; }
.pi-ring { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.pi-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pi-track { fill: none; stroke: var(--surface-2); stroke-width: 13; }
.pi-arc { fill: none; stroke: url(#pi-grad); stroke-width: 13; stroke-linecap: round; stroke-dashoffset: 540.35; transition: stroke-dashoffset 0.35s var(--ease), stroke 0.3s; filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.45)); }
.pi-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; }
.pi-icon { width: 58px; height: 58px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: none; }
.pi-pct { display: none; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pi-pct b { font-size: 50px; }
.pi-pct span { font-size: 22px; color: var(--muted); margin-left: 2px; }
.pi-eta { display: none; color: var(--muted); font-size: 13px; }
.pi-title { font-size: 22px; margin: 18px 0 6px; }
.pi-text { color: var(--muted); font-size: 15.5px; margin: 0 auto; max-width: 380px; min-height: 3em; }
.pi-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 16px 0 4px; }
.pi-chip { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--faint); }
.pi-chip.ok { color: var(--green); border-color: rgba(0, 255, 157, 0.35); }
.pi-chip.ok::before { content: "✓ "; }
.pi-done { margin-top: 10px; }
.pi-board { width: 120px; height: 96px; display: block; margin: 0 auto; }
.pi-code { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.pi-code strong { color: var(--text); font-size: 18px; }
.pi-light { margin: 10px auto 0; color: var(--muted); font-size: 15px; max-width: 380px; }
.pi-light strong { color: var(--text); }
.pi-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.pi-card [hidden] { display: none !important; }
.pi-card[data-state="idle"] .pi-arc, .pi-card[data-state="iphone"] .pi-arc { opacity: 0; }
.pi-note { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.pi-card[data-state="idle"] .pi-plug,
.pi-card[data-state="waiting"] .pi-plug { display: block; }
.pi-card[data-state="iphone"] .pi-phone { display: block; }
.pi-card[data-state="waiting"] .pi-arc { stroke-dashoffset: 405 !important; transform-origin: 100px 100px; animation: pi-spin 1.1s linear infinite; }
.pi-card[data-state="writing"] .pi-pct,
.pi-card[data-state="writing"] .pi-eta,
.pi-card[data-state="verifying"] .pi-pct { display: block; }
.pi-card[data-state="verifying"] .pi-arc { animation: pi-pulse 1.2s ease-in-out infinite; }
.pi-card[data-state="done"] .pi-check { display: block; width: 84px; height: 84px; stroke: var(--green); stroke-width: 2.6; }
.pi-card[data-state="done"] .pi-arc { stroke: var(--green); stroke-dashoffset: 0 !important; }
.pi-card[data-state="done"] .pi-title { color: var(--green); }
.pi-card[data-state="error"] .pi-warn { display: block; width: 70px; height: 70px; stroke: var(--red); stroke-width: 2.6; }
.pi-card[data-state="error"] .pi-arc { stroke: var(--red); stroke-dashoffset: 0 !important; filter: drop-shadow(0 0 8px rgba(255, 59, 92, 0.4)); }
.pi-card[data-state="idle"] .pi-chips,
.pi-card[data-state="iphone"] .pi-chips,
.pi-card[data-state="error"] .pi-chips { display: none; }
.pi-card:not([data-state="idle"]):not([data-state="error"]) .pi-note { display: none; }
.pi-mask { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: flex-end; justify-content: center; padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
.pi-mask-body { width: 100%; max-width: 420px; text-align: left; }
.pi-mask-arrow { display: block; width: 40px; height: 40px; margin: 0 auto 6px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.5)); animation: pi-up 1.4s var(--ease) infinite; }
.pi-mask h3 { text-align: center; font-size: 19px; margin: 0 0 12px; }
.pi-mask ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pi-mask li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 13px; font-size: 15px; color: var(--muted); }
.pi-mask li strong { color: var(--text); }
.pi-mask li .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04130c; font-weight: 800; font-size: 14px; }
.pi-mask p { text-align: center; color: var(--faint); font-size: 12.5px; margin: 10px 0 0; }
@media (min-width: 761px) { .pi-mask { align-items: center; } }
@keyframes pi-up { 50% { transform: translateY(-10px); } }
@keyframes pi-spin { to { transform: rotate(360deg); } }
@keyframes pi-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .pi-card[data-state="waiting"] .pi-arc, .pi-card[data-state="verifying"] .pi-arc, .pi-mask-arrow { animation: none; }
}
@media (max-width: 760px) {
  .placa-buy { grid-template-columns: 1fr; }
  /* No icon in these cards: the text keeps the whole width. */
  .placa-buy .casa-feature { display: block; }
}

/* ---------- History and profit (home, #istoric) ----------
   Two rows like the zones and the register: copy beside two phones with
   the app's own screens. The phones change places slowly: the front one
   swings out to the side and goes behind, the one behind comes forward
   (the switch of z-index happens while they are apart). Only once the row
   is on screen (.in); still with reduced motion. */

.ledger-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.ledger-row.flip { grid-template-columns: 0.95fr 1.05fr; }
.ledger-row + .ledger-row { margin-top: 96px; }
.ledger-copy h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; text-wrap: balance; }
.ledger-copy .checks { margin-top: 22px; }
.ledger-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.ledger-kicker b {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; letter-spacing: 0; font-size: 15px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(62, 232, 255, 0.1)); border: 1px solid rgba(0, 255, 157, 0.25);
}
.ledger-visual { display: flex; justify-content: center; padding: 10px 0 30px; }

.duo {
  --w: 300px;
  --front: translate(-16%, 2%) rotate(-4deg);
  --back: translate(30%, -6%) rotate(5deg) scale(0.86);
  --out-front: translate(-62%, 1%) rotate(-11deg) scale(0.95);
  --out-back: translate(76%, -4%) rotate(11deg) scale(0.9);
  position: relative; width: var(--w); aspect-ratio: 270 / 497; flex: none;
}
.duo.mirror {
  --front: translate(16%, 2%) rotate(4deg);
  --back: translate(-30%, -6%) rotate(-5deg) scale(0.86);
  --out-front: translate(62%, 1%) rotate(11deg) scale(0.95);
  --out-back: translate(-76%, -4%) rotate(-11deg) scale(0.9);
}
.duo::after { /* light under the front phone */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -6%; height: 22%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 255, 157, 0.28), transparent); filter: blur(10px);
}
.shot {
  position: absolute; inset: 0; margin: 0; padding: 9px; border-radius: 42px;
  background: linear-gradient(145deg, #1a1d22, #07080a);
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 90px rgba(0, 255, 157, 0.1);
  /* The screens are cut under the middle: the phone fades into the page. */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  will-change: transform;
}
.shot::before { /* camera */
  content: ""; position: absolute; top: 19px; left: 50%; width: 78px; height: 22px; margin-left: -39px;
  background: #000; border-radius: 12px; z-index: 2;
}
.shot img { width: 100%; height: auto; border-radius: 33px; }
.shot-a { transform: var(--front); z-index: 2; }
.shot-b { transform: var(--back); z-index: 1; filter: brightness(0.5) saturate(0.8); }
.ledger-visual.in .shot-a { animation: duo-a 11s var(--ease) 1.2s infinite both; }
.ledger-visual.in .shot-b { animation: duo-b 11s var(--ease) 1.2s infinite both; }

@keyframes duo-a {
  0%, 36% { transform: var(--front); z-index: 2; filter: brightness(1) saturate(1); }
  43% { transform: var(--out-front); z-index: 2; filter: brightness(0.85) saturate(0.9); }
  44% { transform: var(--out-front); z-index: 1; filter: brightness(0.8) saturate(0.9); }
  51%, 86% { transform: var(--back); z-index: 1; filter: brightness(0.5) saturate(0.8); }
  93% { transform: var(--out-back); z-index: 1; filter: brightness(0.8) saturate(0.9); }
  94% { transform: var(--out-back); z-index: 2; filter: brightness(0.85) saturate(0.9); }
  100% { transform: var(--front); z-index: 2; filter: brightness(1) saturate(1); }
}
@keyframes duo-b {
  0%, 36% { transform: var(--back); z-index: 1; filter: brightness(0.5) saturate(0.8); }
  43% { transform: var(--out-back); z-index: 1; filter: brightness(0.8) saturate(0.9); }
  44% { transform: var(--out-back); z-index: 2; filter: brightness(0.85) saturate(0.9); }
  51%, 86% { transform: var(--front); z-index: 2; filter: brightness(1) saturate(1); }
  93% { transform: var(--out-front); z-index: 2; filter: brightness(0.85) saturate(0.9); }
  94% { transform: var(--out-front); z-index: 1; filter: brightness(0.8) saturate(0.9); }
  100% { transform: var(--back); z-index: 1; filter: brightness(0.5) saturate(0.8); }
}

@media (max-width: 980px) {
  .ledger-row, .ledger-row.flip { grid-template-columns: 1fr; gap: 36px; }
  .ledger-row + .ledger-row { margin-top: 80px; }
  .ledger-copy { text-align: center; }
  .ledger-copy .lead-sm { max-width: 600px; margin-left: auto; margin-right: auto; }
  .ledger-copy .checks { max-width: 480px; margin-left: auto; margin-right: auto; text-align: left; }
  .ledger-row.flip .ledger-visual { order: 2; }
}
@media (max-width: 760px) {
  /* Narrow: the pair stays inside the page; the one behind peeks less. */
  .duo { --w: 220px; --front: translate(-12%, 2%) rotate(-3deg); --back: translate(24%, -6%) rotate(4deg) scale(0.86);
    --out-front: translate(-40%, 1%) rotate(-8deg) scale(0.95); --out-back: translate(46%, -4%) rotate(8deg) scale(0.9); }
  .duo.mirror { --front: translate(12%, 2%) rotate(3deg); --back: translate(-24%, -6%) rotate(-4deg) scale(0.86);
    --out-front: translate(40%, 1%) rotate(8deg) scale(0.95); --out-back: translate(-46%, -4%) rotate(-8deg) scale(0.9); }
  .shot { padding: 7px; border-radius: 34px; }
  .shot img { border-radius: 27px; }
  .shot::before { top: 15px; width: 62px; height: 18px; margin-left: -31px; }
  .ledger-copy h3 { font-size: 25px; }
}

/* /placa: the old Android as ProfitRide Box, a whole row under the board's cards. */
.placa-phone { grid-column: 1 / -1; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  border-color: rgba(0, 255, 157, 0.3); background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(62, 232, 255, 0.03)); }
.placa-phone-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(62, 232, 255, 0.1)); border: 1px solid rgba(0, 255, 157, 0.25); }
.placa-phone-ic svg { width: 26px; height: 26px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .placa-buy .placa-phone { display: grid; grid-template-columns: 1fr; gap: 12px; }
}

/* The four cash registers (partials/register-models, 11.11.2026): one card
   each, a drawn register printing a receipt, the name big. */
.reg-models { position: relative; width: 100%; max-width: var(--max); margin: 96px auto 0; padding: 0 20px; }
.reg-models .section-head { margin-bottom: 40px; }
.reg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reg-card {
  --tone: var(--green); --tone-soft: rgba(0, 255, 157, 0.16); --tone-line: rgba(0, 255, 157, 0.45);
  position: relative; overflow: hidden; text-align: center; padding: 28px 18px 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.reg-card.is-teal { --tone: var(--teal); --tone-soft: rgba(62, 232, 255, 0.14); --tone-line: rgba(62, 232, 255, 0.45); }
.reg-card::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 120%; height: 75%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--tone-soft), transparent); pointer-events: none;
}
.reg-card::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tone), transparent); opacity: 0.7;
}
.reg-card:hover { transform: translateY(-6px); border-color: var(--tone-line); box-shadow: 0 22px 48px -22px var(--tone-line); }
.reg-art { position: relative; display: block; width: 104px; height: 104px; margin: 0 auto 18px; overflow: visible; filter: drop-shadow(0 0 14px var(--tone-soft)); }
.reg-body { fill: #1a1f24; stroke: var(--tone); stroke-width: 2; }
.reg-slot { fill: var(--bg); stroke: var(--tone); stroke-width: 1.6; }
.reg-screen { fill: var(--bg); }
.reg-digits { fill: var(--tone); font: 800 10px ui-monospace, "SF Mono", Menlo, monospace; }
.reg-keys circle { fill: rgba(255, 255, 255, 0.22); }
.reg-go { fill: var(--tone); }
.reg-paper { animation: reg-print 4.2s var(--ease) infinite; animation-delay: var(--print-delay, 0s); }
@keyframes reg-print {
  0%, 12% { transform: translateY(26px); }
  45%, 85% { transform: translateY(0); }
  100% { transform: translateY(26px); }
}
.reg-name { position: relative; margin: 0 0 14px; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.reg-chips { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; }
.reg-chips span {
  font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line);
}
.reg-note { position: relative; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.reg-note a { color: var(--tone); font-weight: 700; }
@media (max-width: 980px) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .reg-models { margin-top: 72px; }
  .reg-grid { gap: 12px; }
  .reg-card { padding: 22px 12px 18px; }
  .reg-art { width: 84px; height: 84px; margin-bottom: 14px; }
  .reg-name { font-size: 17px; margin-bottom: 12px; }
  .reg-chips span { font-size: 11.5px; padding: 4px 9px; }
  .reg-note { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .reg-paper { animation: none; }
  .reg-card { transition: none; }
}
.reg-models-section .reg-models { margin-top: 0; }
