/* ==========================================================================
   Remailit landing — "Kitchen-table planner"
   Warm utility: oat paper, sage, terracotta, a weekly planner with a sticky
   note. Type: Newsreader (display) / DM Sans (body) / Caveat (hand) /
   IBM Plex Mono (labels). All fonts self-hosted in ./fonts — no external
   requests.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --oat: #f6efe3;
  --cream: #fffaf1;
  --cream-deep: #efe4d1;
  --ink: #2c2822;
  --ink-soft: #5c5448;
  --ink-faint: #6f6557;
  --line: #e2d5c1;
  --line-strong: #cbb99f;
  --sage: #74856c;
  --sage-deep: #3f4c3a;
  --sage-wash: #e5ebdf;
  --terracotta: #ad5136;
  --terracotta-deep: #873b24;
  --terracotta-wash: #f6ded2;
  --note: #f8e7a6;
  --note-ink: #4d3d1c;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--oat);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--oat);
  /* A planner's dot grid, kept quiet enough to read over. */
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(44, 40, 34, 0.055) 1px,
    transparent 1.15px
  );
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain: one fixed overlay, no image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  background: var(--terracotta);
  color: var(--cream);
}

a {
  color: var(--terracotta-deep);
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }

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

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1001;
  padding: 0.7rem 1rem;
  background: var(--sage-deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 239, 227, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: 11px;
  transform: rotate(-2deg);
  box-shadow: 0 2px 0 var(--line-strong);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 0.65rem;
  border-left: 1px solid var(--line-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--terracotta-deep); text-decoration: none; }
.nav-links a.btn { color: var(--cream); }
.nav-links a.btn:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   Buttons — soft, tactile, sentence case
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--terracotta);
  border-color: var(--terracotta-deep);
  color: var(--cream);
  box-shadow: 0 3px 0 var(--terracotta-deep);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--terracotta-deep);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--terracotta-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}
.btn-small { padding: 0.55rem 0.85rem; font-size: 0.76rem; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta-deep);
  /* A warm highlighter stroke, not an underline. */
  background-image: linear-gradient(to top, var(--terracotta-wash) 0 38%, transparent 38%);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }

.lede {
  margin-top: 1.45rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.65;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.62rem 0.36rem 0.55rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease,
    box-shadow 0.16s ease, color 0.16s ease;
}
.platform:hover {
  transform: translateY(-1px);
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
  box-shadow: 0 2px 0 var(--line);
}
.platform:active {
  transform: translateY(0);
  box-shadow: none;
}
.platform--soon { border-style: dashed; }

.eyebrow-mark {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-wash);
  flex: none;
}
.platform .eyebrow-mark {
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-wash);
}
.platform--soon .eyebrow-mark {
  background: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-wash);
}

