/* CoRide website. Brand tokens mirror the app (lib/core/theme/app_colors.dart). */
:root {
  --primary: #0e7c66;
  --primary-dark: #0a5c4c;
  --primary-soft: #e3f4ef;
  --accent: #f5a524;
  --accent-soft: #fff4df;
  --offer: #3b5bdb;
  --offer-soft: #e7ecff;
  --women: #c2185b;
  --women-soft: #fce4ec;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-faint: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f6f7f9;
  --danger: #dc2626;
  --success: #16a34a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--white { background: var(--surface); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--ink-muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.muted { color: var(--ink-muted); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 249, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-muted);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav__cta { margin-left: 8px; }
.nav__links a.nav__cta, .nav__links a.nav__cta:hover { color: #fff; background: var(--primary); padding: 8px 16px; }
.nav__links a.nav__cta:hover { background: var(--primary-dark); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 102, 0.28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--ink); box-shadow: var(--shadow); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; border-radius: 12px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------- hero */
.hero { padding: 64px 0 88px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(14, 124, 102, 0.16), transparent 65%); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -200px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.16), transparent 65%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: #8a5a00; font-weight: 700; font-size: 0.9rem; margin-bottom: 18px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } }
.hero h1 .hl { color: var(--primary); }
.hero__lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 560px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink-muted); font-weight: 600; font-size: 0.95rem; }
.hero__points li { display: flex; align-items: center; gap: 6px; }
.tick { color: var(--success); }

