/* ============================================================
   RUN THE ROOMS — MARKETING SITE
   Bold + Earthy, the same system as the app at runtherooms.xyz.
   Fraunces Bold headings. Montserrat Medium body, SemiBold UI.
   Three pairings: cream + cocoa, olive + oat, clay + ivory.
   ============================================================ */

:root {
  /* Locked palette */
  --cream: #FAF6ED;
  --card: #F3E7D5;
  --cocoa: #3B2B1D;
  --olive: #434226;
  --oat: #F4EBD9;
  --clay: #98573B;
  --ivory-ink: #F5EAD9;
  --clay-deep: #864123;

  /* Names the existing components already use */
  --ivory: var(--cream);
  --ivory-deep: var(--oat);
  --surface: var(--card);
  --surface-sunk: var(--oat);

  --ink: var(--cocoa);
  --ink-soft: #534536;
  --ink-muted: #5c4636;
  --ink-faint: #6a5644;

  --line: #E6D5C3;
  --line-strong: #cdbfa8;

  --olive-deep: #32341c;
  --olive-soft: var(--olive);
  --olive-wash: #e7e6d6;

  --brass: var(--clay);
  --brass-wash: var(--ivory-ink);

  --clay-wash: #f6e4d8;

  /* The Becoming Room uses the clay + ivory pairing. */
  --wine: var(--clay-deep);
  --warm: var(--ivory-ink);
  --warm-wash: var(--card);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --logo-dot: #FAF6ED;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--line); }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  margin: 0 0 0.45em;
  line-height: 1.12;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--clay); }

em { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.04em; }

::selection { background: var(--card); color: var(--cocoa); }

:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

input, textarea, select, button { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--ivory);
}

/* ---------- Utilities ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.eyebrow.olive { color: var(--olive); }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 0.92rem; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.btn-primary:hover { background: var(--olive); border-color: var(--olive); color: var(--oat); }

.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn-ghost:hover { background: var(--card); color: var(--cocoa); }

.btn-text { padding: 0; background: none; border: 0; color: var(--clay-deep); font-weight: 600; gap: 6px; }
.btn-text:hover { color: var(--clay); }
.btn-text .arrow { transition: transform 0.25s var(--ease); }
.btn-text:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand svg { height: 34px; width: auto; display: block; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { display: block; width: 132px; height: auto; }
.home-lockup { display: flex; justify-content: center; margin: 0 0 36px; }
.home-lockup img { width: min(148px, 46vw); height: auto; }
.brand-word {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cocoa);
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--cocoa); background: var(--card); }
.nav a[aria-current="page"] { color: var(--cocoa); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--clay);
  margin-top: 2px;
  border-radius: 2px;
}
.nav .nav-cta {
  margin-left: 8px;
  padding: 10px 16px;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 14px;
}
.nav .nav-cta:hover { background: var(--olive); color: var(--oat); }
.nav .nav-cta::after { display: none; }
.nav .nav-login, .nav .nav-start { color: var(--cocoa); }
.nav .nav-apply { color: var(--clay-deep); }

.nav-toggle {
  display: none;
  background: var(--cream);
  border: 1.5px solid var(--cocoa);
  border-radius: 12px;
  padding: 10px 11px;
  cursor: pointer;
  color: var(--cocoa);
  margin-left: auto;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 12px var(--gutter) calc(96px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 68px);
    overflow: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .site-header .wrap { position: relative; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
section.sunk { background: var(--ivory-deep); }
section.surface-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.olive-band { background: var(--olive-deep); color: var(--ivory); }
section.olive-band h1, section.olive-band h2, section.olive-band h3 { color: var(--ivory); }
section.olive-band .eyebrow { color: var(--olive-soft); }
section.olive-band .soft, section.olive-band .muted { color: color-mix(in srgb, var(--ivory) 78%, transparent); }
section.olive-band a { color: var(--ivory); }
section.olive-band .btn-ghost { color: var(--ivory); border-color: color-mix(in srgb, var(--ivory) 40%, transparent); }
section.olive-band .btn-ghost:hover { background: color-mix(in srgb, var(--ivory) 10%, transparent); border-color: var(--ivory); }
section.olive-band .btn-primary { background: var(--oat); color: var(--olive); border-color: var(--oat); }
section.olive-band .btn-primary:hover { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin: 22px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-aside { border-left: 1px solid var(--line-strong); padding-left: 28px; }
.hero-aside .item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-aside .item:last-child { border-bottom: 0; }
.hero-aside .item strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.hero-aside .item span { color: var(--ink-muted); font-size: 0.95rem; }

.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 8px; }
}

/* ---------- Grids + cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
a.card { color: inherit; }
a.card:hover { border-color: var(--clay); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.card .q { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.12rem; line-height: 1.4; }
.card .foot { margin-top: auto; padding-top: 12px; }
.card.sunk { background: var(--oat); }
.card.olive { background: var(--olive); border-color: var(--olive); color: var(--oat); }
.card.olive h3, .card.olive .q, .card.olive p, .card.olive .num, .card.olive .btn-text { color: var(--oat); }
a.card.olive:hover { border-color: var(--cocoa); color: var(--oat); }

.single { max-width: 720px; }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .sticky { position: sticky; top: 96px; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split .sticky { position: static; } }

.prose { color: var(--ink-soft); font-size: 1.04rem; }
.prose strong { color: var(--cocoa); font-weight: 600; }
.prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--olive-soft); }

.privacy .prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 1.75em 0 0.45em;
  line-height: 1.15;
  scroll-margin-top: 88px;
}
.privacy .page-hero { padding-bottom: 8px; }
.privacy .prose { padding-bottom: clamp(64px, 10vw, 120px); }
.app-privacy-note { margin-top: 28px; max-width: 42em; color: var(--ink-soft); }

/* ---------- Ladder (brand language) ---------- */
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.ladder .step { padding: 22px 20px 24px; border-right: 1px solid var(--line); }
.ladder .step:last-child { border-right: 0; background: var(--olive-wash); }
.ladder .step .num { font-family: var(--sans); font-weight: 600; color: var(--clay-deep); font-size: 12px; letter-spacing: 0.14em; margin-bottom: 8px; }
.ladder .step strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.ladder .step span { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; display: block; }
@media (max-width: 960px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ladder .step:nth-child(3) { border-right: 0; } .ladder .step:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } .ladder .step { border-right: 0 !important; border-bottom: 1px solid var(--line); } .ladder .step:last-child { border-bottom: 0; } }