.platform-plus {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.08rem;
  border-radius: 50%;
  background: var(--terracotta-wash);
  color: var(--terracotta-deep);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.28rem 0.65rem 0.28rem 0.28rem;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.section-index span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 0.52rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.section-head > p:last-child {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82em;
  border-radius: 5px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-copy { position: relative; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.2rem;
  max-width: 31rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-transform: uppercase;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.8rem;
}
.hero-meta span {
  padding: 0.28rem 0.65rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sage-deep);
}

/* --- The planner: the page's memorable object ----------------------------- */

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.planner {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.5rem 1.4rem 1.7rem;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(44, 40, 34, 0.12), 0 3px 0 var(--cream-deep);
  transform: rotate(-1.2deg);
}

.planner-tape {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 6rem;
  height: 1.45rem;
  background: rgba(197, 139, 45, 0.28);
  border: 1px solid rgba(44, 40, 34, 0.06);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(44, 40, 34, 0.08);
}

.planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.planner-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.planner-title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.planner-badge {
  padding: 0.2rem 0.55rem;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  white-space: nowrap;
}

.planner-week { margin-top: 0.85rem; }

.planner-notes {
  margin-top: 0.95rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  min-height: 4.4rem;
}
.planner-notes-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.planner-note-line {
  display: block;
  height: 1px;
  margin-top: 1.05rem;
  background: var(--line);
}

.planner-day {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.55rem;
  border-bottom: 1px dashed var(--line);
}
.planner-day:last-child { border-bottom: none; }
.planner-day-name {
  flex: none;
  width: 3.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.planner-day-name b {
  font-weight: 500;
  color: var(--ink-faint);
}
.planner-line {
  flex: 1;
  height: 1px;
}

.planner-day--active {
  display: block;
  margin: 0.15rem -0.45rem 0;
  padding: 0.42rem 0.55rem;
  background: var(--sage-wash);
  border-bottom: none;
  border-radius: 10px;
}
.planner-day--active .planner-day-name { color: var(--sage-deep); }

.planner-event {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: var(--cream);
  border: 1px solid var(--sage);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
  font-size: 0.72rem;
}
.planner-event svg { flex: none; color: var(--sage-deep); }
.planner-event-title {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.planner-event .free {
  margin-left: auto;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--sage);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  white-space: nowrap;
}

/* The sticky note — the one thing people remember. */
.sticky {
  position: absolute;
  right: -1.5rem;
  bottom: -2.9rem;
  z-index: 3;
  width: 12rem;
  padding: 1.4rem 1rem 1rem;
  background: var(--note);
  color: var(--note-ink);
  border-radius: 2px 12px 12px 12px;
  box-shadow: 6px 10px 22px rgba(44, 40, 34, 0.2);
  transform: rotate(3deg);
  transition: transform 0.22s ease;
}
.sticky::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0 0 12px 0;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0) 48%, #e4cf7a 50%);
  box-shadow: -2px -2px 5px rgba(44, 40, 34, 0.12);
}
.sticky-tape {
  position: absolute;
  top: -0.55rem;
  left: 1.1rem;
  width: 4rem;
  height: 1.1rem;
  background: rgba(255, 250, 241, 0.68);
  border: 1px solid rgba(44, 40, 34, 0.07);
  transform: rotate(-7deg);
  box-shadow: 0 1px 2px rgba(44, 40, 34, 0.08);
}
.sticky-hand {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.08;
}
.sticky-meta {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.47rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6428;
}

.hero-art:hover .sticky { transform: rotate(1.2deg) translateY(-4px); }

.planner-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4.4rem;
  padding-left: 0.4rem;
}
.planner-doodle {
  width: 3.2rem;
  height: 2rem;
  color: var(--terracotta);
  transform: rotate(-8deg);
}
.planner-caption {
  font-family: var(--font-hand);
  font-size: 1.12rem;
  color: var(--ink-faint);
  transform: rotate(-2deg);
}

/* One quiet entrance sequence, then nothing. */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.15s; }
.hero-copy > :nth-child(5) { animation-delay: 0.2s; }
.hero-copy > :nth-child(6) { animation-delay: 0.25s; }
.hero-art { animation: rise 0.75s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

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

.section { padding-block: var(--space); }

/* Steps as three friendly cards, not a feature grid. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.45rem 1.35rem 1.35rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 0 var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:nth-child(1) { transform: rotate(-0.4deg); }
.step:nth-child(2) { transform: rotate(0.3deg); }
.step:nth-child(3) { transform: rotate(-0.25deg); }
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(44, 40, 34, 0.1), 0 2px 0 var(--line);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage-deep);
}
.step-body h3 { margin-bottom: 0.35rem; }
.step-body p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.step-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.24rem 0.55rem;
  background: var(--terracotta-wash);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}

/* Labels: copy on the left, a label recipe card on the right. */
.labels-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.labels-copy .section-head { margin-bottom: 0; }

.rule-note {
  margin-top: 1.5rem;
  padding: 0.95rem 1.05rem;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 0 var(--line);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.rule-note strong { color: var(--ink); }

.ledger {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 0 var(--line);
  font-size: 0.9rem;
}
.ledger th {
  padding: 0.75rem 1rem;
  background: var(--sage-wash);
  border-bottom: 1px solid var(--sage);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--sage-deep);
}
.ledger td {
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed var(--line);
  vertical-align: baseline;
}
.ledger tbody tr:last-child td { border-bottom: none; }
.ledger tbody tr:nth-child(even) { background: rgba(246, 239, 227, 0.45); }
.ledger td:first-child { width: 46%; }
.ledger td:last-child { color: var(--ink-soft); font-size: 0.83rem; }
.ledger code {
  padding: 0.12em 0.38em;
  background: var(--terracotta-wash);
  border: 1px solid rgba(173, 81, 54, 0.4);
  border-radius: 5px;
  color: var(--terracotta-deep);
  font-size: 0.77rem;
}

/* Privacy: a deep sage block, cream type. */
.section.band {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(2.2rem, 5vw, 3.8rem);
  background: var(--sage-deep);
  border-radius: 28px;
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, var(--cream) 1px, transparent 1.15px);
  background-size: 24px 24px;
}
.band .wrap { width: 100%; position: relative; z-index: 1; }

