/* @agent-directive — Design system for the PUBLIC landing. Token-driven, dark-first, system
   fonts only, mobile-first from 320px. The /*__THEMES__* / anchor below is replaced at build
   time with the REAL guest-UI theme tokens extracted from rental/public/app.css — never type
   a product colour in this file. This stylesheet must never hide content: GSAP hides and
   reveals at runtime, gated on prefers-reduced-motion; with no JS the page is complete.
   DO NOT REMOVE. */

:root {
  --bg: #08090a;
  --fg: #f4f5f6;
  --dim: #8b9096;
  --line: #24282c;
  --card: #131619;
  --accent: #e8fe5a;
  --accent-ink: #0b0d05;
  --warn: #ffc14d;
  --bad: #ff7a6a;
  --r: 16px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1140px;
  --f-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* No scroll-behavior:smooth — it also animates PROGRAMMATIC scrolls, which fights
   ScrollTrigger's own scrub and makes scripted navigation land mid-flight. GSAP owns
   the motion language on this page. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(18px, 4.5vw, 40px);
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 620;
  text-decoration: none;
  transform: translateY(-64px);
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: none; }

a { color: var(--fg); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Scroll progress — width is animated by GSAP via CSSOM; at rest it is simply invisible. */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 15;
  pointer-events: none;
}
.progress-i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------------------------------------------------------------------- top */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.mark {
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

/* Language toggle — the guest UI's segmented control, as plain links. */
.lang {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.lang::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--fg);
  opacity: 0.11;
  transform: translateX(0);
  transition: transform 0.28s var(--ease);
}
.lang[data-active="en"]::before { transform: translateX(100%); }
.lang-b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lang-b[aria-current="page"] { color: var(--fg); }
.lang-b:focus-visible { border-radius: 999px; }

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  padding-block: clamp(48px, 9vw, 120px) clamp(40px, 7vw, 96px);
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-size: clamp(2.35rem, 9.5vw, 6.2rem);
  line-height: 1.02;
  font-weight: 660;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.ln { display: block; overflow: hidden; }
