/* VEYDR public homepage. Colours only from tokens.css (generated from src/constants/theme.ts). */

:root {
  --bg: var(--d-background);
  --surface: var(--d-surface);
  --line: var(--d-border);
  --text: var(--d-text);
  --muted: var(--d-text-secondary);
  --lime: var(--d-accent);
  --on-lime: var(--d-on-primary);
  --coral: var(--d-stop);
  --on-coral: var(--d-on-stop);
  /* Field outlines need 3:1 on the background: the mid grey gives 3.2:1. */
  --field-line: var(--l-text-secondary);
  --raised: color-mix(in srgb, var(--d-surface) 70%, var(--d-border));
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .r { color: var(--d-logo-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.nav a {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--lime); }
.header-cta { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: color-mix(in srgb, var(--lime) 88%, var(--text)); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline {
  min-height: 42px;
  padding: 0 18px;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.btn .icon { width: 22px; height: 22px; stroke-width: 2.4; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.link-quiet:hover { text-decoration-color: var(--lime); }

.eyebrow {
  color: var(--lime);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 6% 0 14%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 85%, transparent 100%),
    linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%, black 85%, transparent 100%);
}
.art-hero { width: 100%; height: 100%; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy { display: grid; gap: 24px; max-width: 620px; }
.hero h1 {
  font-size: clamp(3.1rem, 7.4vw, 6.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-lede {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.hero-phone { justify-self: end; }

/* ---------- Phone ---------- */
.phone {
  width: 320px;
  max-width: 100%;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, var(--d-text-secondary), var(--l-text-secondary) 30%, var(--d-border) 70%, var(--d-text-secondary));
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--bg) 60%, transparent),
    0 0 0 1px color-mix(in srgb, var(--d-text) 12%, transparent);
}
.screen {
  position: relative;
  border-radius: 43px;
  background: var(--bg);
  overflow: hidden;
  padding: 14px 18px 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.3;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 10px 0;
  height: 26px;
}
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: var(--d-on-primary);
  box-shadow: 0 0 0 1px var(--line);
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons .icon { width: 16px; height: 16px; }
.battery {
  display: inline-block;
  width: 24px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--text);
  padding: 1px;
}
.battery::before { content: ''; display: block; width: 70%; height: 100%; border-radius: 1px; background: var(--text); }

.app-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.app-top .wordmark { font-size: 18px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.greeting { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.dot-off { background: var(--muted); }
.status-line.on { color: var(--d-status-text); }
.timer {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}
.action-stop { background: var(--coral); color: var(--on-coral); }
.action-go { background: var(--lime); color: var(--on-lime); }
.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--on-coral);
}
.action-stop .action-icon { color: var(--coral); }
.action-go .action-icon { background: var(--on-lime); color: var(--lime); }
.action-icon .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.action strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.action span { font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
}
.card-row { display: flex; align-items: center; gap: 12px; }
.card-row .icon { color: var(--d-card-icon); }
.card-row .icon.lime { color: var(--lime); }
.label { font-size: 12px; color: var(--muted); }
.value { font-weight: 600; font-size: 15px; }
.push { margin-left: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.tag .icon { width: 13px; height: 13px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .card { padding: 10px 11px; gap: 9px; }
.label { white-space: nowrap; }
.tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
}
.tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.tabbar {
  display: flex;
  justify-content: space-around;
  margin: 2px -18px 0;
  padding: 10px 18px 16px;
  background: var(--d-tab-bar);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--d-tab-unselected);
}
.tab { display: grid; justify-items: center; gap: 3px; }
.tab .icon { width: 22px; height: 22px; }
.tab.on { color: var(--d-tab-selected); }

/* ---------- Feature strip ---------- */
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.strip-item { padding: 32px 32px 40px; display: grid; gap: 8px; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item:first-child { padding-left: 0; }
.strip-item h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; }
.strip-item p { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2.big {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.section-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.step { display: grid; align-content: start; gap: 18px; padding: 0 clamp(20px, 3vw, 40px); }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; color: var(--lime); }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; }
.step > p { color: var(--muted); }
.step > .step-num { color: var(--lime); }
.step-visual { min-height: 250px; display: grid; align-content: start; }

.mini-phone {
  width: 100%;
  max-width: 300px;
  padding: 8px 8px 0;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(145deg, var(--d-text-secondary), var(--l-text-secondary) 30%, var(--d-border));
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent);
  mask-image: linear-gradient(to bottom, black 80%, transparent);
}
.mini-phone .screen { border-radius: 33px 33px 0 0; padding-bottom: 40px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.panel-title .icon { width: 24px; height: 24px; color: var(--muted); }
.panel .tick { width: 30px; height: 30px; }
.panel .tick .icon { width: 17px; height: 17px; }
.divider { height: 1px; background: var(--line); }
.meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.days { display: grid; gap: 6px; font-size: 15px; }
.days div { display: flex; justify-content: space-between; color: var(--muted); }
.days div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fake-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
}

.note {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}
.note .icon { width: 26px; height: 26px; color: var(--lime); margin-top: 2px; }
.note h3 { font-size: 19px; margin-bottom: 6px; }
.note p { color: var(--muted); max-width: 80ch; }

/* Site and office */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}
.feature .icon { width: 28px; height: 28px; color: var(--lime); }
.feature h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.feature p { color: var(--muted); font-size: 16px; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 26px 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product.now { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 6%, var(--bg)); }
.product h3 { font-size: 24px; letter-spacing: -0.02em; }
.product h3 .r { color: var(--lime); }
.product p { color: var(--muted); }
.badge {
  justify-self: start;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--muted);
  color: var(--muted);
}
.badge.now { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.fine { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Enquiry */
.enquire .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.enquire-copy { display: grid; gap: 20px; }
.art-trench { width: 100%; max-width: 640px; margin-top: 8px; }
.form {
  display: grid;
  gap: 20px;
  padding-left: clamp(0px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 17px; }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: none;
}
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 1px;
  border-color: var(--lime);
}
.form .btn { width: 100%; min-height: 60px; font-size: 20px; }
.form-help { color: var(--muted); font-size: 15px; }
.form-help a { color: var(--text); }
.form-status { font-size: 16px; color: var(--text); min-height: 1.5em; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step, .step:first-child, .step:last-child { padding: 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-top: 48px; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 40px; row-gap: 14px; }
  .roadmap { grid-template-columns: 1fr; }
  .enquire .wrap { grid-template-columns: 1fr; }
  .form { padding-left: 0; border-left: 0; }
  .art-trench { max-width: 520px; }
  .step-visual { grid-column: 2; grid-row: 1 / span 3; min-height: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .wordmark { font-size: 22px; }
  .nav a { font-size: 15px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { justify-self: center; }
  .hero-art { inset: auto 0 0 0; height: 640px; opacity: 0.75; -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 80%, transparent); mask-image: linear-gradient(to bottom, transparent, black 30%, black 80%, transparent); }
  .hero-actions .btn { width: 100%; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child { padding: 24px 0; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .step { grid-template-columns: 1fr; }
  .step-visual { grid-column: auto; grid-row: auto; }
  .grid-4, .roadmap { grid-template-columns: 1fr; }
  .enquire .wrap { grid-template-columns: 1fr; }
  .form { padding-left: 0; border-left: 0; }
  .note { grid-template-columns: 1fr; padding: 20px; }
}

@media (max-width: 360px) {
  .nav { gap: 12px; }
  .wordmark { font-size: 20px; }
}

/* ---------- Artwork (tokens only) ---------- */
.a-contour { fill: none; stroke: var(--d-border); stroke-width: 1; opacity: 0.55; }
.a-road-edge { fill: none; stroke: var(--d-border); stroke-width: 72; }
.a-road { fill: none; stroke: var(--d-surface); stroke-width: 64; }
.a-ring { stroke-width: 56; }
.a-lane { fill: none; stroke: var(--d-text); stroke-width: 2.5; stroke-dasharray: 16 18; opacity: 0.35; }
.a-island { fill: var(--d-border); }
.a-island-top { fill: var(--d-surface); stroke: var(--d-border); stroke-width: 2; }
.a-zebra { stroke: var(--d-text); stroke-width: 24; stroke-dasharray: 6 6; opacity: 0.55; }
.a-shadow { fill: var(--d-on-primary); opacity: 0.55; }
.a-face { fill: var(--d-surface); }
.a-roof { fill: var(--d-border); }
.a-window { fill: var(--d-background); }
.a-tree { fill: var(--d-surface); stroke: var(--d-border); stroke-width: 3; }
.a-route { fill: none; stroke: var(--d-accent); stroke-width: 5; stroke-linecap: round; }
.a-route-glow { fill: none; stroke: var(--d-accent); stroke-width: 16; opacity: 0.28; }
.a-pin { fill: var(--d-accent); }
.a-pin-ring { fill: none; stroke: var(--d-accent); stroke-width: 2; opacity: 0.6; }

.a-ground-shadow { fill: var(--d-on-primary); opacity: 0.6; }
.t-road { fill: var(--d-border); }
.t-path { fill: color-mix(in srgb, var(--d-border) 65%, var(--l-text-secondary)); }
.t-dark { fill: var(--d-on-primary); }
.t-wall { fill: var(--d-surface); }
.t-floor { fill: color-mix(in srgb, var(--d-on-primary) 70%, var(--d-surface)); }
.t-duct { stroke: var(--d-accent); stroke-width: 14; stroke-linecap: round; }
.t-duct-rib { stroke: color-mix(in srgb, var(--d-accent) 60%, var(--d-on-primary)); stroke-width: 14; stroke-dasharray: 2 5; }
.t-duct-end { fill: var(--d-accent); stroke: var(--d-on-primary); stroke-width: 3; }
.t-kerb { stroke: var(--d-text-secondary); stroke-width: 2; opacity: 0.7; }
.t-lane { stroke: var(--d-text); stroke-width: 3; stroke-dasharray: 22 26; opacity: 0.75; }
.t-side-a { fill: var(--d-surface); }
.t-side-b { fill: color-mix(in srgb, var(--d-surface) 70%, var(--d-on-primary)); }
.t-layer { fill: none; stroke: var(--d-border); stroke-width: 2; }
.t-cone-base { fill: var(--d-on-primary); }
.t-cone { fill: var(--d-surface); stroke: var(--d-border); stroke-width: 1.5; }
.t-cone-band { fill: var(--d-accent); }
.t-barrier { fill: var(--d-surface); stroke: var(--d-border); stroke-width: 2; }
.t-barrier-band { fill: var(--d-accent); }
