:root {
  --void: #050506;
  --panel: #0c0c0e;
  --ink: #ffffff;
  --muted: #ffffff;
  --line: rgba(243, 239, 230, 0.12);
  --ivory: #e8e2d4;
  --hair: rgba(243, 239, 230, 0.22);
  --blue: #2996D9;
  --wa: #25d366;
  --call: #128c4a;
  --gutter: clamp(20px, 4vw, 56px);
  /* REGLA NÚMERO UNO / MD-LAW-0005 / CONTROL-MAESTRO §2a
     Do not change fonts without owner authorization. A redesign is not permission.
     Locked: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif */
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }
html, body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
::selection { background: var(--ivory); color: var(--void); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* Header */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(5,5,6,.72), rgba(5,5,6,0));
  color: var(--ink);
}
.bar.is-solid {
  background: rgba(5,5,6,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-size: 13px;
  margin-right: auto;
}
.bar nav {
  display: flex; gap: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar nav a:hover, .bar nav a.on { color: var(--ink); }
.soon-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--hair);
  padding: 7px 11px;
  white-space: nowrap;
}
.menu {
  display: none;
  width: 28px; height: 18px;
  background: none; border: 0; padding: 0;
  cursor: pointer; position: relative;
}
.menu span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
}
.menu span:first-child { top: 4px; }
.menu span:last-child { bottom: 4px; }

.md-lang__label {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.md-lang__select {
  appearance: none; border: 0; background: transparent;
  font: inherit; color: inherit; cursor: pointer; padding-right: 4px;
}

/* Boot + gate */
#boot {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
  transition: opacity .7s ease, visibility .7s ease;
}
#boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
#boot .ring {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gate {
  position: relative;
  height: 100vh; height: 100dvh; height: 100svh;
  overflow: hidden; background: var(--void); color: var(--ink);
}
.gate-bg, .gate-shade { position: absolute; inset: 0; }
.gate-bg video,
.chapter-media video,
.page-hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 0;
  transition: opacity 1.4s ease;
}
.gate-bg video.on,
.chapter-media video.on,
.page-hero video.on { opacity: 1; z-index: 1; }
.gate-shade {
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(0,0,0,.15), rgba(5,5,6,.78) 72%);
  pointer-events: none;
}
.gate-center {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px var(--gutter) 80px;
}
.gate-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 8.5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  max-width: 100%;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 6px 28px rgba(0, 0, 0, 0.45),
    0 4px 28px rgba(41, 150, 217, 0.18);
}
.gate-name .d {
  color: var(--blue);
  font-weight: 700;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(41, 150, 217, 0.25);
}
.gate-tag {
  margin: 1.1rem 0 0;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.65),
    0 3px 14px rgba(0, 0, 0, 0.5);
}
.gate-soon {
  margin: 1.6rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
}
.gate-enter {
  margin-top: 3rem;
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.65),
    0 3px 12px rgba(0, 0, 0, 0.45);
}
.gate-enter .chev {
  width: 10px; height: 10px;
  border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue);
  transform: rotate(45deg);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .7; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* Reveals */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity var(--ease), transform var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* House */
.house { padding-top: 0; background: var(--void); color: var(--ink); }

.manifesto {
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0 0 28px;
  max-width: 14ch;
}
.lede {
  max-width: 36em;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 19px);
  margin: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-ivory { background: var(--ivory); color: var(--void); }