/* ---------- Timeline (90 days) ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.phase { position: relative; padding: 26px 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.phase .days { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-deep); font-weight: 600; margin-bottom: 10px; display: block; }
.phase h3 { margin-bottom: 8px; }
.phase p { color: var(--ink-soft); font-size: 0.97rem; }
.phase ul { padding-left: 1.1em; margin: 10px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.phase li { margin-bottom: 0.3em; }
.phase li::marker { color: var(--olive-soft); }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  max-width: 22ch;
  margin: 0;
}
.pull-cite { display: block; margin-top: 20px; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.pull-mark { width: 40px; height: 1px; background: var(--brass); margin-bottom: 26px; }

/* ---------- Definition list / table ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table th, .table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.97rem; }
.table th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; background: var(--surface-sunk); }
.table tr:last-child td { border-bottom: 0; }
.table td strong { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; }
.table td.soft { color: var(--ink-soft); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li strong { color: var(--ink); font-weight: 500; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 1px; background: var(--olive); }

/* ---------- Investment note ---------- */
.invest { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; padding: 22px 26px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--r-lg); }
.invest .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.invest .amount { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.015em; color: var(--ink); }
.invest .note { flex-basis: 100%; color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { max-width: 20ch; }
.cta-band .btn-row { justify-content: flex-start; }
@media (max-width: 860px) { .cta-band .inner { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive-soft); box-shadow: 0 0 0 3px var(--olive-wash); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-note { font-size: 0.9rem; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cocoa); color: var(--cream); --logo-dot: #3B2B1D; padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oat); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--cream); font-size: 0.95rem; font-weight: 500; }
.site-footer a:hover { color: var(--oat); }
.site-footer .brand, .site-footer .brand-word { color: var(--cream); }
.site-footer .tag { font-family: var(--serif); font-weight: 700; font-style: normal; font-size: 1.35rem; color: var(--oat); max-width: 22ch; margin-top: 16px; line-height: 1.3; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); font-size: 0.85rem; color: var(--oat); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Metric cards nested inside a split column: three-up only when there is room */
.grid-metrics { grid-template-columns: 1fr; }
@media (min-width: 1180px) { .grid-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Portrait ---------- */
.portrait {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  margin-bottom: 26px;
}
.portrait.small { max-width: 240px; }

/* ============================================================
   TWO AUDIENCES
   Run the Rooms stays the company. The Becoming Room is the
   individual pathway: same type, same grid, same components,
   warmer ground and clay instead of olive.
   ============================================================ */

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

.nav .nav-becoming { color: var(--clay-deep); }
@media (max-width: 1240px) {
  .nav .nav-becoming { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
}

.site-footer h4.footer-sub { margin-top: 26px; }

/* ---------- Homepage pathway card ---------- */
.card.becoming-card { background: var(--warm); border-color: color-mix(in srgb, var(--clay) 28%, var(--line)); }
a.card.becoming-card:hover { border-color: var(--clay); }
.card.becoming-card .num, .card.becoming-card .btn-text { color: var(--clay-deep); }

/* ---------- CTA band: the warmer variant + microcopy ---------- */
section.becoming-band { background: var(--clay); color: var(--ivory-ink); }
section.becoming-band h1, section.becoming-band h2, section.becoming-band h3 { color: var(--ivory-ink); }
section.becoming-band .eyebrow { color: var(--cream); }
section.becoming-band .soft, section.becoming-band .muted, section.becoming-band .cta-note { color: var(--cream); }
section.becoming-band .btn-primary { background: var(--cream); color: var(--clay-deep); border-color: var(--cream); }
section.becoming-band .btn-primary:hover { background: var(--oat); color: var(--cocoa); }
section.becoming-band .btn-ghost { color: var(--ivory-ink); border-color: color-mix(in srgb, var(--ivory-ink) 55%, transparent); }
.cta-note { margin: 16px 0 0; font-size: 0.92rem; line-height: 1.5; max-width: 44ch; color: color-mix(in srgb, var(--ivory) 80%, transparent); }

/* ---------- The Becoming Room page ---------- */
.becoming .eyebrow { color: var(--clay-deep); }
.becoming .btn-primary { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--ivory); }
.becoming .btn-primary:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.becoming .btn-text, .becoming .prose a:not(.btn) { color: var(--clay-deep); }
.becoming .btn-text:hover, .becoming .prose a:not(.btn):hover { color: var(--wine); }
.becoming .checks li::before { background: var(--clay); }
.becoming .phase .days { color: var(--clay-deep); }
.becoming .card.sunk { background: var(--warm); }

/* Hero: light arriving from one side, as through an open door. */
.becoming-hero {
  background:
    radial-gradient(ellipse 55% 75% at 80% 45%, color-mix(in srgb, var(--brass-wash) 85%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--warm) 100%);
}
.becoming-hero .hero-grid { align-items: center; }
.becoming-hero h1 { max-width: 13ch; }

/* The threshold: a doorway with light inside it, the four stages
   rising toward the last one, and a floor line you step across.
   Drawn in CSS: no image to load, nothing to go blurry. Decorative,
   so it is hidden from screen readers; the stages are real content
   further down the page. */
.threshold { position: relative; display: flex; justify-content: center; padding-bottom: 20px; }
.threshold::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
}
.arch {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 5 / 7;
  border-radius: 50% 50% 3px 3px / 35.7% 35.7% 3px 3px;
  background: linear-gradient(180deg, #fffaf2 0%, var(--warm-wash) 100%);
  border: 1px solid color-mix(in srgb, var(--clay) 32%, var(--line));
  box-shadow: inset 0 0 0 10px var(--surface), inset 0 0 0 11px color-mix(in srgb, var(--clay) 16%, var(--line));
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 0 34px 34px;
  overflow: hidden;
}
.arch::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 42% at 50% 20%, rgba(255, 255, 255, 0.95), transparent 72%);
}
.arch span { position: relative; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink-faint); }
.arch span:nth-child(2) { color: var(--ink-muted); }
.arch span:nth-child(3) { color: var(--ink-soft); }
.arch span.last { font-style: italic; font-size: 2rem; line-height: 1.15; color: var(--clay-deep); margin-top: 4px; }
@media (max-width: 860px) {
  .threshold { justify-content: flex-start; }
  .arch { width: 210px; padding: 0 26px 26px; }
  .arch span.last { font-size: 1.6rem; }
}

