/* 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;

  --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) { 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 { padding: 0.65em 1em; font-size: 0.93rem; white-space: nowrap; }
  .floors-media { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 10px; }
}