.band .section-index {
  background: rgba(255, 250, 241, 0.12);
  border-color: rgba(255, 250, 241, 0.28);
  color: rgba(255, 250, 241, 0.88);
}
.band .section-index span { background: var(--terracotta); color: var(--cream); }
.band h2 { color: var(--cream); }
.band p { color: rgba(255, 250, 241, 0.82); }
.band .section-head > p:last-child { color: rgba(255, 250, 241, 0.82); }
.band code {
  background: rgba(255, 250, 241, 0.1);
  border-color: rgba(255, 250, 241, 0.28);
  color: var(--cream);
}
.band a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--terracotta); }

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}
.privacy-copy .section-head { margin-bottom: 0; }

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 250, 241, 0.25);
}
.privacy-list li {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: 1px solid rgba(255, 250, 241, 0.15);
}
.privacy-key {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
}
.privacy-key::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.14);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.58rem;
}
.privacy-list li[data-kind="no"] .privacy-key { color: #ffc2ae; }
.privacy-list li[data-kind="no"] .privacy-key::before {
  content: "×";
  background: rgba(255, 194, 174, 0.16);
  color: #ffc2ae;
}
.privacy-list li span:last-child {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 250, 241, 0.82);
}
.privacy-list strong { color: var(--cream); font-weight: 600; }

/* FAQ: a stack of friendly cards. */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 0 var(--line);
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.faq-item summary {
  position: relative;
  padding: 1.1rem 3.3rem 1.1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  transform: translateY(-50%);
}
.faq-item summary:hover { color: var(--terracotta-deep); }
.faq-item[open] {
  background: #fffdf8;
  border-color: var(--sage);
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--terracotta);
  color: var(--cream);
}
.faq-body {
  padding: 0 3.3rem 1.15rem 1.2rem;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.faq-body p + p { margin-top: 0.5rem; }

/* Closing CTA: a big friendly note taped to the page. */
.cta-wrap { padding-block: var(--space); }
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.9rem, 5vw, 3.4rem);
  background: var(--terracotta);
  border-radius: 26px;
  color: var(--cream);
  box-shadow: 0 18px 40px rgba(44, 40, 34, 0.18), inset 0 0 0 1px rgba(255, 250, 241, 0.15);
  overflow: visible;
}
.cta::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 7rem;
  height: 1.5rem;
  background: rgba(255, 250, 241, 0.35);
  border: 1px solid rgba(44, 40, 34, 0.06);
  transform: translateX(-50%) rotate(-2deg);
}
.cta h2 { color: var(--cream); max-width: 34rem; }
.cta p {
  margin-top: 0.7rem;
  color: rgba(255, 250, 241, 0.95);
  font-size: 0.95rem;
}
.cta-action {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}
.cta-scribble {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cream);
  transform: rotate(-4deg);
}
.cta-doodle {
  width: 5rem;
  height: 2.4rem;
  color: var(--cream);
  opacity: 0.9;
  transform: rotate(-5deg);
}
.cta .btn-primary {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--terracotta-deep);
  box-shadow: 0 3px 0 rgba(44, 40, 34, 0.25);
}
.cta .btn-primary:hover {
  background: #fff;
  box-shadow: 0 2px 0 rgba(44, 40, 34, 0.25);
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.92);
}

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

.site-footer {
  border-top: 1px dashed var(--line-strong);
  padding-block: 2rem 2.4rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--terracotta-deep); }

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

html.waitlist-open { overflow: hidden; }

.waitlist {
  width: min(100% - 2rem, 33rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--ink);
}
.waitlist::backdrop {
  background: rgba(44, 40, 34, 0.54);
  backdrop-filter: blur(3px);
}
.waitlist::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  z-index: 2;
  width: 5.5rem;
  height: 1.35rem;
  background: rgba(197, 139, 45, 0.3);
  border: 1px solid rgba(44, 40, 34, 0.06);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(44, 40, 34, 0.08);
}

.waitlist-card {
  position: relative;
  max-height: calc(100dvh - 2rem);
  padding: 2rem 1.8rem 1.5rem;
  overflow: auto;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(44, 40, 34, 0.28), 0 3px 0 var(--cream-deep);
}

