/* Start Car public site. System fonts only, no scripts, light and dark.
   The look comes from the product: a frosty night outside, a warm engine inside.
   Amber is kept for the main buttons; green is the iOS switch's "on" state. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --rule: #d2d2d7;
  --amber: #ff9f0a;
  --amber-text: #a85a00;
  --on-amber: #000000;
  --green: #34c759;
  --frost: #9cc9ff;
  --night: #0a1120;
  --night-2: #000000;
  --on-night: #f5f5f7;
  --on-night-muted: #a1a1a6;
  --focus: #0071e3;
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --link: #2997ff;
    --rule: #38383a;
    --focus: #2997ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Layout */

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

section {
  padding: 88px 0;
}

@media (min-width: 860px) {
  section {
    padding: 128px 0;
  }
}

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  max-width: 38rem;
  margin: 0 auto 48px;
}

.kicker {
  color: var(--amber-text);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

@media (prefers-color-scheme: dark) {
  .kicker {
    color: var(--amber);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 200ms ease, transform 150ms ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-primary:hover {
  background: #ffb340;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-link {
  color: var(--frost);
}

.btn-link:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(22, 22, 23, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 12px 0;
}

.site-header nav a:hover {
  color: var(--text);
}

.site-header nav .nav-cta {
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.site-header nav .nav-cta:hover {
  color: var(--on-amber);
  background: #ffb340;
}

.home .site-header {
  background: rgba(10, 17, 32, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.home .site-header .brand {
  color: var(--on-night);
}

.home .site-header nav a:not(.nav-cta) {
  color: var(--on-night-muted);
}

.home .site-header nav a:not(.nav-cta):hover {
  color: var(--on-night);
}

@media (max-width: 560px) {
  .site-header nav .optional {
    display: none;
  }

  .site-header nav {
    gap: 16px;
  }
}

/* Hero: a cold night with a warm glow behind the phone */

.hero {
  color: var(--on-night);
  background:
    radial-gradient(60rem 30rem at 50% 0%, rgba(156, 201, 255, 0.16), transparent 70%),
    radial-gradient(34rem 26rem at 50% 78%, rgba(255, 159, 10, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  padding: 64px 0 0;
  overflow: hidden;
  text-align: center;
}

.hero .eyebrow {
  color: var(--frost);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 24px;
}

.hero h1 .warm {
  color: var(--amber);
}

.hero .lead {
  color: var(--on-night-muted);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  max-width: 36rem;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}

.price-note {
  color: var(--on-night-muted);
  font-size: 0.95rem;
  margin: 16px 0 0;
}

.hero a:focus-visible,
.home .site-header a:focus-visible {
  outline-color: var(--frost);
}

.stage {
  position: relative;
  width: min(320px, 78vw);
  margin: 64px auto 0;
  padding-bottom: 72px;
}

.device {
  border-radius: 44px;
  border: 8px solid #1d1d1f;
  background: #1d1d1f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 159, 10, 0.18);
}

.device-sm {
  width: min(300px, 76vw);
  justify-self: center;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.18);
}

/* The signature: the app's Engine switch, flipping on */

.switch-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(340px, 88vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  text-align: left;
  color: #1d1d1f;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.switch-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--green);
}

.switch-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.switch-text strong {
  font-size: 1.05rem;
}

.switch-text span {
  font-size: 0.85rem;
  color: #6e6e73;
}

.switch {
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--green);
  animation: switch-track 900ms ease 700ms both;
}

.knob {
  position: absolute;
  top: 2px;
  left: 22px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: switch-knob 900ms cubic-bezier(0.3, 1.4, 0.5, 1) 700ms both;
}

@keyframes switch-track {
  0%,
  30% {
    background: #e9e9eb;
  }

  100% {
    background: var(--green);
  }
}

@keyframes switch-knob {
  0%,
  30% {
    left: 2px;
  }

  100% {
    left: 22px;
  }
}

@media (min-width: 860px) {
  .stage {
    padding-bottom: 96px;
  }

  .switch-card {
    left: auto;
    right: -170px;
    bottom: 104px;
    transform: none;
    width: 320px;
  }
}

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

  .switch,
  .knob {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* Steps */

.steps-section {
  background: var(--bg);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 40px;
}

.step-n {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rule);
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* Split sections */

.feature-hero {
  background: var(--surface);
}

.split {
  display: grid;
  gap: 56px;
  align-items: center;
}

.split-text p:not(.kicker) {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 32rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
  }
}

/* Bento grid */

.bento {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  gap: 16px;
}

.tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.tile h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 18px 0 8px;
}

.tile p {
  color: var(--muted);
  margin: 0;
}

.ico {
  width: 34px;
  height: 34px;
  color: var(--amber-text);
}

@media (prefers-color-scheme: dark) {
  .ico {
    color: var(--amber);
  }
}

@media (min-width: 680px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-wide:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .tile-wide {
    grid-column: span 2;
  }
}

/* Character: always night, so the art's black background disappears */

.character-section {
  background: #000000;
  color: var(--on-night);
}

.character-section .section-sub {
  color: var(--on-night-muted);
}

.character {
  margin: 0 auto;
  width: min(720px, 100%);
  border-radius: var(--radius);
}

/* Watch */

.watch-section {
  background: var(--surface);
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  background: var(--bg);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 500;
}

/* Pricing */

.plans {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin: 0 auto 40px;
  text-align: left;
}

.plan {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px solid transparent;
}

.plan-best {
  border-color: var(--amber);
}

.plan h3 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan .amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.plan .per {
  color: var(--muted);
  margin: 6px 0 0;
}

.tag {
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.fine {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
  margin: 28px auto 0;
}

/* FAQ */

.faq {
  background: var(--surface);
}

.faq .section-title {
  margin-bottom: 40px;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 20px 36px 20px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  margin: 0;
  padding: 0 0 22px;
}

/* Closing */

.closing img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 28px;
}

/* Text pages (privacy, terms, support) */

.page main {
  padding-top: 24px;
  padding-bottom: 64px;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}

.page h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 40px 0 10px;
}

.page p,
.page ul {
  margin: 0 0 16px;
}

.page ul {
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 8px;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 4px;
}
