/* ================= HYEB FLEET — product site =================
   One committed visual world: night asphalt, hi-vis amber, steel hairlines.
   Every colour is painted explicitly so the page never borrows a host theme. */

:root {
  --ink: #070A08;            /* the road at night */
  --ink-2: #0B100D;
  --pine: #0C2617;           /* the product's own green */
  --pine-lift: #123320;
  --surface: #101612;
  --surface-2: #161E19;
  --amber: #F5A623;          /* hi-vis — the single loud colour */
  --amber-2: #FFC65C;
  --amber-ink: #2A1B02;
  --fog: #EAEEEA;
  --muted: #8D998F;
  --dim: #869185;          /* passes AA on the page, the cards and the footer */
  --line: rgba(234, 238, 234, 0.10);
  --line-2: rgba(234, 238, 234, 0.17);
  --good: #3ECF77;
  --rail: 1180px;
  --r: 16px;
  --r-lg: 24px;
  --glide: cubic-bezier(.22, .8, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .95);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* must beat the display:grid/flex rules below */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--fog);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---- type ---- */
h1, h2, h3, h4 { font-family: 'Archivo', 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; }
p { margin: 0; }
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.7; max-width: 62ch; }
.small { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.tiny { font-size: 12px; color: var(--dim); }
strong, b { color: var(--fog); font-weight: 700; }

/* ---- rails ---- */
.rail { max-width: var(--rail); margin: 0 auto; padding: 0 24px; }
.rail-wide { max-width: 1420px; margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ================= top bar ================= */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent; transition: border-color .3s, padding .3s, background .3s;
}
header.nav.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ink) 94%, transparent); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 70px; transition: height .3s var(--glide); }
header.nav.stuck .nav-in { height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--amber), #E08A0B);
  display: grid; place-items: center; color: var(--amber-ink);
  box-shadow: 0 6px 18px -6px rgba(245, 166, 35, .6);
}
.brand b { font-family: 'Archivo', sans-serif; font-size: 16.5px; font-weight: 800; letter-spacing: .01em; display: block; line-height: 1.1; }
.brand span { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 13px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fog); background: rgba(234, 238, 234, .06); }
.nav-links a.on { color: var(--amber); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--fog); border-radius: 10px; padding: 8px 11px; cursor: pointer; margin-left: auto; font-size: 17px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
  font-family: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .16s var(--spring), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn.primary { background: linear-gradient(160deg, var(--amber-2), var(--amber)); color: var(--amber-ink); box-shadow: 0 12px 30px -12px rgba(245, 166, 35, .75); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(245, 166, 35, .9); }
.btn.ghost { background: rgba(234, 238, 234, .05); border-color: var(--line-2); color: var(--fog); }
.btn.ghost:hover { background: rgba(234, 238, 234, .1); transform: translateY(-2px); }
.btn.sm { padding: 10px 16px; font-size: 13px; border-radius: 11px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary::after {   /* a slow sheen crossing the button */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn.primary:hover::after { animation: sheen .8s var(--glide); }
@keyframes sheen { to { transform: translateX(120%); } }
.play-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--amber-ink); color: var(--amber); display: grid; place-items: center; font-size: 10px; flex: none; }

/* ================= the development notice ================= */
.dev-bar {
  background: linear-gradient(90deg, rgba(245, 166, 35, .16), rgba(245, 166, 35, .08));
  border-bottom: 1px solid rgba(245, 166, 35, .3);
  color: var(--amber-2); font-size: 13px; font-weight: 600;
  padding: 9px 24px; text-align: center; position: relative; z-index: 61;
}
.dev-bar b { color: var(--amber-2); }
.dev-bar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: middle; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ================= hero ================= */
.hero { padding: clamp(48px, 7vw, 92px) 0 0; overflow: hidden; position: relative; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 380px at 22% 8%, rgba(18, 51, 32, .95), transparent 68%),
    radial-gradient(620px 320px at 82% 0%, rgba(245, 166, 35, .16), transparent 70%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .w { display: inline-block; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--dim); }
.hero-note .tick { color: var(--good); }

