/* رواق (Rawaq) — public site.
   Colors are the app's own tokens (mobile/src/theme/brand.json): light =
   lightColors, dark = darkColors. System preference by default; the header
   toggle overrides and persists (data-theme on <html>). Arabic/RTL first.
   Fonts match the app: Tajawal for Arabic, Poppins for Latin and numerals. */

:root {
  --primary: #232691;
  --primary-deep: #161358;
  --accent: #3A33CF;
  --accent-soft: #A6A2F5;
  --ink: #0A0A1A;

  --ground: #F5F5F7;            /* neutrals.n0 */
  --card: #FFFFFF;
  --text: #1A1B21;              /* neutrals.n7 */
  --text-2: #55555C;            /* neutrals.n5 */
  --grey: #A6A5AB;              /* neutrals.n3 */
  --line: rgba(10, 10, 26, 0.10);
  --line-strong: rgba(10, 10, 26, 0.20);
  --tint: rgba(35, 38, 145, 0.06);
  --tint-strong: rgba(35, 38, 145, 0.12);
  --hi: var(--primary);         /* the one highlight color per theme */
  --on-hi: #FFFFFF;
  --danger: #B3261E;            /* status.rejected */
  --danger-bg: rgba(179, 38, 30, 0.08);
  --success: #0F7A55;           /* status.accepted */
  --success-bg: rgba(15, 122, 85, 0.08);
  --shadow: 0 6px 18px rgba(10, 10, 26, 0.05);
  --shadow-raised: 0 18px 44px rgba(10, 10, 26, 0.12);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --ar: 'Tajawal', system-ui, sans-serif;
  --lat: 'Poppins', system-ui, sans-serif;
}