.btn-ivory:hover { background: #fff; }
.btn-line { border-color: var(--hair); color: var(--ink); }
.btn-line:hover { border-color: var(--ivory); }
.btn-wa { background: var(--wa); color: #fff; border: 0; }
.btn-call { background: var(--call); color: #fff; border: 0; }
.btn:disabled { opacity: .5; cursor: wait; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.text-link { border-bottom: 1px solid var(--hair); padding-bottom: 4px; width: fit-content; }

/* Cinematic chapters */
.chapter {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: min(92vh, 920px);
  border-top: 1px solid var(--line);
}
.chapter:nth-child(even) { grid-template-columns: 0.8fr 1.2fr; }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media {
  position: relative; overflow: hidden; background: #000; min-height: 420px;
}
.chapter-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.chapter-no {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.chapter-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 6vw, 80px);
  background: var(--void);
}
.chapter-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 18px;
}
.chapter-copy p { margin: 0; color: var(--muted); max-width: 34em; font-weight: 300; }

/* Exhibit / process */
.exhibit-band {
  padding: clamp(72px, 12vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.exhibit {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.exhibit.cols-4 { grid-template-columns: repeat(4, 1fr); }
.exhibit li {
  padding: 36px var(--gutter) 8px 0;
  border-right: 1px solid var(--line);
}
.exhibit li:last-child { border-right: 0; padding-right: 0; }
.exhibit .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.exhibit h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 18px 0 12px;
}
.exhibit p { margin: 0; color: var(--muted); font-weight: 300; max-width: 28em; }

.rail {
  list-style: none; margin: 0; padding: 0;
  border-left: 1px solid var(--hair);
}
.rail li { position: relative; padding: 0 0 40px 36px; }
.rail li:last-child { padding-bottom: 0; }
.rail li::before {
  content: "";
  position: absolute; left: -5px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ivory);
}
.rail .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.rail strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
}
.rail p { margin: 0; color: var(--muted); font-weight: 300; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.split.full { grid-template-columns: 1fr; }
.panel { background: var(--void); padding: clamp(36px, 5vw, 64px); }
.panel h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  font-weight: 500;
}
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li {
  font-size: 18px;
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.panel li:last-child { border-bottom: 0; }
.warn {
  margin: 0;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--gutter) 80px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: 10px 14px;
  color: var(--muted);
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,6,.92) 12%, rgba(5,5,6,.2) 55%, rgba(5,5,6,.35));
}
.page-hero .inner {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(48px, 8vh, 88px);
  width: min(1100px, 100%);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0 0 18px;
  max-width: 16ch;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 38em; font-weight: 300; }

.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.flow li {
  padding: 36px var(--gutter) 40px 0;
  border-right: 1px solid var(--line);
}
.flow li:last-child { border-right: 0; }
.flow .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.flow strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  margin: 14px 0 8px;
  letter-spacing: -0.03em;
}
.flow p { margin: 0; color: var(--muted); font-weight: 300; }

