/* The one look for letsnavi.com and app.letsnavi.com.
   Colors, type, glass and soft-shadow buttons, spacing, radius, and motion
   are named here and nowhere else. Both sites link this file. The globe
   splash that opens the map is the loading animation for both. */

:root {
  --nv-bg: #050506;
  --nv-surface: #181818;
  --nv-surface-raised: #222222;
  --nv-text: #ffffff;
  --nv-text-body: #e8e8e8;
  --nv-text-secondary: #9b9ba1;
  --nv-text-tab: #d0d0d1;
  --nv-text-faint: #8a8a8a;
  --nv-placeholder: #9a9a9a;
  --nv-accent: #ff1238;
  --nv-accent-hover: #ff4d6a;
  --nv-accent-pressed: #d60f2f;
  --nv-accent-text: #ff1238;
  --nv-on-accent: #ffffff;
  --nv-focus: #ffffff;
  --nv-positive: #3ecf8e;
  --nv-warning: #e8b33c;
  --nv-divider: #2a2a2a;
  --nv-border: #303030;
  --nv-line: #141417;
  --nv-line-dim: #1a1a1e;
  --nv-line-alpha: rgba(255, 255, 255, 0.1);
  --nv-tint: 150, 152, 165;
  --nv-line-2: #2a2c33;
  --nv-line-3: #3a3d47;
  --nv-fill-2: #15161b;
  --nv-panel: rgba(24, 24, 24, 0.92);
  --nv-panel-solid: #0d0d10;
  --nv-glass: rgba(20, 21, 26, 0.8);
  --nv-glass-solid: #121318;
  --nv-glass-line: rgba(255, 255, 255, 0.09);
  --nv-navi-glass: rgba(10, 10, 10, 0.86);
  --nv-blur-glass: 12px;
  --nv-blur-panel: 20px;
  --nv-shadow-glass: 0 8px 22px rgba(0, 0, 0, 0.28);
  --nv-shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --nv-shadow-primary: 0 8px 24px rgba(255, 18, 56, 0.38);
  --nv-shadow-primary-hover: 0 10px 32px rgba(255, 18, 56, 0.44);
  --nv-shadow-primary-small: 0 6px 18px rgba(255, 18, 56, 0.4);
  --nv-cat-food: #f0b35c;
  --nv-cat-food-ink: #945600;
  --nv-cat-shop: #7db2f2;
  --nv-cat-shop-ink: #163f86;
  --nv-cat-night: #9b78ec;
  --nv-cat-night-ink: #7d5bdb;
  --nv-cat-out: #6fe0d2;
  --nv-cat-out-ink: #0c7b6d;
  --nv-cat-arts: #60a870;
  --nv-cat-arts-ink: #1c4a14;
  --nv-cat-other: #a2abc6;
  --nv-cat-other-ink: #1a1c22;

  --nv-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nv-font-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --nv-space-1: 4px;
  --nv-space-2: 8px;
  --nv-space-3: 12px;
  --nv-space-4: 16px;
  --nv-space-5: 24px;
  --nv-space-6: 32px;
  --nv-space-7: 48px;

  --nv-radius-small: 12px;
  --nv-radius-medium: 16px;
  --nv-radius-card: 22px;
  --nv-radius-large: 24px;
  --nv-radius-pill: 999px;

  --nv-motion-press: 100ms;
  --nv-motion-press-scale: 120ms;
  --nv-press-scale: 0.98;
  --nv-motion-selection: 160ms;
  --nv-motion-segment: 200ms;
  --nv-motion-cbpop: 200ms;
  --nv-motion-sheet: 260ms;
  --nv-motion-map-adjustment: 300ms;
  --nv-motion-cardrise: 550ms;
  --nv-motion-wordin: 620ms;
  --nv-motion-shimmer: 1000ms;
  --nv-motion-blink: 1000ms;
  --nv-motion-edge: 1600ms;
  --nv-motion-globe: 2400ms;
  --nv-ease-out: ease-out;
  --nv-ease-card: cubic-bezier(0.2, 0.75, 0.2, 1);
  --nv-ease-word: cubic-bezier(0.2, 0.7, 0.2, 1);

  --bg: var(--nv-bg);
  --ink: var(--nv-bg);
  --surface: var(--nv-surface);
  --surface-raised: var(--nv-surface-raised);
  --text: var(--nv-text);
  --text-body: var(--nv-text-body);
  --body: var(--nv-text-body);
  --text-secondary: var(--nv-text-secondary);
  --muted: var(--nv-text-secondary);
  --text-tab: var(--nv-text-tab);
  --tab: var(--nv-text-tab);
  --text-faint: var(--nv-text-faint);
  --faint: var(--nv-text-faint);
  --placeholder: var(--nv-placeholder);
  --accent: var(--nv-accent);
  --brand: var(--nv-accent);
  --brand-press: var(--nv-accent-pressed);
  --red: var(--nv-accent);
  --red-hot: var(--nv-accent);
  --ok: var(--nv-accent);
  --accent-hover: var(--nv-accent-hover);
  --accent-pressed: var(--nv-accent-pressed);
  --accent-2: var(--nv-accent-pressed);
  --red-press: var(--nv-accent-pressed);
  --accent-text: var(--nv-accent-text);
  --brand-text: var(--nv-accent-text);
  --red-text: var(--nv-accent-text);
  --on-accent: var(--nv-on-accent);
  --focus: var(--nv-focus);
  --positive: var(--nv-positive);
  --warning: var(--nv-warning);
  --divider: var(--nv-divider);
  --border: var(--nv-border);
  --line: var(--nv-line);
  --line-dim: var(--nv-line-dim);
  --line-alpha: var(--nv-line-alpha);
  --line-red: var(--nv-line-2);
  --red-dim: var(--nv-line-2);
  --red-deep: var(--nv-line-3);
  --tint: var(--nv-tint);
  --line-2: var(--nv-line-2);
  --line-3: var(--nv-line-3);
  --fill-2: var(--nv-fill-2);
  --red-ink: var(--nv-fill-2);
  --panel: var(--nv-panel);
  --panel-solid: var(--nv-panel-solid);
  --raised: var(--nv-surface-raised);
  --glass: var(--nv-glass);
  --glass-solid: var(--nv-glass-solid);
  --glass-line: var(--nv-glass-line);
  --glass-shadow: var(--nv-shadow-panel);
  --navi-glass: var(--nv-navi-glass);
  --navi-blur: var(--nv-blur-glass);
  --blur-glass: var(--nv-blur-glass);
  --blur-panel: var(--nv-blur-panel);
  --shadow-glass: var(--nv-shadow-glass);
  --shadow-panel: var(--nv-shadow-panel);
  --shadow-primary: var(--nv-shadow-primary);
  --shadow-primary-hover: var(--nv-shadow-primary-hover);
  --shadow-primary-small: var(--nv-shadow-primary-small);
  --cat-food: var(--nv-cat-food);
  --cat-food-ink: var(--nv-cat-food-ink);
  --cat-shop: var(--nv-cat-shop);
  --cat-shop-ink: var(--nv-cat-shop-ink);
  --cat-night: var(--nv-cat-night);
  --cat-night-ink: var(--nv-cat-night-ink);
  --cat-out: var(--nv-cat-out);
  --cat-out-ink: var(--nv-cat-out-ink);
  --cat-arts: var(--nv-cat-arts);
  --cat-arts-ink: var(--nv-cat-arts-ink);
  --cat-other: var(--nv-cat-other);
  --cat-other-ink: var(--nv-cat-other-ink);
  --font-sans: var(--nv-font-sans);
  --font-mono: var(--nv-font-mono);
  --mono: var(--nv-font-sans);
  --pixel: var(--nv-font-mono);
  --space-1: var(--nv-space-1);
  --space-2: var(--nv-space-2);
  --space-3: var(--nv-space-3);
  --space-4: var(--nv-space-4);
  --space-5: var(--nv-space-5);
  --space-6: var(--nv-space-6);
  --space-7: var(--nv-space-7);
  --radius-small: var(--nv-radius-small);
  --radius-medium: var(--nv-radius-medium);
  --radius-card: var(--nv-radius-card);
  --radius-large: var(--nv-radius-large);
  --radius-pill: var(--nv-radius-pill);
  --r-small: var(--nv-radius-small);
  --r-med: var(--nv-radius-medium);
  --r-card: var(--nv-radius-card);
  --r-input: var(--nv-radius-small);
  --r-pill: var(--nv-radius-pill);
  --motion-press: var(--nv-motion-press);
  --motion-press-scale: var(--nv-motion-press-scale);
  --press-scale: var(--nv-press-scale);
  --motion-selection: var(--nv-motion-selection);
  --motion-segment: var(--nv-motion-segment);
  --motion-cbpop: var(--nv-motion-cbpop);
  --motion-sheet: var(--nv-motion-sheet);
  --motion-map-adjustment: var(--nv-motion-map-adjustment);
  --motion-cardrise: var(--nv-motion-cardrise);
  --motion-wordin: var(--nv-motion-wordin);
  --motion-shimmer: var(--nv-motion-shimmer);
  --motion-blink: var(--nv-motion-blink);
  --motion-edge: var(--nv-motion-edge);
  --motion-globe: var(--nv-motion-globe);
  --ease-card: var(--nv-ease-card);
  --ease-word: var(--nv-ease-word);
  --t-press: var(--nv-motion-press);
  --t-select: var(--nv-motion-selection);
  --tabh: 58px;
}