[data-theme="dark"] {
  --ground: #1A1B21;            /* neutrals.n7 */
  --card: #25262B;              /* darkCard */
  --text: #E8E8EC;              /* neutrals.n1 */
  --text-2: #A6A5AB;            /* neutrals.n3 */
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --tint: rgba(166, 162, 245, 0.08);
  --tint-strong: rgba(166, 162, 245, 0.18);
  --hi: var(--accent-soft);
  --on-hi: #0A0A1A;
  --danger: #F2A099;
  --danger-bg: rgba(179, 38, 30, 0.20);
  --success: #5BD3A4;
  --success-bg: rgba(15, 122, 85, 0.20);
  --shadow: none;
  --shadow-raised: none;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground); color: var(--text);
  font-family: var(--ar); font-size: 17px; line-height: 1.75;
  min-height: 100vh; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s, color 0.25s;
}
[dir="ltr"] body { font-family: var(--lat); font-size: 16px; line-height: 1.65; }
.num, .lat { font-family: var(--lat); font-variant-numeric: tabular-nums; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] :focus-visible { outline-color: var(--accent-soft); }
::selection { background: var(--accent); color: #fff; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--primary-deep); }
[data-theme="dark"] .brand { color: #FFFFFF; }
/* Explicit box: an inline SVG with width:auto otherwise falls back to the
   300px replaced-element default and overflows the page edge. */
.brand .logo { height: 40px; aspect-ratio: 1482 / 656; width: auto; display: block; }
.controls { display: flex; gap: 8px; align-items: center; }

.pill {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.4;
  transition: background-color 0.15s, border-color 0.15s;
}
.pill:hover { border-color: var(--line-strong); background: var(--tint); }
.pill.icon { padding: 8px 12px; font-size: 16px; line-height: 1; }
.pill.on { background: var(--hi); color: var(--on-hi); border-color: transparent; }

/* Eyebrow: a small square in the highlight color, then the label. In
   English it is spaced small caps; in Arabic it stays a plain label. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--hi); border-radius: 2px; flex: none; }
[dir="ltr"] .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; padding: 15px 28px; font: inherit; font-size: 16px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  line-height: 1.3; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { color: #FFFFFF; background: var(--primary); }
.btn.primary:hover { background: var(--accent); }
[data-theme="dark"] .btn.primary { background: var(--accent); }
[data-theme="dark"] .btn.primary:hover { background: var(--primary); }
.btn.ghost { color: var(--text); background: var(--card); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--tint); }
.btn.danger { color: #FFFFFF; background: #B3261E; }
.btn.danger:hover { background: #8C1C16; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center;
  padding: 40px 0 56px; min-height: min(760px, calc(100vh - 96px));
}
/* Two words, two lines, in either language. */
.hero h1 {
  font-size: clamp(60px, 10vw, 128px); line-height: 1.08; font-weight: 800;
  margin: 18px 0 22px; letter-spacing: -0.01em;
}
.hero h1 span { display: block; }
[dir="ltr"] .hero h1 { font-size: clamp(48px, 7.6vw, 96px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.hero h1 .l2 { color: var(--hi); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Load sequence: eyebrow, the two words, lead, buttons — then the dial. */
.hero > div > .eyebrow, .hero h1 span, .hero .lead, .hero .cta { opacity: 0; transform: translateY(16px); }
.loaded .hero > div > .eyebrow, .loaded .hero h1 span, .loaded .hero .lead, .loaded .hero .cta {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.loaded .hero h1 span:first-child { animation-delay: 0.08s; }
.loaded .hero h1 .l2 { animation-delay: 0.2s; }
.loaded .hero .lead { animation-delay: 0.34s; }
.loaded .hero .cta { animation-delay: 0.44s; }

/* The day dial — the one raised element on the page. */
.dial {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px 24px 20px; box-shadow: var(--shadow-raised);
}
.dial-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dial-head > div { display: grid; gap: 4px; }
.dial-day { font-size: 13px; color: var(--text-2); }
.dial-clock { font-size: 34px; font-weight: 600; line-height: 1; color: var(--text); direction: ltr; }
.rail { list-style: none; position: relative; display: grid; gap: 6px; }
.seg {
  position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 14px 14px 12px; border-radius: var(--r-md);
  transition: background-color 0.3s;
}
/* Each period owns a small dot centred on its own track; the running
   period's track and dot light up. */
.seg-bar { position: relative; width: 18px; height: 100%; min-height: 44px; }
.seg-bar::before {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 8px; width: 2px; border-radius: 1px;
  background: var(--line-strong); transition: background-color 0.3s;
}
.seg-bar::after {
  content: ""; position: absolute; inset-inline-start: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  box-sizing: border-box; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.seg-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.seg-time { font-size: 15px; color: var(--text-2); direction: ltr; }
.seg-tag { grid-column: 2 / -1; font-size: 13px; color: var(--hi); font-weight: 700; display: none; }
.seg.now { background: var(--tint); }
.seg.now .seg-bar::before { background: var(--hi); }
.seg.now .seg-bar::after { background: var(--hi); border-color: var(--card); box-shadow: 0 0 0 1.5px var(--hi); }
.seg.sel .seg-bar::after { border-color: var(--hi); }
.seg.now .seg-tag { display: block; }
.dial-full {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px; padding: 12px 14px; border-top: 1px dashed var(--line-strong);
}
.dial-full .seg-name { font-size: 17px; }
.dial-full .seg-time { font-size: 14px; direction: inherit; }
.dial-note { margin-top: 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.dial-status { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--hi); min-height: 1.5em; }
/* Tapping a period shows its example price for today. */
.seg, .seg-full { cursor: pointer; }
.seg-full { border-radius: var(--r-md); }
.seg.sel, .seg-full.sel { box-shadow: inset 0 0 0 2px var(--hi); }
.dial-price {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--tint);
  font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 52px;
}
.dial-price .price { font-size: 20px; }
.dial-price em { font-style: normal; color: var(--text-2); font-size: 13px; }

/* Page-load sequence: the rows rise in turn, dots and all. */
.seg { opacity: 0; transform: translateY(10px); }
.ready .seg { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ready .seg:nth-child(2) { animation-delay: 0.12s; }
.ready .seg:nth-child(3) { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.2; font-weight: 800; margin: 12px 0 12px; }
[dir="ltr"] .sec-head h2 { font-weight: 700; letter-spacing: -0.02em; }
.sec-head p { color: var(--text-2); font-size: 17px; }

/* The booking timeline. Nodes are the states; the connectors carry the
   real durations between them. */
.line { list-style: none; display: flex; align-items: stretch; gap: 0; }
.node { flex: 1 1 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 18px; box-shadow: var(--shadow); }
.node b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.node b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hi); margin-inline-end: 10px; vertical-align: 2px; }
.node span { font-size: 15px; color: var(--text-2); line-height: 1.65; display: block; }
[dir="ltr"] .gap { flex-basis: 116px; }
.gap { flex: 0 0 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 10px; position: relative; }
.gap::before { content: ""; position: absolute; top: 30px; inset-inline: 0; height: 2px; background: var(--line-strong); }
.gap i { font-style: normal; font-weight: 600; font-size: 22px; color: var(--hi); background: var(--ground); padding: 0 8px; position: relative; line-height: 1.2; margin-top: 18px; }
.gap span { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }

/* Owners: the example price sheet. Fils digits sit smaller, like the app. */
.owners { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 14px 18px; text-align: start; }
.sheet thead th { font-size: 13px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--tint); }
[dir="ltr"] .sheet thead th { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.sheet tbody tr + tr td { border-top: 1px solid var(--line); }
.sheet td:first-child { font-weight: 700; font-size: 17px; }
.sheet td.wk { color: var(--hi); }
.price { white-space: nowrap; font-family: var(--lat); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; direction: ltr; display: inline-block; }
.price .unit { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); margin-inline-start: 2px; }
[lang="ar"] .price .unit { font-family: var(--ar); font-size: 13px; }
.price small { font-size: 0.68em; font-weight: 500; color: var(--text-2); }
.sheet-note { padding: 12px 18px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); }
.facts { list-style: none; display: grid; gap: 14px; margin-top: 4px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 17px; }
.facts li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-strong); display: block; margin-top: 3px;
  background-image: linear-gradient(var(--hi), var(--hi)), linear-gradient(var(--hi), var(--hi)); background-repeat: no-repeat;
  background-size: 8px 2px, 2px 8px; background-position: center; }
.facts li b { display: block; font-weight: 700; }
.facts li span { color: var(--text-2); font-size: 15px; }

/* Trust: four flat statements. */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust div { position: relative; padding-top: 14px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.trust div p { margin: 0; }
/* The rule draws in, then the statement follows it. */
.trust div::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s);
}
[dir="rtl"] .trust div::before { transform-origin: right; }
.trust div p { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s; transition-delay: calc(var(--d, 0s) + 0.2s); }
.trust.in div::before { transform: scaleX(1); }
.trust.in div p { opacity: 1; transform: none; }
.trust div a { color: var(--hi); text-decoration: underline; text-underline-offset: 4px; }