.section-head .sequence { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--clay-deep); letter-spacing: -0.01em; }

/* Four stages: the ladder component, four rungs instead of six.
   Each rung is a little warmer than the last, so the sequence reads
   as light increasing rather than as four equal boxes. */
.ladder.four { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.becoming .ladder .step .num { color: var(--clay); }
.ladder.four .step:nth-child(1) { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--clay) 22%, transparent); }
.ladder.four .step:nth-child(2) { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--clay) 45%, transparent); background: color-mix(in srgb, var(--warm) 40%, var(--surface)); }
.ladder.four .step:nth-child(3) { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--clay) 70%, transparent); background: color-mix(in srgb, var(--warm) 75%, var(--surface)); }
.ladder.four .step:nth-child(4) { box-shadow: inset 0 3px 0 var(--clay-deep); background: var(--warm-wash); }
.ladder.four .step span { color: var(--ink-soft); }
@media (max-width: 960px) {
  .ladder.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder.four .step { border-right: 1px solid var(--line); border-bottom: 0; }
  .ladder.four .step:nth-child(2n) { border-right: 0; }
  .ladder.four .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ladder.four { grid-template-columns: 1fr; }
  .ladder.four .step { border-bottom: 1px solid var(--line); }
  .ladder.four .step:last-child { border-bottom: 0; }
}

