/* rabithouse.com — one stylesheet, system fonts, no frameworks, no trackers.

   Palette (trust, calm, family) and WCAG AA pairings (ratios measured):
     cream    #FBF8F3  page background
     navy     #1F2A44  text              13.5:1 on cream, 11.3:1 on sage
     muted    #566179  secondary text     5.9:1 on cream,  4.9:1 on sage
     teal     #2F7F7A  brand: icons, accents, large headings (3:1+ non-text / large text)
     teal-ink #276B66  small teal text and links  5.9:1 on cream, 4.9:1 on sage
     sage     #DCE8E1  soft panels
     coral    #E8836B  primary buttons, sparingly — with NAVY text (5.4:1; white fails at 2.7:1)
*/
:root {
  --cream: #fbf8f3;
  --white: #ffffff;
  --navy: #1f2a44;
  --muted: #566179;
  --teal: #2f7f7a;
  --teal-ink: #276b66;
  --teal-soft: #e6f0ed;
  --sage: #dce8e1;
  --coral: #e8836b;
  --coral-hover: #e4735a;
  --coral-soft: #fbe6df;
  --line: #e7e1d7;

  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(31, 42, 68, 0.05), 0 8px 24px -12px rgba(31, 42, 68, 0.14);
  --shadow-lg: 0 2px 4px rgba(31, 42, 68, 0.05), 0 24px 48px -20px rgba(31, 42, 68, 0.25);
  --max: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 17px/1.6 var(--font); overflow-x: hidden; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
strong { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.sprite { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons: one line set, teal */
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--teal); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); display: inline-grid; place-items: center; flex: 0 0 auto; }
.icon-tile-sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile-sm .icon { width: 20px; height: 20px; }

/* Logo (the one bunny) */
.logo { width: 32px; height: 32px; flex: 0 0 auto; }
.logo-sm { width: 20px; height: 20px; }
.logo-xs { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  border: 0; border-radius: 999px; padding: 14px 24px; min-height: 48px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--coral); color: var(--navy);
  box-shadow: 0 6px 16px -8px rgba(232, 131, 107, 0.8);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn .icon { stroke: var(--navy); }
.btn:hover { background: var(--coral-hover); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: default; }
.btn-small { padding: 10px 18px; min-height: 40px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--teal-ink); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-outline:hover { background: var(--teal-soft); color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Header (sticky, so a Join the beta button is always in reach) */
.site-header { position: sticky; top: 0; z-index: 20; padding: var(--s3) 0; background: rgba(251, 248, 243, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
html { scroll-padding-top: 88px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.nav { display: flex; gap: var(--s5); align-items: center; font-size: 15px; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--teal-ink); }

/* Sections: one rhythm */
section { padding: var(--s8) 0 0; }
.section-tight { padding-top: var(--s5); }
.section-head { max-width: 640px; margin-bottom: var(--s6); }
.section-lead { margin-top: var(--s3); color: var(--muted); font-size: 18px; }
main > section:last-child { padding-bottom: var(--s8); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { border-radius: var(--radius-lg); padding: var(--s6); }
.panel-sage { background: var(--sage); }
.grid-2 { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 1. Hero */
.hero { padding-top: var(--s6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s7); align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: var(--s5); }
.hero h1 { max-width: 15ch; }
.lead { margin: var(--s5) 0 var(--s6); font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; line-height: 1.6; }
.tagline { margin: 0; padding: var(--s6) 16px 0; text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--teal-ink); letter-spacing: -0.01em; }

/* Phone mockup (pure CSS) */
.hero-art { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; max-width: 100%; background: var(--white);
  border: 10px solid var(--navy); border-radius: 44px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 14px; line-height: 1.45;
}
.phone-notch { width: 96px; height: 20px; background: var(--navy); border-radius: 0 0 14px 14px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 14px; }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-avatar { width: 34px; height: 34px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--teal-ink); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; background: var(--cream); }
.msg { align-self: flex-start; max-width: 85%; background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 8px 12px; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--teal-ink); }
.msg-me { align-self: flex-end; background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); border-radius: 16px 16px 6px 16px; }
.bunny-card { background: var(--white); border: 1.5px solid var(--teal); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.bunny-card-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--teal-ink); margin-bottom: 4px; }
.bunny-card p { margin-bottom: 10px; }
.mini-btn { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 12px; background: var(--teal-soft); color: var(--teal-ink); }
.mini-coral { background: var(--coral); color: var(--navy); }
.chat-input { margin: 10px 12px 14px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: 13px; }

