:root {
  --bg: #fffbf8;
  --surface: #fff3ec;
  --paper: #ffffff;
  --ink: #2a1710;
  --ink-soft: #6b4a3c;
  --primary: #a8412a;
  --primary-fill: #c75b39;
  --chip-fg: #8a5a1e;
  --chip-bg: #fbe3c8;
  --line: #e8d5c8;
  --ok: #2f6b4f;
  --bad: #8b2e24;
  --dark: #17110f;
  --dark-ink: #f7ede8;
  --dark-muted: #c9b2a8;
  --accent-soft: #e8845f;
  --shadow: 0 22px 60px rgb(42 23 16 / 14%);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  --wrap: 1120px;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
}

a:hover {
  color: #812f1c;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgb(255 251 248 / 92%);
  border-bottom: 1px solid rgb(232 213 200 / 80%);
}

.site-header.is-solid {
  /* same as default — kept for how-it-works */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--primary);
  padding: 0.2rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
}

.nav-cta:hover {
  background: #812f1c;
}

/* —— Hero (full-bleed composition) —— */
.hero {
  position: relative;
  min-height: min(92vh, 48rem);
  display: grid;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  color: var(--dark-ink);
  background:
    linear-gradient(
      105deg,
      rgb(23 17 15 / 96%) 0%,
      rgb(23 17 15 / 86%) 38%,
      rgb(23 17 15 / 45%) 62%,
      rgb(23 17 15 / 22%) 100%
    ),
    radial-gradient(ellipse 50% 65% at 88% 42%, rgb(199 91 57 / 38%), transparent 72%),
    radial-gradient(ellipse 35% 45% at 72% 88%, rgb(168 65 42 / 28%), transparent 65%),
    url("assets/shots/inbox.png") right 12% center / auto 125% no-repeat,
    linear-gradient(165deg, #2c1812 0%, #17110f 50%, #3a2218 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 20% 90%, rgb(232 132 95 / 18%), transparent 60%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 34rem;
  padding-bottom: 1rem;
}

.hero .eyebrow {
  color: #f0c08a;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero .lede {
  margin: 0 0 1.75rem;
  color: var(--dark-muted);
  font-size: 1.15rem;
  max-width: 30rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-soft);
  color: var(--dark);
}

.btn-primary:hover {
  background: #f0c08a;
  color: var(--dark);
}

.btn-light {
  background: var(--primary);
  color: #fff;
}

.btn-light:hover {
  background: #812f1c;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgb(247 237 232 / 35%);
  color: var(--dark-ink);
}

.btn-ghost:hover {
  border-color: #f0c08a;
  color: #f0c08a;
}

.btn-ghost-light {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost-light:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chip-fg);
}

/* —— Sections —— */
.band {
  padding: 4.5rem 0;
}

.band-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band-dark {
  background: var(--dark);
  color: var(--dark-ink);
  border: none;
}

.band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.08rem;
}

