/* OdoBook website — matches iPhone neon garage (midnight / cyan / race orange). */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-accent: #161a22;
  --panel: #1e2332;
  --ink: #e8ecf2;
  --muted: #a8b0c0;
  --cyan: #2ad4ff;
  --cyan-soft: #5ce0ff;
  --orange: #ff5c1a;
  --orange-soft: #ff7a3d;
  --stroke: rgba(42, 212, 255, 0.22);
  --card: rgba(22, 26, 34, 0.88);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --max: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(42, 212, 255, 0.18), transparent 58%),
    radial-gradient(780px 480px at 100% 4%, rgba(255, 92, 26, 0.14), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #12151d 55%, #0b0d12 100%);
  line-height: 1.55;
  min-height: 100svh;
}

a { color: var(--cyan); text-underline-offset: 0.15em; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 1px rgba(42, 212, 255, 0.35);
  background: #0b0d12;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  font-size: 0.95rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan-soft); }

.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: 2rem 0 4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.6rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--cyan);
  max-width: 10ch;
}

.hero .lede {
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.button.primary {
  background: var(--orange);
  color: #0b0d12;
  box-shadow: 0 10px 28px rgba(255, 92, 26, 0.28);
}
.button.primary:hover { background: var(--orange-soft); }
.button.secondary {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(42, 212, 255, 0.55);
}
.button.secondary:hover {
  background: rgba(42, 212, 255, 0.1);
}
.button.apple {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.section {
  padding: 3.5rem 0;
}
.section h1,
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.section .intro {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

.feature {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border-radius: 1rem;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan-soft);
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: var(--card);
  border-radius: 0 0.75rem 0.75rem 0;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(42, 212, 255, 0.12);
  margin-top: 2rem;
}
.site-footer p { margin: 0.35rem 0; }

.prose {
  max-width: 42rem;
  padding: 2rem 0 4rem;
}
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  color: var(--cyan);
}
.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
  color: var(--ink);
}
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }

.auth-panel {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(42, 212, 255, 0.18);
}
.auth-panel label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}
.auth-panel input {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(42, 212, 255, 0.28);
  background: #0b0d12;
  color: var(--ink);
}
.auth-panel input:focus {
  outline: 2px solid rgba(42, 212, 255, 0.45);
  outline-offset: 1px;
}

.garage-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.garage-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.garage-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--cyan-soft);
}
.garage-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  color: var(--orange-soft);
}
.garage-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.garage-page { padding-top: 1.5rem; }
.garage-app { margin-top: 1.25rem; }
.garage-shell {
  display: grid;
  gap: 1rem;
}

.vehicle-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.vehicle-chip {
  appearance: none;
  border: 1px solid rgba(42, 212, 255, 0.28);
  background: rgba(22, 26, 34, 0.8);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.vehicle-chip.is-active {
  color: #0b0d12;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

.hero-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .hero-card {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    align-items: end;
  }
}
.hero-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: #12151d;
  border: 1px solid rgba(42, 212, 255, 0.18);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo.is-placeholder img.hero-logo-fallback {
  object-fit: contain;
  padding: 1.5rem;
  background: #0b0d12;
}
.photo-upload {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgba(11, 13, 18, 0.78);
  color: var(--cyan-soft);
  border: 1px solid rgba(42, 212, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.photo-upload input { display: none; }
.hero-copy .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--orange-soft);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--cyan-soft);
}
.hero-copy .muted,
.muted { color: var(--muted); }

.odometer-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(42, 212, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(42, 212, 255, 0.08), transparent 55%),
    #12151d;
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.odometer-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.odometer-value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--cyan);
}
.odometer-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--orange-soft);
  font-size: 0.85rem;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.shortcut {
  appearance: none;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1rem;
  padding: 0.95rem 0.85rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.shortcut-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cyan-soft);
  font-size: 0.95rem;
}
.shortcut-meta {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.garage-actions { margin-top: 0.25rem; }

.glovebox-peek,
.panel {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1.1rem;
}
.panel.is-quiet {
  background: transparent;
  border-style: dashed;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.section-head h3,
.panel h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--orange-soft);
  font-size: 1.05rem;
}
.panel h3 + h3,
.panel h3 { margin-top: 1rem; }
.panel h3:first-child { margin-top: 0; }
.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.doc-grid.dense { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.doc-card {
  appearance: none;
  border: 1px solid rgba(42, 212, 255, 0.2);
  background: #12151d;
  border-radius: 1rem;
  padding: 0.75rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.doc-card strong { display: block; margin-top: 0.55rem; }
.doc-card span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.doc-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #0b0d12;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 212, 255, 0.12);
}
.doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-thumb.is-empty,
.doc-file {
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.upload-row .button { cursor: pointer; }

.record-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.record-list li {
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(11, 13, 18, 0.55);
  border: 1px solid rgba(42, 212, 255, 0.12);
}
.record-list strong { display: block; color: var(--ink); }
.record-list span { color: var(--muted); font-size: 0.9rem; }
.record-list p { margin: 0.35rem 0 0; color: var(--muted); }
.pill {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 92, 26, 0.16);
  color: var(--orange-soft);
  font-size: 0.75rem;
}

.viewer-dialog,
.form-dialog {
  width: min(92vw, 42rem);
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  background: #12151d;
  color: var(--ink);
  padding: 0;
}
.viewer-dialog::backdrop,
.form-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(42, 212, 255, 0.14);
}
.viewer-body { padding: 1rem; }
.viewer-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #0b0d12;
}
.form-dialog .auth-panel {
  margin: 0;
  box-shadow: none;
  border: 0;
}
.auth-panel select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(42, 212, 255, 0.28);
  background: #0b0d12;
  color: var(--ink);
}

.brand-mark-hero {
  width: min(9.5rem, 42vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(42, 212, 255, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
  background: #0b0d12;
}

@media (max-width: 640px) {
  .shortcut-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}

#appleid-signin {
  width: 100%;
  min-height: 44px;
}