/* Download band. */
.band {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 44px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  box-shadow: var(--shadow);
}
.band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; }
.band p { color: var(--text-2); margin-top: 8px; max-width: 560px; }
.band .links { display: flex; gap: 10px; flex-wrap: wrap; }

footer.site {
  margin-top: 72px; padding: 26px 0 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  color: var(--grey); font-size: 14px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* -------------------------------------------------------------- portal */
.page-head { padding: 30px 0 10px; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.15; margin-top: 12px; }
[dir="ltr"] .page-head h1 { font-weight: 700; letter-spacing: -0.03em; }
.page-head p { color: var(--text-2); margin-top: 8px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; margin-top: 18px; box-shadow: var(--shadow);
}
.panel.danger-zone { border-color: rgba(179, 38, 30, 0.45); }
.panel.danger-zone h3 { color: var(--danger); font-size: 19px; margin-bottom: 8px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.field input {
  width: 100%; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--ground); color: var(--text);
  padding: 13px 16px; font: inherit; font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.25s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint-strong); }
.field input[type="email"], .field input.lat { direction: ltr; text-align: start; font-family: var(--lat); }

.error-box, .ok-box { border-radius: var(--r-md); padding: 12px 16px; font-size: 14.5px; margin-bottom: 16px; }
.error-box { background: var(--danger-bg); border: 1px solid rgba(179, 38, 30, 0.45); color: var(--danger); }
.ok-box { background: var(--success-bg); border: 1px solid rgba(15, 122, 85, 0.45); color: var(--success); }

.spinner {
  width: 20px; height: 20px; border-radius: 50%; display: inline-block;
  border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: var(--on-hi); background: var(--hi); flex: none;
}
.acc-name { font-size: 20px; font-weight: 800; line-height: 1.3; }
.role-chip {
  display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700;
  background: var(--tint-strong); color: var(--hi); margin-top: 4px;
}
.muted { color: var(--text-2); font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

.farewell { text-align: center; padding: 30px 10px; }
.farewell .mark {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 40px; background: var(--success-bg); border: 1px solid rgba(15, 122, 85, 0.45);
}

/* ---------------------------------------------------- legal (generated) */
.legal-switch { display: inline-flex; gap: 6px; }
section.lang { padding: 28px 0 8px; }
section.lang + section.lang { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 48px; }
section.lang h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-top: 10px; }
section.lang[dir="ltr"] { font-family: var(--lat); }
section.lang[dir="ltr"] h1 { font-weight: 700; letter-spacing: -0.03em; }
.updated { color: var(--grey); font-size: 13px; margin: 8px 0 26px; }
article { max-width: 720px; }
article p { margin-bottom: 16px; white-space: pre-line; color: var(--text-2); font-size: 16.5px; line-height: 1.9; }

/* ---------------------------------------------------------------- motion */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.dial { will-change: transform; }

/* The timeline runs when it comes into view: a node, its connector draws,
   a dot crosses it, the next node — in the order a booking actually moves. */
