/* Greekly marketing site. Static, mobile-first, no build step.
   Breakpoints: 480, 768, 1024, 1280. Tokens follow brand_assets/colors.md;
   the tile gold and spark green are the measured master values. */

:root {
  --bg: #0b0a08;
  --bg-2: #14120e;
  --surface: #1c1a17;
  --surface-2: #24211c;
  --line: rgba(227, 194, 111, 0.18);
  --line-dash: rgba(227, 194, 111, 0.5);
  --gold: #e3c26f;
  --gold-deep: #d9b96c;
  --tile: #d3bd7a;
  --bone: #ece8dc;
  --stone: #9a9487;
  --stone-dim: #8a8578;
  --sage: #5f7268;
  --green: #34d399;
  --red: #ef5350;
  --spark: #67c588;

  /* Prediction world: graphite and ice */
  --graphite: #17191c;
  --graphite-2: #202327;
  --graphite-3: #2a2e33;
  --graphite-line: rgba(143, 214, 234, 0.18);
  --ice: #8fd6ea;
  --ice-deep: #4ad9e6;
  --frost: #e6f0f4;
  --frost-dim: #9aa5ab;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 20px;
  --max: 1120px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 34px; letter-spacing: -0.02em; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.kicker { display: block; margin-bottom: 14px; color: var(--gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 64px 0; }
.section + .section { border-top: 1px dashed var(--line-dash); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--stone); font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0a08;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn { white-space: nowrap; }
.btn:hover { background: var(--bone); border-color: var(--bone); color: #0b0a08; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(227, 194, 111, 0.12); color: var(--bone); border-color: var(--gold); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  color: var(--bone);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  color: var(--stone);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:hover { color: var(--bone); }

/* ---------- hero ---------- */

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { margin-top: 6px; }
.hero .lede { margin-top: 18px; color: var(--stone); font-size: 18px; max-width: 540px; }
.hero .lede strong { color: var(--bone); font-weight: 600; }

.waitlist { margin-top: 28px; max-width: 520px; }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; }
.waitlist input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(236, 232, 220, 0.28);
  background: var(--surface);
  color: var(--bone);
  font: 16px/1 var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
.waitlist input[type="email"]::placeholder { color: var(--stone-dim); }
.waitlist input[type="email"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(227, 194, 111, 0.22); }
.waitlist .btn { min-height: 52px; width: 100%; }
.waitlist-note { margin-top: 12px; color: var(--stone); font-size: 14px; }
.waitlist-note strong { color: var(--gold); font-weight: 600; }
.waitlist-status { margin-top: 12px; min-height: 24px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }
.waitlist-status[data-state="success"] { color: var(--green); }
.waitlist-status[data-state="error"] { color: var(--red); }
.waitlist-status[data-state="sending"] { color: var(--stone); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.disclaimer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dash);
  color: var(--stone);
  font-size: 13px;
  line-height: 1.5;
  max-width: 520px;
}

.hero-visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; }
.hero-mark { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 50px rgba(211, 189, 122, 0.18); }

/* ---------- example cards (CSS-drawn, never real data) ---------- */

.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.card-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px dashed var(--line-dash);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-ticker { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: 0.04em; color: var(--bone); }
.card-structure { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); text-align: right; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.card-cell { padding: 10px; border-radius: var(--radius-sm); background: var(--bg-2); }
.card-cell .mono, .card-cell .val { display: block; }
.card-cell .mono { font-size: 10px; }
.card-cell .val { margin-top: 4px; font-family: var(--mono); font-size: 16px; color: var(--bone); font-variant-numeric: tabular-nums; }
.card-cell.target .val { color: var(--green); }
.card-cell.stop .val { color: var(--red); }
.card-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-dash); font-family: var(--mono); font-size: 12px; color: var(--stone); }
.card-line .val { color: var(--bone); }
.card-thesis { margin-top: 12px; color: var(--stone); font-size: 14px; }
.card-thesis::before { content: "AI read"; display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.skeleton { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(236,232,220,0.14), rgba(236,232,220,0.06)); }
.skeleton + .skeleton { margin-top: 8px; }
.skeleton.w60 { width: 60%; }
.skeleton.w85 { width: 85%; }