.waitlist-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--oat);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.waitlist-close:hover {
  background: var(--terracotta-wash);
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.waitlist-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.waitlist-kicker .eyebrow-mark {
  background: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-wash);
}

.waitlist h2 {
  margin-top: 0.65rem;
  padding-right: 2.1rem;
  font-size: clamp(1.65rem, 3.6vw, 2.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.waitlist-desc {
  max-width: 27rem;
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.waitlist-form { margin-top: 1.35rem; }
.waitlist-form > label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.waitlist-field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.waitlist-field input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.waitlist-field input::placeholder { color: #9b8f7d; }
.waitlist-field input:focus {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 1px;
  border-color: var(--terracotta);
}
.waitlist-field .btn { flex: none; }

.waitlist-hint {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.waitlist-status {
  min-height: 1.3rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--sage-deep);
}
.waitlist-status[data-state="error"] { color: var(--terracotta-deep); }

.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-done {
  margin-top: 1.35rem;
  padding: 1.1rem 1.15rem;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  border-radius: 14px;
}
.waitlist-done-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sage-deep);
}
.waitlist-done-text {
  margin-top: 0.3rem;
  color: var(--sage-deep);
  font-size: 0.86rem;
}
.waitlist-done .btn {
  margin-top: 0.9rem;
  border-color: var(--sage);
  color: var(--sage-deep);
}

.waitlist-privacy {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

@keyframes waitlist-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes waitlist-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.waitlist[open] { animation: waitlist-pop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.waitlist[open]::backdrop { animation: waitlist-fade 0.2s ease both; }

@media (max-width: 480px) {
  .waitlist-card { padding: 1.7rem 1.2rem 1.25rem; }
  .waitlist-field { flex-direction: column; }
  .waitlist-field .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Legal page
   -------------------------------------------------------------------------- */

.legal {
  width: min(100% - (var(--gutter) * 2), 48rem);
  margin: clamp(2rem, 5vw, 3.5rem) auto clamp(3rem, 6vw, 5rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--line);
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  margin-bottom: 0.4rem;
}
.legal .updated {
  margin-bottom: 1.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legal h2 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.38rem;
  letter-spacing: -0.015em;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.legal li { margin: 0.45rem 0; }
.legal li::marker { color: var(--terracotta); }
.legal strong { color: var(--ink); }
.legal code {
  background: var(--terracotta-wash);
  border-color: rgba(173, 81, 54, 0.4);
  color: var(--terracotta-deep);
}
.legal .callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--sage-wash);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--sage-deep);
}
.legal .callout strong { color: var(--sage-deep); }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 2.75rem;
  }
  .hero-art { align-items: flex-start; padding-left: 0.5rem; }
  .planner { width: min(100%, 30rem); }
  .labels-grid, .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid { gap: 2.25rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; }
  .cta-action { justify-items: start; }
}

@media (max-width: 720px) {
  .brand-tag { display: none; }
  .masthead-inner { min-height: 66px; }
  .nav-links { gap: 0.8rem; }
  .nav-links a:not(.btn) { display: none; }

  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero-meta { display: none; }

  .planner {
    width: 100%;
    padding: 1.25rem 1rem 1.35rem;
    transform: none;
  }
  .planner-tape { width: 5rem; }
  .sticky {
    position: relative;
    right: auto;
    bottom: auto;
    width: 12rem;
    margin: -0.4rem 0 0 auto;
    transform: rotate(2deg);
  }
  .planner-footer { margin-top: 1rem; }
  .planner-caption { font-size: 1rem; }

  .steps { grid-template-columns: 1fr; }
  .step { transform: none !important; }

  .ledger { font-size: 0.84rem; }
  .ledger th, .ledger td { padding: 0.7rem 0.6rem; }
  .ledger td:first-child { width: 52%; }

  .privacy-list li { grid-template-columns: 5.8rem minmax(0, 1fr); gap: 0.7rem; }

  .cta { padding: 1.7rem 1.3rem; }
  .cta-doodle { display: none; }

  .legal {
    width: calc(100% - 1.5rem);
    padding: 1.4rem 1.1rem;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-art { animation: none; }
  .waitlist[open], .waitlist[open]::backdrop { animation: none; }
  .sticky, .step { transition: none; }
  .hero-art:hover .sticky { transform: rotate(3deg); }
  * { transition: none !important; }
}

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