/* genxgrid.com — marketing site.
   No build step: plain CSS so the site deploys the same way the app does,
   with nothing between the source and the bucket. */

:root {
  --ink: #0f1620;
  --ink-soft: #47566b;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --accent: #1565c0;
  --accent-soft: #e8f1fb;
  --warn: #a05a00;
  --warn-soft: #fdf5e8;
  --radius: 10px;
  --measure: 68ch;
  /* Fluid spacing: one scale the whole page derives from, so a narrow screen
     tightens everything consistently instead of each rule guessing. */
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(44px, 8vw, 68px);
  --hero-y: clamp(48px, 10vw, 88px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf3;
    --ink-soft: #a3b1c2;
    --line: #263243;
    --bg: #0d1219;
    --bg-soft: #141c26;
    --accent: #6fb0f5;
    --accent-soft: #16283d;
    --warn: #e0a860;
    --warn-soft: #2a2113;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Widens on large displays rather than stranding the content in a column
   with 400px of empty space either side. */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1600px) { .wrap { max-width: 1240px; } }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
/* :not(.btn) matters. `.nav a` is specificity 0-1-1 and `.btn` is 0-1-0, so
   without the exclusion the nav rule wins and the header's call to action
   renders dark grey on blue — the one button on the page that has to be
   readable, and the only one that was not. */
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .spacer { flex: 1; }
.nav-links { display: flex; gap: 22px; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 550; font-size: 0.94rem; white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* ---- hero ---- */
.hero { padding: var(--hero-y) var(--gutter) clamp(40px, 7vw, 64px); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 20px; max-width: 20ch;
  text-wrap: balance;
}
.hero p { font-size: 1.16rem; text-wrap: pretty; color: var(--ink-soft); max-width: var(--measure); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 100px;
  margin-bottom: 22px; font-weight: 600;
}

/* ---- sections ---- */
section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em;
  margin: 0 0 12px; max-width: 24ch;
}
.lede { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 40px; font-size: 1.04rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--bg-soft);
}
.card h3 { margin: 0 0 8px; font-size: 1.03rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 2px 9px; margin-bottom: 10px;
}

/* ---- pipeline ---- */
.steps { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg); padding: 20px 22px; display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.step .n { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--accent); font-size: 0.95rem; padding-top: 2px; }
.step h3 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---- honesty ---- */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  background: var(--warn-soft); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 28px;
}
.note h3 { margin: 0 0 8px; font-size: 1rem; color: var(--warn); }
.note p { margin: 0 0 10px; font-size: 0.95rem; }
.note p:last-child { margin-bottom: 0; }
.note ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.94rem; }
.note li { margin-bottom: 5px; }

/* ---- quote / sample ---- */
.sample {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem; line-height: 1.7;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  overflow-x: auto; color: var(--ink-soft);
  /* pre-wrap below the point where the longest line stops fitting. A
     horizontal scrollbar inside a quotation is a worse read than a wrapped
     line, and on a phone it is easy to miss entirely. */
  white-space: pre;
  font-size: clamp(0.72rem, 2.6vw, 0.86rem);
}
.sample b { color: var(--ink); font-weight: 600; }

/* ---- cta ---- */
.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-soft); font-size: 0.9rem; }
.foot { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .spacer { flex: 1; }

/* ---- responsive ---- */

/* ---- menu button ---- */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: -10px;   /* 44px: thumb-sized */
  padding: 0; border: 0; background: none; cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 22px; border-radius: 2px;
  background: var(--ink); transition: transform .18s ease, opacity .18s ease;
}
/* The bars become an X while the panel is open, so the control shows its own
   state instead of leaving the reader to guess what tapping it again does. */
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet and below the links move into a panel behind the button. A
   horizontally scrolling strip was tried first and read as broken: the first
   item sat clipped at the edge with nothing to indicate it could scroll. */
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { gap: 12px; position: relative; }
  .nav-links {
    position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    flex-direction: column; gap: 0; display: none;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px calc(var(--gutter) * 2) 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  body.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* Very narrow: the wordmark competes with the call to action for room. */
@media (max-width: 400px) {
  .brand { font-size: 0.95rem; }
  .nav .btn { padding: 9px 13px; font-size: 0.86rem; }
}

@media (max-width: 640px) {
  .step { grid-template-columns: 28px 1fr; gap: 12px; }
  .sample { white-space: pre-wrap; word-break: break-word; }
  .hero p { font-size: 1.04rem; }
  /* Comfortable thumb targets. 44px is the usual floor and the buttons were
     under it at this size. */
  .btn { padding: 12px 20px; }
  .faq summary { padding: 4px 0; }
}

/* Short landscape phones: the hero alone filled the screen, so nothing
   suggested there was more below it. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 28px var(--gutter) 24px; }
  section { padding: 32px 0; }
}

/* Respect a stated preference for less motion. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Printed or saved as PDF: drop the chrome, show every answer, and put link
   targets inline so the page is still usable on paper. */
@media print {
  header, .hero-actions, .cta { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  section { padding: 18pt 0; break-inside: avoid; }
  .card, .note, .sample { break-inside: avoid; }
  .faq details { border: none; padding: 0; background: none; }
  .faq details p { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* ---- FAQ ---- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px; background: var(--bg-soft);
}
.faq summary {
  cursor: pointer; font-weight: 550; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