.line .node { opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.6s; transition-delay: var(--d, 0s); }
.line.in .node { opacity: 1; transform: none; }
.gap::before { transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; transition-delay: var(--d, 0s); }
[dir="rtl"] .gap::before { transform-origin: right; }
.line.in .gap::before { transform: scaleX(1); }
.gap i, .gap span { opacity: 0; transition: opacity 0.4s; transition-delay: calc(var(--d, 0s) + 0.3s); }
.line.in .gap i, .line.in .gap span { opacity: 1; }
.gap::after {
  content: ""; position: absolute; top: 26px; inset-inline-start: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--hi); opacity: 0;
}
.line.in .gap::after { animation: runner 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes runner { 0% { inset-inline-start: 0; opacity: 1; } 85% { opacity: 1; } 100% { inset-inline-start: calc(100% - 10px); opacity: 0; } }
@keyframes runner-v { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }

.sheet tbody tr, .facts li { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s; transition-delay: var(--d, 0s); }
.owners.in .sheet tbody tr, .owners.in .facts li { opacity: 1; transform: none; }

/* A slow ribbon of the twelve governorates — where the farms are. */
.ribbon { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 80s linear infinite; }
[dir="rtl"] .ribbon-track { animation-name: ribbon-rtl; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span {
  display: inline-flex; align-items: center; gap: 24px; padding: 0 12px; white-space: nowrap;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.4; color: var(--text);
}
[dir="ltr"] .ribbon span { font-weight: 700; letter-spacing: -0.01em; }
.ribbon span::after { content: ""; width: 10px; height: 10px; background: var(--hi); border-radius: 2px; flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes ribbon-rtl { to { transform: translateX(50%); } }

/* The page as a day: a fixed ruler on wide screens whose marker rides the
   scroll position from morning (top) to night (bottom). */
.ruler { position: fixed; inset-inline-start: 26px; top: 120px; bottom: 80px; width: 72px; z-index: 5; display: none; pointer-events: none; }
@media (min-width: 1320px) { .ruler { display: block; } }
.ruler-track { position: absolute; inset-inline-start: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ruler-track::before {
  content: ""; position: absolute; inset-inline-start: -3px; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 5.5556%);
}
.ruler-label {
  position: absolute; top: var(--at); inset-inline-start: 18px; transform: translateY(-50%);
  font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: color 0.3s;
}
.ruler-label.on { color: var(--hi); }
.ruler-mark {
  position: absolute; top: calc(var(--p, 0) * 100%); inset-inline-start: -5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px var(--ground); transition: top 0.12s linear;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 24px; }
  .hero h1 { font-size: clamp(56px, 15vw, 96px); }
  [dir="ltr"] .hero h1 { font-size: clamp(46px, 13.5vw, 80px); }
  .owners { grid-template-columns: 1fr; gap: 32px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
}
/* Below 1000px the horizontal timeline squeezes each step into a few words
   per line, so it turns vertical there, with the same run-through. */
@media (max-width: 1000px) {
  .line { flex-direction: column; }
  .gap { flex-basis: auto; flex-direction: row; gap: 12px; padding: 14px 0; justify-content: flex-start; }
  .gap::before { inset-inline: auto; inset-inline-start: 24px; top: 0; bottom: 0; width: 2px; height: auto; }
  .gap i { margin: 0; margin-inline-start: 12px; }
  .gap span { margin: 0; text-align: start; }
  .gap::before { transform: scaleY(0); transform-origin: top; }
  .line.in .gap::before { transform: scaleY(1); }
  .gap::after { top: 0; inset-inline-start: 20px; }
  .line.in .gap::after { animation-name: runner-v; }
}
@media (max-width: 760px) {
  section.block { padding: 52px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand .logo { height: 34px; }
  .trust { grid-template-columns: 1fr; }
  .band { padding: 30px 22px; }
  .dial { padding: 20px 18px 16px; }
  .seg-name { font-size: 18px; }
  .dial-clock { font-size: 28px; }
}
@media (max-width: 420px) {
  .sheet th, .sheet td { padding: 12px 10px; }
  .sheet td:first-child { font-size: 15px; }
  .price { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg, .ready .seg { animation: none; opacity: 1; transform: none; }
  .seg-bar::before, .seg-bar::after { transition: none; }
  .btn, .pill, .seg, .seg-bar { transition: none; }
  .reveal, .line .node, .gap::before, .gap i, .gap span, .sheet tbody tr, .facts li, .trust div::before, .trust div p,
  .hero > div > .eyebrow, .hero h1 span, .hero .lead, .hero .cta { opacity: 1; transform: none; transition: none; animation: none; }
  .gap::after { display: none; }
  .ribbon-track { animation: none; }
  .ruler-mark, .ruler-label { transition: none; }
}
