/* Vloy landing page — palette ported 1:1 from AsciiTacho/Theme.swift */

:root {
  --body: #E2DFD7;
  --bezel-light: #DAD7CE;
  --bezel-dark: #CAC7BE;
  --button-face: #ECE9E1;
  --hairline: rgba(0, 0, 0, 0.075);
  --screen-top: #22221F;
  --screen-bottom: #171715;
  --lcd-text: #F4F1E2;
  --lcd-dim: rgba(244, 241, 226, 0.4);
  --lcd-ghost: rgba(255, 255, 255, 0.055);
  --orange: #FF4F0A;
  --green: #5CC759;
  --ink: #34322E;
  --ink-dim: rgba(52, 50, 46, 0.5);
  --shadow-soft: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --body: #1C1B18;
    --bezel-light: #26251F;
    --bezel-dark: #1F1E19;
    --button-face: #2E2C27;
    --hairline: rgba(255, 255, 255, 0.12);
    --screen-top: #0E0E0C;
    --screen-bottom: #0A0A09;
    --lcd-ghost: rgba(255, 255, 255, 0.05);
    --ink: #D8D4C8;
    --ink-dim: rgba(216, 212, 200, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="night"] {
  --body: #1C1B18;
  --bezel-light: #26251F;
  --bezel-dark: #1F1E19;
  --button-face: #2E2C27;
  --hairline: rgba(255, 255, 255, 0.12);
  --screen-top: #0E0E0C;
  --screen-bottom: #0A0A09;
  --lcd-ghost: rgba(255, 255, 255, 0.05);
  --ink: #D8D4C8;
  --ink-dim: rgba(216, 212, 200, 0.5);
  --shadow-soft: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--body);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

a { color: inherit; }

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Micro label — the tracked uppercase caption used throughout the app UI */
.ml {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ml.on-screen { color: var(--lcd-dim); }

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--body) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-dots {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
}
.brand-dots span {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--orange);
}
.brand-dots span:nth-child(2), .brand-dots span:nth-child(4),
.brand-dots span:nth-child(6), .brand-dots span:nth-child(8) {
  background: var(--ink-dim);
}
.brand-dots span:nth-child(5) { background: var(--ink-dim); }

/* ---------- hardware chrome ---------- */

.bezel {
  background: linear-gradient(var(--bezel-light), var(--bezel-dark));
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  padding: 7px;
  box-shadow: 0 12px 26px var(--shadow-soft);
}
.bezel.lg { border-radius: 30px; }

.screen {
  background: linear-gradient(var(--screen-top), var(--screen-bottom));
  border-radius: 19px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 16px;
  overflow: hidden;
}
.bezel.lg .screen { border-radius: 23px; }

.card {
  background: var(--button-face);
  border: 0.5px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
}

.hw-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--button-face);
  color: var(--ink);
  border: 0.5px solid var(--hairline);
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow-soft);
}
.hw-btn:active { transform: scale(0.95); }
.hw-btn.primary {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
}

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

.hero {
  text-align: center;
  padding: 64px 24px 40px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 18px 0 12px;
}
.hero p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 420px;
  margin: 0 auto;
}

.hero-screen-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.speed-canvas-wrap {
  margin: 4px auto 0;
}

.scroll-hint {
  text-align: center;
  margin-top: 14px;
}

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

.section {
  padding: 36px 24px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-head {
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.nav-arrow-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 190px;
}
.arrow-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-rot {
  width: 36px;
  height: 44px;
  transition: transform 0.05s linear;
}

.map-canvas-wrap {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ---------- night toggle ---------- */

.night-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.night-copy { font-size: 13px; line-height: 1.5; }
.night-copy small { display: block; color: var(--ink-dim); font-size: 12px; margin-top: 2px; }

.switch {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  border: 0.5px solid var(--hairline);
  background: var(--body);
  position: relative;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  transition: left 0.25s ease;
}
.switch[aria-pressed="true"] .knob { left: 29px; }

/* ---------- scoreboard ---------- */

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  justify-items: center;
  padding: 6px 0 4px;
}
.score-item { text-align: center; }
.score-canvas-wrap { margin: 0 auto; }

/* ---------- specs ---------- */

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  font-size: 12.5px;
  border-top: 0.5px solid var(--hairline);
}
.spec-row:first-child { border-top: none; }
.spec-row span:first-child { color: var(--ink-dim); flex-shrink: 0; }
.spec-row span:last-child { text-align: right; min-width: 0; }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-card.featured { border: 2px solid var(--orange); }
.price-card .amount {
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 2px;
}
.price-card .desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ---------- cta / footer ---------- */

.cta-section {
  text-align: center;
  padding: 44px 24px 32px;
}
.qr-wrap { display: inline-block; }
.qr-caption { margin: 12px 0 20px; }

footer {
  text-align: center;
  padding: 0 24px 40px;
  font-size: 11px;
  color: var(--ink-dim);
}
footer a { text-decoration: underline; text-underline-offset: 2px; }

.noscript-note {
  max-width: 480px;
  margin: 40px auto;
  padding: 16px 20px;
  border: 0.5px solid var(--hairline);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ===== Legal & support pages ===== */
.legal { max-width: 680px; margin: 0 auto; padding: 96px 16px 64px; }
.legal h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 24px; }
.legal h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal a { color: inherit; }
.legal .placeholder { background: color-mix(in srgb, var(--orange) 18%, transparent); padding: 0 4px; border-radius: 3px; }
.legal hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); margin: 56px 0; }
.legal .back { display: inline-block; margin-bottom: 8px; }
