/* Odomira website. "Tarmac & Road-line" (docs/design_system.md): asphalt
   graphite and concrete, one signal color (Road Yellow), EV cyan as tertiary,
   Barlow / Barlow Condensed numerals + IBM Plex Sans. Self-hosted fonts, no
   third-party requests (CSP default-src 'none'). Logical properties for RTL. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans.woff") format("woff"); font-weight: 100 700; font-display: swap; }

:root {
  --asphalt: #2D3237;
  --asphalt-deep: #1F2328;
  --tarmac: #111315;
  --yellow: #FFC917;
  --yellow-bright: #FFD23F;
  --paint: #FFE08A;
  --on-paint: #241A00;
  --on-paint-2: #4A3B00;
  --line-white: #F2F2EE;
  --steel: #C4C7CC;

  --bg: #F6F6F2;
  --surface: #FFFFFF;
  --surface-2: #F0F0EC;
  --surface-3: #E4E4E0;
  --ink: #1A1C1E;
  --ink-2: #44484E;
  --outline: #74787E;
  --outline-2: #C4C7CC;
  --link: #2D3237;
  --accent-ink: #7A5900;
  --ev: #00687A;
  --ev-soft: #B4EBF7;
  --error: #BA1A1A;
  --success: #2E6A2A;

  --f-display: "Barlow", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --f-num: "Barlow Condensed", "Barlow", "IBM Plex Sans", system-ui, sans-serif;
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1A1C1F;
    --surface-2: #1E2023;
    --surface-3: #282A2D;
    --ink: #E3E3E0;
    --ink-2: #C4C7CC;
    --outline: #8E9198;
    --outline-2: #44484E;
    --link: #FFD23F;
    --accent-ink: #FFD23F;
    --ev: #5BD5EE;
    --ev-soft: #004E5C;
    --error: #FFB4AB;
    --success: #8FD88A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-ui); }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--ink-2); }
.mt { margin-top: 40px; }

.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--yellow); color: var(--asphalt-deep); padding: 8px 16px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; top: 8px; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--asphalt-deep); color: var(--line-white); position: sticky; top: 0; z-index: 5; border-bottom: 3px solid var(--yellow); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--line-white); text-decoration: none; font: 600 1.35rem/1 var(--f-display); letter-spacing: .01em; }
.brand img { border-radius: 8px; }
.topnav { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { color: var(--steel); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.topnav a:hover, .topnav a[aria-current] { color: var(--asphalt-deep); background: var(--yellow); }
@media (max-width: 640px) { .topnav .opt { display: none; } .topnav a { padding: 8px 9px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 201, 23, .16), transparent 70%), linear-gradient(180deg, #2A3038 0%, var(--asphalt-deep) 55%, #1B1E22 100%); color: var(--line-white); padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #FFFFFF; }
.eyebrow { display: inline-block; font: 600 .85rem/1.2 var(--f-ui); letter-spacing: .06em; color: var(--yellow-bright); border: 1.5px solid rgba(255, 210, 63, .55); border-radius: var(--r-sm); padding: 6px 12px; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: #D7D9DC; max-width: 38em; }
.lead strong { color: #FFFFFF; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.badge img { display: block; width: 200px; height: auto; }
.text-link { color: var(--yellow-bright); font-weight: 600; }
.badge-note { font-size: .85rem; color: #A9AEB4; margin-top: 10px; }
.roadline { position: absolute; inset-inline: 0; bottom: 26px; height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 48px, transparent 48px 80px); opacity: .9; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: var(--yellow); }

.hero-art { display: block; width: 100%; max-width: 400px; margin-inline: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); }
.hero-art text { font-family: var(--f-ui); }
.hero-art .gauge { fill: var(--paint); }
.hero-art .g-label { font-size: 17px; font-weight: 600; fill: var(--on-paint-2); }
.hero-art .g-num { font: 600 96px/1 var(--f-num); fill: var(--on-paint); font-variant-numeric: tabular-nums lining-nums; }
.hero-art .g-unit { font-size: 19px; font-weight: 600; fill: var(--on-paint-2); }
.hero-art .g-spark { fill: none; stroke: var(--asphalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hero-art .g-dot { fill: var(--asphalt); stroke: var(--paint); stroke-width: 3; }
.hero-art .g-basis { font-size: 14px; fill: var(--on-paint-2); }
.hero-art .svc { fill: #282A2D; stroke: #3C4046; }
.hero-art .svc-ico { fill: none; stroke: var(--yellow-bright); stroke-width: 2.4; stroke-linecap: square; }
.hero-art .svc-title { font-size: 19px; font-weight: 600; fill: #F1F0EC; }
.hero-art .svc-due { font-size: 15px; fill: #C4C7CC; }
.hero-art .track { stroke: #5C6066; stroke-width: 10; stroke-dasharray: 14 9; }
.hero-art .fill { stroke: var(--yellow-bright); stroke-width: 10; stroke-linecap: round; }
[dir="rtl"] .hero-art { direction: ltr; }

/* ---------------------------------------------------------------- bands */
.band { padding: 80px 0; }
.band.tint { background: var(--surface-2); }
.band.dark { background: var(--asphalt-deep); color: var(--line-white); }
.band.dark .sec-lead, .band.dark .note { color: #D7D9DC; }
.band.dark a { color: var(--yellow-bright); }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 46em; margin-bottom: 28px; }
.note { font-size: .95rem; color: var(--ink-2); margin-top: 16px; }