html[data-theme="light"] {
  --nv-bg: #f6f6f8;
  --nv-surface: #ffffff;
  --nv-surface-raised: #f0f0f3;
  --nv-text: #111216;
  --nv-text-body: #2b2d36;
  --nv-text-secondary: #6a6c78;
  --nv-text-tab: #6a6c78;
  --nv-text-faint: #9b9ba1;
  --nv-placeholder: #6b6b70;
  --nv-accent-text: #d60f2f;
  --nv-focus: #111216;
  --nv-positive: #1e9e63;
  --nv-warning: #b7791f;
  --nv-divider: #e4e5ea;
  --nv-border: #e4e5ea;
  --nv-line: #e4e5ea;
  --nv-line-dim: #d6d7dd;
  --nv-line-alpha: rgba(17, 18, 22, 0.1);
  --nv-tint: 17, 18, 24;
  --nv-line-2: #dadbe1;
  --nv-line-3: #b9bbc4;
  --nv-fill-2: #f1f1f4;
  --nv-panel: rgba(255, 255, 255, 0.92);
  --nv-panel-solid: #ffffff;
  --nv-glass: rgba(255, 255, 255, 0.9);
  --nv-glass-solid: #ffffff;
  --nv-glass-line: rgba(17, 18, 24, 0.1);
  --nv-navi-glass: rgba(255, 255, 255, 0.92);
  --nv-shadow-glass: 0 8px 24px rgba(17, 18, 24, 0.1);
  --nv-shadow-panel: 0 8px 24px rgba(17, 18, 24, 0.1);
  --nv-shadow-primary: 0 6px 16px rgba(255, 18, 56, 0.22);
  --nv-shadow-primary-hover: 0 8px 22px rgba(255, 18, 56, 0.28);
  --nv-shadow-primary-small: 0 4px 12px rgba(255, 18, 56, 0.22);
  --line-red: rgba(var(--nv-tint), 0.35);
  --red-dim: rgba(var(--nv-tint), 0.3);
  --red-ink: rgba(var(--nv-tint), 0.08);
}