.pad { padding: clamp(56px, 9vh, 100px) var(--gutter); }
.strip-lede { padding: 0 var(--gutter) 22px; }
.get {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.get li {
  display: grid;
  grid-template-columns: 3.2rem minmax(7rem, 12rem) 1fr;
  gap: 8px 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.get li:last-child { border-bottom: 0; }
.get .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.get strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.get p { margin: 0; color: var(--muted); font-weight: 300; }

/* Form */
.invite {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 12px;
  max-width: 16ch;
}
.invite span {
  display: block;
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 16px;
  max-width: 28em;
}
form { max-width: 640px; }
label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
}
input, textarea, select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 10px 0 12px;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-bottom-color: var(--ivory); }
textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.2em; font-size: 14px; margin: 14px 0 0; color: var(--muted); }
.form-msg.ok { color: #8fd9a8; }
.form-msg.err { color: #e08b8b; }
.cf-wrap { margin: 22px 0 8px; }
.note { font-size: 13px; color: var(--muted); font-weight: 300; }

.legal { max-width: 720px; padding: 120px var(--gutter) 100px; }
.legal h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.legal h2 {
  font-family: var(--display);
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal p, .legal li { color: var(--muted); font-weight: 300; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 48px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
footer.site a { margin-right: 16px; color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* Pricing and sign-in. System type only. Studio pages stay on the dark theme. */
.paper {
  --paper: #F7F6F2;
  --ink: #111111;
  --muted: #5A5A5A;
  --panel: #EFEDE7;
  --line: #D8D6CF;
  background: var(--paper);
  color: var(--ink);
}
.paper .bar {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 14px;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  overflow: visible;
}
.paper .bar nav { color: var(--muted); }
.paper .bar nav a.on, .paper .bar nav a:hover { color: var(--ink); }
.paper .logo {
  color: var(--ink);
  text-transform: lowercase;
  font-size: 16px;
}
.paper .logo span { color: #2996D9; }
.paper .bar nav {
  gap: 18px;
  letter-spacing: 0.06em;
}
.paper .sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  background: #111111;
  color: #F7F6F2;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.paper .md-lang__label {
  min-height: 36px;
  border-radius: 999px;
  border-color: var(--line);
  padding: 0 12px;
}
.paper main.sheet {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 72px;
}
body.signin main.sheet {
  padding-top: 12px;
}
.paper h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.paper .lead { color: var(--muted); max-width: 46rem; margin: 0 0 28px; line-height: 1.5; }
.bill {
  display: inline-flex;
  background: var(--panel);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}
.bill button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.bill button.on { background: #111111; color: #F7F6F2; }
#bill-yr[hidden] { display: none !important; }
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
body.fit {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.fit main.sheet {
  flex: 1;
  height: auto;
  padding: 28px 0 calc(72px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}
body.fit footer.site {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  z-index: 3;
  padding-top: 12px;
  padding-bottom: 12px;
}
.packs {
  margin: 14px 0 0;
  color: var(--ink);
  line-height: 1.45;
}
.grok-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--panel);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.45;
}
.grok-note h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.grok-note p { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.grok-note p:last-child { margin: 0; }
.grok-note a { color: var(--ink); }
.fit-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.fit-head h1 {
  margin: 0;
  font-size: 1.85rem;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.fit-head .bill { margin: 0; }
.token-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.read {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
}
.plans.cols {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
body.fit .plan {
  display: block;
  min-width: 0;
  padding: 4px 2px 8px;
}
body.fit #enterprise { margin-top: 10px; }
body.fit #enterprise:empty { display: none; margin: 0; }
body.fit #enterprise .plan {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 8px 20px;
  align-items: center;
}
body.fit #enterprise .plan.has-boxes {
  display: block;
}
body.fit #enterprise .plan:has(.plan-boxes) {
  display: block;
}
body.fit #enterprise .plan ul { grid-column: 1 / -1; }
body.fit .plan li.extra,
body.fit .detail,
body.fit .fine { display: none; }
body.fit.more .plan li.extra,
body.fit.more .detail,
body.fit.more .fine {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--panel);
  border-radius: 16px;
  max-width: none;
}
.detail { margin-top: 8px; font-size: 0.86rem; line-height: 1.4; }
.detail ul { margin: 6px 0 10px; padding-left: 1.1rem; }
.plan {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 8px 28px;
  background: var(--panel);
  border-radius: 18px;
  padding: 22px 22px 18px;
}
.plan h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.plan .price {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.2rem 0 0.45rem;
}
.plan .why { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.45; }
.plan ul { margin: 0; }
.plan ul { margin: 12px 0 0; padding-left: 1.1rem; color: var(--ink); }
.plan li { margin: 6px 0; }
.plan.has-boxes {
  container-type: inline-size;
  container-name: plan;
}
.plan.has-boxes,
body.fit .plan.has-boxes {
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.price-lead {
  margin: 0 0 1.25rem;
  max-width: none;
  color: var(--ink);
  font-size: 1.0625rem;
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  line-height: 1.55;
}
.price-lead p {
  margin: 0 0 0.5rem;
  text-wrap: pretty;
}
.price-lead p:last-child { margin: 0; color: var(--muted); }
.plan-boxes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.45rem;
}
body.fit .plan-box.extra { display: none; }
body.fit.more .plan-box.extra { display: block; }
.plan-box {
  background: var(--panel);
  border: 0;
  border-radius: 18px;
  padding: 0.9rem 0.95rem 0.55rem;
}
.plan-box h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.plan-box dl { margin: 0; }
.plan-box dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.05rem;
  padding-block: 0.28rem;
  border-top: 1px solid var(--line);
}
.plan-box dl > div:first-child { border-top: 0; }
.plan-box dt,
.plan-box dd {
  margin: 0;
  line-height: 1.4;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
}
.plan-box dt { color: var(--muted); font-size: 0.875rem; }
.plan-box dd {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-wrap: pretty;
  white-space: pre-line;
}
@container plan (min-width: 36rem) {
  .plan-box dl > div {
    grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 0.75rem;
  }
}
.plan-bonus,
.plan-offer {
  padding: 0.6rem 0.7rem;
  border-radius: 18px;
  background: #111111;
}
.plan-bonus { margin: 0.15rem 0 0; }
.plan-offer { display: none; margin: 0 0 0.85rem; }
.plan-bonus p,
.plan-offer p { margin: 0; }
.plan-bonus .k,
.plan-offer .k {
  color: #2996D9;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.35;
}
.plan-bonus .v,
.plan-offer .v {
  color: #F7F6F2;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.addon-title {
  margin: 0.35rem 0 0.4rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.addon-lead {
  margin: 0 0 0.85rem;
  max-width: none;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.packs .addon-card { margin: 0.65rem 0; }
.addon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.addon-card {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}
.addon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.addon-table th,
.addon-table td {
  padding: 0.55rem 0.65rem;
  text-align: start;
  vertical-align: top;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
}
.addon-table thead th { font-weight: 600; color: var(--ink); }
.addon-table tbody th { color: var(--muted); }
.addon-table tr:last-child th,
.addon-table tr:last-child td { border-bottom: 0; }
.price-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.25rem;
  max-width: none;
  color: var(--muted);
  line-height: 1.5;
}
.price-notes section {
  margin: 0;
  background: var(--panel);
  border-radius: 18px;
  padding: 0.85rem 0.9rem 0.7rem;
}
.price-notes h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-notes p { margin: 0; font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.price-refund {
  margin-top: 0.65rem;
  background: #111111;
  color: #F7F6F2;
  border-radius: 18px;
  padding: 0.95rem 1.05rem 0.85rem;
}
.price-refund section { margin: 0; }
.price-refund h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #F7F6F2;
  letter-spacing: -0.02em;
}
.price-refund p { margin: 0; color: #F7F6F2; font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
body.fit .grok-note { border-radius: 18px; }
body.fit.more .fine:empty { display: none; }
.fine section { margin: 0 0 0.9rem; }
.fine section:last-child { margin: 0; }
.fine h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.fine p { margin: 0; text-wrap: pretty; }
.plans,
.fine,
#enterprise { scroll-margin-top: 4.5rem; }
.plan .go {
  display: inline-block;
  margin-top: 16px;
  background: #111111;
  color: #F7F6F2;
  border-radius: 999px;
  padding: 8px 14px;
}
.fine { color: var(--muted); margin-top: 28px; max-width: 46rem; line-height: 1.5; }
.auth {
  width: min(440px, 100%);
  margin: 0 auto;
}
.tabs { display: flex; gap: 16px; margin-bottom: 18px; }
.tabs button {
  border: 0;
  background: transparent;
  padding: 0 0 6px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.on { color: var(--ink); border-color: #111111; }
.auth label { display: block; font-size: 0.85rem; margin: 14px 0 6px; }
.auth input[type="email"],
.auth input[type="password"],
.auth input[type="text"],
.pilot-prompt textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
.pw-row { display: flex; gap: 8px; align-items: center; }
.auth .pw-row input { flex: 1 1 auto; min-width: 0; width: auto; min-height: 44px; }
.pw-toggle {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
}
.pw-title {
  margin: 14px 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pw-rules {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}
.pw-rules .mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}
.pw-rules li.met { color: var(--ink); }
.pw-rules li.met .mark {
  background: #111111;
  color: #F7F6F2;
  border-color: #111111;
}
#signin-ts,
#signup-ts { margin: 14px 0; }
.clause-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.clause-actions button {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.clause-actions button.on {
  background: #111111;
  color: #F7F6F2;
  border-color: #111111;
}
.clause-actions button.decline.on {
  background: transparent;
  color: var(--ink);
  border-color: #111111;
}
.clause-record { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; }
#signin-ts[hidden],
#signup-ts[hidden],
#legal-steps[hidden],
.legal-step[hidden],
#clause-block[hidden],
#clause-record[hidden],
#terms-record[hidden],
#use-record[hidden],
.pw-title[hidden],
.pw-rules[hidden],
.pw-meter[hidden] { display: none !important; }
.pw-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}
.pw-meter__track {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.pw-meter__track span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.pw-meter__label {
  margin: 0;
  min-width: 4.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.pw-meter.is-weak { color: #ff1a1a; }
.pw-meter.is-weak .pw-meter__track span.on { background: #ff1a1a; }
.pw-meter.is-fair { color: #ff6a00; }
.pw-meter.is-fair .pw-meter__track span.on { background: #ff6a00; }
.pw-meter.is-good { color: #1a6dff; }
.pw-meter.is-good .pw-meter__track span.on { background: #1a6dff; }
.pw-meter.is-strong { color: #00b34a; }
.pw-meter.is-strong .pw-meter__track span.on { background: #00b34a; }
.age-note {
  background: var(--panel);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-weight: 600;
}
.dob {
  border: 0;
  margin: 0 0 4px;
  padding: 0;
  min-inline-size: 0;
}
.dob legend {
  padding: 0;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.dob-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 8px;
}
.dob label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.auth .dob select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 8px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.dob-age {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 600;
}
.dob-age.is-ok { color: #1b6b3a; }
.dob-age.is-bad { color: #8f2d2d; }
.refund-note {
  background: #111111;
  color: #F7F6F2;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 12px 0;
}
.ws-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  min-height: 44px;
}
.ws-check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.create-only[hidden],
.refund-note[hidden],
#ws-cancel[hidden] { display: none !important; }
#ws-editor:disabled,
#auth-submit:disabled,
.ws-card .go:disabled { opacity: 0.45; cursor: not-allowed; }
.ws-card .renew { margin: 14px 0 0; font-size: 0.95rem; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ws-actions a,
.ws-actions button {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: #111111;
  color: #F7F6F2;
}
.ws-actions .quiet {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}
.ws-contracts h2 { font-size: 1.25rem; font-weight: 600; margin: 18px 0 8px; }
.ws-contracts a { color: var(--ink); }
.pilot-prompt {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.pilot-prompt label { display: block; font-size: 0.85rem; margin: 14px 0 6px; }
.pilot-prompt textarea {
  min-height: 140px;
  resize: vertical;
}
.pilot-prompt .go {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  margin-top: 12px;
  background: #111111;
  color: #F7F6F2;
}
.auth-error {
  color: #8a3a2a;
  margin: 12px 0 0;
  min-height: 1.2em;
}
.prompt-preview {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.modes { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; color: var(--muted); }
.auth .go, .oauth {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  margin-top: 8px;
}
.auth .go { background: #111111; color: #F7F6F2; }
.oauth { background: var(--panel); color: var(--ink); }
.paper footer.site { border-top-color: var(--line); }
.paper .ok { display: none; background: var(--panel); border-radius: 16px; padding: 20px; }
.paper .ok.show { display: block; }
.workspace { width: min(1120px, 100%); margin: 0 auto; }
.workspace .bill { margin: 16px 0; }
.ws-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ws-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
}
.ws-card h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.ws-card .price { margin: 6px 0 10px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.ws-card dl { margin: 0; }
.ws-card dt { color: var(--muted); font-size: 0.875rem; margin-top: 8px; }
.ws-card dd { margin: 0; font-size: 1rem; }
.ws-card .go {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  margin-top: 14px;
  background: #111111;
  color: #F7F6F2;
  min-height: 44px;
}
@media (min-width: 720px) {
  .ws-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .paper .menu {
    width: 44px;
    height: 44px;
  }
  .paper .menu span { left: 12px; right: 12px; }
  .paper .bar {
    width: min(1120px, calc(100% - 20px));
    padding: 8px 10px;
    gap: 8px;
  }
  .paper .sign,
  .paper .md-lang__label,
  .paper .bill button,
  .paper .read,
  .paper .plan .go,
  .paper .tabs button,
  .paper .auth .go,
  .paper .oauth,
  .paper .pilot-prompt .go {
    min-height: 44px;
  }
  .paper .sign,
  .paper .bill button,
  .paper .read,
  .paper .plan .go,
  .paper .auth .go,
  .paper .oauth,
  .paper .pilot-prompt .go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .paper .bill button {
    padding: 0 16px;
  }
  .paper .read {
    margin-left: auto;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    text-decoration: none;
  }
  .paper .plan .go {
    padding: 0 18px;
  }
  .paper .bar.is-open nav {
    background: var(--paper);
  }
  .paper .bar.is-open nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
@media (max-width: 720px), (max-width: 980px) and (max-height: 720px) {
  body.fit { height: auto; overflow: auto; }
  body.fit main.sheet { height: auto; }
  body.fit .fit-head { order: 1; }
  body.fit #plans { order: 3; }
  body.fit #enterprise { order: 4; }
  body.fit .token-note { order: 5; }
  body.fit .price-lead { order: 6; margin-top: 1.15rem; }
  body.fit .packs { order: 7; }
  body.fit .price-notes { order: 8; }
  body.fit .price-refund { order: 9; }
  body.fit #plan-fine { order: 10; }
  body.fit .grok-note { order: 11; }
  body.fit .plan .plan-bonus { display: none; }
  .addon-grid { grid-template-columns: 1fr; }
  body.fit #enterprise .plan { grid-template-columns: 1fr; }
  .fit-head {
    gap: 10px 12px;
    align-items: center;
  }
}
@media (max-width: 380px) {
  .paper .md-lang__label {
    position: relative;
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .paper .md-lang__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .fit-head { flex-wrap: wrap; row-gap: 12px; }
  .fit-head h1 { flex: 1 1 100%; }
  .paper .read { margin-left: auto; }
  .paper .bill {
    display: flex;
    flex: 1 1 100%;
    width: auto;
    max-width: 100%;
  }
  .paper .bill button {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Phones. Read more stays a pill on the title line.
   The annual bonus takes the full row under the billing switch. */
@media (max-width: 720px) {
  body.fit .fit-head {
    flex-wrap: wrap;
    align-items: center;
  }
  body.fit .fit-head h1 {
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
  }
  body.fit .fit-head .read {
    order: 2;
    flex: 0 0 auto;
    align-self: center;
    height: auto;
    white-space: nowrap;
  }
  body.fit .fit-head .bill {
    order: 3;
    flex: 1 1 100%;
  }
  body.fit .fit-head .plan-offer:not([hidden]) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 4;
    flex: 1 1 100%;
    align-self: stretch;
    min-width: 0;
    margin: 0;
  }
}
@media (max-width: 980px) and (max-height: 720px) and (min-width: 721px) {
  body.fit .fit-head { flex-wrap: wrap; }
  body.fit .fit-head .plan-offer:not([hidden]) {
    display: flex;
    flex: 1 1 100%;
    margin: 0.35rem 0 0;
  }
}

/* One column on a handset. Two when a pair stays readable.
   Four only when every plan fits one row, including a Tesla
   fullscreen viewport. A contracted Tesla window stays on two. */
@media (min-width: 640px) {
  .plans.cols { grid-template-columns: 1fr 1fr; }
  .price-notes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .plans.cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .price-notes { grid-template-columns: repeat(3, 1fr); }
  .addon-grid { grid-template-columns: 1fr 1fr; }
}
@supports (font-size: 1cqi) {
  body.fit .plan h2 { font-size: clamp(1.15rem, 7.5cqi, 1.6rem); }
  body.fit .plan .price { font-size: clamp(1.75rem, 13cqi, 2.5rem); }
  body.fit .plan-box dd { font-size: clamp(1rem, 5cqi, 1.125rem); }
}

@media (max-width: 980px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter-media { order: 0; }
  .chapter-media { min-height: 52vh; }
  .exhibit, .exhibit.cols-4, .flow, .split, .two { grid-template-columns: 1fr; }
  .exhibit li, .flow li { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .get li { grid-template-columns: 3.2rem 1fr; }
  .get p { grid-column: 2; }
  .page-hero { min-height: 78vh; }
}
@media (max-width: 860px) {
  .soon-pill { display: none; }
  .bar { gap: 12px; }
  .bar nav { display: none; }
  .menu { display: block; }
  .bar.is-open nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,5,6,.96);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 28px;
    gap: 16px;
  }
  .gate-name { font-size: clamp(2.4rem, 16vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], #boot, .gate-enter .chev {
    animation: none; transition: none; opacity: 1; transform: none;
  }
  .gate-bg video, .chapter-media video, .page-hero video {
    transition-duration: 0.35s;
  }
}

/* Stills when a Tesla is in motion (or MCU1). iPhone stays on video. */
.gate-bg[data-still],
.chapter-media[data-still],
.page-hero[data-still] {
  background-color: #000;
  background-size: cover;
  background-position: center;
}
.gate-bg[data-still="/img/hero.jpg"] { background-image: url("/img/hero.jpg"); }
.chapter-media[data-still="/img/web.jpg"],
.page-hero[data-still="/img/web.jpg"] { background-image: url("/img/web.jpg"); }
.chapter-media[data-still="/img/apps.jpg"],
.page-hero[data-still="/img/apps.jpg"] { background-image: url("/img/apps.jpg"); }
.chapter-media[data-still="/img/bots.jpg"],
.page-hero[data-still="/img/bots.jpg"] { background-image: url("/img/bots.jpg"); }
.chapter-media[data-still="/img/voice.jpg"],
.page-hero[data-still="/img/voice.jpg"] { background-image: url("/img/voice.jpg"); }
html[data-media="still"] .gate-bg {
  background-color: #000;
  background-size: cover;
  background-position: center;
}
html[data-media="still"] .gate-bg video,
html[data-media="still"] .chapter-media video,
html[data-media="still"] .page-hero video {
  opacity: 0 !important;
}

/*
 * Tesla in-car browsers (Model 3/Y/S/X/Cybertruck, any year we can see).
 * 5% safe margins, 44px taps, min(vw,vh) wordmark. iPhone rules above stay.
 */
html.is-car {
  --gutter: max(clamp(20px, 4vw, 56px), 5vw);
}
html.is-car .bar {
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
html.is-car .gate-name {
  font-size: clamp(4rem, min(12vw, 18vh), 10rem);
  line-height: 0.96;
}
html.is-car .btn,
html.is-car .md-lang__label,
html.is-car .menu {
  min-height: 44px;
}
html.is-car .md-lang__label,
html.is-car .menu {
  min-width: 44px;
}
/* Pricing on a Tesla screen. New firmware already enlarges CSS pixels
   (dpr about 1.53, viewport about 1254×784). Older firmware keeps dpr 1
   on a 1920-wide CSS viewport, so type there steps up. A contracted
   window is short: the footer must not cover the plans. */
html.is-car body.fit .sign,
html.is-car body.fit .bill button,
html.is-car body.fit .read,
html.is-car body.fit .md-lang__label,
html.is-car body.fit .menu {
  min-height: 44px;
}
@media (max-height: 1100px) {
  body.fit footer.site { position: static; }
}

/* Wide landscape car / desktop — same visual weight across Tesla screens. */
@media (min-width: 900px), (min-width: 700px) and (min-height: 480px) and (orientation: landscape) {
  html.is-car .gate-name {
    font-size: clamp(4.2rem, min(12vw, 18vh), 10rem);
  }
}
@media (max-height: 420px) and (orientation: landscape) {
  .gate-center { padding-top: 64px; padding-bottom: 48px; }
  .gate-enter { margin-top: 1.4rem; }
}

/* Terms and Acceptable Use. Same paper line as pricing. Pricing layout is unchanged. */
body.legal-doc main.sheet { padding-top: 28px; }
.legal-doc .legal-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.legal-doc .legal-kicker,
.legal-doc .legal-intro {
  width: 100%;
  max-width: none;
}
.legal-doc .legal-intro {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}
.legal-doc .legal-intro p { margin: 0 0 12px; }
.legal-doc .legal-intro p:last-child { margin: 0; }
.legal-doc .legal-section {
  background: var(--panel);
  border-radius: 18px;
  padding: 0.95rem 1.05rem 0.9rem;
  margin: 0 0 12px;
}
.legal-doc .legal-section h2,
.legal-doc .legal-section h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: var(--display);
}
.legal-doc .legal-section p,
.legal-doc .legal-section li {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.legal-doc .legal-section p:last-child,
.legal-doc .legal-section li:last-child { margin-bottom: 0; }
.legal-doc .legal-section ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.legal-doc .legal-section a,
.legal-doc .legal-intro a { color: var(--ink); }
.legal-doc .legal-section.is-refund {
  background: #111111;
  color: #F7F6F2;
}
.legal-doc .legal-section.is-refund h2,
.legal-doc .legal-section.is-refund h3,
.legal-doc .legal-section.is-refund p,
.legal-doc .legal-section.is-refund li,
.legal-doc .legal-section.is-refund a { color: #F7F6F2; }
@media (max-width: 860px) {
  body.legal-doc main.sheet { width: min(1120px, calc(100% - 20px)); }
}

/* Contact. Same paper line as pricing. Pricing layout is unchanged. */
body.contact-doc { min-height: 100vh; }
body.contact-doc main.sheet { padding-top: 28px; }
body.contact-doc .lead { margin-bottom: 18px; }
body.contact-doc .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
body.contact-doc .contact-actions .go,
body.contact-doc form .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #F7F6F2;
  cursor: pointer;
}
body.contact-doc form .go { margin-top: 4px; }
body.contact-doc form .go:disabled { opacity: 0.5; cursor: wait; }
body.contact-doc form {
  max-width: 46rem;
  background: var(--panel);
  border-radius: 18px;
  padding: 0.4rem 1.05rem 1.05rem;
  margin: 0;
}
body.contact-doc form label {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 14px 0 6px;
}
body.contact-doc form input,
body.contact-doc form textarea,
body.contact-doc form select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  min-height: 44px;
}
body.contact-doc form textarea { min-height: 140px; resize: vertical; }
body.contact-doc form input:focus,
body.contact-doc form textarea:focus,
body.contact-doc form select:focus { border-color: #111111; }
body.contact-doc .note { margin: 12px 0 14px; line-height: 1.45; }
body.contact-doc .form-msg.ok { color: #1b6b3a; }
body.contact-doc .form-msg.err { color: #8f2d2d; }
@media (max-width: 860px) {
  body.contact-doc main.sheet { width: min(1120px, calc(100% - 20px)); }
  body.contact-doc .contact-actions .go,
  body.contact-doc form .go { min-height: 44px; }
}

/* Create account reads Terms, then Acceptable Use, before the sales clause. */
body.signin .legal-step h2 {
  margin: 16px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body.signin .legal-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
body.signin .legal-scroll {
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.95rem;
}
body.signin .legal-step .go {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #F7F6F2;
  padding: 0 16px;
  cursor: pointer;
}
body.signin .legal-step .go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.signin .legal-step .ws-check input:disabled {
  cursor: not-allowed;
}
body.signin .legal-step .ws-check {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  align-items: center;
}
body.signin .legal-step .ws-check span {
  text-transform: none;
  letter-spacing: 0;
}
body.signin #auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