/* Odometer digit windows as section counters. */
.odo { display: inline-flex; gap: 3px; padding: 4px; border-radius: var(--r-sm); background: var(--asphalt-deep); direction: ltr; flex: none; }
.odo span { display: inline-block; width: 26px; height: 36px; border-radius: 4px; background: #2F3439; color: var(--line-white); font: 600 1.45rem/36px var(--f-num); text-align: center; font-variant-numeric: tabular-nums; }
.odo span:last-child { background: var(--yellow); color: var(--asphalt-deep); }

.icon { display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--asphalt); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--yellow); stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; }
.band.dark .icon { background: var(--yellow); }
.band.dark .icon svg { stroke: var(--asphalt-deep); }

/* Promises along a dashed road spine. */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.route::before { content: ""; position: absolute; inset-inline-start: 21px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(180deg, var(--outline) 0 14px, transparent 14px 24px); }
.route li { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.route h3 { margin: 8px 0 4px; }
.route p { margin: 0; color: var(--ink-2); max-width: 46em; }

/* Steps. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--outline-2); }
.step-n { display: block; font: 600 3.4rem/1 var(--f-num); color: var(--accent-ink); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Full-to-full diagram. */
.math-art { background: var(--surface); border: 1px solid var(--outline-2); border-radius: var(--r-xl); padding: 16px 20px; margin-bottom: 28px; }
.tanks { display: block; width: 100%; max-width: 760px; margin: 0 auto; }
[dir="rtl"] .tanks { direction: ltr; }
.tanks text { font: 600 17px var(--f-ui); fill: var(--ink); text-anchor: middle; }
.tanks .t-road { stroke: var(--asphalt); stroke-width: 26; }
.tanks .t-dash { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 18 12; }
.tanks .t-full circle { fill: var(--paint); stroke: var(--asphalt-deep); stroke-width: 3; }
.tanks .t-part circle { fill: var(--surface); stroke: var(--asphalt-deep); stroke-width: 3; }
.tanks .t-part path { fill: var(--paint); }
.tanks .t-span { fill: none; stroke: var(--ev); stroke-width: 3; }
.tanks .t-span-l { fill: var(--ev); font-size: 16px; }
.math-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.math-list li { padding-inline-start: 22px; position: relative; color: var(--ink-2); }
.math-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 4px; background: var(--yellow); }
.math-list strong { color: var(--ink); }