.ln-in { display: block; }
.hero .lede {
  margin: 0;
  max-width: 34em;
  color: var(--dim);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 28px);
  margin: 0;
  padding: clamp(16px, 2.5vw, 26px) 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse; /* figure above its label; dt stays first in the DOM */
  gap: 2px;
}
.stat-v {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 660;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat-k {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.35;
}

.hero-device { display: flex; justify-content: center; }

/* ------------------------------------------------------------------- device */
/* A faithful, build-time reproduction of the guest UI. Tokens are injected below
   from rental/public/app.css — the frame CANNOT disagree with the product. */

.device{--bg:#08090a;--fg:#f4f5f6;--dim:#8b9096;--line:#24282c;--card:#131619;--accent:#e8fe5a;--accent-ink:#0b0d05;--r:14px;--tap:60px;--ease:cubic-bezier(0.32, 0.72, 0, 1)}
.device[data-theme='venue']{--bg:#0b0710;--card:#17101f;--line:#2b2036;--accent:#ff4d8d;--accent-ink:#1a0410;--dim:#9a8ba6}
.device[data-theme='contrast']{--bg:#000000;--fg:#ffffff;--dim:#d6d6d6;--line:#6a6a6a;--card:#141414;--accent:#ffe600;--accent-ink:#000000}
.sw-1pct-bg{background:#08090a}
.sw-1pct-fg{background:#f4f5f6}
.sw-1pct-dim{background:#8b9096}
.sw-1pct-line{background:#24282c}
.sw-1pct-card{background:#131619}
.sw-1pct-accent{background:#e8fe5a}
.sw-1pct-accent-ink{background:#0b0d05}
.sw-venue-bg{background:#0b0710}
.sw-venue-card{background:#17101f}
.sw-venue-line{background:#2b2036}
.sw-venue-accent{background:#ff4d8d}
.sw-venue-accent-ink{background:#1a0410}
.sw-venue-dim{background:#9a8ba6}
.sw-contrast-bg{background:#000000}
.sw-contrast-fg{background:#ffffff}
.sw-contrast-dim{background:#d6d6d6}
.sw-contrast-line{background:#6a6a6a}
.sw-contrast-card{background:#141414}
.sw-contrast-accent{background:#ffe600}
.sw-contrast-accent-ink{background:#000000}

.device {
  margin: 0;
  width: min(300px, 82vw);
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: 34px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 55%, #000);
  box-shadow: 0 24px 80px -32px rgb(0 0 0 / 0.85);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.d-in {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border-radius: 26px;
  padding: 18px 16px 22px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.45;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.device-sm .d-in { min-height: 420px; }
.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}
.d-mark { font-weight: 620; letter-spacing: -0.03em; font-size: 15px; }
.d-avail { color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.d-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* the guest UI centres content in the thumb arc */
}
.d-h {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -0.03em;
}
.d-lede { margin: 5px 0 16px; color: var(--dim); font-size: 12.5px; }
.d-tiers { display: grid; gap: 8px; margin: 16px 0 12px; }
.d-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.d-tname { display: block; font-weight: 560; font-size: 13.5px; }
.d-tsub { display: block; color: var(--dim); font-size: 11px; margin-top: 1px; }
.d-tprice {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.d-worst {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.5;
}
.d-btn {
  display: block;
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 620;
  font-size: 14px;
  text-align: center;
}
.d-btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.d-link {
  display: block;
  margin-top: 6px;
  padding: 10px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}
.d-bank {
  margin: 10px 0 2px;
  font-size: 34px;
  font-weight: 660;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- sections */

.sec { padding-block: clamp(48px, 8vw, 110px); border-top: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: clamp(24px, 4vw, 44px); }
.num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font: 640 13px/1 var(--f-mono);
  letter-spacing: 0.12em;
}
.sec h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-lede { margin: 0; color: var(--dim); font-size: clamp(0.98rem, 1.4vw, 1.08rem); max-width: 40em; }

/* moment */
.beats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.beat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.beat-k {
  margin: 0 0 8px;
  color: var(--accent);
  font: 640 12px/1.2 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.beat-v { margin: 0; color: var(--dim); font-size: 14.5px; }

/* flow */
.flow-track {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  justify-items: center;
}
.flow-step { display: grid; gap: 14px; justify-items: center; }
.flow-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
  font: 640 12px/1 var(--f-mono);
}

/* themes */
.theme-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.theme-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  background: var(--card);
}
.theme-card .device { justify-self: center; margin-bottom: 10px; }
.theme-name { margin: 8px 0 0; font-size: 16.5px; font-weight: 620; letter-spacing: -0.02em; }
.theme-blurb { margin: 0; color: var(--dim); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 11px/1 var(--f-mono);
  color: var(--dim);
}
.sw {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
}
.picker-k { color: var(--dim); font-size: 13px; margin-right: 4px; }
.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--dim);
  font: 560 13px/1 var(--f-sans);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.14s var(--ease);
}
.pick:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.pick:active { transform: scale(0.97); }
.pick[aria-pressed="true"] { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* states */
.state-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.state {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.state-tone {
  margin: 0 0 8px;
  font: 700 10.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.state[data-tone="warn"] .state-tone { color: var(--warn); }
.state[data-tone="bad"] .state-tone { color: var(--bad); }
.state[data-tone="good"] .state-tone { color: var(--accent); }
.state-h { margin: 0 0 6px; font-size: 16.5px; font-weight: 620; letter-spacing: -0.02em; }
.state-b { margin: 0; color: var(--dim); font-size: 13.5px; }
.state-a {
  margin: 12px 0 0;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
}
.state-a::after { content: " \2192"; color: var(--accent); }

/* bilingual */
.bi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.bi-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.bi-lang {
  margin: 0 0 10px;
  color: var(--accent);
  font: 640 11px/1 var(--f-mono);
  letter-spacing: 0.14em;
}
.bi-h { margin: 0 0 6px; font-size: 17px; font-weight: 620; }
.bi-b { margin: 0; color: var(--dim); font-size: 13.5px; }
.bi-note { margin: 18px 0 0; color: var(--dim); font-size: 13.5px; max-width: 46em; }

/* craft */
.craft-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}
/* Grid items default to min-width auto, so the nowrap token table would size its track
   to the table's intrinsic width and drag the page wider than a phone. Zeroing it lets
   .scroll do its one job: the table scrolls inside its card, never the document. */
.craft-grid > * { min-width: 0; }
.craft-tokens h3, .craft-ease h3, .craft-tap h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.015em;
}
.scroll { overflow-x: auto; }
.tokens { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.tokens th, .tokens td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.tokens thead th { color: var(--dim); font-weight: 560; font-size: 11.5px; }
.tokens td { font-family: var(--f-mono); color: var(--dim); }
.tokens .sw { margin-right: 7px; vertical-align: -1px; }
.craft-side { display: grid; gap: 16px; }
.craft-ease, .craft-tap {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.ease { width: min(200px, 100%); height: auto; }
.ease-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.ease-axis { stroke: var(--line); stroke-width: 1; }
.ease-hand { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; }
.ease-dot { fill: var(--dim); }
.craft-note { margin: 10px 0 0; color: var(--dim); font-size: 12px; }
.craft-note code { font-size: 11px; }
.tap-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px; /* --tap, at true scale — asserted against the extracted token by e2e */
  border: 1px dashed var(--accent);
  border-radius: var(--r);
  color: var(--accent);
  font: 620 13px/1 var(--f-mono);
}
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------- foot */

.foot { border-top: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.foot-line { margin: 0; color: var(--dim); font-size: 13.5px; flex: 1 1 240px; }
.foot-lang {
  color: var(--fg);
  font-size: 13.5px;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------------------------------ desktop */

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "eyebrow device" "display device" "lede device" "stats device";
    align-items: center;
    column-gap: clamp(32px, 5vw, 72px);
  }
  .hero .eyebrow { grid-area: eyebrow; }
  .hero .display { grid-area: display; }
  .hero .lede { grid-area: lede; }
  .hero .stats { grid-area: stats; align-self: end; }
  .hero-device { grid-area: device; }
  .craft-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .bi-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------- motion */
/* GSAP is the only thing that hides content, and only under no-preference.
   This block is the belt to those braces: if any transition-driven state ever
   leaks, reduced-motion readers still get a static, complete page. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
