/* GO website — Rivian-style layout on GO's own brand tokens (brand/brand-tokens.css). */
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #16181D;
  --brand-pressed: #000000;
  --accent: #FFE3D6;
  --ink: #16181D;
  --ink-raised: #1F2228;
  --on-dark: #C9CBD1;
  --canvas: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F1F2F4;
  --studio: #F4F5F7;
  --muted: #5F636B;
  --line: #E4E5E8;
  --radius: 16px;
  --radius-lg: 28px;
  --gutter: 16px;
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; z-index: 20;
  top: 12px; left: 12px; right: 12px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(22,24,29, 0.06), 0 8px 24px rgba(22,24,29, 0.08);
}
.nav .logo { width: 84px; height: auto; }
.nav .links { display: none; gap: 28px; margin-left: 24px; font-size: 0.875rem; font-weight: 600; }
.nav .links a { text-decoration: none; color: var(--ink); }
.nav .links a:hover { color: var(--brand); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) { .nav .links { display: flex; } }

/* ---------- Buttons (GO actions: 16px radius, 48px tall — not pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; border-radius: 12px; }
.btn-brand { background: linear-gradient(135deg,#FF9A3C 0%,#FF5A36 30%,#E8306F 62%,#8A3FFC 100%); border: 0; color: #fff; text-shadow: 0 1px 2px rgba(120,20,60,.22); }
.btn-brand:hover { filter: brightness(.94); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lime { background: var(--accent); color: var(--ink); }
.btn-lime:hover { filter: brightness(0.96); }

/* ---------- Full-bleed photo sections ---------- */
.photo {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  /* Shown until (or if) the photograph loads. */
  background: radial-gradient(120% 80% at 70% 20%, #2A2D34 0%, #1F2228 45%, #0B0C0F 100%);
}
.photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.15) 0%, rgba(11, 12, 15, 0) 35%, rgba(11, 12, 15, 0.7) 100%);
}
.photo .inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 120px 24px 56px;
  text-align: center;
}
.photo h1, .photo h2 {
  margin: 0 auto; max-width: 14ch;
  font-size: clamp(2.75rem, 9vw, 4.5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em;
}
.photo p {
  margin: 16px auto 0; max-width: 34ch;
  font-size: 1.0625rem; font-weight: 500; color: rgba(255, 255, 255, 0.92);
}
.photo .actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.photo .actions .btn { flex: 1 1 160px; max-width: 220px; }
.photo.short { min-height: 88svh; }
@media (min-width: 900px) {
  .photo.left .inner { text-align: left; }
  .photo.left h1, .photo.left h2, .photo.left p { margin-left: 0; }
  .photo.left .actions { justify-content: flex-start; }
}

/* ---------- Giant word behind the product (Rivian "R1S") ---------- */
.studio { background: var(--studio); overflow: hidden; padding: 72px 0 64px; text-align: center; }
.studio .stage { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.studio .giant {
  position: absolute; left: 0; right: 0; top: -0.06em;
  font-size: clamp(11rem, 46vw, 30rem); line-height: 0.85; font-weight: 800; letter-spacing: -0.06em;
  color: var(--ink); user-select: none; pointer-events: none;
}
.studio .giant span { background: linear-gradient(135deg,#FF9A3C 0%,#FF5A36 30%,#E8306F 62%,#8A3FFC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio .phone { position: relative; margin: 0 auto; width: min(64vw, 300px); }
.studio h2 {
  margin: 36px auto 0; max-width: 20ch;
  font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em;
}
.studio p { margin: 12px auto 0; max-width: 40ch; color: var(--muted); font-weight: 500; }
.studio .actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Phone frame around a real app screenshot */
.phone {
  border-radius: 40px; padding: 8px; background: #0B0C0F;
  box-shadow: 0 30px 60px -20px rgba(22,24,29, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 499 / 1080; object-fit: cover; background: var(--soft); }

/* ---------- How it works: tabs ---------- */
.how { padding: 80px 0 72px; background: var(--canvas); }
.how .head { text-align: center; padding: 0 24px; }
.how h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.tabs {
  display: inline-flex; gap: 4px; margin: 28px auto 0; padding: 4px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  max-width: calc(100vw - 32px); overflow-x: auto;
}
.tabs button {
  border: 0; background: transparent; color: var(--ink);
  font: 600 0.9375rem/1 var(--font); min-height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.panels { max-width: 1000px; margin: 40px auto 0; padding: 0 24px; }
.panel { display: grid; gap: 32px; align-items: center; justify-items: center; }
.panel[hidden] { display: none; }
.panel .phone { width: min(70vw, 300px); }
.panel .copy { text-align: center; max-width: 30ch; }
.panel .step { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.panel h3 { margin: 8px 0 0; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.panel p { margin: 10px 0 0; color: var(--muted); font-size: 1.0625rem; font-weight: 500; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1fr 1fr; justify-items: stretch; }
  .panel .phone { justify-self: end; margin-right: 32px; }
  .panel .copy { text-align: left; }
}

/* ---------- Dark: built for riders ---------- */
.dark { background: var(--ink); color: #fff; padding: 88px 24px; }
.dark .wrap { max-width: 1100px; margin: 0 auto; }
.dark h2 { margin: 0 auto; text-align: center; max-width: 16ch; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.dark .sub { text-align: center; color: var(--on-dark); margin: 14px auto 0; max-width: 40ch; font-weight: 500; }
.cards { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--ink-raised); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid rgba(196, 211, 199, 0.12);
}
.card .k { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.card h3 { margin: 18px 0 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { margin: 6px 0 0; color: var(--on-dark); font-weight: 500; }

/* ---------- Join (Rivian sign-up card) ---------- */
.join { padding: 0 16px; margin: -48px auto 0; position: relative; z-index: 2; max-width: 1100px; }
.join .box {
  background: var(--brand); color: #fff; border-radius: var(--radius-lg);
  padding: 32px 24px; display: grid; gap: 20px;
}
.join h2 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; }
.join p { margin: 8px 0 0; color: #E6E7EA; font-weight: 500; max-width: 46ch; }
.join .meta { font-size: 0.875rem; color: #C9CBD1; margin-top: 4px; }
@media (min-width: 800px) { .join .box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px; } .join .btn { justify-self: end; } }
.android-access-form { display: grid; gap: 8px; margin-top: 12px; max-width: 430px; }
.android-access-form[hidden] { display: none; }
.android-access-form > label:not(.access-honeypot) { color: #fff; font-size: 0.9375rem; font-weight: 600; }
.android-access-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px; align-items: stretch; }
.android-access-row input { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.48); border-radius: var(--radius); padding: 0 14px; color: var(--ink); background: #fff; font: inherit; }
.android-access-row .btn { width: auto; min-width: max-content; justify-self: start; }
.android-access-form .access-privacy,.android-access-form .access-status { margin: 0; font-size: 0.8125rem; line-height: 1.45; }
.android-access-form .access-status:empty { display: none; }
.android-access-form .access-status[data-state="error"] { color: #ffe2dc; }
.android-access-form .access-status[data-state="success"] { color: #e8ffd1; }
.access-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .android-access-row { grid-template-columns: minmax(0, 1fr); } .android-access-row input { min-height: 48px; } }

/* ---------- Quick tiles ---------- */
.tiles { max-width: 1100px; margin: 0 auto; padding: 72px 16px 24px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  min-height: 128px; border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; font-weight: 700; font-size: 1.0625rem;
  transition: transform 0.15s;
}
.tile:hover { transform: translateY(-2px); }
.tile .arrow { align-self: flex-end; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(22,24,29, 0.9); color: #fff; }
.tile small { display: block; font-weight: 500; font-size: 0.8125rem; opacity: 0.8; margin-top: 2px; }
.t1 { background: var(--brand); color: #fff; } .t1 .arrow { background: #fff; color: var(--brand); }
.t2 { background: var(--accent); color: var(--ink); }
.t3 { background: var(--soft); color: var(--ink); }
.t4 { background: var(--ink); color: #fff; } .t4 .arrow { background: var(--accent); color: var(--ink); }

/* ---------- Footer ---------- */
footer { max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; color: var(--muted); font-size: 0.875rem; }
footer .logo { width: 132px; height: auto; }
footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
footer .right { margin-left: auto; }

/* ---------- Simple text pages (delete account) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 120px 24px 80px; }
.page h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
.page h2 { font-size: 1.25rem; margin: 40px 0 8px; }
.page p, .page li { color: #2E3138; font-size: 1.0625rem; }
.page ol { padding-left: 22px; } .page li { margin: 8px 0; }
.page .note { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; margin-top: 28px; }

/* Gentle reveal; off when the reader asks for less motion. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* App Store badge — Apple's official artwork, never redrawn or recoloured */
.appstore-badge { display: inline-flex; align-items: center; line-height: 0; border-radius: 10px; }
.appstore-badge img { width: 150px; height: 50px; object-fit: contain; }
.appstore-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.download-options .appstore-badge { margin: 8px 0 4px; }
.platform-label-next { margin-top: 18px; }
