/*
 * The marketing site's one stylesheet.
 *
 * Every page used to carry its own copy of the palette inside a <style> tag,
 * which was fine at one page and is a maintenance trap at eight — the sort of
 * thing where the footer ends up a different grey on /terms and nobody
 * notices for a year.
 *
 * The palette is the app's, deliberately: #c8622e is the accent you see on
 * every button inside the studio. The site is dark and the app is light, and
 * that is a choice rather than an oversight — marketing pages are read once,
 * a writing tool is stared at for hours.
 */

:root {
  --bg: #1c1917;
  --surface: #26211e;
  --surface-raised: #332c27;
  --paper: #f5f0e8;
  --accent: #c8622e;
  --accent-soft: #e0a075;
  --muted: #8a7f72;
  --muted-light: #b5aa9c;
  --ok: #7a9e6e;
  --danger: #d05a4a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --measure: 60rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/*
 * The `hidden` attribute must actually hide things.
 *
 * A browser's own rule is `[hidden] { display: none }`, and any author rule
 * that sets `display` beats it — so `.form { display: flex }` kept the signup
 * form on screen after a successful submit, under the "you're on the list"
 * message. Every class in this file that sets display is a candidate for the
 * same bug, so the fix goes here rather than on the one that caught it.
 */
[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Shell ------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.nav .brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav a { color: var(--muted-light); text-decoration: none; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current='page'] { color: var(--paper); }
.nav .sep { width: 1px; height: 1.1rem; background: var(--surface-raised); }

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

.btn,
.btn-quiet {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: opacity 120ms ease, background-color 120ms ease;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-quiet { background: transparent; color: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--surface-raised); }
.btn-quiet:hover { background: var(--surface); }
.btn-sm { font-size: 0.9rem; padding: 0.6rem 1.2rem; }

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

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

h1, h2, h3 { font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
h1 em, h2 em { color: var(--accent); font-style: italic; }

p { color: var(--muted-light); }
.lede { font-size: 1.2rem; color: var(--muted-light); max-width: 46ch; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.prose { max-width: 40rem; }
.prose h2 { margin: 2.5rem 0 0.75rem; }
.prose h3 { margin: 2rem 0 0.5rem; color: var(--paper); }
.prose p, .prose ul { margin: 0.9rem 0; }
.prose ul { padding-left: 1.2rem; color: var(--muted-light); }
.prose li { margin: 0.4rem 0; }
.prose a { color: var(--accent-soft); }
.prose strong { color: var(--paper); font-weight: 400; }

/* ---- Sections ---------------------------------------------------------- */

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 17ch; margin: 1.25rem 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--surface-raised); }
.section > h2 { margin-bottom: 0.75rem; }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.cta-note { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

.card {
  background: var(--surface);
  border-radius: 0.9rem;
  padding: 1.5rem;
}
.card h3 { color: var(--paper); margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin: 0; }

/* Numbered steps: the number is information here — it really is a sequence. */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.25rem; margin: 1.75rem 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { color: var(--paper); margin-bottom: 0.25rem; }
.step p { margin: 0; }

/* ---- Forms ------------------------------------------------------------- */

.form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; max-width: 30rem; }
.form input[type='email'] {
  flex: 1 1 14rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--surface-raised);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
}
.form input[type='email']::placeholder { color: var(--muted); }
.form-msg { font-family: var(--sans); font-size: 0.9rem; margin-top: 0.9rem; min-height: 1.2rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
/* Honeypot: a field a person never sees and a bot fills in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.foot {
  border-top: 1px solid var(--surface-raised);
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--muted-light); }

/* ---- Narrow ------------------------------------------------------------ */

@media (max-width: 30rem) {
  .nav { gap: 1rem; }
  .nav .sep { display: none; }
  .lede { font-size: 1.1rem; }
}

/* ---- The product shot -------------------------------------------------- */

/*
 * Bleeds slightly wider than the text measure and sits on a lighter band, so
 * the app reads as a window laid on the page rather than a picture pasted
 * into the copy. The image is already corner-rounded, hence no radius here.
 */
.shot-band {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 45%, var(--bg) 100%);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 68rem;
  margin: 0 auto;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.45);
}
