/* Ren landing — cream + sky palette, serif headlines */

:root {
  --cream: #f3ecdc;
  --cream-soft: #ebe5d6;
  --paper: #f7f1e3;
  --sky: #d9e4ee;
  --sky-soft: #e8edf2;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --brand: #424f33;
  --muted: #8a8275;
  --muted-2: #b5ad9d;
  --line: rgba(26, 26, 26, 0.08);
  --bubble-me: #2b8aff;
  --bubble-them: #e9e9eb;
  --status: #2bb673;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse at 50% 0%, var(--sky) 0%, var(--sky-soft) 25%, var(--cream) 55%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------- Beta ribbon ---------------- */

.beta-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: #2a2a2a;
  color: #f3ecdc;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.beta-ribbon strong { font-weight: 600; }
.ribbon-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d8ff3c;
  box-shadow: 0 0 0 3px rgba(216, 255, 60, 0.25);
  flex-shrink: 0;
  animation: ribbonPulse 2.4s ease-in-out infinite;
}
@keyframes ribbonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (max-width: 540px) {
  .beta-ribbon { font-size: 12px; padding: 8px 14px; }
}

/* ---------------- Channel picker (signup step 1) ---------------- */

.channel-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.channel:hover:not(.is-disabled) { border-color: rgba(0,0,0,0.25); }
.channel.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.06);
}
.channel.is-disabled {
  background: #faf8f4;
  color: var(--muted);
  cursor: not-allowed;
}
.channel.is-disabled .ch-mark { opacity: 0.5; }
.ch-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 4px;
}
.channel[data-channel="imessage"] .ch-mark { background: #34c759; }
.channel[data-channel="telegram"] .ch-mark { background: #229ed9; }
.ch-name { font-weight: 500; }
.ch-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ebe5d6;
  color: var(--muted);
  text-transform: lowercase;
  margin-top: 2px;
}
.ch-tag-live { background: #e6f3ec; color: #1f7a4a; }

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  backdrop-filter: blur(10px);
  background: rgba(243, 236, 220, 0.55);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  justify-content: center;
  font-size: 15px;
  color: var(--ink);
}
.nav-links a { display: inline-flex; align-items: center; gap: 4px; }
.nav-links .caret { font-size: 10px; opacity: 0.6; }

.nav-right {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
  font-size: 15px;
}
.nav-cta { color: var(--ink); }
.nav-link-muted { color: var(--muted); }

@media (max-width: 720px) {
  .nav { grid-template-columns: auto 1fr; padding: 14px 18px; }
  .nav-links { display: none; }
}

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

.hero {
  padding: 80px 24px 120px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.pill-tag {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--ink);
}
.pill-arrow { color: var(--muted); font-size: 16px; line-height: 1; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-title-2 { display: inline-block; }

.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark {
  background: #2a2a2a;
  color: #f6f1e4;
}
.btn-dark:hover { background: #1a1a1a; }
.btn-light {
  background: #f3ecdc;
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { background: #fff; }

/* Phone */
.hero-phone {
  margin: 0 auto;
  width: min(360px, 92%);
  position: relative;
}
.phone-frame {
  position: relative;
  background: #fafafa;
  border-radius: 44px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 12px 12px 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -20px rgba(40, 50, 70, 0.25),
    0 8px 24px -8px rgba(40, 50, 70, 0.15);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
}
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px 14px;
  color: var(--ink);
}
.phone-icons { letter-spacing: 1px; font-size: 10px; opacity: 0.7; }
.phone-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.phone-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.phone-avatar img {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: block;
}
.phone-contact-name {
  font-size: 12px;
  color: var(--ink-soft);
}
.phone-chat {
  min-height: 260px;
  padding: 14px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.35s ease;
}
.phone-chat.fading { opacity: 0; }
.scene-divider {
  align-self: center;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scene-divider.show { opacity: 1; }
.bubble {
  max-width: 78%;
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bubble.show { opacity: 1; transform: none; }
.bubble.user {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.coach {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.scene-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.scene-pill {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--sans);
  cursor: pointer;
  overflow: hidden;
}
.scene-pill.active { color: var(--ink); border-color: rgba(0,0,0,0.2); }
.scene-pill-fill {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.05);
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes pillFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scene-pill-num, .scene-pill-title { position: relative; }
.scene-pill-num { font-weight: 600; margin-right: 6px; }
.scene-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------------- Big serif sections ---------------- */

.big-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 32px;
}
.muted-serif {
  color: var(--muted);
  font-style: italic;
}
.footnote-num {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--muted);
  margin-left: 2px;
}

/* (1) Fits into your life */
.fits {
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.floating-icons {
  position: relative;
  height: 320px;
  margin: 40px 0 60px;
}
.float-icon {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.12);
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.float-icon {
  --rot: 0deg;
  animation: floatBob 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatBob {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-10px); }
}
.float-icon.i1 { left: 8%;  top: 60%; --rot: -6deg; animation-duration: 7.2s; animation-delay: -0.0s; }
.float-icon.i2 { left: 20%; top: 30%; --rot: 4deg;  animation-duration: 6.6s; animation-delay: -0.9s; background: #ff5a3c; color: #fff; }
.float-icon.i3 { left: 32%; top: 50%; --rot: -2deg; animation-duration: 7.8s; animation-delay: -1.8s; background: #19be9b; color: #fff; }
.float-icon.i4 { left: 44%; top: 25%; --rot: 3deg;  animation-duration: 6.2s; animation-delay: -2.7s; }
.float-icon.i5 { left: 56%; top: 55%; --rot: -4deg; animation-duration: 7.4s; animation-delay: -3.6s; background: #0a0a0a; color: #fff; }
.float-icon.i6 { left: 68%; top: 35%; --rot: 5deg;  animation-duration: 6.8s; animation-delay: -0.5s; background: #d8ff3c; color: #1a1a1a; }
.float-icon.i7 { left: 78%; top: 60%; --rot: -3deg; animation-duration: 7.6s; animation-delay: -1.4s; }
.float-icon.i8 { left: 88%; top: 40%; --rot: 4deg;  animation-duration: 6.4s; animation-delay: -2.3s; background: #1d5dff; color: #fff; }
.float-icon.i9 { left: 50%; top: 70%; --rot: -5deg; animation-duration: 7.0s; animation-delay: -3.2s; background: #2a2a2a; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .float-icon { animation: none; transform: rotate(var(--rot)); }
}

.footnote {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.footnote-key { color: var(--muted); }
.footnote .muted { color: var(--muted); }

/* ---------------- Messy reality ---------------- */

.messy {
  padding: 100px 24px 60px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.messy-inner { max-width: 760px; margin: 0 auto; }
.messy-eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}
.messy-title { margin-bottom: 48px; }

.constraint-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin: 0 auto 56px;
  max-width: 720px;
}
.cn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 4px 10px -6px rgba(0,0,0,0.1);
  white-space: nowrap;
}
.cn-em {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
/* Each tag holds its base rotation in a CSS custom property, then the
   `cnBob` keyframes layer a small Y-translation on top so the cloud keeps
   breathing without losing each chip's tilt. Phases are staggered via
   negative animation-delay so they don't sync up. */
.cn {
  --rot: 0deg;
  animation: cnBob 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes cnBob {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-6px); }
}
.cn:nth-child(1)  { font-size: 15px; --rot: -1.5deg; animation-duration: 6.2s; animation-delay: -0.0s; }
.cn:nth-child(2)  { font-size: 17px; --rot: 1deg;    animation-duration: 5.8s; animation-delay: -0.8s; }
.cn:nth-child(3)  { font-size: 13px; --rot: -0.5deg; animation-duration: 6.6s; animation-delay: -1.6s; }
.cn:nth-child(4)  { font-size: 14px; --rot: 2deg;    animation-duration: 5.4s; animation-delay: -2.4s; }
.cn:nth-child(5)  { font-size: 16px; --rot: -1deg;   animation-duration: 7.0s; animation-delay: -3.2s; }
.cn:nth-child(6)  { font-size: 15px; --rot: 0.5deg;  animation-duration: 6.0s; animation-delay: -0.4s; }
.cn:nth-child(7)  { font-size: 13px; --rot: -2deg;   animation-duration: 5.6s; animation-delay: -1.2s; }
.cn:nth-child(8)  { font-size: 18px; --rot: 1.5deg;  animation-duration: 6.8s; animation-delay: -2.0s; }
.cn:nth-child(9)  { font-size: 14px; --rot: -0.5deg; animation-duration: 6.4s; animation-delay: -2.8s; }
.cn:nth-child(10) { font-size: 15px; --rot: 1deg;    animation-duration: 5.9s; animation-delay: -0.6s; }
.cn:nth-child(11) { font-size: 16px; --rot: -1.5deg; animation-duration: 6.3s; animation-delay: -1.4s; }
.cn:nth-child(12) { font-size: 13px; --rot: 0.5deg;  animation-duration: 5.7s; animation-delay: -2.2s; }
.cn:nth-child(13) { font-size: 17px; --rot: -1deg;   animation-duration: 6.5s; animation-delay: -3.0s; }
.cn:nth-child(14) { font-size: 14px; --rot: 2deg;    animation-duration: 6.1s; animation-delay: -0.2s; }
.cn:nth-child(15) { font-size: 15px; --rot: -1deg;   animation-duration: 5.5s; animation-delay: -1.8s; }
.cn:nth-child(16) { font-size: 13px; --rot: 1deg;    animation-duration: 6.7s; animation-delay: -2.6s; }
@media (prefers-reduced-motion: reduce) {
  .cn { animation: none; transform: rotate(var(--rot)); }
}

.messy-punch {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 auto 18px;
  max-width: 620px;
}
.messy-punch em { font-style: italic; color: var(--ink); }
.messy-punch-2 { color: var(--ink-soft); }

/* Compare card — "static app" vs "Ren" */
.vs {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 640px;
  margin: 24px auto 0;
}
.vs-col {
  position: relative;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: left;
  border: 1px solid var(--line);
  overflow: hidden;
}
.vs-cold {
  background: #ededea;
  color: #6a6a66;
  filter: saturate(0.4);
}
.vs-cold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    rgba(0,0,0,0.025) 8px 9px
  );
  pointer-events: none;
}
.vs-warm {
  background: #fff;
  color: var(--ink);
  border-color: rgba(66, 79, 51, 0.25);
  box-shadow: 0 12px 30px -16px rgba(66, 79, 51, 0.4);
  animation: vsWarmPulse 4s ease-in-out infinite;
}
@keyframes vsWarmPulse {
  0%, 100% { box-shadow: 0 12px 30px -16px rgba(66, 79, 51, 0.4); transform: translateY(0); }
  50%      { box-shadow: 0 16px 36px -16px rgba(66, 79, 51, 0.55); transform: translateY(-2px); }
}
.vs-warm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(66, 79, 51, 0.08), transparent 60%);
  pointer-events: none;
}
.vs-label {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vs-warm .vs-label { color: var(--brand); }
.vs-warm .vs-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(66, 79, 51, 0.18);
  animation: vsDot 1.6s ease-in-out infinite;
}
@keyframes vsDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.vs-line {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: 400;
}
.vs-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.vs-cold .vs-sub { color: #8a8a86; }

.vs-x {
  align-self: center;
  font-size: 22px;
  color: var(--brand);
  font-weight: 600;
  text-align: center;
  position: relative;
}
.vs-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(1);
  animation: vsArrowRipple 2.2s ease-out infinite;
}
@keyframes vsArrowRipple {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.18; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.vs-x span, .vs-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 620px) {
  .vs { grid-template-columns: 1fr; gap: 10px; }
  .vs-x { transform: rotate(90deg); }
}

@media (max-width: 540px) {
  .messy { padding: 60px 20px 40px; }
  .constraint-cloud { gap: 8px 10px; margin-bottom: 36px; }
  .cn { padding: 6px 12px; font-size: 13px !important; transform: none !important; }
}

/* ---------------- Two-column rows ---------------- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.row-left-img .row-img  { order: 0; }
.row-left-img .row-copy { order: 1; }

.row-num {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 18px;
}
.row-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.row-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 24px;
}
.learn-more {
  color: #1d5dff;
  font-size: 15px;
}

.row-img {
  display: grid;
  place-items: center;
  min-height: 320px;
}

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .row-left-img .row-img, .row-left-img .row-copy { order: unset; }
}

/* Recipe cards (section 2) */
.card-stack {
  position: relative;
  width: 320px;
  height: 320px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream-soft) 100%);
  border-radius: 24px;
  padding: 32px;
}
.recipe-card {
  position: absolute;
  width: 140px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.18);
  font-size: 12px;
}
.recipe-card .recipe-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.recipe-logo-dark { background: #2a2a2a; color: #fff; border-color: #2a2a2a; }
.recipe-logo-fs { background: #19be9b; color: #fff; border-color: #19be9b; }
.recipe-title { font-weight: 600; margin-bottom: 4px; }
.recipe-desc { color: var(--muted); line-height: 1.35; min-height: 32px; }
.recipe-author { color: var(--muted-2); margin-top: 8px; font-size: 11px; }
.r-1 { left: 24px;  top: 30px; transform: rotate(-8deg); }
.r-2 { left: 90px;  top: 80px; transform: rotate(-2deg); z-index: 2; }
.r-3 { left: 156px; top: 50px; transform: rotate(6deg); z-index: 3; }

/* Real-chat card (section 2) — what the user actually sees in WhatsApp */
.trace-card {
  width: 360px;
  background: #fafafa;
  border-radius: 22px;
  padding: 18px 14px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
}
.trace-msg {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 86%;
}
.trace-user {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
  border-bottom-right-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trace-photo {
  display: inline-block;
  width: 26px; height: 26px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 40% 50%, #c47a4a 0 30%, transparent 31%),
    radial-gradient(circle at 70% 60%, #8aa05a 0 25%, transparent 26%),
    #e8d8b8;
  flex-shrink: 0;
  border: 1.5px solid #fff;
}
.trace-ren {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
/* The "rich" bubble is the same iMessage bubble — just with the macro
   breakdown formatted inside, the way Ren would actually compose it. */
.trace-rich {
  width: 88%;
  max-width: 88%;
  padding: 11px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trace-headline {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.trace-rows { display: flex; flex-direction: column; gap: 3px; }
.trace-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.trace-row > :nth-child(2) { color: var(--ink-soft); }
/* The estimate row uses italic + a leading "~" already in the text, plus
   a slightly muted tone — the same visual cue Ren actually uses, no
   imaginary "estimated" pill that doesn't exist in WhatsApp. */
.trace-row-est { font-style: italic; color: var(--muted); }
.trace-row-est > :nth-child(2) { color: var(--muted); }
.trace-total {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Typing indicator — three dots inside an iMessage tail */
.trace-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bubble-them);
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}
.trace-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: traceTyping 1.4s ease-in-out infinite;
}
.trace-typing span:nth-child(2) { animation-delay: 0.15s; }
.trace-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes traceTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Macro card (section 2 — legacy, no longer used) */
.macro-card {
  width: 340px;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}
.macro-photo {
  position: relative;
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8d8b8 0%, #c9a87a 100%);
  margin-bottom: 14px;
  overflow: hidden;
}
.plate {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, #c47a4a 0 22%, transparent 23%),
    radial-gradient(circle at 65% 55%, #e8e0c8 0 28%, transparent 29%),
    radial-gradient(circle at 50% 70%, #8aa05a 0 18%, transparent 19%),
    #f5f0e0;
  box-shadow: inset 0 0 0 4px #fff, 0 8px 20px -10px rgba(0,0,0,0.3);
}
.plate-cap {
  position: absolute;
  bottom: 8px; left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}
.macro-rows { display: flex; flex-direction: column; gap: 8px; }
.macro-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.macro-name { color: var(--ink); }
.macro-val { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.macro-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: lowercase;
}
.macro-tag.verified { background: #e6f3ec; color: #1f7a4a; }
.macro-tag.est { background: #fbeedd; color: #a26a1a; }
.macro-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* Cross-signal pill in section 3 mini phone */
.mini-signal {
  align-self: center;
  font-size: 10px;
  color: var(--muted);
  background: rgba(0,0,0,0.04);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Notion-style card (section 4) */
.notion-card {
  width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  overflow: hidden;
}
.notion-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf8f4;
}
.notion-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e0d8c8;
}
.notion-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.notion-table { padding: 8px 0; }
.ntrow {
  display: grid;
  grid-template-columns: 50px 1fr 50px 40px;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.ntrow:last-child { border-bottom: none; }
.nthead {
  color: var(--muted);
  text-transform: lowercase;
  font-size: 11px;
}
.src-ver { color: #1f7a4a; font-weight: 600; font-size: 10px; }
.src-est { color: #a26a1a; font-weight: 600; font-size: 10px; }
.notion-foot {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--muted);
  background: #faf8f4;
  border-top: 1px solid var(--line);
}

/* On-track chat (section 5) — coaching answer as a real iMessage thread,
   not a fake dashboard. Keeps the "numbers do the math, coach does the
   talking" framing honest about what the user actually sees. */
.ontrack-chat {
  width: 360px;
  background: #fafafa;
  border-radius: 22px;
  padding: 18px 14px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
}
.oc-divider {
  align-self: center;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0 10px;
}
.oc-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 86%;
}
.oc-user {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.oc-ren {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

/* Founder testimonial — single, intimate, serif-led */
.testimonial-section {
  padding: 100px 24px 120px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.ts-eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}
.ts-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 36px 44px;
  margin: 0;
  box-shadow: 0 30px 60px -30px rgba(66, 79, 51, 0.22);
  text-align: left;
}
.ts-quote-mark {
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.22;
  user-select: none;
}
.ts-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 28px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.ts-attrib {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ts-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  flex-shrink: 0;
}
.ts-meta { display: flex; flex-direction: column; gap: 2px; }
.ts-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.ts-role { font-size: 12px; color: var(--muted); }

@media (max-width: 540px) {
  .testimonial-section { padding: 70px 18px 80px; }
  .ts-card { padding: 40px 24px 24px; }
  .ts-quote-mark { font-size: 72px; left: 16px; }
}

/* Legacy on-track card (no longer used) */
.ontrack-card {
  width: 340px;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.18);
  border: 1px solid var(--line);
}
.ontrack-q {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.ontrack-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: #faf8f4;
  border-radius: 12px;
  margin-bottom: 14px;
}
.ontrack-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-k { font-size: 11px; color: var(--muted); text-transform: lowercase; }
.stat-v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ontrack-read {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}

/* Mini phone (section 3) */
.phone-mini {
  width: 320px;
  background: #fafafa;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-msg {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 13px;
  max-width: 80%;
  line-height: 1.35;
}
.mini-me { background: var(--bubble-me); color: #fff; align-self: flex-end; }
.mini-them { background: var(--bubble-them); color: var(--ink); align-self: flex-start; }
.mini-read { font-size: 10px; color: var(--muted); align-self: flex-end; }
.mini-voice {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
  border-radius: 18px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.voice-play { width: 18px; height: 18px; background: #fff; color: var(--bubble-me); border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.voice-bars { letter-spacing: -1px; font-family: monospace; font-size: 10px; }
.mini-voice-cap { align-self: flex-end; background: var(--bubble-me); color: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; max-width: 80%; }

/* Proactive (section 4) */
.proactive-card {
  width: 360px;
  height: 280px;
  background: linear-gradient(180deg, var(--sky) 0%, #e8d8b8 100%);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}
.proactive-msg {
  position: absolute;
  top: 30px; left: 30%;
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 6px 12px -4px rgba(0,0,0,0.12);
}
.proactive-faces {
  position: absolute;
  inset: 80px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: end;
}
.face {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-soft);
}
.face span {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: grid; place-items: center;
  font-weight: 600;
}
.face-ren span { background: #2a3a4a; color: #fff; }

/* Extends (section 5) */
.extends-card {
  width: 320px;
  height: 280px;
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--cream-soft) 100%);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.extends-row {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.1);
}
.extends-plus { color: var(--muted); margin-right: 8px; }
.extends-label.muted { color: var(--muted); }

/* ---------------- Community ---------------- */

.community {
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.community-title { margin-bottom: 48px; }
.tweet-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .tweet-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .tweet-row { grid-template-columns: 1fr; }
}
.tweet {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.15);
  border: 1px solid var(--line);
}
.tweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tweet-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sky);
  display: grid; place-items: center;
  font-weight: 600;
}
.tweet-name { font-size: 14px; font-weight: 600; }
.tweet-handle { font-size: 12px; color: var(--muted); }
.tweet-x { margin-left: auto; font-size: 16px; color: var(--ink); }
.tweet-body { font-size: 13px; color: var(--ink); line-height: 1.45; margin: 0; }

.explore-stories { color: var(--ink); font-size: 15px; }

/* ---------------- CTA / Signup ---------------- */

.cta-section {
  padding: 100px 24px 140px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, #ebd8b8 80%, #d9c7a5 100%);
}
.cta-title { margin-bottom: 48px; }

.wizard { max-width: 440px; margin: 0 auto; text-align: left; }
.step { display: none; }
.step.is-active { display: block; }
.step-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.step-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 12px;
}
.step-lede { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.signup-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--ink-soft); }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
}
.field textarea {
  font-family: var(--sans);
  resize: vertical;
  min-height: 60px;
  line-height: 1.45;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: rgba(0,0,0,0.3); background: #fff; }
.field-optional { font-size: 11px; color: var(--muted); font-weight: 400; font-style: italic; margin-left: 4px; }
.signup-form .hero-actions { margin-top: 6px; margin-bottom: 0; justify-content: flex-start; }
.signup-fine { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.step-skip { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.error-msg { color: #b03333; font-size: 13px; margin-top: 6px; }

/* Plan picker (monthly / annual) — only shown when billing is live */
.plan-picker { border: none; padding: 0; margin: 0; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.plan-option { position: relative; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line, rgba(0,0,0,0.12));
  background: rgba(255,255,255,0.6);
  transition: border-color 0.15s, background 0.15s;
}
.plan-option input:checked + .plan-card {
  border-color: var(--ink, #1a1a1a);
  background: #fff;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.25);
}
.plan-name { font-size: 13px; color: var(--ink-soft); text-transform: lowercase; }
.plan-price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-badge {
  position: absolute; top: -8px; right: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  background: #1f7a3d; color: #fff; padding: 2px 7px; border-radius: 999px;
}

/* "Open WhatsApp" step — destination + first-message card */
.wa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 14px;
  margin: 16px 0 18px;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,0.18);
}
.wa-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.wa-row:last-child { border-bottom: none; }
.wa-k { font-size: 11px; color: var(--muted); text-transform: lowercase; }
.wa-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.wa-msg { font-weight: 600; }
.wa-copy {
  font-family: var(--sans);
  font-size: 11px;
  border: 1px solid var(--line);
  background: #faf8f4;
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wa-copy:hover { background: #fff; color: var(--ink); }

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

.site-footer {
  padding: 80px 32px 0;
  background: #d9c7a5;
  position: relative;
  overflow: hidden;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.footer-col a { font-size: 15px; color: var(--ink); }
.footer-col a:hover { opacity: 0.7; }

.footer-meta {
  max-width: 1200px;
  margin: 60px auto 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--status); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(140px, 28vw, 380px);
  line-height: 0.9;
  text-align: center;
  color: rgba(26, 26, 26, 0.18);
  letter-spacing: -0.04em;
  margin-top: 20px;
  user-select: none;
}