/* Glass controls and the one red action. Existing buttons on both sites
   take these treatments; a new control uses the same properties. */
.nv-btn-glass,
.pill,
.searchpill,
.zoomgrp,
.ns .ns-ghost,
.navi-screen .btn--secondary,
#navi-header .nvh-login,
#navi-header .nvh-account-btn,
#nvh-panel .nvh-panel-auth a,
#nvh-panel .nvh-panel-auth button,
#nvh-panel .nvh-panel-nav a,
.nv-cc__btn {
  background: var(--navi-glass);
  border-color: var(--glass-line);
  color: var(--text);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  font-family: var(--font-sans);
}

.nv-btn-shadow,
.ns .ns-cta,
#navi-hero-demo .nv-cta,
.navi-screen .btn--primary,
#navi-header .nvh-nav a.nvh-open,
#nvh-panel .nvh-panel-open a,
.askbar .go,
.nv-cc__btn[data-nv-cc="accept"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-primary);
  font-family: var(--font-sans);
}

.ns .ns-cta:hover,
#navi-hero-demo .nv-cta:hover,
.navi-screen .btn--primary:hover,
#navi-header .nvh-nav a.nvh-open:hover,
#nvh-panel .nvh-panel-open a:hover,
.nv-cc__btn[data-nv-cc="accept"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-primary-hover);
}