/* 2. Problem */
.problem-line { display: flex; gap: var(--s3); align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: var(--s4) var(--s5); color: var(--navy); font-size: 16px; }
.problem-punch { margin-top: var(--s5); text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; color: var(--navy); }

/* 3. How it works: four equal cards, one number each */
.steps { display: grid; gap: var(--s4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: 16px; }

/* 4 + 5. Feature blocks with small mockups */
.feature { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.feature-head { display: flex; align-items: center; gap: var(--s4); }
.feature > p { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 2px; }
.feature > p.note { display: flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--navy); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--muted); }
.ticks .icon { margin-top: 3px; }
.mock { margin-top: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: var(--s4); display: grid; gap: var(--s3); }
.listing, .pocket-row { display: flex; align-items: center; gap: var(--s3); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--s3) var(--s4); font-size: 15px; }
.listing-thumb { width: 40px; height: 40px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; flex: 0 0 auto; }
.listing-text { flex: 1; min-width: 0; }
.listing-text strong { display: block; }
.listing-text span { font-size: 13px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; flex: 0 0 auto; }
.tag-teal { background: var(--teal-soft); color: var(--teal-ink); }
.tag-coral { background: var(--coral-soft); color: var(--navy); }
.pocket-text { flex: 1; min-width: 0; }
.pocket-when { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--teal-ink); }

/* 6. Privacy */
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* Five points, balanced: three over two on desktop. */
.privacy-list li:nth-child(-n+3) { grid-column: span 2; }
.privacy-list li:nth-child(n+4) { grid-column: span 3; }
.privacy-list li { display: flex; gap: var(--s4); align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); color: var(--muted); font-size: 16px; }
.fine-print { font-size: 14px; color: var(--muted); margin-top: var(--s4); }

/* 7. Beta form */
.beta { text-align: center; padding: var(--s7) var(--s6); }
.beta > p { color: var(--navy); margin: var(--s3) auto var(--s5); max-width: 48ch; }
.beta-form { max-width: 500px; margin: 0 auto; text-align: left; }
.field-label { display: block; font-weight: 700; font-size: 15px; color: var(--navy); margin: 0 0 var(--s2) var(--s2); }
.field-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.field-row input[type="email"] {
  flex: 1 1 240px; min-width: 0; min-height: 48px; border: 1.5px solid var(--teal); background: var(--white);
  border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 16px; color: var(--navy);
}
.field-row input[type="email"]::placeholder { color: var(--muted); }
.field-row .btn { flex: 0 0 auto; }
.form-status { min-height: 1.6em; margin-top: var(--s4); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status.ok { color: var(--teal-ink); }
.form-status.error { color: #9c3b26; }
.beta .fine-print { color: var(--navy); }

/* Footer */
.site-footer { padding: var(--s6) 0 var(--s7); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: var(--s5); }
.site-footer nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.site-footer a { color: var(--teal-ink); font-weight: 600; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: var(--s5) var(--s5) var(--s8); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: var(--s2) 0 var(--s2); }
.legal h2 { font-size: 24px; margin-top: var(--s7); margin-bottom: var(--s3); }
.legal h3 { font-size: 18px; margin: var(--s5) 0 var(--s2); }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: var(--s3); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: var(--s2); }
.legal .updated { font-size: 14px; }
.placeholder {
  border: 2px dashed var(--teal); background: var(--teal-soft); border-radius: 16px;
  padding: var(--s4); margin: var(--s4) 0; color: var(--navy); font-size: 15px;
}
.placeholder::before { content: "✎ PLACEHOLDER — FOR LEGAL REVIEW"; display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--teal-ink); margin-bottom: var(--s1); }
.placeholder-inline { background: var(--teal-soft); border: 1px dashed var(--teal); border-radius: 6px; padding: 0 6px; color: var(--teal-ink); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s3) 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--sage); color: var(--navy); font-weight: 700; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: var(--s4) var(--s5); margin-top: var(--s5); }
.toc ol { margin: 0; }

