/* Flat warm-eggshell page surface. The hero owns its own amber radial
   via `.hero--mockup::before`; layering page-level radials on top
   created visible blobs that clashed with section-card surfaces. */
.home-page {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 136px);
  overflow: hidden;
}

/* Quiet mockup hero: bigger padding, radial amber wash — wash extends so
   the device mock sits in the same warm field as the headline. */
.hero--mockup {
  padding: clamp(72px, 10vw, 132px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
  background:
    linear-gradient(
      180deg,
      rgba(246, 241, 234, 1) 0%,
      rgba(246, 241, 234, 1) 58%,
      rgba(239, 233, 223, 1) 100%
    );
}
.hero--mockup::before {
  content: "";
  position: absolute;
  inset: auto -10% -58% -10%;
  height: min(720px, 92vh);
  background: radial-gradient(62% 58% at 50% 26%, rgba(232, 163, 61, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero--mockup .hero-stack {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero--mockup .hero-actions {
  justify-content: center;
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background:
    linear-gradient(180deg, rgba(253, 251, 247, 0.18) 0%, rgba(253, 251, 247, 0) 100%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-kicker,
.section-kicker,
.trust-band__label,
.fit-list__label {
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.hero h1,
.section-head h2,
.proof-head h2,
.apply-head h2,
.system-head h2,
.whynow-title,
.apply-intro h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.section-head h2,
.proof-head h2,
.apply-head h2,
.system-head h2,
.whynow-title,
.apply-intro h2 {
  font-size: clamp(2rem, 3.3vw, 3.05rem);
  line-height: 1.02;
}

.hero-title em,
.hero h1 em,
.section-head h2 em,
.proof-head h2 em,
.apply-head h2 em,
.system-head h2 em,
.whynow-title em,
.apply-intro h2 em,
.beat h3 em {
  color: var(--accent);
  font-style: italic;
}

.hero-deck {
  margin: clamp(18px, 2vw, 28px) auto 0;
  max-width: 54ch;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.46;
}

.section-deck {
  margin: 22px 0 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(16px, 2.2vw, 24px);
}

.proof,
.system,
.apply {
  padding: 82px 0;
}

/* Extra air before the story beats after the contrast band. */
.system {
  padding-top: clamp(88px, 11vw, 120px);
  background:
    radial-gradient(
      120% 56% at 50% 0%,
      rgba(197, 81, 30, 0.14) 0%,
      rgba(197, 81, 30, 0.07) 26%,
      rgba(197, 81, 30, 0) 70%
    ),
    linear-gradient(
      180deg,
      rgba(239, 233, 223, 0.92) 0%,
      rgba(246, 241, 234, 0.99) 42%,
      rgba(246, 241, 234, 1) 100%
    );
}

.section-head {
  max-width: 720px;
}

.proof-layout {
  display: grid;
  gap: 28px;
  text-align: center;
  justify-items: center;
}

.proof-head {
  max-width: none;
}

.proof-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 1000px;
  text-align: left;
}

.proof-lead__number {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--accent);
  font-family: var(--serif);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.proof-lead__num,
.proof-lead__denom {
  font-size: clamp(4.8rem, 11vw, 8.8rem);
  font-weight: 500;
}

.proof-lead__in {
  padding-bottom: 0.82em;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.proof-lead__meaning {
  max-width: 32ch;
}

.proof-lead__label {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.4;
}

.proof-lead__source {
  margin: 16px 0 0;
  color: var(--text-subtle);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.proof-minor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1000px;
  text-align: left;
}

.proof-chip {
  padding: 24px 4px 4px;
}

.proof-chip__bar {
  display: block;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.proof-chip__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 999px;
}

.proof-chip__number {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.proof-chip__label {
  margin: 10px 0 0;
  max-width: 26ch;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
}

.proof-chip__source {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 12px;
}

.fit-list__body,
.trust-band__body {
  margin: 0;
  color: var(--text-muted);
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.section-head--sticky {
  position: sticky;
  top: 108px;
}

.system-steps {
  border-top: 1px solid var(--border);
}

.system-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.system-step__number {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.system-step h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.system-step p {
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.system-head {
  text-align: center;
  max-width: none;
  margin: 0 auto clamp(8px, 1.5vw, 14px);
}

.system-head h2 {
  max-width: none;
  text-wrap: balance;
}

.whynow-title {
  margin: 0 0 16px;
}

/* Apply pill in nav — matches the hero .cta button: burnt-sienna on
   ivory text. Same fill, same hover, same rhythm as "Apply for the
   beta →" so the call to action reads as one consistent affordance
   wherever it appears. */
.home-nav a.apply-pill {
  background: var(--accent);
  color: var(--card);
  padding: 8px 16px;
  border-radius: var(--r-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.home-nav a.apply-pill:hover {
  background: var(--accent-hover);
  color: var(--card);
}

/* Why now (compressed mockup version) ------------------------------------- */
.whynow {
  padding: clamp(40px, 5vw, 64px) 0 clamp(66px, 8vw, 96px);
  margin-top: -1px;
  /* Soft bridge from hero into social-proof block. */
  background:
    linear-gradient(
      180deg,
      rgba(239, 233, 223, 1) 0%,
      rgba(240, 234, 224, 1) 36%,
      rgba(246, 241, 234, 1) 100%
    );
}
.whynow-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.whynow-stat {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.whynow-stat strong {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.whynow-source {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.beats {
  list-style: none;
  padding: 0;
  margin: clamp(36px, 5vw, 52px) auto 0;
  max-width: 1020px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 52px);
  align-items: start;
  position: relative;
}

@media (max-width: 760px) {
  .beats {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: clamp(34px, 5.5vw, 48px);
  }
}

/* Panel-style beat art doesn't need the connecting dotted rail — the rectangular
   illustrations already read as a sequence on their own. */

.beat {
  position: relative;
  padding: 0;
  width: 100%;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.beat + .beat {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.beat__step {
  color: var(--accent);
  font-family: var(--rounded);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: clamp(12px, 1.8vw, 18px);
}

.beat h3 {
  margin: clamp(14px, 2.2vw, 20px) 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.beat p {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.52;
}

/* When the beat uses panel-style art, prose can use full column width. */
.beat:has(.beat__art--panel) p { max-width: 34ch; }

.beat__art {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(26, 24, 21, 0.05);
}

/* Panel-style beat art (richer mockup illustrations) ----------------------- */
.beat__art--panel {
  width: 100%;
  max-width: min(360px, 100%);
  height: auto;
  min-height: 150px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(26, 24, 21, 0.04);
  padding: clamp(14px, 3vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.beat__art--portfolio {
  min-height: 200px;
  max-width: min(380px, 100%);
  padding: 12px;
  align-items: stretch;
}

.beat__art--token {
  width: min(312px, 100%);
  min-height: 96px;
  height: auto;
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--bg-alt) 84%, var(--card));
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(26, 24, 21, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-self: center;
}

.beat__token-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 76%, var(--card));
}

.beat__token-line {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 24%, var(--card));
  width: 78%;
}

.beat__token-line--lg { width: 92%; }
.beat__token-line--sm { width: 56%; }

.beat__token-bar {
  display: flex;
  gap: 1px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}

.beat__token-seg { flex: 1 1 auto; min-width: 2px; }
.beat__token-seg--t { flex: 11; background: #3a7a5a; }
.beat__token-seg--c { flex: 16; background: #e7b59b; }
.beat__token-seg--co { flex: 33; background: #c5511e; }
.beat__token-seg--m { flex: 24; background: #a7411a; }
.beat__token-seg--l { flex: 41; background: #7a3814; }

.beat__token-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
  text-align: center;
}

/* Beat 03 — nudge card (non-device treatment). */
.beat__art--nudge {
  width: min(320px, 100%);
  min-height: 136px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-alt) 86%, var(--card)) 0%,
    color-mix(in srgb, var(--bg-alt) 78%, var(--card)) 100%
  );
}

.beat__nudge-kicker {
  margin: 0;
  max-width: none;
  color: var(--accent);
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beat__nudge-name {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.beat__nudge-copy {
  margin: 0;
  max-width: none;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.4;
}

.beat__nudge-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beat__nudge-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, var(--bg-alt));
  color: var(--text-muted);
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.beat__nudge-actions span:first-child {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--accent);
}

/* App-light tokens — mirror TendPalette light (TendPalette.swift); used for
   product-fidelity composites on the homepage. */

.b-phone {
  --app-bg: #f2ebe0;
  --app-card: #f8f2e8;
  --app-card-2: #efe7da;
  --app-rule: #e2d6c2;
  --app-ink: #1f1a14;
  --app-muted: #6b5f50;
  --app-hint: #9a8e7e;
  --app-accent: #c5511e;
  --sw-thriving: #3a7a5a;
  --sw-connected: #e7b59b;
  --sw-cooling: #c5511e;
  --sw-missing: #a7411a;
  --sw-lost: #7a3814;
}

/* Beat 1 — Mac Messages window silhouette */
.b-mac {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  background: #faf9f7;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.b-mac__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #f4f4f4 0%, #edecec 100%);
}

.b-mac__lights {
  width: 52px;
  height: 12px;
  background: radial-gradient(circle at 6px 50%, #ff6058 0 4px, transparent 5px),
    radial-gradient(circle at 23px 50%, #ffc130 0 4px, transparent 5px),
    radial-gradient(circle at 40px 50%, #29c940 0 4px, transparent 5px);
  flex-shrink: 0;
}

.b-mac__title {
  flex: 1;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #3a3a3c;
  letter-spacing: -0.01em;
}

.b-mac__body {
  flex: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  min-height: 0;
}

.b-mac__side {
  background: #e8e8e8;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.b-mac__conv { display: flex; align-items: center; gap: 6px; }
.b-mac__av {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cfcfcf;
  flex-shrink: 0;
}
.b-mac__av--acc {
  background: linear-gradient(145deg, #e7b59b 0%, #c5511e 100%);
}
.b-mac__pill {
  height: 5px;
  background: #bdbdbd;
  border-radius: 3px;
  flex: 1;
}
.b-mac__main {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: flex-end;
  background: #fff;
}
.b-mac__bubble {
  height: 14px;
  border-radius: 10px;
}
.b-mac__bubble--in {
  width: 72%;
  align-self: flex-start;
  background: #e9e9eb;
}
.b-mac__bubble--out {
  width: 54%;
  align-self: flex-end;
  background: #0a84ff;
  opacity: 0.92;
}
.b-mac__bubble--in + .b-mac__bubble--out { width: 62%; }

/* Beat 2 — portfolio card (DailyView tierDistribution) */
.b-portfolio {
  --sw-thriving: #3a7a5a;
  --sw-connected: #e7b59b;
  --sw-cooling: #c5511e;
  --sw-missing: #a7411a;
  --sw-lost: #7a3814;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  background: var(--app-bg, #f8f2e8);
  border: 0.5px solid var(--app-rule, #e2d6c2);
  border-radius: var(--r-14, 14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  --app-bg: #f8f2e8;
  --app-rule: #e2d6c2;
  --app-muted: #6b5f50;
}

.b-portfolio__eyebrow {
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.b-portfolio__bar {
  display: flex;
  gap: 1px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--app-rule);
}

.b-portfolio__bar--thin { height: 8px; }

.b-portfolio__seg {
  min-width: 4px;
  flex: 1 1 auto;
}

.b-portfolio__seg--thriving { flex: 1.1; background: var(--sw-thriving); }
.b-portfolio__seg--connected { flex: 1.05; background: var(--sw-connected); }
.b-portfolio__seg--cooling { flex: 1.05; background: var(--sw-cooling); }
.b-portfolio__seg--missing { flex: 1; background: var(--sw-missing); }
.b-portfolio__seg--lost { flex: 0.85; background: var(--sw-lost); }

.b-phone .b-portfolio__seg--thriving { flex: 1; }
.b-phone .b-portfolio__seg--connected { flex: 1; }
.b-phone .b-portfolio__seg--cooling { flex: 1; }
.b-phone .b-portfolio__seg--missing { flex: 1; }
.b-phone .b-portfolio__seg--lost { flex: 1; }

.b-portfolio__counts {
  display: flex;
  gap: 4px;
  justify-content: space-between;
}

.b-portfolio__count {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.b-portfolio__count .n {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.b-portfolio__count .lb {
  font-family: var(--rounded);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.b-portfolio__count:nth-child(1) .n { color: var(--sw-thriving); }
.b-portfolio__count:nth-child(2) .n { color: var(--sw-connected); }
.b-portfolio__count:nth-child(3) .n { color: var(--sw-cooling); }
.b-portfolio__count:nth-child(4) .n { color: var(--sw-missing); }
.b-portfolio__count:nth-child(5) .n { color: var(--sw-lost); }

/* iPhoneDaily tab composite */
.b-phone--hero {
  width: min(280px, 92vw);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #3a3a3c 0%, #151516 52%, #0c0c0d 100%);
  box-shadow:
    0 24px 48px rgba(15, 12, 10, 0.18),
    0 8px 20px rgba(15, 12, 10, 0.1);
}

.b-phone--beats {
  width: 100%;
  border-radius: 18px;
  overflow: visible;
}

.b-phone__inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.b-phone__inner--flat {
  border-radius: 14px;
  min-height: 268px;
  border: 0.5px solid var(--app-rule);
}

.b-phone__inner--excerpt.b-phone__inner--flat {
  border-radius: 14px;
  min-height: 0;
}

.b-phone--daily-excerpt {
  max-width: 312px;
  width: 100%;
}

.b-phone__toolbar--align-start {
  justify-content: flex-start;
  padding-left: 13px;
  padding-right: 13px;
}

.b-phone--beats .b-phone__inner {
  min-height: 280px;
}

.b-phone--daily-excerpt.b-phone--beats .b-phone__inner {
  min-height: 0;
}

.b-phone--beat03.b-phone--beats .b-phone__inner--flat {
  min-height: 0;
}

.b-phone__dynamic {
  height: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.b-phone__dynamic::before {
  content: "";
  width: 78px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 24px;
  background: #0a0a0c;
}

.b-phone__toolbar {
  flex-shrink: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 6px;
  background: rgba(242, 235, 224, 0.96);
  border-bottom: 0.5px solid var(--app-rule);
}

.b-phone__inner--flat .b-phone__toolbar {
  background: rgba(242, 235, 224, 0.98);
  border-radius: 14px 14px 0 0;
}

.b-phone__principal {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.b-phone__principal-serif {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--app-ink);
  letter-spacing: -0.02em;
}

.b-phone__wordmark {
  display: block;
  height: 20px;
  width: auto;
}

.b-phone__scroll {
  flex: 1;
  padding: 8px 11px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.b-phone__mini-portfolio .b-portfolio__eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.b-phone__daily-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.b-phone__daily-l1 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.17;
  color: var(--app-ink);
  letter-spacing: -0.02em;
}

.b-phone__daily-l2 {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--app-accent);
}

.b-phone__daily-sub {
  font-family: var(--rounded);
  font-size: 12px;
  line-height: 1.42;
  color: var(--app-muted);
}

.b-phone__drift-cap {
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--app-accent);
  margin-top: 2px;
}

.b-phone__drift-cap span {
  letter-spacing: 0.08em;
}

.b-phone__draft-card {
  background: var(--app-card);
  border: 0.5px solid var(--app-rule);
  border-radius: 14px;
  padding: 9px 10px;
  flex-shrink: 0;
}

.b-phone__draft-card--compact {
  padding: 7px 8px;
}

.b-phone__draft-card + .b-phone__draft-card--compact,
.b-phone__draft-card--dense + .b-phone__draft-card--dense,
.b-phone__draft-card--dense + .b-phone__draft-card--peek {
  margin-top: 4px;
}

.b-phone__principal--daily-word {
  align-items: baseline;
  gap: 7px;
}

.b-phone__mark-text {
  font-family: var(--wordmark);
  font-weight: 700;
  font-size: clamp(17px, 4vw, 19px);
  color: var(--app-accent);
  letter-spacing: -0.035em;
  line-height: 1;
}

.b-phone__scroll--beat03 {
  gap: 8px;
  padding-bottom: 8px;
}

.b-phone__daily-kicker-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(14px, 3.1vw, 16px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--app-ink);
}

.b-phone__portfolio-block--minimal {
  padding: 6px 8px;
  margin: 0;
}

.b-phone__portfolio-block--minimal .b-phone__portfolio-eyebrow {
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.b-phone__drift-tail {
  margin: 0;
  padding-top: 2px;
  font-family: var(--rounded);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--app-hint);
}

.b-phone__sms--natural {
  font-family: var(--rounded);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0;
}

.b-phone__sms--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.b-phone__portfolio-block {
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(248, 242, 232, 0.65);
  border: 0.5px solid var(--app-rule);
}

.b-phone__portfolio-eyebrow {
  font-family: var(--rounded);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: 5px;
}

.b-phone__portfolio-bar {
  display: flex;
  gap: 1px;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--app-rule);
  margin-bottom: 6px;
}

.b-phone__portfolio-seg {
  min-width: 3px;
  flex: 1 1 auto;
}

.b-phone__portfolio-seg--thriving { background: var(--sw-thriving); }
.b-phone__portfolio-seg--connected { background: var(--sw-connected); }
.b-phone__portfolio-seg--cooling { background: var(--sw-cooling); }
.b-phone__portfolio-seg--missing { background: var(--sw-missing); }
.b-phone__portfolio-seg--lost { background: var(--sw-lost); }

.b-phone__portfolio-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}

.b-phone__portfolio-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.b-phone__portfolio-count .num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.b-phone__portfolio-count .lbl {
  font-family: var(--rounded);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.b-phone__portfolio-count:nth-child(1) .num { color: var(--sw-thriving); }
.b-phone__portfolio-count:nth-child(2) .num { color: var(--sw-connected); }
.b-phone__portfolio-count:nth-child(3) .num { color: var(--sw-cooling); }
.b-phone__portfolio-count:nth-child(4) .num { color: var(--sw-missing); }
.b-phone__portfolio-count:nth-child(5) .num { color: var(--sw-lost); }

.b-phone__tier-pill--friendly {
  font-family: var(--rounded);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9a5630;
  background: rgba(197, 81, 30, 0.1);
}

.b-phone__draft-card--dense {
  padding: 8px 9px;
}

.b-phone__draft-card--peek {
  padding: 7px 9px;
  opacity: 0.96;
}

.b-phone__draft-card--peek .b-phone__row-top {
  margin-bottom: 0;
}

.b-phone__row-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 6px;
}

.b-phone__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rounded);
  font-size: 12px;
  font-weight: 700;
  color: var(--app-ink);
  background: linear-gradient(160deg, #efe7da 0%, #dfd4c8 100%);
  border: 2px solid transparent;
}

.b-phone__avatar[data-tier="thriving"],
.b-phone__avatar[data-tier="connected"] {
  border-color: var(--sw-thriving);
}

.b-phone__avatar[data-tier="cooling_off"] {
  border-color: var(--sw-cooling);
}

.b-phone__avatar[data-tier="missing_you"] {
  border-color: var(--sw-missing);
}

.b-phone__avatar[data-tier="lost_touch"] {
  border-color: #b94a3a;
}

.b-phone__row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.b-phone__row-name {
  font-family: var(--rounded);
  font-size: 15px;
  font-weight: 600;
  color: var(--app-ink);
}

.b-phone__tier-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--app-hint);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 130, 110, 0.12);
  letter-spacing: 0.03em;
}

.b-phone__read {
  margin: 0;
  font-family: var(--rounded);
  font-size: 12px;
  line-height: 1.42;
  color: var(--app-muted);
}

.b-phone__sms {
  margin: 7px 0 8px;
  padding: 7px 8px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--app-ink);
  background: var(--app-card-2);
  border-radius: 8px;
}

.b-phone__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.b-phone__btn-main {
  font-family: var(--rounded);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg, #fdfbf7);
  background: var(--app-accent);
  padding: 7px 12px;
  border-radius: 10px;
}

.b-phone__btn-sec {
  font-family: var(--rounded);
  font-size: 12px;
  font-weight: 600;
  color: var(--app-accent);
  padding: 6px 10px;
  border-radius: 10px;
  border: 0.5px solid var(--app-rule);
  background: var(--app-card);
}

/* Homepage tab-bar sprites (composite phone chrome; matches app tabItem glyphs). */

.tend-tab-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.b-phone__tabs {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: 48px;
  padding: 4px 0 10px;
  background: rgba(252, 250, 245, 0.98);
  border-top: 0.5px solid var(--app-rule);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--app-hint);
}

.b-phone__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.b-phone__tab--on {
  color: var(--app-accent);
  font-weight: 600;
}

.b-phone__tab-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.b-phone__tab-svg {
  display: block;
}

/* Hero device height — shorten scroll area slightly */
.b-phone--hero .b-phone__scroll {
  min-height: 0;
}

.b-phone--hero .b-phone__inner {
  border-radius: 28px;
  min-height: 0;
}

.b-phone__inner:not(.b-phone__inner--flat) .b-phone__scroll {
  max-height: 420px;
}

.apply-stack {
  display: grid;
  gap: 44px;
  max-width: 680px;
  margin: 0 auto;
}

/* Compressed home apply (mockup intro form) ------------------------------- */
.apply--intro {
  padding: clamp(72px, 9vw, 104px) 0;
  background:
    radial-gradient(
      120% 44% at 50% 0%,
      rgba(197, 81, 30, 0.08) 0%,
      rgba(197, 81, 30, 0) 70%
    ),
    linear-gradient(
      180deg,
      rgba(246, 241, 234, 0.96) 0%,
      rgba(246, 241, 234, 0.99) 38%,
      var(--bg) 100%
    );
}
.apply-intro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.apply-intro h2 {
  margin: 4px auto 14px;
  max-width: 22ch;
  text-wrap: balance;
}
.apply-intro__form {
  margin: 26px auto 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.apply-intro__form .field { display: block; }
.apply-intro__form label,
.apply-intro__form legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.apply-intro__form input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-10);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.apply-intro__pills {
  display: flex;
  gap: 10px;
}
.apply-intro__pills input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.apply-intro__pills label {
  flex: 1;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-14);
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.apply-intro__pills input[type="radio"]:checked + label {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.apply-intro__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.apply-intro__foot p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-subtle);
}
.apply-intro__foot .cta {
  background: var(--accent);
}
.apply-intro__foot .cta:hover { background: var(--accent-hover); }
.apply-intro__foot .cta:disabled,
.apply-intro__foot .cta[disabled] {
  background: var(--border-strong);
  color: var(--text-subtle);
  cursor: not-allowed;
  transform: none;
}

/* Inline "needs iMessage" stop card — shown when the user answers No. */
.apply-intro__stop {
  margin: 4px 0 0;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--terracotta) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--terracotta) 35%, var(--border));
  border-radius: var(--r-10);
}
.apply-intro__stop p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.apply-intro__stop strong { color: var(--terracotta); }
.apply-intro__stop[hidden] { display: none; }
.apply-foot-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--text-subtle);
}
.apply-foot-note a { color: var(--text-muted); }

.apply-head {
  text-align: center;
}

.apply-head h2 {
  margin: 4px auto 0;
  max-width: 24ch;
  text-wrap: balance;
}

.apply-letter {
  margin: 20px auto 0;
  max-width: 46ch;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.42;
}

.apply-panel {
  /* Light-mode panel — warm eggshell bg, ivory card, ink text, burnt
     sienna accent. Overrides the site-wide tokens inside this block only
     so the embedded form inherits the right inputs/labels/choices. */
  --bg: #F6F1EA;
  --bg-alt: #EFE9DF;
  --card: #FDFBF7;
  --ink: #1A1815;
  --text: #1A1815;
  --text-muted: #5A544B;
  --text-subtle: #8A8275;
  --border: #E6DFD1;
  --border-strong: #D4CBB8;
  --accent: #B5542A;
  --accent-hover: #9A4620;
  --terracotta: #B94A3A;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(26, 24, 21, 0.06);
}

.apply-panel .card {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.apply-panel .field {
  margin-bottom: 18px;
}

.apply-panel .field label,
.apply-panel .field .fl,
.apply-panel .field legend {
  color: var(--ink);
}

.apply-panel .field-optional {
  color: var(--text-subtle);
  font-weight: 400;
}

.apply-panel .consent-row {
  margin-bottom: 10px;
}

.apply-panel .consent-row:last-of-type {
  margin-bottom: 0;
}

.apply-panel .status {
  min-height: 22px;
  margin-top: 8px;
  color: var(--text-muted);
}

.apply-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.apply-panel__footer p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

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

  .section-head--sticky {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero--mockup {
    background:
      linear-gradient(
        180deg,
        rgba(246, 241, 234, 1) 0%,
        rgba(246, 241, 234, 1) 58%,
        rgba(239, 233, 223, 1) 100%
      );
  }

  .whynow {
    background:
      linear-gradient(
        180deg,
        rgba(239, 233, 223, 1) 0%,
        rgba(240, 234, 224, 1) 38%,
        rgba(246, 241, 234, 1) 100%
      );
  }

  .system {
    background:
      radial-gradient(
        120% 56% at 50% 0%,
        rgba(197, 81, 30, 0.11) 0%,
        rgba(197, 81, 30, 0.05) 25%,
        rgba(197, 81, 30, 0) 68%
      ),
      linear-gradient(
        180deg,
        rgba(239, 233, 223, 0.9) 0%,
        rgba(246, 241, 234, 0.99) 44%,
        rgba(246, 241, 234, 1) 100%
      );
  }

  .apply--intro {
    background:
      radial-gradient(
        120% 44% at 50% 0%,
        rgba(197, 81, 30, 0.06) 0%,
        rgba(197, 81, 30, 0) 68%
      ),
      linear-gradient(
        180deg,
        rgba(246, 241, 234, 0.97) 0%,
        rgba(246, 241, 234, 0.99) 42%,
        var(--bg) 100%
      );
  }
}

@media (max-width: 860px) {
  .trust-band {
    grid-template-columns: 1fr;
  }

  .proof-lead {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
    text-align: left;
  }

  .proof-lead__number {
    justify-content: flex-start;
  }

  .proof-head {
    max-width: none;
  }

  .apply-panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
    padding-bottom: clamp(28px, 8vw, 40px);
  }

  .hero--mockup {
    padding: clamp(56px, 11vw, 84px) 0 clamp(22px, 7vw, 32px);
    background:
      linear-gradient(
        180deg,
        rgba(246, 241, 234, 1) 0%,
        rgba(246, 241, 234, 1) 62%,
        rgba(239, 233, 223, 1) 100%
      );
  }

  .whynow {
    background:
      linear-gradient(
        180deg,
        rgba(239, 233, 223, 1) 0%,
        rgba(240, 234, 224, 1) 40%,
        rgba(246, 241, 234, 1) 100%
      );
  }

  .system {
    background:
      radial-gradient(
        120% 54% at 50% 0%,
        rgba(197, 81, 30, 0.09) 0%,
        rgba(197, 81, 30, 0.04) 24%,
        rgba(197, 81, 30, 0) 66%
      ),
      linear-gradient(
        180deg,
        rgba(239, 233, 223, 0.92) 0%,
        rgba(246, 241, 234, 0.99) 46%,
        rgba(246, 241, 234, 1) 100%
      );
  }

  .apply--intro {
    background:
      radial-gradient(
        120% 44% at 50% 0%,
        rgba(197, 81, 30, 0.05) 0%,
        rgba(197, 81, 30, 0) 66%
      ),
      linear-gradient(
        180deg,
        rgba(246, 241, 234, 0.98) 0%,
        rgba(246, 241, 234, 1) 42%,
        var(--bg) 100%
      );
  }

  .hero-title,
  .hero h1,
  .section-head h2,
  .proof-head h2,
  .apply-head h2,
  .system-head h2,
  .whynow-title,
  .apply-intro h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .hero-deck,
  .section-deck {
    font-size: 1.05rem;
  }

  .system-step h3 {
    font-size: 1.45rem;
  }

  .proof,
  .system,
  .apply {
    padding: 64px 0;
  }
}