/* the phone, floating over a moving road */
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.road {
  position: absolute; inset: auto -40% 6%; height: 190px; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .035) 40%, transparent);
  transform: perspective(520px) rotateX(62deg);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 55%, #000 30%, transparent 78%);
          mask-image: radial-gradient(60% 70% at 50% 55%, #000 30%, transparent 78%);
}
.road::before, .road::after {
  content: ''; position: absolute; left: 0; right: 0; height: 5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 210, 100, .55) 0 44px, transparent 44px 96px);
}
.road::before { top: 62px; animation: roadrun 2.6s linear infinite; }
.road::after { top: 120px; opacity: .5; animation: roadrun 1.7s linear infinite; }
@keyframes roadrun { to { background-position-x: -96px; } }

.phone {
  position: relative; z-index: 2; width: min(300px, 74%);
  border-radius: 42px; padding: 9px; background: linear-gradient(160deg, #2A332D, #10160F);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  animation: bob 7s ease-in-out infinite;
}
.phone::before {  /* the island */
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; border-radius: 12px; background: #050706; z-index: 3;
}
.phone img { border-radius: 34px; display: block; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.hero-badge {
  position: absolute; z-index: 3; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
  animation: bob 7s ease-in-out infinite;
}
.hero-badge .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.hero-badge b { display: block; font-size: 12.5px; line-height: 1.25; }
.hero-badge span { font-size: 10.5px; color: var(--dim); }
.badge-a { top: 16%; left: -4%; animation-delay: -1.4s; }
.badge-b { bottom: 20%; right: -6%; animation-delay: -3.2s; }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 62px; }
.stat { background: var(--ink-2); padding: 26px 20px; text-align: center; }
.stat .n { font-family: 'Archivo', sans-serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--amber); letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ================= generic section furniture ================= */
.head { max-width: 760px; margin-bottom: 46px; }
.head h2 { margin: 16px 0 16px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s var(--glide), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 16px; background: rgba(245, 166, 35, .12); border: 1px solid rgba(245, 166, 35, .22);
}
.card.lit::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--glide);
}
.card.lit:hover::before { transform: scaleX(1); }

/* problem → answer rows */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.swap:last-child { border-bottom: 0; }
.swap .before { color: var(--dim); font-size: 14.5px; }
.swap .before s { opacity: .8; }
.swap .arrow { color: var(--amber); font-size: 18px; }
.swap .after { font-size: 15px; font-weight: 650; }

/* numbered steps */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .no {
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 800; flex: none;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--amber-ink);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* module chips marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 11px 17px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 13.5px; font-weight: 650;
}
.chip i { font-style: normal; font-size: 15px; }

/* ---- device frames for the gallery ---- */
.shot-desk {
  border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: #000;
  box-shadow: var(--shadow); position: relative;
}
.shot-desk .bar { display: flex; gap: 6px; padding: 10px 13px; background: #0D120F; border-bottom: 1px solid var(--line); }
.shot-desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2E3833; }
.shot-phone { border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #2A332D, #10160F); box-shadow: var(--shadow); }
.shot-phone img { border-radius: 24px; }

/* roles */
.role { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--glide); }
.role:hover { border-color: var(--line-2); transform: translateY(-3px); }
.role .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--pine-lift); }
.role b { display: block; font-size: 14.5px; margin-bottom: 3px; }

/* device coverage */
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dev { text-align: center; padding: 26px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--glide), border-color .3s; }
.dev:hover { transform: translateY(-5px); border-color: rgba(245, 166, 35, .4); }
.dev .em { font-size: 30px; display: block; margin-bottom: 10px; }
.dev b { font-size: 14px; display: block; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; position: relative; transition: transform .3s var(--glide), border-color .3s; }
.plan:hover { transform: translateY(-6px); }
.plan.featured { border-color: rgba(245, 166, 35, .55); background: linear-gradient(180deg, rgba(245, 166, 35, .08), var(--surface) 40%); box-shadow: 0 30px 70px -40px rgba(245, 166, 35, .5); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--amber); color: var(--amber-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; font-family: 'IBM Plex Mono', monospace; }
.plan .price { font-family: 'Archivo', sans-serif; font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 4px; }
.plan .unit { font-size: 12.5px; color: var(--dim); }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 13.8px; line-height: 1.5; align-items: flex-start; }
.plan li::before { content: '✓'; color: var(--amber); font-weight: 800; flex: none; }
.plan .btn { width: 100%; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-size: 16px; font-weight: 700; list-style: none; position: relative; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 22px; font-weight: 400; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--amber); }
.faq .a { padding: 0 40px 22px 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; animation: fadeUp .35s var(--glide); }