/* Tablet */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-list li:nth-child(n) { grid-column: auto; }
  .privacy-list li:last-child { grid-column: 1 / -1; }
  .hero-grid { gap: var(--s6); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { margin-top: var(--s2); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--s4); }
  section { padding-top: var(--s7); }
  .section-tight { padding-top: var(--s4); }
  .nav .hide-sm { display: none; }
  .hero { padding-top: var(--s3); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: var(--s5) var(--s4); border-radius: 22px; }
  .feature { padding: var(--s5); }
  .beta { padding: var(--s6) var(--s4); }
  .field-row .btn { width: 100%; }
  .problem-punch { text-align: left; }
  .privacy-list { grid-template-columns: minmax(0, 1fr); }
  .privacy-list li:last-child { grid-column: auto; }
  .phone { width: 280px; }
  main > section:last-child { padding-bottom: var(--s7); }
}

/* 4. Core features: alternating rows (text first on phones) */
.features .wrap { display: grid; gap: var(--s8); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-art { order: 1; }
.feature-copy { display: flex; flex-direction: column; gap: var(--s4); max-width: 520px; }
.feature-copy > p { color: var(--muted); }
.feature-copy > p.note { display: flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--navy); }
.feature-art { display: flex; justify-content: center; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--navy); font-weight: 700; }

/* App-screen mockups (same phone frame as the hero) */
.ui { background: var(--cream); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--navy); }
.ui strong { font-weight: 700; }
.ui-grow > span, .ui-space-head span, .ui-greet span:not(.ui-chip) { color: var(--muted); }
.ui-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ui-title { font-size: 16px; font-weight: 800; }
.ui-section { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ui-greet { display: flex; flex-direction: column; gap: 6px; }
.ui-greet strong { display: block; font-size: 16px; }
.ui-chip { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--navy) !important; background: var(--coral-soft); border-radius: 999px; padding: 3px 10px; }
.ui-today { background: var(--teal-ink); color: var(--white); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ui-today strong, .ui-today p { color: var(--white); }
.ui-today .ui-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #cfe5df; }
.ui-today .ui-space { font-size: 11px; color: #cfe5df; }
.ui-item, .ui-suggest, .ui-listing, .ui-request, .ui-link, .ui-email { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.ui-item .tag { align-self: flex-start; margin-top: 2px; }
.ui-day { flex: 0 0 34px; font-weight: 800; font-size: 11px; color: var(--teal-ink) !important; padding-top: 1px; }
.ui-prep { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.ui-prep li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ui-prep li.done { color: var(--navy); text-decoration: line-through; text-decoration-color: var(--teal); }
.box { width: 13px; height: 13px; border: 1.5px solid var(--teal); border-radius: 4px; flex: 0 0 auto; display: inline-block; }
.ui-pocket { align-items: center; }
.ui-email { flex-direction: column; gap: 6px; }
.ui-email-top { display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.ui-attach { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--navy) !important; background: var(--sage); border-radius: 8px; padding: 3px 8px; }
.ui-flow { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.ui-flow span { color: var(--teal-ink); }
.ui-suggest { align-items: center; border-color: var(--teal); }
.ui-space-head { display: flex; align-items: center; gap: 10px; }
.ui-space-head strong { display: block; font-size: 14px; }
.ui-space-head span { font-size: 11px; }
.ui-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ui-tabs span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.ui-tabs span.on { background: var(--teal-ink); color: var(--white); }
.ui-listing { align-items: center; }
.ui-photo { width: 44px; height: 44px; border-radius: 10px; background: var(--sage); display: grid; place-items: center; flex: 0 0 auto; }
.ui-claimed { display: inline-flex; align-items: flex-start; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--teal-ink) !important; }
.ui-claimed .icon { margin-top: 1px; }
.ui-request { align-items: center; border-style: dashed; border-color: var(--teal); background: var(--teal-soft); }
.ui-pocket-head { display: flex; align-items: center; justify-content: space-between; }
.ui-private { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--teal-ink) !important; }
.ui-tell { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--teal); border-radius: 12px; padding: 8px 8px 8px 10px; }
.ui-tell > span:first-child { flex: 1; color: var(--navy); }
.ui-send { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; flex: 0 0 auto; }
.ui-send .icon { stroke: var(--navy); }
.ui-link { align-items: center; }
.ui-link-thumb { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--coral-soft), var(--sage)); display: grid; place-items: center; flex: 0 0 auto; }
.ui-host { font-size: 10.5px; }
.ui-flyer { width: 32px; height: 40px; flex: 0 0 auto; border-radius: 4px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 5px; display: grid; gap: 4px; align-content: start; transform: rotate(-4deg); }
.ui-flyer i { display: block; height: 3px; border-radius: 2px; background: var(--sage); }
.ui-flyer i:first-child { background: var(--coral); width: 70%; }