.ns .ns-cta,
#navi-hero-demo .nv-cta,
.navi-screen .btn,
#navi-header .nvh-nav a.nvh-open {
  transition: transform var(--motion-press) ease, box-shadow var(--motion-press) ease, background-color var(--motion-press) ease, border-color var(--motion-selection) ease;
}

.ns .ns-cta:active,
#navi-hero-demo .nv-cta:active,
.navi-screen .btn:active,
#navi-header .nvh-nav a.nvh-open:active {
  transform: scale(var(--press-scale));
}

/* The blocks name their own variables. Point every one at this set. */
.navi-screen {
  --brand: var(--nv-accent);
  --brand-soft: var(--nv-accent-hover);
  --ink: var(--nv-bg);
  --surface: var(--nv-surface);
  --surface-raised: var(--nv-surface-raised);
  --text: var(--nv-text-body);
  --text-strong: var(--nv-text);
  --text-muted: var(--nv-text-secondary);
  --line: var(--nv-line-alpha);
  --positive: var(--nv-positive);
  --warning: var(--nv-warning);
  --on-brand: var(--nv-on-accent);
  --focus: var(--nv-focus);
  --font: var(--nv-font-sans);
  --r-input: var(--nv-radius-small);
  --r-card: var(--nv-radius-medium);
  --r-pill: var(--nv-radius-pill);
  --t-press: var(--nv-motion-press);
  --t-select: var(--nv-motion-selection);
}

.ns {
  --ns-red: var(--nv-accent);
  --ns-red-soft: var(--nv-accent-hover);
  --ns-ink: var(--nv-bg);
  --ns-surface: var(--nv-surface);
  --ns-raised: var(--nv-surface-raised);
  --ns-line: var(--nv-divider);
  --ns-text: var(--nv-text-body);
  --ns-muted: var(--nv-text-secondary);
}

#nvh-panel {
  --nvh-red: var(--nv-accent);
  --nvh-red-dim: var(--nv-accent-pressed);
  --nvh-red-hover: var(--nv-accent-hover);
  --nvh-bg: var(--nv-bg);
  --nvh-card: var(--nv-surface);
  --nvh-line: var(--nv-divider);
  --nvh-line-2: var(--nv-border);
  --nvh-text: var(--nv-text);
  --nvh-text-2: var(--nv-text-faint);
  --nvh-pill-fill: var(--nv-navi-glass);
  --nvh-pill-line: var(--nv-glass-line);
  --nvh-pill-line-hover: var(--nv-text-secondary);
  font-family: var(--nv-font-sans);
}

#navi-header {
  --nvh-red: var(--nv-accent);
  --nvh-red-dim: var(--nv-accent-pressed);
  --nvh-red-hover: var(--nv-accent-hover);
  --nvh-bg: var(--nv-bg);
  --nvh-card: var(--nv-surface);
  --nvh-line: var(--nv-divider);
  --nvh-line-2: var(--nv-border);
  --nvh-text: var(--nv-text);
  --nvh-text-2: var(--nv-text-faint);
  --nvh-pill-fill: var(--nv-navi-glass);
  --nvh-pill-line: var(--nv-glass-line);
  --nvh-pill-line-hover: var(--nv-text-secondary);
  font-family: var(--nv-font-sans);
}

