/* Glovebox landing page: the app's "garage at night" look (lib/theme/tokens.ts). */
:root {
  --ground: #0a0e13;
  --surface: #121821;
  --raised: #18202b;
  --sunken: #0e131a;
  --line: #253040;
  --hairline: #1c2531;
  --ink: #f2f4f7;
  --ink-soft: #b9c1cd;
  --ink-muted: #8a94a3;
  --accent: #f5c518;
  --accent-soft: #2a2412;
  --on-accent: #14110a;
  --link: #4fb3e8;
  --overdue: #f25555;
  --soon: #f5a524;
  --ok: #3dcb82;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- type ---------- */

h1,
h2,
h3,
.brand span {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 0.92;
}
h1 span {
  color: var(--accent);
}

h2 {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.kicker {
  font: 600 14px/1.2 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.kicker.center {
  text-align: center;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 26px 0 0;
}

p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.muted {
  color: var(--ink-muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 17px/1 var(--body);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(245, 197, 24, 0.28);
}
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
  box-shadow: none;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 600 15px/1.2 var(--body);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cta.center {
  justify-content: center;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand img {
  border-radius: 9px;
}
.brand span {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  position: relative;
  padding-bottom: 6px;
}
.brand span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.brand-small span {
  font-size: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
.nav a:not(.btn):hover {
  color: var(--ink);
}

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

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    linear-gradient(rgba(10, 14, 19, 0.2), var(--ground) 92%),
    linear-gradient(90deg, rgba(37, 48, 64, 0.32) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(37, 48, 64, 0.32) 1px, transparent 1px) 0 0 / 44px 44px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: 16px;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.hero-phones {
  position: relative;
  height: clamp(520px, 52vw, 640px);
}
.hero-phones .phone {
  position: absolute;
  width: clamp(230px, 22vw, 290px);
}
.phone-front {
  right: 8%;
  top: 0;
  z-index: 2;
  transform: rotate(3deg);
}
.phone-back {
  left: 2%;
  top: 70px;
  z-index: 1;
  transform: rotate(-6deg);
  opacity: 0.86;
}
.glow {
  position: absolute;
  inset: 18% 6% 8% 14%;
  background: radial-gradient(closest-side, rgba(245, 197, 24, 0.22), transparent);
  filter: blur(30px);
  z-index: 0;
}

/* ---------- phone frame ---------- */

.phone {
  margin: 0;
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b3542, #11161d 55%, #222b36);
  box-shadow:
    0 0 0 1px #3a4656 inset,
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.4);
}
.phone img {
  width: 100%;
  border-radius: 38px;
  background: var(--sunken);
}
.phone::after {
  /* The island. */
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* ---------- strip ---------- */

.strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--sunken);
}
.strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-row div {
  padding: 26px 18px;
  border-left: 1px solid var(--hairline);
}
.strip-row div:first-child {
  border-left: 0;
}
.strip-row strong {
  display: block;
  font: italic 800 24px/1 var(--display);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.strip-row span {
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- features ---------- */

.feature {
  padding: clamp(64px, 9vw, 120px) 0;
}
.feature.alt {
  background: linear-gradient(180deg, var(--ground), #0d1219 50%, var(--ground));
}
.feature-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.feature.alt .feature-grid > :first-child {
  order: 2;
}
.feature-grid > .phone {
  width: min(320px, 100%);
  justify-self: center;
}
.feature-copy {
  max-width: 560px;
}

.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.phone-pair .phone:last-child {
  margin-top: 56px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 16px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 7px;
  margin-top: -6px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- more ---------- */

.more {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--hairline);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  padding: 26px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.card p {
  margin: 0;
  font-size: 15px;
}

/* ---------- privacy ---------- */

.privacy {
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(79, 179, 232, 0.08), transparent), var(--sunken);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.locks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.locks li {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
}
.locks strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}
.locks span {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- final ---------- */

.final {
  padding: clamp(64px, 9vw, 120px) 0;
}
.final-box {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-radius: 28px;
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(245, 197, 24, 0.16), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.final-box h2 {
  font-size: clamp(42px, 6vw, 72px);
}
.final-box p {
  font-size: 18px;
}

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

.foot {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.foot-row p {
  margin: 0;
  font-size: 14px;
}
.foot-row .muted {
  margin-left: auto;
}

/* ---------- motion ---------- */

.motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .feature.alt .feature-grid > :first-child {
    order: 0;
  }
  .feature-copy {
    max-width: none;
  }
  .hero-phones {
    height: 520px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-phones .phone {
    width: 230px;
  }
  .strip-row {
    grid-template-columns: 1fr 1fr;
  }
  .strip-row div:nth-child(3) {
    border-left: 0;
  }
  .strip-row div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav a:not(.btn) {
    display: none;
  }
  .brand span {
    font-size: 24px;
  }
  .hero-phones {
    height: 440px;
  }
  .hero-phones .phone {
    width: 196px;
  }
  .phone-front {
    right: 2%;
  }
  .phone-back {
    left: 0;
  }
  .phone {
    padding: 7px;
    border-radius: 36px;
  }
  .phone img {
    border-radius: 30px;
  }
  .phone::after {
    top: 14px;
    height: 16px;
  }
  .cta .btn,
  .cta .soon-pill {
    width: 100%;
  }
  .soon-pill {
    justify-content: center;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .strip-row div {
    padding: 20px 12px;
  }
  .strip-row strong {
    font-size: 20px;
  }
  .phone-pair {
    gap: 12px;
  }
  .foot-row .muted {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* Policy and help pages. */
.doc {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.doc h1 {
  font: italic 800 clamp(40px, 7vw, 64px) / 0.95 var(--display);
  text-transform: uppercase;
  margin: 8px 0 20px;
}
.doc h2 {
  font: italic 700 26px/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 40px 0 10px;
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin: 8px 0;
}
.doc strong {
  color: var(--ink);
}