/* ---------- triad ---------- */

.triad { display: grid; gap: 16px; }
.triad-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.triad-card .mono { color: var(--gold); }
.triad-card h3 { margin-top: 10px; }
.triad-card p { margin-top: 10px; color: var(--stone); font-size: 15px; }
.triad-card .num { font-family: var(--mono); font-size: 28px; color: var(--gold-deep); line-height: 1; }

/* ---------- options section ---------- */

.split { display: grid; gap: 32px; align-items: start; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.spec li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line-dash);
  font-size: 15px;
  color: var(--stone);
}
.spec li:last-child { border-bottom: 1px dashed var(--line-dash); }
.spec .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.spec .v { color: var(--bone); }
.spec .v small { display: block; color: var(--stone); font-size: 14px; margin-top: 2px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.type {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dash);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; }

/* ---------- prediction markets (graphite and ice) ---------- */

.pm {
  background: var(--graphite);
  color: var(--frost);
  border-top: 1px solid var(--graphite-line);
  border-bottom: 1px solid var(--graphite-line);
}
.section + .pm { border-top: 1px solid var(--graphite-line); }
.pm .kicker, .pm .mono { color: var(--ice); }
.pm .section-head p { color: var(--frost-dim); }
.pm .venue { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--frost-dim); }
.pm .venue i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice-deep); }
.pm-features { display: grid; gap: 14px; margin-top: 8px; }
.pm-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--graphite-2);
  border: 1px solid var(--graphite-line);
}
.pm-card h3 { color: var(--frost); }
.pm-card p { margin-top: 8px; color: var(--frost-dim); font-size: 15px; }
.pm-card .pill { display: inline-block; margin-top: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(143, 214, 234, 0.12); color: var(--ice); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

.pm .card { background: var(--graphite-2); border-color: var(--graphite-line); }
.pm .card-tag { color: var(--ice); border-color: rgba(143, 214, 234, 0.45); }
.pm .card-ticker { color: var(--frost); font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.pm .card-structure { color: var(--ice); }
.pm .card-cell { background: var(--graphite); }
.pm .card-cell .val { color: var(--frost); }
.pm .card-line { border-color: var(--graphite-line); color: var(--frost-dim); }
.pm .card-line .val { color: var(--frost); }
.pm-side { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--ice); }

.chart { margin-top: 14px; }
.chart svg { width: 100%; height: auto; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--frost-dim); }

/* ---------- receipts ---------- */

.ledger {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ledger-head { padding: 14px 16px; border-bottom: 1px dashed var(--line-dash); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ledger-head .card-tag { margin: 0; }
.ledger table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.ledger th { text-align: left; padding: 10px 16px; font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.ledger td { padding: 12px 16px; border-top: 1px dashed var(--line); color: var(--bone); white-space: nowrap; }
.ledger td.muted { color: var(--stone); }
.ledger .res { font-weight: 600; }
.ledger .res.up { color: var(--green); }
.ledger .res.down { color: var(--red); }
.ledger .res.flat { color: var(--stone); }
.ledger-foot { padding: 12px 16px; border-top: 1px dashed var(--line-dash); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--stone); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pillars { display: grid; gap: 14px; }
.pillar { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillar h3 { font-size: 17px; }
.pillar p { margin-top: 8px; color: var(--stone); font-size: 15px; }

/* ---------- pricing ---------- */

.pricing { display: grid; gap: 16px; }
.price-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-card.founding { border-color: var(--gold); background: linear-gradient(180deg, rgba(227, 194, 111, 0.08), rgba(227, 194, 111, 0.02)); }
.price-card .mono { color: var(--gold); }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--bone); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--stone); font-size: 15px; }
.price-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--stone); font-size: 15px; }
.price-card li::before { content: "+"; display: inline-block; width: 18px; color: var(--gold); font-family: var(--mono); }
.price-card .btn { margin-top: 20px; width: 100%; }
.price-note { color: var(--stone); font-size: 14px; margin-top: 18px; max-width: 640px; }

