/* Landing page. Tokens follow the app's light theme (static/styles.css). */

@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: block;
  src: url("/static/vendor/fonts/outfit/outfit-700-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.05);
  --fill: rgba(0, 0, 0, 0.04);
  --fill-2: rgba(0, 0, 0, 0.06);
  --press: rgba(0, 0, 0, 0.09);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.09);
  --primary-hover: #0077ed;
  --green: #28a745;
  --green-soft: rgba(52, 199, 89, 0.12);
  --green-ink: #1f7a35;
  --orange: #f08c00;
  --orange-soft: rgba(255, 159, 10, 0.13);
  --orange-ink: #a35d00;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 48px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(0, 113, 227, 0.18); }

/* The stage sits behind the page; content lets pointer events through except on `.ui`. */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  background: radial-gradient(1200px 800px at 68% 42%, #ffffff 0%, #f5f5f7 62%, #eeeef1 100%);
}
body.over-part #stage { cursor: pointer; }

main, .nav, .footer { position: relative; z-index: 1; pointer-events: none; }
.ui, .nav a, .footer a { pointer-events: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.25s ease;
}
body.scrolled .nav {
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand span { font-family: "Outfit", var(--font); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand.small span { font-size: 15px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--text-2); font-size: 14px; text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons (the app's .btn) ---------- */
.btn {
  border: 0;
  border-radius: 9px;
  height: 30px;
  padding: 0 14px;
  font: 500 13.5px var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fill-2);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--press); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.small { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.large { height: 44px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.large:not(.primary) { background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.btn.large:not(.primary):hover { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px clamp(20px, 6vw, 96px) 90px;
  position: relative;
}
.copy { max-width: 620px; }
.eyebrow { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--blue); letter-spacing: 0.01em; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.028em; }
h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.05; }
.lede { margin: 22px 0 30px; font-size: 19px; line-height: 1.45; color: var(--text-2); max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* A bouncing chevron while you're at the top of the page; gone once you scroll. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  pointer-events: auto;
  transition: opacity 0.4s ease, color 0.2s ease;
  animation: cue-bounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.scroll-cue:hover { color: var(--text); }
body.scrolled .scroll-cue { opacity: 0; pointer-events: none; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- Steps ---------- */
.step, .waitlist {
  min-height: 100vh;
  min-height: 100svh; /* steady while a phone's address bar comes and goes */
  display: flex;
  align-items: center;
  padding: 100px clamp(20px, 6vw, 96px);
}
.step.right { justify-content: flex-end; }
.waitlist { justify-content: center; }

.card {
  width: min(440px, 100%);
  padding: 28px 28px 26px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: saturate(1.8) blur(24px);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.visible { opacity: 1; transform: none; }
.card.wide { width: min(520px, 100%); text-align: center; }
.card h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 12px; }
.card > p { margin: 0 0 18px; color: var(--text-2); font-size: 15.5px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2) !important;
}
.card.wide .kicker { justify-content: center; }
.kicker .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0;
}

/* Intake: the PO mail */
.mail { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 13.5px; }
.mail-h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.mail-h span { color: var(--text-2); font-size: 12.5px; }
.mail ul { margin: 10px 0; padding-left: 18px; color: var(--text-2); }
.mail li { margin: 2px 0; }
.file { display: flex; align-items: center; gap: 8px; font: 12.5px var(--mono); color: var(--text-2); padding: 8px 10px; background: var(--fill); border-radius: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.orange { background: #f29a2e; }

/* Design: the run's checklist, ticked as the mold builds */
.checklist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s ease;
}
.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--text-3);
  transition: all 0.3s ease;
}
.checklist li.done { color: var(--text); }
.checklist li.done::before {
  box-shadow: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist li.now { color: var(--text); }
.checklist li.now::before { box-shadow: inset 0 0 0 1.5px var(--blue); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 4px var(--blue-soft), inset 0 0 0 1.5px var(--blue); } }

/* Checkpoint: an approval tile like the chat's */
.approval { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px; }
.ap-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.ap-head div { display: flex; flex-direction: column; }
.ap-head span:not(.ap-ico) { font-size: 12px; color: var(--text-2); }
.ap-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.ap-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--text-2); }
.tag { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--blue-soft); color: var(--blue); }
.ap-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px 12px; }
#approve.pressed { background: var(--green); }

/* Purchase approval: the dashboard's orders table */
.orders { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.orders th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-2); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.orders td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.orders tr:last-child td { border-bottom: 0; }
.orders small { display: block; font-size: 12px; color: var(--text-3); }
.orders .num { text-align: right; font-variant-numeric: tabular-nums; }
.fine-print { font-size: 12.5px !important; color: var(--text-3) !important; margin: 12px 0 0 !important; }

/* ---------- Waitlist ---------- */
.wl-body { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 48px; }
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
  color: #1f1f1f;
  font: 500 15px var(--font);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), var(--shadow);
  transition: box-shadow 0.2s ease;
}
.gbtn:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), var(--shadow-lg); }
.devlogin { display: flex; gap: 8px; }
.devlogin input {
  height: 36px;
  width: 230px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  font: 14px var(--font);
  background: #fff;
}
.devlogin .btn { height: 36px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--fill); text-align: left; }
.who img, .who .avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.who .avatar { background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.who b { display: block; font-size: 14px; }
.who span { font-size: 12.5px; color: var(--text-2); }
.place { font-size: 15px; color: var(--text-2); margin: 0; }
.place b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.pill.waiting { background: var(--orange-soft); color: var(--orange-ink); }
.pill.in { background: var(--green-soft); color: var(--green-ink); }
.linkbtn { background: none; border: 0; padding: 0; font: 13px var(--font); color: var(--text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.links { display: flex; gap: 16px; align-items: center; }
.links a { font-size: 13px; color: var(--blue); text-decoration: none; }
.error { color: #c5281f !important; font-size: 14px !important; margin: 0 !important; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--text-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.9);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- Tooltip (the viewer's hover card) ---------- */
.tip {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  pointer-events: none;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: var(--text-2);
}
.tip b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; }
.tip .row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.tip .grp { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tip .sw { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-bottom: 80px; }
  .step, .step.right { justify-content: center; align-items: flex-end; }
  .nav nav a:not(.btn) { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 38px; }
  .lede { font-size: 16.5px; margin: 16px 0 22px; }
}

/* Phones: the mold gets the top of the screen, so the cards are compact and sit at the bottom:
   title and one paragraph, without the desktop detail blocks. */
@media (max-width: 600px) {
  .step, .step.right { padding: 0 12px 16px; }
  .step .card { padding: 18px 18px 16px; border-radius: 16px; }
  .step .card h2 { font-size: 22px; margin-bottom: 6px; }
  .step .card > p { font-size: 14.5px; line-height: 1.45; margin-bottom: 0; }
  .step .kicker { margin-bottom: 8px !important; }
  .mail, .checklist, .approval, .orders { display: none; }
}

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