#navi-hero-demo {
  --nv-red: var(--nv-accent);
  --nv-red-soft: var(--nv-accent-hover);
  --nv-ink: var(--nv-bg);
  --nv-surface: var(--nv-surface);
  --nv-surface-2: var(--nv-surface-raised);
  --nv-nav: var(--nv-bg);
  --nv-line: var(--nv-line-alpha);
  --nv-text: var(--nv-text-body);
  --nv-muted: var(--nv-text-secondary);
  --nv-faint: var(--nv-text-faint);
  --nv-chrome: var(--nv-text-secondary);
}

#navi-problem {
  --np-red: var(--nv-accent);
  --np-ink: var(--nv-bg);
  --np-surface: var(--nv-surface);
  --np-line: var(--nv-divider);
  --np-text: var(--nv-text-body);
  --np-muted: var(--nv-text-secondary);
}

#navi-how {
  --nh-red: var(--nv-accent);
  --nh-ink: var(--nv-bg);
  --nh-surface: var(--nv-surface);
  --nh-raised: var(--nv-surface-raised);
  --nh-line: var(--nv-divider);
  --nh-text: var(--nv-text-body);
  --nh-muted: var(--nv-text-secondary);
  --nh-dim: var(--nv-text-faint);
}

#navi-terms-page,
#navi-privacy-page,
#navi-eula-page {
  --navi-red: var(--nv-accent);
  --navi-bg: var(--nv-bg);
  --navi-surface: var(--nv-surface);
  --navi-line: var(--nv-line-alpha);
  --navi-text: var(--nv-text-body);
  --navi-white: var(--nv-text);
  --navi-font: var(--nv-font-sans);
}

#navi-problem .np-answer {
  box-shadow: var(--shadow-primary);
  color: var(--on-accent);
}

/* The opening globe, then the mark. The same drawing as the map's boot. */
.nv-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--accent);
  transition: opacity var(--motion-sheet) var(--nv-ease-out);
}

.nv-splash.nv-splash-out {
  opacity: 0;
  pointer-events: none;
}

.nv-splash-stage {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.nv-splash-globe {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  animation: nv-bootspin var(--motion-globe) linear forwards;
}

.nv-splash-mark {
  width: 72px;
  height: 74px;
  object-fit: contain;
  opacity: 0;
  animation: nv-bootmark var(--motion-cardrise) var(--ease-card) 1.15s forwards;
}

html.nv-continuing .nv-splash-globe,
.nv-splash.is-wait .nv-splash-globe {
  animation: nv-globespin var(--motion-globe) linear infinite;
  opacity: 1;
}

html.nv-continuing .nv-splash-mark,
.nv-splash.is-wait .nv-splash-mark {
  opacity: 0;
  animation: none;
}

.app .nv-splash {
  position: absolute;
  z-index: 3;
}

@keyframes nv-bootspin {
  0% { transform: rotate(0) scale(1); opacity: 1; }
  45% { transform: rotate(80deg) scale(1); opacity: 1; }
  100% { transform: rotate(140deg) scale(1.7); opacity: 0; }
}

@keyframes nv-globespin {
  to { transform: rotate(360deg); }
}

@keyframes nv-bootmark {
  0% { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-splash { transition-duration: var(--motion-press); }
  .nv-splash-globe,
  html.nv-continuing .nv-splash-globe,
  .nv-splash.is-wait .nv-splash-globe { animation: none; opacity: 0; }
  .nv-splash-mark,
  html.nv-continuing .nv-splash-mark,
  .nv-splash.is-wait .nv-splash-mark { animation: none; opacity: 1; transform: none; filter: none; }
  .ns .ns-cta:active,
  #navi-hero-demo .nv-cta:active,
  .navi-screen .btn:active,
  #navi-header .nvh-nav a.nvh-open:active { transform: none; }
}
