/* Same tokens as the GUMMI web app (apps/web/src/app/globals.css). */
:root {
  --canvas: #ffffff;
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --ink: #1f2328;
  --ink-2: #57606a;
  --ink-3: #8b929a;
  --line: #e8e6e1;
  --line-2: #d6d3cc;
  --brand: #0890e0;
  --brand-ink: #0670b8;
  --brand-soft: #e7f3fc;
  --ok: #1a7f37;
  --ok-soft: #e6f4ea;
  --warn: #9a6700;
  --warn-soft: #fbf3db;
  --danger: #c4314b;
  --danger-soft: #fdecee;
  --graph-0: #ebe9e4;
  --graph-1: #b5dcf6;
  --graph-2: #5cb4ec;
  --graph-3: #0890e0;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #191919;
    --paper: #202020;
    --paper-2: #2a2a2a;
    --ink: #e8e6e3;
    --ink-2: #a8a49e;
    --ink-3: #75716b;
    --line: #2f2f2f;
    --line-2: #3d3d3d;
    --brand: #3aa7ec;
    --brand-ink: #6cbdf2;
    --brand-soft: #16293a;
    --ok: #57c27a;
    --ok-soft: #17291d;
    --warn: #d9a440;
    --warn-soft: #2d2513;
    --danger: #f0738a;
    --danger-soft: #331a1f;
    --graph-0: #2a2a2a;
    --graph-1: #1d4766;
    --graph-2: #1f78b4;
    --graph-3: #3aa7ec;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-soft); color: var(--ink); }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 1024px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
}
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent;
  font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--canvas)); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--paper); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

/* Logo */
/* Official GUMMI mark + wordmark (cut-outs in /brand, with dark-mode versions). */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo picture { display: flex; }
.logo-mark { width: 28px; height: 28px; }
.logo-word { height: 16px; width: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topnav { display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 64px; text-align: center; }
@media (min-width: 768px) { .hero { padding-top: 112px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  max-width: 768px; margin: 24px auto 0;
  font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em;
}
@media (min-width: 768px) { .hero h1 { font-size: 68px; } }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: 0; color: var(--brand-ink); }
.lead { max-width: 576px; margin: 24px auto 0; font-size: 18px; line-height: 32px; color: var(--ink-2); }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* Product preview */
.preview {
  overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas);
  box-shadow: 0 24px 60px -28px rgba(31, 35, 40, .25);
}
.preview-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.preview-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.preview-body { display: grid; }
@media (min-width: 768px) { .preview-body { grid-template-columns: 200px 1fr; } }
.preview-side { display: none; padding: 12px; border-right: 1px solid var(--line); background: var(--paper); }
@media (min-width: 768px) { .preview-side { display: block; } }
.preview-side div { padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-3); }
.preview-side .active { background: var(--paper-2); color: var(--ink); font-weight: 500; }
.preview-main { padding: 24px; }
@media (min-width: 768px) { .preview-main { padding: 32px; } }
.person { display: flex; align-items: center; gap: 16px; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 600;
}
.person-name { font-size: 18px; font-weight: 600; }
.person .muted { font-size: 14px; }
.graph { display: flex; gap: 3px; margin-top: 24px; overflow: hidden; }
.graph-col { display: flex; flex-direction: column; gap: 3px; }
.graph-col span { width: 12px; height: 12px; border-radius: 3px; }
.rows { margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row-title { font-size: 14px; font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
  border: 1px solid; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge-ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 20%, transparent); }

/* Sections */
.section { padding-top: 96px; }
.section h2 { max-width: 576px; margin-top: 8px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.steps, .roles {
  display: grid; gap: 1px; margin-top: 40px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--line);
}
@media (min-width: 768px) { .steps, .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps, .roles { grid-template-columns: repeat(4, 1fr); } }
.step, .role { padding: 24px; background: var(--canvas); }
.step h3 { margin-top: 24px; font-size: 16px; font-weight: 600; }
.role h3 { font-size: 16px; font-weight: 600; }
.step p:not(.mono), .role p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--ink-2); }

/* Waitlist */
.join { margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.join-inner { display: grid; gap: 40px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
@media (min-width: 900px) { .join-inner { grid-template-columns: 1fr 440px; gap: 64px; } }
.quote { font-family: var(--serif); font-size: 30px; line-height: 1.3; }
@media (min-width: 768px) { .quote { font-size: 40px; } }
.join-copy .muted { max-width: 460px; margin-top: 20px; font-size: 15px; line-height: 26px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.form-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.field { margin-top: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
label .muted { font-weight: 400; color: var(--ink-3); }
input, select {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--canvas); color: var(--ink); font: 14px var(--sans); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--ink-3); }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.message {
  margin-top: 16px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent);
  border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: 14px;
}
#submit { margin-top: 20px; }
.thanks { text-align: center; padding: 40px 24px; }
.thanks .muted { margin-top: 8px; font-size: 14px; line-height: 22px; }
.check {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 18px; font-weight: 600;
}

/* Footer */
.footer {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--ink-3);
}
@media (min-width: 640px) { .footer { flex-direction: row; } }
.footer .logo { color: var(--ink); }