/* ---------- faq ---------- */

.faq { max-width: 760px; }
.faq details { border-top: 1px dashed var(--line-dash); }
.faq details:last-child { border-bottom: 1px dashed var(--line-dash); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 20px; color: var(--gold); }
.faq details[open] summary::after { content: "-"; }
.faq .a { padding: 0 0 18px; color: var(--stone); font-size: 16px; max-width: 640px; }

/* ---------- footer ---------- */

.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 24px; }
.footer .brand { font-size: 16px; }
.footer p { color: var(--stone); font-size: 13px; line-height: 1.55; max-width: 640px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); color: var(--stone); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--bone); }
.footer .fine { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--stone-dim); }
.footer .fine + .fine { margin-top: 4px; }
.footer .fine a { color: var(--stone-dim); text-decoration: none; }
.footer .fine a:hover { color: var(--bone); }

/* ---------- legal pages ---------- */

.legal { padding: 40px 0 72px; max-width: 760px; }
.legal .legal-kick { display: block; color: var(--gold); margin-bottom: 12px; }
.legal h1 { font-size: 32px; }
.legal .legal-meta { margin-top: 10px; color: var(--stone); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.legal .legal-notice { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-dash); background: var(--surface); color: var(--bone); font-size: 15px; }
.legal h2 { margin-top: 36px; font-size: 21px; }
.legal p { margin-top: 14px; color: var(--stone); font-size: 16px; }
.legal p a, .legal li a { display: inline; }
.legal ul { margin: 12px 0 0; padding-left: 22px; color: var(--stone); font-size: 16px; }
.legal li { margin-top: 8px; }
.legal .ph { color: var(--gold); }
.legal-back { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 32px; color: var(--gold); text-decoration: none; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

.notfound { padding: 96px 0; text-align: center; }
.notfound p { margin-top: 12px; color: var(--stone); }
.notfound .btn { margin-top: 24px; }

/* ---------- breakpoints ---------- */

@media (min-width: 480px) {
  h1 { font-size: 40px; }
  .waitlist-row { flex-direction: row; }
  .waitlist input[type="email"] { flex: 1 1 auto; }
  .waitlist .btn { width: auto; flex: none; padding: 0 22px; }
  .triad { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .triad-card { padding: 20px 16px; }
  .pm-features { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .price-card .btn { width: auto; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .section { padding: 88px 0; }
  .nav-links { display: flex; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; }
  .hero-visual { justify-items: end; }
  .hero-mark { width: 120px; height: 120px; border-radius: 27px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .triad { gap: 16px; }
  .triad-card { padding: 24px 22px; }
  .pm-features { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

@media (min-width: 1024px) {
  h1 { font-size: 56px; }
  .hero .lede { font-size: 19px; }
  .hero-mark { width: 144px; height: 144px; border-radius: 32px; }
  .split { gap: 56px; }
}

@media (min-width: 1280px) {
  :root { --gutter: 40px; }
  h1 { font-size: 62px; }
  .section { padding: 104px 0; }
  .hero { padding: 88px 0 96px; }
  .hero-grid { gap: 72px; }
}

/* ---------- variants (no inline styles, CSP style-src self) ---------- */

.card-line.first { margin-top: 8px; border-top: 0; padding-top: 0; }
.disclaimer.plain { margin-top: 0; border-top: 0; padding-top: 0; }
.pm-features.one { grid-template-columns: 1fr; }

/* Ledger fits a phone without scrolling; wider screens keep one line per cell. */
@media (max-width: 479px) {
  .ledger table { font-size: 12px; }
  .ledger th, .ledger td { padding-left: 10px; padding-right: 10px; }
  .ledger td { white-space: normal; }
  .ledger td.res { white-space: nowrap; }
}