/* Features. */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border-radius: var(--r-lg); padding: 22px; border-top: 4px solid var(--asphalt); }
.feat.ev { border-top-color: var(--ev); }
.feat.ev .icon { background: var(--ev); }
.feat.ev .icon svg { stroke: #FFFFFF; }
.feat h3 { display: flex; align-items: center; gap: 12px; }
.dash { list-style: none; margin: 0; padding: 0; }
.dash li { position: relative; padding-inline-start: 20px; margin: 6px 0; color: var(--ink-2); }
.dash li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 10px; height: 3px; background: var(--outline); }
.band.dark .dash li { color: #D7D9DC; }
.band.dark .dash li::before { background: var(--yellow); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: rgba(255, 255, 255, .05); border: 1px solid #3C4046; border-radius: var(--r-lg); padding: 24px; }
.stack { display: grid; gap: 16px; align-content: start; }

/* Pro. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--outline-2); vertical-align: top; }
thead th { font: 600 .9rem var(--f-ui); color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.compare td { text-align: center; width: 96px; }
.compare tbody th { font-weight: 400; }
.cell-t { font: 600 1.1rem var(--f-num); font-variant-numeric: tabular-nums; }
.mark { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; position: relative; }
.mark.yes { background: var(--asphalt); }
.mark.yes::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mark.no { border: 2px solid var(--outline-2); }
.mark.no::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: var(--outline); }
@media (prefers-color-scheme: dark) { .mark.yes { background: var(--yellow-bright); } .mark.yes::after { border-color: var(--asphalt-deep); } }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plans li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; background: var(--surface); border: 1px solid var(--outline-2); border-radius: var(--r-xl); padding: 18px 20px; }
.plans strong { font: 600 1.3rem var(--f-display); grid-column: 2; }
.plans span:not(.plan-tag) { grid-column: 2; color: var(--ink-2); }
.plan-tag { grid-row: 1 / span 2; align-self: center; background: var(--paint); color: var(--on-paint); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.plans li + li .plan-tag { background: var(--surface-3); color: var(--ink); }
.callout { background: var(--surface); border-radius: var(--r-lg); padding: 22px; border-inline-start: 6px solid var(--asphalt); }
.callout.lifetime { background: var(--paint); color: var(--on-paint); border-inline-start-color: var(--yellow); }
.callout.lifetime a { color: var(--on-paint); }
.callout p { margin: 0; }
@media (prefers-color-scheme: dark) { .callout { border-inline-start-color: var(--steel); } }

/* FAQ. */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--outline-2); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
[dir="rtl"] .faq summary::before { transform: rotate(135deg); }
.faq[open] summary::before { transform: rotate(45deg); }
.faq p { padding: 0 20px 18px 42px; margin: 0; color: var(--ink-2); }
[dir="rtl"] .faq p { padding: 0 42px 18px 20px; }
.faq:target { outline: 3px solid var(--yellow); }

.final { background: linear-gradient(180deg, var(--asphalt) 0%, var(--asphalt-deep) 100%); color: var(--line-white); border-top: 6px dashed var(--yellow); }
.final .sec-lead { color: #D7D9DC; margin-inline: auto; }
.final .badge { display: inline-block; }

/* ---------------------------------------------------------------- legal + support pages */
.page { padding: 48px 0 72px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); padding-bottom: 14px; border-bottom: 4px solid var(--yellow); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.5em; scroll-margin-top: 80px; }
.doc ul, .doc ol { padding-inline-start: 1.4em; }
.doc li { margin: .35em 0; }
.doc table { margin: 1em 0 1.5em; font-size: .92rem; }
.doc td, .doc th { border: 1px solid var(--outline-2); }
.doc thead th { background: var(--surface-2); border-bottom: 2px solid var(--ink); }
.doc code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.meta { color: var(--ink-2); font-size: .95rem; }
.fallback { max-width: 820px; margin: 0 auto 24px; background: var(--paint); color: var(--on-paint); padding: 12px 16px; border-radius: var(--r-sm); }
.toc { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 20px; margin: 0 0 28px; border-inline-start: 6px solid var(--asphalt); }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 10px 0 0; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; font-size: .95rem; }
.button { display: inline-block; background: var(--asphalt); color: #FFFFFF; text-decoration: none; padding: 13px 26px; border-radius: 999px; font-weight: 600; }
.button:hover { background: var(--asphalt-deep); }
@media (prefers-color-scheme: dark) { .button { background: var(--yellow-bright); color: #2B2100; } .button:hover { background: var(--yellow); } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--tarmac); color: #C4C7CC; padding: 48px 0 40px; border-top: 3px solid var(--yellow); }
.foot a { color: var(--line-white); }
.foot .small { color: #A9AEB4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot-brand { font: 600 1.5rem var(--f-display); color: var(--line-white); margin-bottom: 8px; }
.foot-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.langs summary { cursor: pointer; color: var(--line-white); }
.langs ul { list-style: none; padding: 0; margin: 12px 0 0; columns: 2; column-gap: 20px; font-size: .9rem; }
.langs li { margin: 4px 0; }
.langs a[aria-current] { color: var(--yellow); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .band { padding: 56px 0; }
  .hero { padding: 40px 0 76px; }
  .steps, .feat-grid, .split, .math-list, .foot-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .compare td { width: 64px; }
  .odo span { width: 22px; height: 32px; line-height: 32px; font-size: 1.25rem; }
}
@media print {
  .topbar, .foot, .skip, .toc { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