/* ---- forms ---- */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; }
.inp {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--ink-2);
  border: 1px solid var(--line-2); color: var(--fog); font-family: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
/* `outline: none` removed. The glow alone disappears in forced-colours mode and for anyone
   who cannot make out a soft amber halo — a real outline always draws. */
.inp:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.inp:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 166, 35, .18); background: var(--ink); }
/* measured 2.93:1 against the field background, below the 4.5:1 the guidelines ask for.
   #7C8881 measures about 4.6:1 on #0B100D and still reads as a hint, not as an answer. */
.inp::placeholder { color: #7C8881; opacity: 1; }
textarea.inp { resize: vertical; min-height: 96px; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { padding: 13px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; display: none; }
.note.ok { display: block; background: rgba(62, 207, 119, .12); border: 1px solid rgba(62, 207, 119, .35); color: #8DE7B0; }
.note.bad { display: block; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #FCA5A5; }

/* ---- cta band ---- */
.band {
  border-radius: var(--r-lg); padding: clamp(34px, 5vw, 62px);
  background: linear-gradient(140deg, var(--pine-lift), var(--pine) 55%, #0A1F13);
  border: 1px solid rgba(245, 166, 35, .25); position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, .2);
}

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 52px 0 34px; background: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
footer a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .2s; }
footer a:hover { color: var(--amber); }
.foot-btm { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ================= product tour (plays like a video) ================= */
.tour-open { position: relative; cursor: pointer; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.tour-open img { opacity: .55; transition: opacity .4s, transform 6s linear; }
.tour-open:hover img { opacity: .8; transform: scale(1.04); }
.tour-open .play {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 14px; align-content: center;
}
.play-btn {
  width: 84px; height: 84px; border-radius: 50%; background: var(--amber); color: var(--amber-ink);
  display: grid; place-items: center; font-size: 27px; padding-left: 6px;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, .6); animation: pulse 2.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 34px rgba(245, 166, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }

#tour { position: fixed; inset: 0; z-index: 200; background: rgba(4, 6, 5, .93); backdrop-filter: blur(14px); display: none; }
#tour.on { display: grid; place-items: center; animation: fade .3s; }
.tour-box { width: min(1080px, 94vw); max-height: 92vh; display: grid; gap: 18px; }
.tour-stage { display: grid; place-items: center; min-height: min(58vh, 520px); position: relative; }
.tour-stage img { max-height: min(58vh, 520px); width: auto; border-radius: 16px; box-shadow: var(--shadow); animation: kb 7s ease-out both; }
.tour-stage img.phone-shot { border-radius: 26px; }
@keyframes kb { from { transform: scale(1.05); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1); } }
.tour-cap { text-align: center; max-width: 720px; margin: 0 auto; }
.tour-cap h3 { margin-bottom: 8px; }
.tour-bars { display: flex; gap: 6px; justify-content: center; }
.tour-bars i { width: 46px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; cursor: pointer; }
.tour-bars i.done::after, .tour-bars i.now::after { content: ''; position: absolute; inset: 0; background: var(--amber); transform-origin: left; }
.tour-bars i.done::after { transform: scaleX(1); }
.tour-bars i.now::after { animation: fill 7s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tour-x { position: absolute; top: 18px; right: 20px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); color: var(--fog); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.tour-frame { width: min(1080px, 94vw); aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #000; }

/* ================= reveal on scroll ================= */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--glide), transform .7s var(--glide); }
  .rv.in { opacity: 1; transform: none; }
  .rv-d1 { transition-delay: .07s; } .rv-d2 { transition-delay: .14s; } .rv-d3 { transition-delay: .21s; }
  .rv-d4 { transition-delay: .28s; } .rv-d5 { transition-delay: .35s; } .rv-d6 { transition-delay: .42s; }
  .hero h1 .w { opacity: 0; transform: translateY(24px) rotate(2deg); animation: wordIn .7s var(--glide) forwards; }
}
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ================= gate + admin ================= */
.center-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; }
.panel { width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.panel .brand { justify-content: center; margin-bottom: 22px; }
.panel h1 { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.aside { background: var(--ink-2); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.aside .brand { margin-bottom: 26px; padding-left: 6px; }
.aside button.tab {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 650;
  padding: 11px 13px; border-radius: 11px; cursor: pointer; transition: background .2s, color .2s;
}
.aside button.tab:hover { background: rgba(234, 238, 234, .05); color: var(--fog); }
.aside button.tab.on { background: rgba(245, 166, 35, .13); color: var(--amber); }
.amain { padding: 30px 32px 70px; max-width: 1100px; }
.amain h2 { font-size: 1.7rem; margin-bottom: 6px; }
.abox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 18px; }
.abox h3 { font-size: 1.05rem; margin-bottom: 14px; }
table.leads { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.leads th { text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.leads td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.leads tr:hover td { background: rgba(234, 238, 234, .03); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; }
.pill.new { background: rgba(245, 166, 35, .16); color: var(--amber-2); }
.pill.contacted { background: rgba(59, 130, 246, .16); color: #93C5FD; }
.pill.demo_booked { background: rgba(168, 85, 247, .16); color: #D8B4FE; }
.pill.won { background: rgba(62, 207, 119, .16); color: #86EFAC; }
.pill.closed { background: rgba(148, 163, 184, .14); color: #CBD5E1; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.kpi .n { font-family: 'Archivo', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--amber); line-height: 1; }
.kpi .l { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ================= responsive ================= */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; margin-top: 16px; }
  .g3, .g4, .plans, .devices, .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
  }
  .nav-links.open a { padding: 13px; }
  .nav-toggle { display: block; }
  .admin-shell { grid-template-columns: 1fr; }
  .aside { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .aside .brand { width: 100%; }
  .aside button.tab { width: auto; }
  .amain { padding: 22px 18px 60px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .plans, .devices, .row2, .foot-grid { grid-template-columns: 1fr; }
  .swap { grid-template-columns: 1fr; gap: 6px; }
  .swap .arrow { display: none; }
  .badge-a, .badge-b { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
}

/* a heading that is structurally an h2 but should look like a card title */
h2.as-h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; }
/* for screen readers only — keeps the heading order honest without changing the design */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The tour panel is given focus by script when it opens, so a ring there would be noise.
   A keyboard user who tabs to it still gets one — :focus-visible is what tells them apart. */
#tour:focus:not(:focus-visible) { outline: none; }


/* ============================================================================
   Accessibility corrections. Every number below replaces a value that was
   measured against the WCAG 2.2 AA thresholds and failed.
   ========================================================================== */

/* A form control has to have a visible boundary: the guidelines ask for 3:1 on the edge of
   anything you are meant to interact with. The old border measured 1.60:1. */
.inp, select.inp, textarea.inp {
  border-color: rgba(234, 238, 234, 0.42);
}
.inp:hover { border-color: rgba(234, 238, 234, 0.58); }

/* Skip link — the first thing a keyboard reaches, and out of the way until then. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--amber-ink);
  padding: 13px 22px; font-weight: 800; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Everything that scrolls into view starts hidden. If the script that reveals it never runs,
   61 sections and the 16 controls inside them stay invisible for ever. Assume nothing:
   the content is visible by default, and only hidden once the script says it is in charge. */
html.js-reveal .rv { opacity: 0; transform: translateY(26px); }
html.js-reveal .rv.in { opacity: 1; transform: none; }

/* A control that is being revealed must never be reachable while it is invisible. */
.rv:not(.in) :is(a, button, input, select, textarea, [tabindex]) { visibility: hidden; }
html:not(.js-reveal) .rv :is(a, button, input, select, textarea, [tabindex]) { visibility: visible; }

/* Windows high-contrast mode strips colour; keep the shapes legible. */
@media (forced-colors: active) {
  .btn, .inp, .card, .plan { border: 1px solid ButtonBorder; }
  .btn.primary { background: ButtonFace; color: ButtonText; }
  :focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

/* Respect a request for less movement, everywhere, not just for the reveal animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
