/* Cartosmith marketing page */

:root {
  color-scheme: dark;
  --ink-950: #090e14;
  --ink-900: #10151d;
  --ink-800: #161e2a;
  --gold: #ecbc66;
  --gold-dim: #7f6b40;
  --cream: #f6e6b9;
  --text: #cbd6e4;
  --muted: #8a9bb1;
  --line: rgba(236, 188, 102, 0.22);
  --line-soft: rgba(203, 214, 228, 0.12);

  /* legend dot colors, taken from the app's own markers */
  --red: #f07178;
  --yellow: #f2c94c;
  --blue: #6aa6ff;
  --green: #7bd9a0;
  --violet: #b6a4ef;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
picture { display: block; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--gold);
  color: var(--ink-950);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 16px; }

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

/* ---------- Header ---------- */

.site-header { padding-block: 28px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  text-decoration: none;
}
.brand .gem { width: 38px; height: 38px; flex: none; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.site-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.site-nav a:not(.btn):hover { color: var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.45em;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink-950);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--quiet { background: transparent; color: var(--gold); }
.btn--quiet:hover { background: rgba(236, 188, 102, 0.12); color: var(--cream); }

/* ---------- Type ---------- */

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.7rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.9vw, 3.3rem); line-height: 1.07; }

/* the short gold rule that sits above every headline in the brand slides */
.rule::before {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.lede, .copy p {
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 31em;
}

/* ---------- Screenshots ---------- */

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  box-shadow:
    0 32px 80px -32px rgba(0, 0, 0, 0.85),
    0 0 120px -48px rgba(236, 188, 102, 0.3);
}
.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.shot figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 7vw, 88px) clamp(64px, 9vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 78% 45%, rgba(236, 150, 60, 0.16), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .shot { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Feature sections ---------- */

.feature {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 9vw, 120px);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at var(--gx, 80%) 45%, var(--glow, transparent), transparent 72%);
}
.feature--prep   { --glow: rgba(236, 150, 60, 0.11); --gx: 25%; }
.feature--floors { --glow: rgba(80, 140, 255, 0.10); --gx: 75%; }
.feature--vision { --glow: rgba(40, 170, 150, 0.12); --gx: 50%; }
.feature--spells { --glow: rgba(240, 110, 70, 0.08); --gx: 50%; }
.feature--themes { --glow: rgba(140, 90, 220, 0.14); --gx: 25%; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--flip { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
.split--flip .copy { order: 2; }

.head--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.head--wide p { margin: 0; }
.head--stack { max-width: 42rem; margin-bottom: clamp(32px, 4vw, 56px); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: var(--text);
}
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.floors-media {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
}
.vision-players { display: grid; gap: 20px; }

.board-note { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Waitlist ---------- */

.cta { padding-block: clamp(56px, 8vw, 110px) clamp(72px, 10vw, 140px); }
.cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(236, 188, 102, 0.09), rgba(236, 188, 102, 0) 55%),
    var(--ink-800);
}
.cta__panel p { margin: 18px 0 0; font-size: 1.12rem; max-width: 30em; }

.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85em 1em;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--cream);
  font: 500 1rem/1.2 var(--sans);
}
.form-row input[type="email"]::placeholder { color: var(--muted); }
.form-row input[type="email"]:focus-visible { outline-color: var(--gold); }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-size: 0.97rem; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.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;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.site-footer .brand .gem { width: 30px; height: 30px; }
.site-footer .wordmark { font-size: 0.92rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .site-nav a:not(.btn):not(.keep) { display: none; }
  .hero__grid,
  .split,
  .split--flip,
  .head--wide,
  .cta__panel,
  .vision-grid { grid-template-columns: minmax(0, 1fr); }
  .split--flip .copy { order: 0; }
  .head--wide { align-items: start; }
  .head--wide p { margin-top: 0; }
}

@media (max-width: 520px) {
  .site-header .wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand .gem { width: 32px; height: 32px; }
  .wordmark { letter-spacing: 0.2em; font-size: 0.85rem; }
  .site-header .btn { display: none; }
  .floors-media { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 10px; }
}


/* ---------- Header and footer links ---------- */

.site-nav a[aria-current="page"] { color: var(--cream); box-shadow: 0 2px 0 var(--gold); padding-bottom: 4px; }
.foot-nav { display: flex; gap: 22px; }
.foot-nav a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.foot-nav a:hover { color: var(--cream); }

/* ---------- What's coming ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 80% 30%, rgba(236, 150, 60, 0.13), transparent 70%);
}
.page-hero .lede { max-width: 36em; }
.page-hero .fine { margin: 14px 0 0; color: var(--muted); font-size: 0.97rem; }

.feature--built      { --glow: rgba(123, 217, 160, 0.08); --gx: 20%; }
.feature--building   { --glow: rgba(236, 188, 102, 0.10); --gx: 70%; }
.feature--list       { --glow: rgba(106, 166, 255, 0.08); --gx: 30%; }
.feature--considered { --glow: rgba(182, 164, 239, 0.10); --gx: 60%; }

.sec-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { display: flex; align-items: center; gap: 16px; }
.sec-head p { margin: 18px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 34em; }
.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}

/* rows: one item per row, name on the left, description on the right */
.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.ledger > li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 10px clamp(24px, 5vw, 72px);
  padding-block: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.ledger h3 {
  margin: 0;
  font: 700 clamp(1.3rem, 2.1vw, 1.6rem)/1.2 var(--serif);
  color: var(--cream);
  text-wrap: balance;
}
.ledger p { margin: 0; max-width: 38em; }
.ledger p + p { margin-top: 0.8em; color: var(--muted); }

/* online play */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.node {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-800);
}
.node--relay { border-style: dashed; background: transparent; }
.node h3 { margin: 0 0 8px; font: 700 1.25rem/1.2 var(--serif); color: var(--cream); }
.node p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
}
.link svg { width: 64px; height: 12px; color: var(--gold); }

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.pair figcaption { grid-column: 1 / -1; }

.subhead {
  margin: clamp(40px, 6vw, 72px) 0 24px;
  font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif);
  color: var(--cream);
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.steps li { position: relative; padding: 0 0 28px 62px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--text);
  font: 600 1rem/1 var(--sans);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 46px;
  bottom: 6px;
  width: 1px;
  background: var(--line-soft);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--gold); border-color: var(--gold); color: var(--ink-950); }
.steps li.next::before { border-color: var(--gold); color: var(--gold); }
.steps h4 { margin: 0; font: 600 1.1rem/1.35 var(--sans); color: var(--cream); }
.steps p { margin: 4px 0 0; max-width: 36em; }
.steps .tag { margin-left: 10px; font-size: 0.85rem; font-weight: 600; color: var(--gold); }

.assurances { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46rem; }
.assurances li { padding-left: 22px; position: relative; }
.assurances li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 880px) {
  .ledger > li { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .link { flex-direction: row; min-width: 0; padding-block: 12px; gap: 12px; }
  .link svg { transform: rotate(90deg); width: 48px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .steps li { padding-left: 54px; }
}