.band-dark .section-lede {
  color: var(--dark-muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.audience {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.audience .label {
  margin: 0 0 0.5rem;
  color: var(--chip-fg);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.audience h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.audience p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.audience ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.audience li {
  margin-bottom: 0.4rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.steps h3 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.phone-frame {
  margin: 0 auto;
  width: min(100%, 22rem);
  padding: 0.85rem;
  border-radius: 1.7rem;
  background: linear-gradient(160deg, #3a2a24, #1a1210);
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  border-radius: 1.1rem;
  background: #17110f;
}

.phone-frame figcaption {
  margin-top: 0.75rem;
  color: #f0c08a;
  font-size: 0.88rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gallery .phone-frame figcaption {
  color: var(--ink-soft);
  text-align: left;
}

.gallery .phone-frame figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.cta-panel {
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgb(232 132 95 / 22%), transparent 55%),
    var(--dark);
  color: var(--dark-ink);
}

.cta-panel h2 {
  margin: 0 0 0.6rem;
}

.cta-panel p {
  margin: 0 0 1.35rem;
  color: var(--dark-muted);
  max-width: 34rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* how-it-works page bits */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.check,
.cross {
  margin: 0;
  padding-left: 1.15rem;
}

.check li,
.cross li {
  margin-bottom: 0.55rem;
}

.check li::marker {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

.cross li::marker {
  content: "✕ ";
  color: var(--bad);
  font-weight: 700;
}

.callout {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
}

.mail-example {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 10px;
  background: var(--dark);
  color: var(--dark-ink);
  font-size: 0.92rem;
}

.mail-from,
.mail-subject {
  margin: 0 0 0.35rem;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.mail-body {
  margin: 0.65rem 0 0;
}

.stream {
  margin: 0 0 0.35rem;
  color: var(--chip-fg);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta {
  margin: -0.35rem 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface);
}

.page-hero {
  padding: 7rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 100% -10%, rgb(199 91 57 / 16%), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.crumb {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.crumb a {
  text-decoration: none;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-row li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 0.82rem;
  font-weight: 700;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.mail-card p:not(.stream):not(.meta):not(.mail-from):not(.mail-subject):not(.mail-body) {
  color: var(--ink-soft);
  margin: 0;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--dark);
  color: var(--dark-ink);
}

.footer-grid {
  display: grid;
  /* Four columns, not three: the registration details are a peer of the nav
     columns here, not a trailing note. This footer is read twice — once by
     someone looking for a link, once by a compliance reviewer looking for the
     entity behind the brand — and the second reader needs a labelled column,
     not fine print under a rule. */
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 2.5rem 2rem;
}

.site-footer .wordmark {
  /* <p class="wordmark"> otherwise keeps the UA's 1em block margin, which
     dropped the brand ~23px below the column headings beside it. Footer only:
     the header wordmark sits in a flex row and is unaffected. */
  margin-top: 0;
  color: var(--accent-soft);
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0c08a;
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--dark-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-col a:hover {
  color: #f0c08a;
}

.fine {
  margin: 2rem 0 0;
  color: var(--dark-muted);
  font-size: 0.85rem;
}

.footer-brand .wordmark {
  margin-top: 0;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  color: var(--dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col address {
  margin: 0;
  font-style: normal;
  color: var(--dark-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* The legally operative name, emphasised because it is the thing being
   identified — not for decoration. */
.footer-col .entity {
  display: block;
  color: var(--dark-ink);
  font-weight: 600;
}

/* One quiet line closing the footer: the statement that ties both brands to
   the registered entity, which is what a reviewer is looking for. */
.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(247 237 232 / 12%);
}

.footer-base p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}


@media (max-width: 900px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: center;
    padding-top: 3.5rem;
    background:
      linear-gradient(180deg, rgb(23 17 15 / 94%) 0%, rgb(23 17 15 / 88%) 55%, rgb(23 17 15 / 75%) 100%),
      radial-gradient(ellipse 80% 50% at 50% 0%, rgb(199 91 57 / 30%), transparent 70%),
      url("assets/shots/inbox.png") center top / cover no-repeat,
      var(--dark);
  }

  .split,
  .split.reverse,
  .feature-grid,
  .audience-grid,
  .gallery,
  .two-col {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }
}

@media print {
  .site-header,
  .hero-cta,
  .cta-actions,
  .skip {
    display: none;
  }
}

/* Four columns pair off before they stack, so the footer never jumps from a
   wide masthead straight to one long ribbon of links. */
@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Homepage (group dues). Scoped so /how-it-works/ keeps its own layout. —— */

body.home {
  background: var(--bg);
}

body.home h1,
body.home h2,
body.home h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.home h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 5.4vw, 3.7rem);
  font-weight: 700;
  max-width: 16ch;
}

body.home h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

body.home .lede,
body.home .section-intro {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

body.home .btn-primary {
  background: var(--primary);
  color: #fff;
}

body.home .btn-primary:hover {
  background: #812f1c;
  color: #fff;
}

body.home .btn-ghost {
  border-color: #c9b09f;
  color: var(--ink);
  background: transparent;
}

body.home .btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.home a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.home .footer-col h3 {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent-soft);
}

.home-hero {
  padding: 3.25rem 0 2.5rem;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem 4rem;
  align-items: end;
}

.home-hero-copy .lede {
  margin-bottom: 1.6rem;
}

.play-link:not([hidden]) {
  display: inline-block;
  margin-top: 1.25rem;
}

body.home [hidden] {
  display: none !important;
}

.play-link img {
  width: 155px;
  height: 46px;
}

.ledger {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(42 23 16 / 4%);
}

.ledger figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.ledger-group {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

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

.ledger table {
  width: 100%;
  border-collapse: collapse;
}

.ledger th,
.ledger td {
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-align: left;
}

.ledger td {
  text-align: right;
  font-weight: 700;
  font-size: 0.92rem;
}

.ledger .is-paid {
  color: var(--ok);
}

.ledger .is-owing {
  color: var(--primary);
}

.ledger-foot {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.home-section {
  padding: 3.25rem 0;
}

.home-section-rule {
  border-top: 1px solid var(--line);
}

.home-narrow {
  max-width: 40rem;
}

.audience-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.audience-list li {
  padding: 1.15rem 1.25rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.audience-list li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.audience-list li:nth-child(even) {
  padding-left: 1.5rem;
}

.audience-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.audience-list p {
  margin: 0;
  color: var(--ink-soft);
}

.steps-three {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.steps-three li {
  counter-increment: step;
}

.steps-three li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--primary);
}

.steps-three h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.steps-three p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-list {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.feature-list div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.feature-list dt {
  font-weight: 700;
}

.feature-list dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.pilot-price {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.price-placeholder {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed #b9896e;
  background: var(--surface);
  color: var(--ink);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 0.95rem 0;
  font-weight: 700;
  cursor: pointer;
}

.faq summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.home-close .hero-cta {
  margin-top: 1.4rem;
}

@media (max-width: 900px) {
  body.home .nav a:not(.nav-cta) {
    display: inline;
  }

  .home-hero-grid,
  .steps-three,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    align-items: start;
    gap: 2rem;
  }

  body.home h1 {
    max-width: 18ch;
  }
}

@media (max-width: 640px) {
  body.home .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-block: 0.85rem;
  }

  body.home .nav {
    width: 100%;
    gap: 0.55rem 0.85rem;
  }

  .audience-list {
    grid-template-columns: 1fr;
  }

  .audience-list li:nth-child(odd),
  .audience-list li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .ledger figcaption {
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .btn {
    transition: none;
  }
}

/* Whole-app homepage: hero phone, mini-app showcases */
.hero-phone {
  width: min(100%, 20rem);
}

.mini-app {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.mini-app:first-of-type {
  margin-top: 2rem;
  border-top: 0;
  padding-top: 0;
}

.mini-app-name {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--primary);
}

.mini-app-lede {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 34rem;
}

.mini-app-points {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.5rem;
  max-width: 34rem;
}

.mini-app-points li::marker {
  color: var(--primary-fill);
}

.mini-app .gallery {
  gap: 1rem;
}

.mini-app .phone-frame {
  padding: 0.5rem;
  border-radius: 1.4rem;
}

.mini-app .phone-frame img {
  border-radius: 1rem;
}

.mini-app-next,
.business-note {
  margin-top: 2.5rem;
  color: var(--ink-soft);
}

.business-note a {
  font-weight: 600;
}

@media (max-width: 860px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-copy {
    order: 0;
  }
}

.mini-app .phone-frame figcaption {
  color: #e9cfc2;
  padding: 0 0.35rem 0.3rem;
}

.mini-app .phone-frame figcaption strong {
  color: #fff;
}

/* ---------- Backgrounds and the hero stage ----------
   The hero sits on warm clay and sand light with a faint field of the
   brand bubble; the mini-apps section is the one dark band, so the phone
   screenshots carry it; the close is a clay panel. */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(60rem 32rem at 85% 20%, rgb(199 91 57 / 22%), transparent 60%),
    radial-gradient(40rem 28rem at 10% 95%, rgb(251 227 200 / 85%), transparent 65%),
    linear-gradient(180deg, #fff6f0 0%, var(--bg) 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'%3E%3Cpath d='M4 6.6A2.6 2.6 0 0 1 6.6 4h10.8A2.6 2.6 0 0 1 20 6.6v6.8a2.6 2.6 0 0 1-2.6 2.6H9.9l-4 3.2a.55.55 0 0 1-.9-.43V16h-.4A.6.6 0 0 1 4 15.4z' fill='none' stroke='%23a8412a' stroke-opacity='.06' stroke-width='.6'/%3E%3Ccircle cx='12' cy='10' r='1.6' fill='%23a8412a' fill-opacity='.055'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}

.home-hero > .wrap { position: relative; }
.home-hero-grid { align-items: center; }
.home-hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); line-height: 1.02; }

.hero-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(199 91 57 / 35%), transparent);
  filter: blur(20px);
}

.hero-stage .hero-phone { position: relative; transform: rotate(-2deg); }

.float-card {
  position: absolute;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgb(42 23 16 / 16%);
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--ink-soft);
  white-space: nowrap;
  animation: float-in 0.7s cubic-bezier(.2, .8, .2, 1) both;
}

.float-card b { display: block; color: var(--ink); font-weight: 700; }
.float-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-fill); }
.float-dot-ok { background: var(--ok); }
.float-dot-sos { background: var(--bad); box-shadow: 0 0 0 4px rgb(139 46 36 / 15%); }
.float-paid { left: -5.5rem; top: 18%; animation-delay: 0.35s; }
.float-poll { right: -4.5rem; top: 46%; animation-delay: 0.6s; }
.float-sos { left: -3.5rem; bottom: 12%; animation-delay: 0.85s; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* How it works and the inbox sit on soft surface tones */
#how { background: var(--bg); }
#inbox { background: var(--surface); border-top: 0; }

/* Mini-apps: the dark band */
.band-apps {
  background:
    radial-gradient(50rem 30rem at 0% 0%, rgb(199 91 57 / 28%), transparent 60%),
    radial-gradient(40rem 26rem at 100% 100%, rgb(232 132 95 / 18%), transparent 60%),
    #241510;
  color: var(--dark-ink);
}

.band-apps h2,
.band-apps .mini-app-lede { color: #fff; }
.band-apps .section-intro,
.band-apps .mini-app-points,
.band-apps .mini-app-next { color: var(--dark-muted); }
.band-apps .mini-app-name { color: var(--accent-soft); }
.band-apps .mini-app { border-top-color: rgb(255 255 255 / 12%); }
.band-apps .phone-frame { background: linear-gradient(160deg, #4a3229, #120c0a); box-shadow: 0 30px 70px rgb(0 0 0 / 45%); }

/* Groups: sand tint with a hairline grid of the audience list */
.band-groups {
  background: linear-gradient(180deg, #fdebd9 0%, var(--bg) 100%);
}

/* Close: clay panel */
.home-close .home-narrow {
  max-width: none;
  padding: 2.75rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(255 255 255 / 14%), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, #7d2c1b 100%);
  box-shadow: var(--shadow);
}

.home-close h2 { color: #fff; }
.home-close .section-intro { color: #fbe3d6; }
.home-close .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.home-close .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 55%); background: transparent; }

@media (max-width: 900px) {
  .float-paid { left: -0.5rem; }
  .float-poll { right: -0.5rem; }
  .float-sos { left: 0.5rem; }
}

@media (max-width: 560px) {
  .float-card { font-size: 0.78rem; padding: 0.5rem 0.7rem; }
  .home-close .home-narrow { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

body.home .band-apps .section-intro { color: var(--dark-muted); }
body.home .home-close .section-intro { color: #fbe3d6; }
.home-hero-copy .hero-cta { margin-top: 1.75rem; }

/* Terms and privacy: readable long-form text */
.legal > * { max-width: 46rem; }
.legal h2 { font-family: var(--display); font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal p { margin: 0 0 0.9rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.legal strong { color: var(--ink); }
.legal-updated { margin-top: 0.75rem; font-size: 0.95rem; opacity: 0.85; }

/* Waitlist: the address is visible and copyable, because a mailto link does
   nothing on a computer or phone with no email app set up. */
.waitlist-address {
  margin: 1.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: #fff;
  word-break: break-word;
  user-select: all;
}
.home-close button.btn { cursor: pointer; font: inherit; font-weight: 700; }
.waitlist-status { margin-top: 0.9rem; min-height: 1.4em; color: #fbe3d6; }
body.home .home-close .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
body.home .home-close .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 60%); }
body.home .home-close .btn-ghost:hover { background: rgb(255 255 255 / 12%); }