/* waitlist form */
.waitlist {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; box-shadow: var(--shadow); max-width: 560px;
}
.waitlist__row { display: flex; gap: 10px; }
.waitlist__row .field { flex: 1; }
.waitlist__note { margin: 10px 2px 0; font-size: 0.85rem; color: var(--ink-muted); }
.role-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; border: 0; padding: 0; }
.role-pills legend { font-size: 0.85rem; font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; width: 100%; padding: 0; }
.role-pills input { position: absolute; opacity: 0; pointer-events: none; }
.role-pills label {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); background: var(--bg);
}
.role-pills input:checked + label { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.role-pills input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink-muted); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.14); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.85rem; min-height: 1em; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: var(--primary-soft); color: var(--primary-dark); }
.form-status.is-error { display: block; background: #fee2e2; color: #991b1b; }
.hp { position: absolute; left: -5000px; }

/* phone mockups */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; background: var(--ink); padding: 10px;
  box-shadow: var(--shadow-lg); transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.phone img { border-radius: 26px; aspect-ratio: 540 / 1076; width: 100%; background: var(--bg); }
.phone--back { right: 230px; top: 50px; transform: rotate(-7deg); opacity: 0.96; }
.phone--front { right: 30px; top: 0; transform: rotate(4deg); }
.phones:hover .phone--back { transform: rotate(-9deg) translateX(-12px); }
.phones:hover .phone--front { transform: rotate(5deg) translateY(-6px); }
.chip-float {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
.chip-float--a { left: 0; top: 120px; }
.chip-float--b { right: 0; bottom: 40px; animation-delay: -2.5s; }
.chip-float .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------- stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 1.8rem; color: var(--primary); letter-spacing: -0.02em; }
.stat span { color: var(--ink-muted); font-size: 0.92rem; font-weight: 600; }

/* ---------------------------------------------------------- cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-muted); margin: 0; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.icon-box svg { width: 26px; height: 26px; }
.ib-teal { background: var(--primary-soft); color: var(--primary); }
.ib-amber { background: var(--accent-soft); color: #b77400; }
.ib-blue { background: var(--offer-soft); color: var(--offer); }
.ib-pink { background: var(--women-soft); color: var(--women); }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 24px; left: 28px;
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; transform: translateY(-50%);
}
.step h3 { margin-top: 12px; }

/* modes */
.mode { border-radius: 24px; padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.mode--share { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.mode--offer { background: linear-gradient(160deg, var(--offer-soft), var(--surface) 60%); }
.mode ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.mode li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--ink-muted); }
.mode li::before { content: "✓"; color: var(--success); font-weight: 800; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; }
.tag--amber { background: var(--accent-soft); color: #8a5a00; }
.tag--blue { background: var(--offer-soft); color: var(--offer); }

/* on the way route illustration */
.route-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.route-svg { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.route-svg .road { stroke: var(--line); stroke-width: 14; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-svg .shared { stroke: var(--primary); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.route-svg.is-visible .shared { animation: draw 2.2s 0.3s ease forwards; }
.route-svg .rest { stroke: var(--ink-faint); stroke-width: 4; fill: none; stroke-dasharray: 6 8; stroke-linecap: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend-list { list-style: none; padding: 0; margin: 20px 0 0; }
.legend-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink-muted); }
.legend-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; }
.calc__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.calc__result {
  background: var(--primary); color: #fff; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: center;
  background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 40%);
}
.calc__result .big { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.calc__result p { color: rgba(255, 255, 255, 0.86); margin: 6px 0 0; }
.calc__row { margin-bottom: 22px; }
.calc__row label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.calc__row output { color: var(--primary); }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 70px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-muted);
}
.seg button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

/* screenshots */
.shots { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.shot { width: 250px; text-align: center; }
.shot .phone { position: static; transform: none; margin: 0 auto 14px; width: 100%; }
.shot h3 { font-size: 1.05rem; margin-bottom: 4px; }
.shot p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* audiences */
.audience { display: flex; gap: 16px; align-items: flex-start; }
.audience .icon-box { flex: none; margin: 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-muted); }

/* cta band */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background-image: radial-gradient(circle at 100% 0%, rgba(14, 124, 102, 0.55), transparent 50%), radial-gradient(circle at 0% 100%, rgba(245, 165, 36, 0.25), transparent 45%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.cta-band .btn--primary { background: var(--accent); color: var(--ink); box-shadow: none; }
.cta-band .btn--primary:hover { background: #ffb940; color: var(--ink); }

/* page hero (inner pages) */
.page-hero { padding: 56px 0 40px; }
.page-hero p { color: var(--ink-muted); font-size: 1.15rem; max-width: 680px; }
.breadcrumb { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }

/* prose (legal) */
.prose { max-width: 780px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; color: var(--ink-muted); }
.prose p { color: var(--ink-muted); }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; color: #6b4600; font-size: 0.95rem; margin-bottom: 28px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.contact-card .field { margin-bottom: 16px; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.info-item .icon-box { margin: 0; flex: none; width: 44px; height: 44px; }
.info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-item p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.9rem; }

/* back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primary); color: #fff;
  box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 40;
  display: grid; place-items: center;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__grid, .route-demo, .calc, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .phones { height: 500px; max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none; box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { padding: 12px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 64px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .waitlist__row { flex-direction: column; }
  .phones { height: 430px; }
  .phone { width: 200px; border-radius: 28px; padding: 8px; }
  .phone img { border-radius: 22px; }
  .phone--back { right: auto; left: 4%; top: 40px; }
  .phone--front { right: 4%; }
  .chip-float--a { top: 10px; left: auto; right: 0; }
  .chip-float--b { left: 0; right: auto; bottom: 10px; }
  .prose, .contact-card { padding: 24px; }
  .mode, .calc__panel, .calc__result { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .route-svg .shared { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------- ride journey (how it works) */
.journey { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.journey__tabs { display: grid; gap: 10px; }
.journey__tab {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.journey__tab strong { display: block; font-size: 1rem; }
.journey__tab small { color: var(--ink-muted); font-size: 0.86rem; }
.journey__tab:hover { transform: translateX(3px); }
.journey__n {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800;
  background: var(--bg); color: var(--ink-muted); transition: background 0.2s, color 0.2s;
}
.journey__tab[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 8px 22px rgba(14, 124, 102, 0.14); }
.journey__tab[aria-selected="true"] .journey__n { background: var(--primary); color: #fff; }
.journey__stage {
  background: linear-gradient(160deg, var(--primary-soft), var(--surface) 65%); border: 1px solid var(--line);
  border-radius: 24px; padding: 32px; display: flex; align-items: center;
}
.journey__panel { display: grid; gap: 22px; width: 100%; }
.journey__panel[hidden] { display: none; }
.journey__panel.is-active { animation: panel-in 0.35s ease; }
.journey__panel p { color: var(--ink-muted); margin: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Without JavaScript every step is shown, one under the other. */
.no-js .journey { grid-template-columns: 1fr; }
.no-js .journey__tabs { display: none; }
.no-js .journey__stage { display: grid; gap: 36px; }
.no-js .journey__panel[hidden] { display: grid; }

/* small "app screen" sketches inside the journey */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
  max-width: 380px; display: grid; gap: 12px;
}
.mock small { color: var(--ink-muted); font-size: 0.8rem; display: block; }
.mock b { font-size: 0.98rem; }
.mock__row, .mock__person, .mock__callbar { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.mock__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.mock__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.mock__btn { background: var(--primary); color: #fff; font-weight: 700; text-align: center; padding: 12px; border-radius: 14px; }
.mock__av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
.mock__person div { flex: 1; min-width: 0; }
.mock__price { font-weight: 800; color: var(--primary); }
.mock__note { text-align: center; color: var(--ink-faint) !important; }
.mock__bubble { background: var(--bg); padding: 10px 14px; border-radius: 16px 16px 16px 4px; max-width: 85%; font-size: 0.95rem; }
.mock__bubble--me { background: var(--primary); color: #fff; border-radius: 16px 16px 4px 16px; justify-self: end; }
.mock__mapsvg { width: 100%; height: auto; background: var(--bg); border-radius: 14px; }
.mock__trail { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s ease forwards infinite; }
.mock__ping { transform-origin: 130px 80px; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }
.mock__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-muted); }
.mock__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.mock__code { display: flex; gap: 10px; justify-content: center; }
.mock__code span { width: 52px; height: 62px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; }
.mock__ok, .mock__reward { display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 700; color: var(--success); background: #e8f8ee; padding: 10px; border-radius: 12px; }
.mock__reward { color: #8a5a00; background: var(--accent-soft); }
.mock__stars { color: var(--accent); font-size: 1.6rem; letter-spacing: 6px; text-align: center; }

/* ---------------------------------------------------------- refer & earn */
.rewards { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.rsteps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.rsteps li { display: flex; gap: 14px; align-items: flex-start; }
.rsteps__n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: #8a5a00; display: grid; place-items: center; font-weight: 800; }
.rsteps strong { display: block; }
.rsteps span { color: var(--ink-muted); font-size: 0.96rem; }
.rsteps .rsteps__n { color: #8a5a00; }
.rewards__fine { margin-top: 22px; font-size: 0.88rem; color: var(--ink-muted); }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket__top {
  background: var(--primary); color: #fff; padding: 28px; text-align: center;
  background-image: radial-gradient(circle at 90% 0%, rgba(245, 165, 36, 0.45), transparent 45%);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
}
.ticket__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ticket__code { font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 800; letter-spacing: 0.18em; margin: 8px 0 16px; }
.ticket__copy {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 46px;
  background: var(--accent); color: var(--ink);
}
.ticket__copy:hover { background: #ffb940; }
.ticket__feed { list-style: none; margin: 0; padding: 18px 22px 22px; display: grid; gap: 10px; }
.ticket__item {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg);
  color: var(--ink-muted); font-weight: 600; transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s, color 0.3s;
}
.ticket.is-playing .ticket__item { opacity: 0.35; transform: translateX(-8px); }
.ticket.is-playing .ticket__item.is-done { opacity: 1; transform: none; background: var(--primary-soft); color: var(--primary-dark); }
.ticket.is-playing .ticket__item--win.is-done { background: var(--accent-soft); color: #8a5a00; }

@media (max-width: 980px) {
  .journey, .rewards { grid-template-columns: 1fr; }
  .journey__tabs { grid-template-columns: 1fr 1fr; }
  .journey__tab small { display: none; }
}
@media (max-width: 640px) {
  .journey__tabs { grid-template-columns: 1fr; }
  .journey__tab { padding: 10px 12px; }
  .journey__stage { padding: 20px; }
  .mock__code span { width: 44px; height: 54px; }
}