/* Daily Briefing mockup: the app's Home screen (greeting, one briefing card, the Tell Bunny box peeking in) */
.phone-cream { background: var(--cream); }
.ui-home { background: var(--cream); gap: 12px; padding-bottom: 0; }
.ui-home-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.ui-hello { display: block; font-size: 12px; color: var(--muted); }
.ui-home-head strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.ui-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--white); }
.ui-avatar svg { width: 22px; height: 22px; }
.ui-brief-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 12px 10px; }
.ui-brief-title { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ui-brief-title strong { color: var(--navy); font-size: 14px; }
.ui-brief-sec { padding: 8px 0; display: grid; gap: 6px; }
.ui-brief-sec + .ui-brief-sec { border-top: 1px solid var(--line); }
.ui-sec-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink); }
.ui-brow { display: flex; gap: 10px; align-items: flex-start; }
.ui-brow p { margin: 0; color: var(--navy); }
.ui-when { flex: 0 0 32px; color: var(--muted); font-size: 12px; padding-top: 1px; }
.ui-day-name { font-weight: 800; color: var(--navy); }
.ui-prep-link { font-size: 12px; font-weight: 700; color: var(--teal-ink) !important; margin-top: 2px !important; }
.ui-from-pocket { font-size: 12px; margin-top: 2px !important; }
.ui-from-pocket .icon { vertical-align: -2px; margin-right: 4px; }
.ui-from-pocket span { color: var(--muted); }
.ui-brief-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; }
.ui-brief-foot span { color: var(--teal-ink); white-space: nowrap; }
.ui-peek { background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 10px 12px 14px; color: var(--muted); font-size: 12.5px; box-shadow: var(--shadow); -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }

/* Final band before the form */
.cta-band-wrap { padding-top: var(--s8); }
.cta-band { background: var(--teal-ink); padding: var(--s7) 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s5); }
.cta-band-title { color: var(--white); font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; max-width: 22ch; }
.cta-band + * { margin-top: 0; }
#beta { padding-top: var(--s7); }