.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; }
@media (max-width: 640px) { .checks.two { grid-template-columns: 1fr; } }

.becoming .your-room { margin-top: 30px; }
.becoming .your-room h3, .becoming #fit .card h3 { font-size: 1.3rem; margin-bottom: 10px; }

.becoming .details { margin-top: 18px; }
.details-note { margin: 26px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: 0.97rem; }

.becoming .card.not-fit { background: var(--surface-sunk); }
.becoming .not-fit .checks li::before { background: var(--ink-faint); }

.care-note {
  margin: 22px 0 0; max-width: 72ch;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 2px solid var(--clay);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-soft); font-size: 0.97rem;
}
.care-note strong { color: var(--ink); font-weight: 500; }

/* A pull quote that is a full thought rather than a line. At the
   standard size it outweighs the section it sits beside. */
.pull.pull-long { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.4; max-width: 34ch; }

/* The four stage names are the page's central idea; give them the
   weight of a heading rather than a label. */
.ladder.four .step strong { font-size: 1.35rem; font-weight: 700; }

/* On the homepage pathways the small label says who each path is
   for, so it has to be readable, not decorative like a room number. */
#two-rooms .card:not(.becoming-card) .num { color: var(--olive); }

@media (max-width: 560px) {
  .arch { width: 176px; padding: 0 22px 22px; }
  .arch span { font-size: 1rem; }
  .arch span.last { font-size: 1.4rem; }
}

/* ---------- Photographs ---------- */

/* The doorway holds a photograph now. It sits inside the arch's inner
   frame line, so the double outline still reads as architecture. The
   inner radius is the arch's, recalculated for the smaller box. */
.arch.arch-photo { padding: 0; }
.arch.arch-photo img {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover; object-position: 50% 30%;
  border-radius: 50% 50% 2px 2px / 35% 35% 2px 2px;
  display: block;
}

/* Homepage: the "two ways in" heading beside a photograph. */
.two-rooms-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.two-rooms-head .section-head { margin-bottom: 0; }
.two-rooms-photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface-sunk);
}
@media (max-width: 860px) { .two-rooms-head { grid-template-columns: 1fr; } }

/* With a photograph in it the doorway earns more room on small
   screens than the text version did. */
@media (max-width: 860px) { .arch.arch-photo { width: 260px; } }
@media (max-width: 560px) { .arch.arch-photo { width: 230px; } }

/* ============================================================
   APP-FIRST MARKETING
   Phone mockups, room pairings, get-the-app, sticky bar.
   ============================================================ */

/* Off-screen until keyboard focus. A negative top lets the rounded
   corner paint a few pixels into the page. */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  z-index: 80;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 10px;
  font-weight: 600;
}

.story-turn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  margin: 1.15em 0 0.35em;
}
.prose ul.i-am,
.i-am {
  list-style: none;
  padding: 8px 0 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.prose ul.i-am li::marker { content: ""; }
.i-am li {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--clay);
}

.app-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.app-hero h1 { max-width: 12ch; }
.app-hero .lede { margin: 18px 0 28px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 16px; }
.hero-links a { font-weight: 600; }

