/* Booth Assist support site - dark inversion of the A.01c "Sage paper"
   system (spencer-russell.com). Same hue-140 family, same fonts, hairline
   rules instead of shadows, no true black. */

:root {
  --ground:   oklch(17% 0.020 140);
  --ground-2: oklch(20.5% 0.022 140);
  --rule:     oklch(33% 0.022 140);
  --text:     oklch(93% 0.012 140);
  --text-2:   oklch(74% 0.016 140);
  --text-3:   oklch(57% 0.018 140);
  --led:      oklch(90% 0.26 124);
  --red:      oklch(58% 0.19 27); /* booth red - the app's night readout */
  --font-primary: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; background: var(--ground); }
body {
  font-family: var(--font-primary);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.wrap.landing { max-width: 920px; }

.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Small uppercase mono eyebrow labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}

h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0 0 8px;
}

h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text-2); }

.lede { margin: 0 0 20px; max-width: 46ch; }

.meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
}
.meta-line .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* Header grid icon - brand 5x5 motif with the LED wavefront sweep,
   top-right to bottom-left */
.grid-icon { display: block; margin-bottom: 18px; }
.grid-icon rect {
  fill: var(--rule);
  animation: ledFlash 5s linear infinite;
}
@keyframes ledFlash {
  0%   { fill: var(--rule); }
  2%   { fill: var(--led); }
  4%   { fill: var(--led); }
  12%  { fill: var(--rule); }
  100% { fill: var(--rule); }
}

/* CTA row: app icon + App Store badge */
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  border: 1px solid var(--rule);
  display: block;
}

/* App Store badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--rule);
  padding: 11px 18px 11px 15px;
  text-decoration: none;
  color: var(--text);
  background: var(--ground-2);
  transition: border-color 120ms ease;
}
.store-badge:hover { border-color: var(--text-3); }
.store-badge svg { fill: var(--text); flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .badge-small { font-size: 11px; font-weight: 300; color: var(--text-2); }
.store-badge .badge-big { font-size: 16px; font-weight: 500; letter-spacing: -0.2px; }

section { border-top: 1px solid var(--rule); padding: 26px 0; }
header.site { padding-bottom: 30px; }

/* ---- Landing page sections ---- */

/* Hero: copy left, phone right */
.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
}
.hero-copy { min-width: 0; }

/* Phone shot in a minimal hardware frame: hairline border, deep radius */
.phone {
  border: 1px solid var(--rule);
  border-radius: 30px;
  padding: 9px;
  background: var(--ground-2);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

/* Stat strip: mono tiles separated by hairlines */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}
.stat {
  padding: 22px 18px 24px;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 6px;
}
.stat .cap {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
  display: block;
  max-width: 20ch;
}
.stats-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 18px 0 0;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}
.feature {
  border: 1px solid var(--rule);
  background: var(--ground-2);
  padding: 20px 22px 22px;
}
.feature h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.feature p { margin: 0; font-size: 14px; color: var(--text-2); }
.feature .ratios {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

/* Booth section: copy + two shots */
.booth {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 32px;
  align-items: start;
}
.booth .phone { margin-top: 6px; }
.booth-copy p { max-width: 40ch; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero .phone { max-width: 260px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px 20px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .features { grid-template-columns: 1fr; }
  .booth { grid-template-columns: 1fr 1fr; }
  .booth-copy { grid-column: 1 / -1; }
}

/* FAQ */
details { border-top: 1px solid var(--rule); }
details:first-of-type { border-top: none; }
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  flex: none;
}
details[open] summary::after { content: "\2212"; color: var(--led); }
.answer { padding: 0 0 18px; max-width: 56ch; }
.answer p { margin: 0 0 10px; }
.answer p:last-child { margin-bottom: 0; }
.answer ul { margin: 0 0 10px; padding-left: 18px; }
.answer li { margin-bottom: 5px; }
.answer .path { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
}
footer a { color: var(--text-3); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }

/* Privacy page */
.policy h2 { margin: 22px 0 6px; }
.policy p { margin: 0 0 12px; max-width: 58ch; }
.policy .effective {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 24px;
}

@media (max-width: 480px) {
  .wrap { padding: 40px 20px 32px; }
  h1 { font-size: 28px; }
}