/* Mobile sticky bar */
.mobile-cta { display: none; }
@media (max-width: 600px) {
  .mobile-cta:not([hidden]) {
    display: flex; position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px)); z-index: 30;
    align-items: center; justify-content: space-between; gap: var(--s3);
    background: var(--navy); color: var(--white); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700;
  }
  body.has-mobile-cta { padding-bottom: 80px; }
}

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-art { order: 2; }
  .feature-copy { max-width: none; }
}
@media (max-width: 600px) {
  .features .wrap { gap: var(--s7); }
  .site-header .brand span { font-size: 19px; }
  .btn-small { padding: 8px 14px; min-height: 36px; font-size: 14px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .section-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Scripted demos in the phones (assets/demos.js). The HTML is the final frame;
   with JS (and motion allowed) steps fade in at their time. Hidden steps keep
   their space, so the page never moves. */
.demo { position: relative; display: flex; justify-content: center; }
.demo-screens { display: grid; }
.demo-screen { grid-area: 1 / 1; min-width: 0; }
.demo:not(.demo-on) .demo-screens > .demo-screen:not(:last-child) { visibility: hidden; }
.demo:not(.demo-on) [data-until] { visibility: hidden; }
.demo-on .demo-screens > .demo-screen { visibility: hidden; }
.demo-on .demo-screens > .demo-screen.is-active { visibility: visible; }
.demo-on [data-at]:not(.demo-screen) { opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s, box-shadow 0.6s ease; }
.demo-on [data-at].is-shown:not(.demo-screen) { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s, box-shadow 0.6s ease; }
.demo [data-type] { display: block; }
.demo .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; }
.demo .is-glow { box-shadow: 0 0 0 3px rgba(47, 127, 122, 0.28) !important; }
.demo-swap { display: grid; }
.demo-swap > * { grid-area: 1 / 1; }
.demo-toggle {
  position: absolute; right: max(0px, calc(50% - 168px)); bottom: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); background: var(--navy); color: var(--white);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.demo-toggle[hidden] { display: none; }
.demo-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.demo-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.demo-toggle .i-play { display: none; }
.demo-toggle[data-state="paused"] .i-play { display: block; margin-left: 2px; }
.demo-toggle[data-state="paused"] .i-pause { display: none; }
@media (max-width: 600px) { .demo-toggle { right: max(0px, calc(50% - 158px)); } }

/* Demo pieces */
.demo-time { align-self: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.bunny-note { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1.5px solid var(--teal); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12.5px; }
.bunny-note .bunny-card-top { margin: 0; }
.bunny-note p { margin: 0; }
.bunny-note .ui-muted { color: var(--muted); font-size: 11.5px; }
.prompt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.mini-pressed { background: var(--teal-ink); color: var(--white); }
.ui-mark { background: var(--coral-soft); border-radius: 4px; padding: 0 2px; }
.ui-email-body { font-size: 12px; color: var(--navy); display: grid; gap: 4px; }
.ui-email-body p { margin: 0; }
.ui-done { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.ui-photo-real { width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; background: linear-gradient(160deg, #f6d8cf 0%, #e8836b 55%, #c9644d 100%); display: grid; place-items: center; }
.ui-photo-real .icon { stroke: var(--white); width: 26px; height: 26px; }
.msg-photo { padding: 4px; }
.msg-photo .ui-photo-real { width: 120px; height: 84px; border-radius: 12px; }
.ui-match { display: flex; gap: 8px; align-items: flex-start; background: var(--teal-ink); color: var(--white); border-radius: 12px; padding: 9px 10px; }
.ui-match strong, .ui-match span { color: var(--white) !important; }
.ui-match .ui-grow > span { color: #cfe5df !important; }
.ui-status { font-size: 11px; font-weight: 700; color: var(--teal-ink) !important; }
.ui-mic { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--coral-hover); }
.ui-mic i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.ui-tell [data-type] { flex: 1; min-width: 0; }
.ui-milestone { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; }
.ui-child { display: flex; align-items: center; gap: 10px; }
.ui-child-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.ui-next { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.ui-hint { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.ui-hint .icon { flex: 0 0 auto; margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  .demo-toggle { display: none !important; }
}
.ui-placeholder { color: var(--muted); }
.demo-screen > .ui-home { height: 100%; }
.ui-peek-end { margin-top: auto; }
.ui-mic-row { min-height: 18px; margin-bottom: -2px; }
/* A step's own visibility must never show through a screen that isn't showing. */
.demo:not(.demo-on) .demo-screens > .demo-screen:not(:last-child) *,
.demo-on .demo-screens > .demo-screen:not(.is-active) * { visibility: hidden !important; }
.ui-hint-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; color: var(--navy); }