.room { padding: clamp(64px, 8vw, 112px) 0; }
.room-olive { background: var(--olive); color: var(--oat); }
.room-clay { background: var(--clay); color: var(--ivory-ink); }
.room-cocoa { background: var(--cocoa); color: var(--cream); }
.room-cream { background: var(--cream); color: var(--cocoa); }
.room h2, .room h3 { color: inherit; }
.room .lede, .room p { color: inherit; }
.room-olive .eyebrow, .room-cocoa .eyebrow { color: var(--oat); }
.room-clay .eyebrow { color: var(--cream); }
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.room-layout.flip { grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.05fr); }
.room-layout.flip .room-copy { order: 2; }
.tool-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tool-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.tool-list strong { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.tool-list span { font-size: 0.95rem; }
.room .btn-primary { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.room .btn-primary:hover { background: var(--oat); color: var(--olive); }
.room-cream .btn-primary { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.room-cream .btn-primary:hover { background: var(--olive); color: var(--oat); }
.room-note { margin-top: 22px; max-width: 42ch; font-size: 0.98rem; }

.more-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more-rooms article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
}
.more-rooms h3 { margin-bottom: 8px; }
.more-rooms p { color: var(--ink-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps article {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
}
.steps .num {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--clay-deep);
  display: block;
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

.device {
  width: min(100%, 340px);
  margin-inline: auto;
  background: #2a2118;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 28px 60px rgba(59, 43, 29, 0.28);
}
.device-screen {
  border-radius: 28px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.screen-top, .screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-top { padding: 16px 16px 0; }
.screen-word {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.screen-me {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.screen-body { padding: 18px 14px 16px; flex: 1; }
.screen-mark { display: flex; justify-content: center; margin-bottom: 8px; }
.screen-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.05;
  margin: 0 0 8px;
}
.screen-sub { text-align: center; font-size: 13px; font-weight: 500; margin: 0 0 16px; }
.screen-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.screen-panel .screen-title { color: var(--cocoa); }
.screen-card {
  background: var(--card);
  color: var(--cocoa);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.screen-card strong { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
.screen-card span { display: block; font-size: 11.5px; font-weight: 500; color: #5c4636; }
.screen-card i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 70%, white);
  display: grid;
  place-items: center;
}
.screen-go { color: #5c4636; font-size: 16px; }
.screen-nav {
  margin-top: auto;
  background: #2a2118;
  color: var(--oat);
  padding: 8px 8px 10px;
  justify-content: space-around;
}
.screen-nav svg { display: block; }
.screen-nav span { display: grid; justify-items: center; gap: 2px; font-size: 9px; font-weight: 600; letter-spacing: 0.02em; }
.screen-nav .plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  margin-top: -16px;
}
.screen-olive { background: var(--olive); color: var(--oat); }
.screen-clay { background: var(--clay); color: var(--ivory-ink); }
.screen-cream { background: var(--cream); color: var(--cocoa); }
.screen-cream .screen-card { background: var(--cream); border: 1px solid var(--line); }
.screen-home { background: var(--oat); color: var(--cocoa); }
.screen-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
}
.screen-panel h3 { font-size: 22px; margin: 0 0 6px; text-align: left; }
.screen-panel p { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; text-align: left; }
.screen-btn {
  display: inline-block;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip {
  background: var(--card);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}

.get-app { background: var(--oat); }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.install-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 22px 22px 8px;
  border: 1px solid var(--line);
}
.install-card ol { margin: 0 0 8px; padding-left: 1.2em; color: var(--ink-soft); }
.install-card li { margin-bottom: 0.45em; }
html[data-platform="ios"] .install-card[data-platform="ios"],
html[data-platform="android"] .install-card[data-platform="android"] {
  border-color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay);
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 12px;
  padding: 8px 14px 8px 12px;
  min-width: 168px;
  min-height: 52px;
}
a.store-badge:hover { background: var(--olive); color: var(--oat); }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oat); }
.store-badge strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.store-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

.app-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.app-bar .btn { width: 100%; }
/* Phones, and any width where script finds the header "Open the app"
   button off screen (the collapsed menu). Hidden while that button
   is in view, so it never sits on a desktop header. */
@media (max-width: 760px) {
  .app-bar { display: block; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
body.app-bar-on .app-bar { display: block; }
body.app-bar-on { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

.founder-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 960px) {
  .app-hero-grid, .room-layout, .room-layout.flip, .more-rooms, .steps, .founder-grid { grid-template-columns: 1fr; }
  .room-layout.flip .room-copy { order: 0; }
  .more-rooms, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .install-grid, .more-rooms, .steps { grid-template-columns: 1fr; }
  .device { width: min(100%, 320px); }
  .btn { white-space: normal; }
}

@media print {
  .app-bar, .nav-toggle, .site-header { display: none; }
  body { padding-bottom: 0; }
}
