/* ruby-one landing page */

:root {
  --lavender: #E9D8F5;
  --rose: #F6C6CF;
  --coral: #F08A7E;
  --ruby: #B3123E;
  --aubergine: #1C0F2E;
  --cream: #FFF4E0;

  --ruby-deep: #8A0D2F;
  --ink: #2A1838;
  --ink-soft: rgba(42, 24, 56, .72);
  --line: rgba(42, 24, 56, .12);
  --card: rgba(255, 255, 255, .78);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
em { font-style: italic; }
sup { font-size: .45em; vertical-align: super; line-height: 0; }
.nb { white-space: nowrap; }

/* ---------- Shared type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.display em { color: var(--ruby); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0;
}
.footnote { font-size: .85rem; color: var(--ink-soft); margin: 1.5rem 0 0; max-width: 34em; }

/* ---------- Buttons & small UI ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.6em;
  border-radius: 999px;
  background: var(--ruby);
  color: var(--cream);
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(179, 18, 62, .6);
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { background: var(--ruby-deep); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn-small { padding: .7em 1.2em; font-size: .85rem; box-shadow: none; }

.pill {
  display: inline-block; padding: .45em .9em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font: 500 .75rem/1 var(--sans); color: var(--ink); white-space: nowrap;
}
.pill-ruby { background: var(--ruby); border-color: var(--ruby); color: var(--cream); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--lavender), var(--rose)); }
.avatar-ruby { background: radial-gradient(circle at 35% 30%, #ff8aa8, var(--ruby) 55%, var(--ruby-deep)); }

.win-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  font: 500 .8rem/1 var(--sans); color: var(--ink-soft);
}
.win-bar .avatar { width: 22px; height: 22px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.dots i:nth-child(2) { background: var(--lavender); }
.dots i:nth-child(3) { background: var(--coral); }

.skeleton { display: grid; gap: 8px; margin-top: 14px; }
.skeleton i { display: block; height: 8px; width: var(--w, 80%); border-radius: 4px; background: rgba(42, 24, 56, .1); }

/* ---------- Navigation & rail ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 244, 224, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 6px 24px -12px rgba(28, 15, 46, .35);
}
.wordmark {
  font-family: var(--serif); font-size: 1.7rem; line-height: 1;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center;
}
.wordmark .dot {
  width: .32em; height: .32em; margin: 0 .12em; border-radius: 50%;
  background: var(--ruby); transform: translateY(.12em) rotate(45deg); border-radius: 2px;
}
.wordmark-light { color: var(--cream); }

/* ---------- Chapters ---------- */
.ch { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 160px) var(--gutter); }

/* K1 Hero */
.ch-hero {
  min-height: 100svh;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--lavender) 0%, #F1D3E6 40%, #F6B8B4 78%, var(--coral) 100%);
  text-align: center;
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.orb-ruby { width: 42vw; height: 42vw; left: -14vw; bottom: -18vw; background: rgba(179, 18, 62, .35); }
.orb-lav { width: 34vw; height: 34vw; right: -8vw; top: -10vw; background: rgba(255, 255, 255, .6); }

/* Image has a soft off-white backdrop: multiply + feathered mask melts it into the gradient */
.hero-figure {
  position: absolute; z-index: 1;
  width: clamp(260px, 34vw, 560px);
  right: 3vw; bottom: -4vh;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 55%, transparent 100%);
}

.env { position: absolute; z-index: 1; color: #fff; filter: drop-shadow(0 12px 18px rgba(28, 15, 46, .18)); pointer-events: none; }
.env-1 { width: 74px; height: 51px; left: 12vw; top: 22vh; rotate: -14deg; }
.env-2 { width: 52px; height: 36px; left: 24vw; bottom: 18vh; rotate: 18deg; }
.env-3 { width: 60px; height: 41px; right: 38vw; top: 16vh; rotate: 8deg; }

.hero-copy { position: relative; z-index: 2; max-width: 1100px; }
.claim {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1.25;
  color: var(--ink); margin: 0 0 1.4rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 10rem); line-height: .9; letter-spacing: -.03em;
  color: var(--ruby); margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero-title em { font-style: italic; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin: 0 auto 2rem; max-width: 30em; color: var(--ink); }

.meta-label {
  position: absolute; z-index: 2; right: 6vw; top: 30vh; margin: 0;
  text-align: left; font: 600 .8rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ruby);
}
.meta-label span { opacity: .65; margin-right: 1.5em; }
.hero-foot {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 22px; margin: 0;
  font-size: .8rem; color: var(--aubergine); opacity: .75; text-align: left; max-width: 26em;
}
.scroll-cue {
  position: absolute; z-index: 2; bottom: 18px; left: 50%; translate: -50% 0;
  width: 54px; height: 6px; border-radius: 6px; background: rgba(28, 15, 46, .55);
}

/* K2 Flood */
.ch-flood {
  height: 220vh; padding: 0;
  background: var(--aubergine); color: var(--cream);
  overflow: visible;
}
.flood-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 110%, #3A1640 0%, var(--aubergine) 60%);
}
/* Near-black image backdrop: screen blend turns it into the aubergine of the section */
.flood-image {
  position: absolute; inset: -6%; pointer-events: none;
  mix-blend-mode: screen; opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}
.flood-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.flood-cards { position: absolute; inset: 0; pointer-events: none; }
.mail-card {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(120px, 14vw, 190px);
  padding: 10px 12px 12px; border-radius: 10px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
  rotate: var(--r);
  animation: drop 1.1s var(--ease) both;
}
.mail-card b { display: block; font: 600 .7rem/1.2 var(--sans); color: var(--ruby); margin-bottom: 8px; }
.mail-card i { display: block; height: 5px; border-radius: 3px; background: rgba(42, 24, 56, .14); margin-top: 5px; }
.mail-card i:last-child { width: 60%; }
@keyframes drop {
  from { transform: translateY(-110vh); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translateY(0); opacity: 1; }
}
.flood-badge {
  position: absolute; top: 96px; right: var(--gutter); z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(28, 15, 46, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--rose);
}
.flood-badge b {
  min-width: 2.2em; padding: .45em .6em; border-radius: 999px; text-align: center;
  background: var(--ruby); color: var(--cream); font-variant-numeric: tabular-nums;
}
.flood-copy {
  position: relative; z-index: 4;
  max-width: 980px; margin: 0 var(--gutter);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px);
  text-align: center;
  border-radius: 32px;
  background: rgba(28, 15, 46, .62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.flood-line {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.15;
  margin: 0 0 1.2rem; text-wrap: balance; font-weight: 400;
}
.flood-big { font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .95; font-style: italic; color: var(--rose); }

/* K3 Turn */
.ch-turn {
  background: linear-gradient(160deg, var(--cream) 0%, #FBE3E3 55%, var(--rose) 100%);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  min-height: 100vh;
}
.turn-ruby { position: absolute; width: clamp(150px, 20vw, 300px); left: 36%; top: 4%; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
.turn-copy { position: relative; z-index: 1; }

.inbox, .chat, .dash {
  position: relative; z-index: 1;
  background: var(--card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(28, 15, 46, .45);
  overflow: hidden;
}
.mail { padding: 18px 20px; }
.mail + .mail { border-top: 1px solid var(--line); }
.mail-head { display: flex; gap: 12px; align-items: center; }
.mail-head strong { display: block; font-size: .95rem; }
.mail-head small { display: block; font-size: .78rem; color: var(--ink-soft); }
.mail-in { animation: none; }
.inbox.is-new .mail-in { animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

.mail-draft { background: rgba(246, 198, 207, .25); }
.mail-draft .skeleton i { transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); background: rgba(179, 18, 62, .2); }
.mail-draft .skeleton i:nth-child(2) { transition-delay: .08s; }
.mail-draft .skeleton i:nth-child(3) { transition-delay: .16s; }
.mail-draft .skeleton i:nth-child(4) { transition-delay: .24s; }
.mail-actions { display: flex; gap: 8px; margin-top: 16px; opacity: 0; transition: opacity .4s .3s; }
.status { display: inline-flex !important; align-items: center; gap: 6px; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rose); border-top-color: var(--ruby); animation: spin .8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-think, .s-done { display: none; }
.inbox.is-thinking .spinner, .inbox.is-thinking .s-think { display: inline-block; }
.inbox.has-draft .s-done { display: inline-block; color: var(--ruby); font-weight: 600; }
.inbox.has-draft .mail-draft .skeleton i { transform: scaleX(1); }
.inbox.has-draft .mail-actions { opacity: 1; }

/* How – animated three-step flow */
.ch-how { background: linear-gradient(180deg, var(--rose) 0%, #F9D8DB 100%); }
.how-head { max-width: 900px; }
.flow {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.flow-track {
  position: absolute; left: 14%; right: 14%; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(179, 18, 62, .55) 0 10px, transparent 10px 18px);
}
.flow-dot {
  position: absolute; top: -14px; left: calc(50% - 20px);
  width: 40px; height: 28px; color: #fff;
  filter: drop-shadow(0 6px 10px rgba(138, 13, 47, .35));
}
.flow-card {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 18px 28px; border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -36px rgba(28, 15, 46, .45);
  transition: translate .4s var(--ease);
}
.flow-card:hover { translate: 0 -6px; }
.flow-card-ruby {
  translate: 0 -22px;
  background: linear-gradient(160deg, #D21F52 0%, var(--ruby) 45%, var(--ruby-deep) 100%);
  border-color: rgba(255, 255, 255, .25);
  color: var(--cream);
  box-shadow: 0 40px 70px -30px rgba(138, 13, 47, .6);
}
.flow-card-ruby:hover { translate: 0 -28px; }
.flow-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.01em;
  margin: 0 8px .6rem;
}
.flow-card p { margin: 0 8px; font-size: 1rem; color: var(--ink-soft); }
.flow-card-ruby p { color: rgba(255, 244, 224, .88); }

.flow-vis {
  position: relative; overflow: hidden;
  height: 168px; margin-bottom: 22px; padding: 16px;
  border-radius: 18px; background: rgba(255, 255, 255, .75);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.flow-card-ruby .flow-vis { background: rgba(255, 244, 224, .1); border: 1px solid rgba(255, 244, 224, .18); }

.mini-mail {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 6px 14px -8px rgba(28, 15, 46, .3);
}
.mini-mail i { flex: 1; height: 6px; border-radius: 3px; background: rgba(42, 24, 56, .12); }
.tag { font-size: .7rem; font-weight: 600; padding: .35em .7em; border-radius: 6px; background: rgba(179, 18, 62, .1); color: var(--ruby); white-space: nowrap; }
.tag-coral { background: rgba(240, 138, 126, .18); color: #A3402F; }
.tag-lav { background: var(--lavender); color: #5B3A78; }

.draft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar-glow { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #fff, #FFC2D1 45%, var(--rose)); box-shadow: 0 0 0 5px rgba(255, 244, 224, .14); }
.draft-status { display: grid; }
.draft-status b { grid-area: 1 / 1; font: 600 .82rem/1 var(--sans); color: var(--cream); }
.st-think { opacity: 0; }
.draft-lines { display: grid; gap: 9px; }
.draft-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 244, 224, .6); transform-origin: left; }
.draft-lines i:nth-child(2) { width: 86%; }
.draft-lines i:nth-child(3) { width: 93%; }
.draft-lines i:nth-child(4) { width: 52%; }

.vis-send { justify-content: center; gap: 14px; }
.send-btn {
  align-self: flex-start; display: grid;
  padding: .75em 1.25em; border-radius: 999px;
  background: var(--ruby); color: var(--cream); font: 600 .85rem/1 var(--sans);
}
.send-btn > span { grid-area: 1 / 1; }
.sb-done { opacity: 0; }
.cursor {
  position: absolute; left: 92px; top: 108px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink); background: rgba(255, 255, 255, .55); opacity: 0;
}

/* Loop (6 s): mail arrives → envelope travels → draft writes → release & send */
.js .flow.is-playing .flow-dot { animation: dotTravel 6s var(--ease) infinite; }
.js .flow.is-playing .vis-in .mini-mail { animation: mailIn 6s var(--ease) infinite; }
.js .flow.is-playing .vis-in .mini-mail:nth-child(2) { animation-delay: .2s; }
.js .flow.is-playing .vis-in .mini-mail:nth-child(3) { animation-delay: .4s; }
.js .flow.is-playing .draft-lines i { animation: lineGrow 6s var(--ease) infinite; }
.js .flow.is-playing .draft-lines i:nth-child(2) { animation-delay: .12s; }
.js .flow.is-playing .draft-lines i:nth-child(3) { animation-delay: .24s; }
.js .flow.is-playing .draft-lines i:nth-child(4) { animation-delay: .36s; }
.js .flow.is-playing .st-think { animation: thinkOn 6s linear infinite; }
.js .flow.is-playing .st-done { animation: doneOn 6s linear infinite; }
.js .flow.is-playing .cursor { animation: tap 6s var(--ease) infinite; }
.js .flow.is-playing .send-btn { animation: press 6s linear infinite; }
.js .flow.is-playing .sb-go { animation: goOff 6s linear infinite; }
.js .flow.is-playing .sb-done { animation: doneOn2 6s linear infinite; }

@keyframes dotTravel {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  22%, 34% { left: calc(50% - 20px); }
  58% { left: calc(100% - 40px); opacity: 1; }
  66%, 100% { left: calc(100% - 40px); opacity: 0; }
}
@keyframes mailIn {
  0% { opacity: 0; transform: translateX(-28px); }
  8%, 86% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateX(28px); }
}
@keyframes lineGrow {
  0%, 24% { transform: scaleX(0); }
  44%, 92% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes thinkOn { 0%, 21% { opacity: 0; } 22%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes doneOn { 0%, 45% { opacity: 0; } 46%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes tap {
  0%, 56% { opacity: 0; transform: translate(60px, 40px); }
  64% { opacity: 1; transform: none; }
  68% { transform: scale(.75); }
  72% { transform: none; opacity: 1; }
  82%, 100% { opacity: 0; }
}
@keyframes press {
  0%, 67% { background: var(--ruby); transform: none; }
  68% { transform: scale(.94); }
  70%, 94% { background: #2E7D5B; transform: none; }
  96%, 100% { background: var(--ruby); }
}
@keyframes goOff { 0%, 69% { opacity: 1; } 70%, 94% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes doneOn2 { 0%, 69% { opacity: 0; } 70%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* K5 Learn */
.ch-learn {
  background: linear-gradient(180deg, #F9D8DB 0%, var(--lavender) 35%);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.chat { padding-bottom: 18px; }
.bubble { margin: 14px 18px 0; padding: 12px 16px; border-radius: 16px; max-width: 82%; font-size: .95rem; line-height: 1.4; }
.bubble-ai { background: #fff; border-bottom-left-radius: 4px; }
.bubble-me { margin-left: auto; background: var(--ruby); color: var(--cream); border-bottom-right-radius: 4px; }
.learn-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 22px 18px 0; font-size: .75rem; color: var(--ink-soft); }
.meter { height: 6px; border-radius: 6px; background: rgba(42, 24, 56, .1); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--ruby)); border-radius: inherit; transition: width 2.4s var(--ease) .6s; }
.learn-meter.is-visible .meter i { width: 100%; }
.meter-end { color: var(--ruby); font-weight: 600; }

/* K6 Connect */
.ch-connect { background: var(--cream); text-align: center; }
.connect-copy { max-width: 980px; margin: 0 auto; }
.connect-copy .lead { margin: 0 auto; }
.providers {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px;
}
.providers li {
  padding: .8em 1.4em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1;
}
.providers .more { background: transparent; border-style: dashed; font-style: italic; color: var(--ruby); }

/* Privacy */
.ch-privacy {
  background: linear-gradient(180deg, var(--cream) 0%, #FBE6EA 50%, var(--cream) 100%);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.privacy-vis { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; }
.r1 { inset: 0; border: 1px solid rgba(179, 18, 62, .22); }
.r2 { inset: 12%; border: 1.5px dashed rgba(179, 18, 62, .35); animation: spin 48s linear infinite; }
.r3 { inset: 26%; background: radial-gradient(circle, rgba(246, 198, 207, .95), rgba(233, 216, 245, .5)); }
.lock { position: relative; width: 30%; filter: drop-shadow(0 24px 30px rgba(138, 13, 47, .35)); }
.privacy-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.privacy-card {
  position: relative; padding: 20px 22px 22px 62px;
  border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 40px -30px rgba(28, 15, 46, .35);
}
.privacy-card::before {
  content: "✓"; position: absolute; left: 22px; top: 22px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ruby); color: var(--cream); font: 600 .85rem/1 var(--sans);
}
.privacy-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.7vw, 1.6rem); line-height: 1.05; margin: 0 0 .35rem; }
.privacy-card p { margin: 0; color: var(--ink-soft); }

/* Closing */
.ch-end {
  background: linear-gradient(180deg, var(--cream) 0%, #E7C9E6 14%, #4A2A5E 38%, var(--aubergine) 62%);
  color: var(--cream); text-align: center;
  padding-top: clamp(220px, 30vh, 320px);
}
.clouds { position: absolute; inset: 0 0 auto; height: 50%; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; filter: blur(40px); }
.c1 { width: 60vw; height: 22vw; left: -10vw; top: -6vw; background: rgba(255, 244, 224, .95); }
.c2 { width: 50vw; height: 18vw; right: -8vw; top: 0; background: rgba(246, 198, 207, .85); }
.c3 { width: 40vw; height: 16vw; left: 30vw; top: 6vw; background: rgba(233, 216, 245, .8); }
.c4 { width: 30vw; height: 12vw; left: 5vw; top: 14vw; background: rgba(255, 255, 255, .55); }
.end-quote {
  position: relative; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; margin: 0 auto 2.5rem; max-width: 900px;
}
/* The pill IS the CTA: text sized to the pill width (container units) so it
   presses against the rounded edges. */
.end-pill {
  position: relative; display: block; margin: 0 auto;
  width: min(100%, 1120px);
  container-type: inline-size;
  padding: 1.2cqi 0 2.6cqi;
  border-radius: 999px; overflow: hidden;
  background: var(--cream); color: var(--ink);
  text-decoration: none; text-align: center;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.end-pill:hover { background: var(--ruby); color: var(--cream); scale: 1.015; }
.js .end-pill.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), background .4s var(--ease), color .4s var(--ease), scale .4s var(--ease); }
.end-pill:hover .end-title em { color: var(--rose); }
.end-title {
  display: block; font-family: var(--serif);
  font-size: 13.1cqi; line-height: .84; letter-spacing: -.04em;
  white-space: nowrap;
}
.end-title em { color: var(--ruby); transition: color .4s var(--ease); }
.end-note { position: relative; margin: 1.4rem 0 0; font-size: .85rem; color: rgba(255, 244, 224, .7); }
.footer a { color: var(--cream); }
.footer-links { display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer {
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 24px 48px; align-items: start;
  margin-top: clamp(80px, 12vh, 140px); padding-top: 32px; border-top: 1px solid rgba(255, 244, 224, .2);
  text-align: left; font-size: .9rem; color: rgba(255, 244, 224, .8);
}
.footer p { margin: 0; }

/* ---------- Waitlist dialog ---------- */
.wl {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 50px 120px -40px rgba(28, 15, 46, .7);
}
.wl::backdrop { background: rgba(28, 15, 46, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wl[open] { animation: wlIn .35s var(--ease); }
@keyframes wlIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.wl-panel { position: relative; display: grid; gap: 16px; padding: clamp(28px, 5vw, 44px); }
.wl-panel[hidden] { display: none; }
.wl-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font: 400 1.4rem/1 var(--sans); color: var(--ink); cursor: pointer;
}
.wl-close:hover { background: var(--rose); }
.wl-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: .95; margin: 0; padding-right: 40px; }
.wl-title em { color: var(--ruby); }
.wl-lead { margin: 0; color: var(--ink-soft); }
.wl-field { display: grid; gap: 6px; font: 500 .85rem/1.2 var(--sans); }
.wl-field input {
  font: 400 1.05rem/1.2 var(--sans); color: var(--ink);
  padding: .95em 1.1em; border-radius: 14px;
  border: 1px solid rgba(42, 24, 56, .22); background: #fff;
}
.wl-field input:focus-visible, .wl-consent input:focus-visible, .wl-close:focus-visible, .wl-submit:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.wl-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
.wl-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ruby); }
.wl-consent a { color: var(--ruby); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-submit { justify-self: start; border: 0; cursor: pointer; }
.wl-submit:disabled { opacity: .6; cursor: progress; }
.wl-msg { margin: 0; min-height: 1.3em; font-size: .9rem; }
.wl-msg.is-error { color: var(--ruby); font-weight: 600; }
.wl-foot { margin: 0; font-size: .75rem; color: var(--ink-soft); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.flow-card:nth-of-type(2) { transition-delay: .12s; }
.flow-card:nth-of-type(3) { transition-delay: .24s; }
.chat .bubble:nth-of-type(2) { transition-delay: .5s; }
.chat .bubble:nth-of-type(3) { transition-delay: 1.1s; }

/* Missing images collapse quietly */
figure.is-missing, .flood-image.is-missing { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ch-turn, .ch-learn, .ch-privacy { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; padding-top: 0; }
  .flow-track { display: none; }
  .flow-card-ruby, .flow-card-ruby:hover { translate: none; }
  .privacy-vis { max-width: 300px; }
  .turn-ruby { left: auto; right: 4%; top: 3%; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .privacy-list { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .meta-label { display: none; }
}
@media (max-width: 640px) {
  .nav { padding-left: 16px; }
  .wordmark { font-size: 1.45rem; }
  .btn-small { font-size: .72rem; padding: .65em .9em; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .ch-hero { align-items: start; padding-top: 120px; }
  .hero-figure { width: 70vw; right: -12vw; bottom: 4vh; opacity: .9; }
  .env-3 { display: none; }
  .env-1 { width: 54px; height: 37px; left: 8vw; top: 60vh; }
  .hero-foot { right: var(--gutter); bottom: 34px; }
  .flood-badge { top: 84px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}
.reduced-motion .reveal, .reduced-motion .flood-line { opacity: 1 !important; transform: none !important; }
