/* Pillo redesign.
   Night indigo for the moments Pillo is used (evenings, bed), cool pillowcase white for daytime,
   the pale blue of Pillo's speaker patch as the brand color, and a warm ember glow used only for warmth. */
:root {
  --night: #1b2147;
  --night-2: #262d5c;
  --night-text: #e9ecf8;
  --night-muted: #aab1d2;
  --linen: #f5f6fa;
  --white: #ffffff;
  --powder: #b9d3dc;
  --powder-soft: #e3eef2;
  --ink: #1f2233;
  --muted: #5b6074;
  --line: #dde0ea;
  --ember: #ffc38a;
  --ks: #05ce78;
  --ks-dark: #03a862;
  --font: "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --space: clamp(80px, 11vw, 150px);
  --r-lg: 28px;
  --r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--powder); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
.h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.night .lede { color: var(--night-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-ks { background: var(--ks); color: #06231a; }
.btn-ks:hover { background: #22dc8a; }
.btn-ks .ks-mark { height: 13px; width: auto; fill: currentColor; }
.btn-ks .ks-mark * { fill: currentColor; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-lg .ks-mark { height: 15px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm .ks-mark { height: 11px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 140, 190, .16); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--powder-soft); }

/* ---------- header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: background .3s, box-shadow .3s, color .3s; }
.head.on-night { color: var(--night-text); }
.head.is-stuck { background: rgba(245, 246, 250, .86); color: var(--ink); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.head.on-night.is-stuck { background: rgba(27, 33, 71, .82); color: var(--night-text); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.head-in { display: flex; align-items: center; gap: 28px; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding: 14px var(--pad); }
.logo { display: block; margin-right: auto; }
.logo-mark { display: block; width: 74px; height: auto; }
.head-nav { display: flex; gap: 28px; }
.head-nav a { font-size: 16px; text-decoration: none; opacity: .8; transition: opacity .2s; }
.head-nav a:hover, .head-nav a[aria-current] { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.menu-btn i { top: 18px; }
.menu-btn i::before { content: ""; left: 0; right: 0; top: 7px; }
.menu-open .menu-btn i { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn i::before { transform: translateY(-7px) rotate(-90deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--night-text); padding: 100px var(--pad) 40px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-links a { display: block; padding: 6px 0; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.menu-links a[aria-current] { color: var(--powder); }
.menu .btn { align-self: flex-start; }
.menu-open .head { color: var(--night-text); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open, .menu-open body { overflow: hidden; }
@media (max-width: 900px) {
  .head-nav { display: none; }
  .menu-btn { display: block; }
  .head-ks { display: none; }
}

/* ---------- night sections ---------- */
.night { background: var(--night); color: var(--night-text); }

/* ---------- hero: a conversation over Pillo, which glows warm while it "talks" ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(120px, 15vh, 160px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(120% 70% at 50% 0%, #2c3470 0%, var(--night) 60%); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 64%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 41% 12%, #fff, transparent), radial-gradient(1px 1px at 58% 38%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 73% 9%, #fff, transparent), radial-gradient(1px 1px at 86% 52%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 93% 22%, #fff, transparent), radial-gradient(1px 1px at 6% 47%, #fff, transparent),
    radial-gradient(1px 1px at 34% 30%, #fff, transparent), radial-gradient(1.1px 1.1px at 67% 70%, #fff, transparent); }
.hero-in { position: relative; display: grid; justify-items: center; text-align: center; }
.hero-title { font-size: clamp(46px, 8.4vw, 116px); font-weight: 500; line-height: .95; letter-spacing: -0.045em; max-width: 11ch; text-wrap: balance; }
.hero-lede { margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--night-muted); max-width: 40ch; }

.talk { display: grid; gap: 10px; width: min(100%, 520px); margin-top: clamp(36px, 5vw, 56px); text-align: left; min-height: 150px; }
.bubble { max-width: 82%; padding: 12px 18px; border-radius: 22px; font-size: 17px; line-height: 1.4; }
.bubble.you { justify-self: end; background: rgba(255, 255, 255, .1); border-bottom-right-radius: 6px; }
.bubble.pillo { justify-self: start; background: var(--powder); color: var(--ink); border-bottom-left-radius: 6px; }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 14px; color: var(--ember); background: rgba(255, 195, 138, .1); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 195, 138, .2); }
/* Played once on load by v2.js: each line arrives in turn, then Pillo starts to glow. */
.js .talk [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .talk [data-step].in { opacity: 1; transform: none; }

.hero-pillow { position: relative; width: min(100%, 860px); margin-top: 18px; }
.hero-pillow .cutout { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 40px 50px rgba(5, 8, 30, .55)); }
.glow { position: absolute; inset: 10% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 195, 138, .55), rgba(255, 195, 138, 0)); filter: blur(30px); opacity: .25; transition: opacity 2.4s ease; }
.hero.is-warm .glow { opacity: 1; animation: breathe 5s ease-in-out 2.4s infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
/* Sound rings from the speaker patch while Pillo "speaks". */
.rings { position: absolute; z-index: 2; left: 9.6%; top: 45%; width: 0; height: 0; }
.rings span { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 1.5px solid var(--powder); opacity: 0; }
.hero.is-speaking .rings span { animation: ring 1.8s ease-out 3; }
.hero.is-speaking .rings span:nth-child(2) { animation-delay: .6s; }
.hero.is-speaking .rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--night-muted); }
.hero-facts strong { color: var(--night-text); font-weight: 500; }
.hero-facts s { opacity: .7; }

/* ---------- three things ---------- */
.does { padding: var(--space) 0 calc(var(--space) * .7); }
.does-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.does-icon { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.does-item h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.does-item p { color: var(--muted); max-width: 34ch; }
@media (max-width: 820px) { .does-grid { grid-template-columns: 1fr; } }

/* ---------- anatomy: pins on the pillow ---------- */
.anatomy { padding: calc(var(--space) * .5) 0 var(--space); }
.anatomy-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.anatomy-stage { position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 5vw, 64px); background: var(--white); border-radius: var(--r-lg); }
.anatomy-stage .cutout { width: 100%; }
.anatomy-pic { position: relative; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
.pin::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ink); opacity: .25; animation: pinpulse 2.4s ease-out infinite; }
.pin[aria-expanded="true"] { background: var(--ks-dark); }
.pin[aria-expanded="true"]::after { border-color: var(--ks-dark); }
@keyframes pinpulse { 0% { transform: scale(.8); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.anatomy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.note { padding-top: 18px; border-top: 2px solid var(--line); transition: border-color .25s; }
.note.is-on { border-top-color: var(--ks-dark); }
.note h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.note p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) {
  .anatomy-head { grid-template-columns: 1fr; }
  .anatomy-notes { grid-template-columns: 1fr; }
  .pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .pin::before { inset: 9px; }
}

/* ---------- a day: the section's sky follows the time you pick ---------- */
.day { --sky: #dceaf0; --sky-ink: var(--ink); --sky-muted: var(--muted); padding: var(--space) 0; background: var(--sky); color: var(--sky-ink); transition: background 1s ease, color 1s ease; }
.day[data-t="1"] { --sky: #e8f1f4; }
.day[data-t="2"] { --sky: #f3e7da; }
.day[data-t="3"] { --sky: #3a3f73; --sky-ink: var(--night-text); --sky-muted: var(--night-muted); }
.day[data-t="4"] { --sky: var(--night); --sky-ink: var(--night-text); --sky-muted: var(--night-muted); }
.clock { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(32px, 4vw, 48px); border-top: 1.5px solid currentColor; }
.clock button { position: relative; padding: 18px 0 0; border: 0; background: none; text-align: left; font-size: 16px; cursor: pointer; opacity: .6; transition: opacity .2s; }
.clock button::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.clock button[aria-selected="true"], .clock button:hover { opacity: 1; }
.clock-sun { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; margin-left: -7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 8px rgba(255, 195, 138, .25); transition: left .7s cubic-bezier(.3, .8, .3, 1), background .7s, box-shadow .7s; pointer-events: none; }
.day[data-t="3"] .clock-sun, .day[data-t="4"] .clock-sun { background: #f2f3ff; box-shadow: 0 0 0 8px rgba(242, 243, 255, .15), inset -7px -3px 0 0 #c9cde8; }
.day-panels { margin-top: clamp(32px, 4vw, 48px); }
.day-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.day-panel[hidden] { display: none; }
.day-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.day-panel h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.day-panel p { color: var(--sky-muted); font-size: 19px; max-width: 36ch; }
.js .day-panel:not([hidden]) { animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 820px) {
  .day-panel { grid-template-columns: 1fr; }
  .clock button { font-size: 13px; }
}

/* ---------- privacy ---------- */
.privacy { padding: var(--space) 0; }
.privacy-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.privacy-in .lede { margin: 20px 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(185, 211, 220, .14); color: var(--powder); font-weight: 500; }
.steps h3 { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.steps p { color: var(--night-muted); font-size: 16px; }
@media (max-width: 820px) { .privacy-in { grid-template-columns: 1fr; } }

/* ---------- back on kickstarter ---------- */
.back { padding: var(--space) 0; }
.back-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.back-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); }
.price { margin: 18px 0 14px; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.price strong { font-weight: 500; }
.price s { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: 8px; vertical-align: .55em; }
.back-steps { margin: 28px 0 34px; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 14px; }
.back-steps li { counter-increment: b; display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); }
.back-steps li::before { content: counter(b); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--powder-soft); color: var(--ink); font-size: 14px; font-weight: 500; }
@media (max-width: 820px) { .back-in { grid-template-columns: 1fr; } .back-photo img { aspect-ratio: 4 / 3; } }

/* ---------- membership plans ---------- */
.member { padding: 0 0 var(--space); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 4vw, 56px); }
.plan { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--white); }
.plan-plus { background: var(--powder-soft); }
.plan h3 { font-size: 24px; font-weight: 500; }
.plan-price { margin-top: 6px; color: var(--muted); }
.plan-price strong { color: var(--ink); font-weight: 500; font-size: 1.2em; }
.plan ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 9px; border-left: 2px solid var(--ks-dark); border-bottom: 2px solid var(--ks-dark); transform: rotate(-45deg); }
.plan .btn { margin-top: 30px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: var(--space) 0; background: var(--white); }
.faq-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font-size: 20px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }
@media (max-width: 820px) { .faq-in { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-text); padding: calc(var(--space) * .8) 0 32px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 56px; }
.foot-title { font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; }
.foot-join > p { margin-top: 8px; color: var(--night-muted); }
.join-form { display: flex; gap: 10px; margin-top: 22px; max-width: 480px; }
.join-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--night-text); font: inherit; font-size: 16px; }
.join-form input::placeholder { color: var(--night-muted); }
.join-form input:focus { outline: none; border-color: var(--powder); }
.w-form-done, .w-form-fail { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.w-form-done { background: rgba(5, 206, 120, .14); }
.w-form-fail { background: rgba(255, 120, 120, .14); }
.foot .foot-small { margin-top: 14px; font-size: 14px; color: var(--night-muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h2 { font-size: 15px; font-weight: 500; color: var(--night-muted); margin-bottom: 14px; }
.foot-cols a { display: block; padding: 5px 0; text-decoration: none; }
.foot-cols a:hover { color: var(--powder); }
.foot-note { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-note p { font-size: 14px; color: var(--night-muted); max-width: 90ch; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 28px; }
.foot-logo .logo-mark { width: 64px; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.social a:hover { background: rgba(255, 255, 255, .08); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.legal a { font-size: 14px; color: var(--night-muted); text-decoration: none; }
.legal a:hover { color: var(--night-text); }
.copy { font-size: 14px; color: var(--night-muted); }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr; }
  .legal { margin-left: 0; }
}
@media (max-width: 520px) {
  .join-form { flex-direction: column; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- inner pages: shared parts ---------- */
.page-top { padding: clamp(130px, 16vw, 190px) 0 clamp(56px, 7vw, 90px); }
.page-top.night { background: radial-gradient(120% 90% at 50% 0%, #2c3470 0%, var(--night) 65%); }
.page-top h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.page-top .lede { margin-top: 22px; }
.page-top .btn { margin-top: 32px; }
.section { padding: var(--space) 0; }
.section:not(.night):not(.tint) + .section:not(.night):not(.tint) { padding-top: 0; }
.section.tint { background: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split .lede { margin-top: 18px; }
.split.flip > :first-child { order: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.feature-grid h3 { font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.feature-grid p { color: var(--muted); font-size: 16px; }
.night .feature-grid p { color: var(--night-muted); }
.feature-grid > div { padding-top: 20px; border-top: 1.5px solid var(--line); }
.night .feature-grid > div { border-top-color: rgba(255, 255, 255, .14); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.stats strong { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--muted); max-width: 26ch; }
.night .stats span { color: var(--night-muted); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); margin: 32px 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-size: 19px; }
.compare { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 4vw, 48px); font-size: 16px; }
.compare th, .compare td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: 15px; color: var(--muted); border-bottom-color: var(--ink); }
.compare tbody th { font-weight: 500; }
.compare td.c { text-align: center; width: 120px; }
.compare .desc { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.yes, .no { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; position: relative; }
.yes { background: var(--ks); }
.yes::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border-right: 2px solid #06231a; border-bottom: 2px solid #06231a; transform: rotate(45deg); }
.no { background: var(--line); }
.no::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--muted); }
.cta-band { padding: var(--space) 0; text-align: center; }
.cta-band .h2 { margin-inline: auto; }
.cta-band .lede { margin: 18px auto 30px; }
.note-small { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.timeline { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.timeline time { font-size: 18px; color: var(--muted); }
.timeline h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.timeline p { color: var(--muted); }
@media (max-width: 820px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .feature-grid, .stats { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .compare { font-size: 15px; }
  .compare td.c { width: 74px; }
  .compare th, .compare td { padding: 14px 6px; }
}

/* ---------- long text pages (privacy, terms, accessibility, FCC, IP, security) ---------- */
.top-band { height: 0; }
.doc { padding: clamp(130px, 14vw, 170px) 0 var(--space); }
.doc .wrap { max-width: calc(760px + 2 * var(--pad)); }
.doc h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 14px; }
.doc .legal-sub { color: var(--muted); margin-bottom: 28px; }
.doc .legal-intro { font-size: 20px; }
.doc h2 { margin: 48px 0 14px; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }
.doc h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 500; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p + p, .doc ul + p, .doc ol + p, .doc p + ol, .doc p + ul { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li + li { margin-top: 6px; }
.doc a { overflow-wrap: anywhere; text-underline-offset: 3px; }

/* ---------- small message pages (404, help center, pillo on the web) ---------- */
.lost { padding: clamp(150px, 18vw, 210px) var(--pad) var(--space); text-align: center; display: grid; justify-items: center; }
.lost-code { color: var(--muted); margin-bottom: 12px; }
.lost-title { font-size: clamp(36px, 5vw, 64px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.lost-sub { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.lost-links, .web-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 500; }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.pill-char { background: var(--ink); color: var(--white); box-shadow: none; }
.pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lost-note { margin-top: 28px; color: var(--muted); }
.lost-art { width: 120px; margin-top: 48px; color: var(--powder); }
.lost-art .face { width: 100%; height: auto; }
.lost-art .face path { fill: currentColor; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.contact-form .w-form-done { color: var(--ink); }
.page-contact-us .w-form-done, .page-contact-us .w-form-fail { color: var(--ink); }
@media (max-width: 820px) { .contact-wrap, .contact-form { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .talk [data-step] { opacity: 1; transform: none; }
}

/* Small phones: let big buttons and grid columns shrink instead of pushing the page sideways. */
.split > *, .back-in > *, .hero-in > * { min-width: 0; }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { min-height: 56px; padding: 0 20px; font-size: 16px; }
  .btn-lg .ks-mark { height: 12px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .pin { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .pin::before { inset: 12px; }
}
/* Phones: the email box keeps its full height when the form stacks. */
.join-form input { min-height: 52px; }
@media (max-width: 520px) { .join-form input, .join-form .btn { flex: none; width: 100%; } }

/* Hero sky: the original night gradient, with stars drawn by v2.js. */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 95%); mask-image: linear-gradient(180deg, #000 60%, transparent 95%); }

/* 3D pillow (pillow3d.js): drawn on a canvas over the photo; the photo stays as the fallback and keeps the space. */
.pillow3d { position: absolute; z-index: 1; pointer-events: none; }
.hero-pillow.is-3d .cutout { visibility: hidden; }
.hero-pillow.is-3d .rings { display: none; }

/* Phones and touch screens: a still of the 3D pillow that floats and sways a little. */
@media (hover: none), (max-width: 820px) {
  .hero-pillow .rings { display: none; }
  .hero-pillow .cutout { animation: pillow-float 6s ease-in-out infinite; transform-origin: 50% 60%; }
}
@keyframes pillow-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ---------- hero follows the visitor's time of day (v2.js picks it; the small dial changes it) ---------- */
.skies { position: absolute; inset: 0; pointer-events: none; }
.skies i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.skies i[data-s="0"] { background: radial-gradient(60% 40% at 78% 92%, rgba(255, 196, 150, .75), transparent 70%), linear-gradient(180deg, #b7cfe6 0%, #dfe2ef 55%, #f6dccb 100%); }
.skies i[data-s="1"] { background: radial-gradient(40% 35% at 82% 6%, rgba(255, 255, 255, .85), transparent 70%), linear-gradient(180deg, #8fc3e6 0%, #c4e1f2 50%, #eef6fa 100%); }
.skies i[data-s="2"] { background: radial-gradient(70% 45% at 70% 100%, rgba(255, 186, 110, .6), transparent 70%), linear-gradient(180deg, #a9bfd8 0%, #ead2b6 58%, #f5c89a 100%); }
.skies i[data-s="3"] { background: radial-gradient(80% 40% at 50% 105%, rgba(240, 140, 120, .55), transparent 70%), linear-gradient(180deg, #232a62 0%, #4a3f7e 50%, #8a5a8c 85%, #b9707f 100%); }
.skies i[data-s="4"] { background: radial-gradient(120% 70% at 50% 0%, #2c3470 0%, var(--night) 60%); }
[data-time="0"] > .skies i[data-s="0"], [data-time="1"] > .skies i[data-s="1"], [data-time="2"] > .skies i[data-s="2"],
[data-time="3"] > .skies i[data-s="3"], [data-time="4"] > .skies i[data-s="4"] { opacity: 1; }
.hero .sky { transition: opacity 1.4s ease; }
.hero[data-time="3"] .sky { opacity: .55; }
.hero.is-day .sky { opacity: 0; }

/* Daytime: dark text on the light skies */
.hero.is-day { color: var(--ink); }
.hero.is-day .hero-lede, .hero.is-day .hero-facts { color: #4a5068; }
.hero.is-day .hero-facts strong { color: var(--ink); }
.hero.is-day .bubble.you { background: rgba(31, 34, 51, .08); }
.hero.is-day .bubble.pillo { background: var(--white); box-shadow: 0 6px 20px -10px rgba(31, 34, 51, .35); }
.hero.is-day .chip { color: #8a4510; background: rgba(255, 170, 90, .22); }
.hero.is-day .chip i { background: #e0812f; box-shadow: 0 0 0 4px rgba(224, 129, 47, .2); }
.hero.is-day .hero-pillow .cutout { filter: drop-shadow(0 34px 40px rgba(50, 60, 100, .3)); }
.hero, .hero .hero-lede, .hero .hero-facts, .hero .bubble { transition: color 1s ease, background-color 1s ease; }

/* The dial: small and quiet, under the facts */
.dial { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 8px 16px 8px 12px; border-radius: 999px; opacity: .72; transition: opacity .2s, background .2s; }
.dial:hover, .dial:focus-within { opacity: 1; background: rgba(127, 140, 190, .12); }
.dial-icon { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #f2f3ff; box-shadow: inset -5px -2px 0 0 #c9cde8; transition: background .6s, box-shadow .6s; }
.hero.is-day .dial-icon { background: #f3a54f; box-shadow: 0 0 0 4px rgba(243, 165, 79, .25); }
.dial input { -webkit-appearance: none; appearance: none; width: 130px; height: 20px; background: transparent; cursor: pointer; margin: 0; }
.dial input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.dial input::-moz-range-track { height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: currentColor; border: 0; }
.dial input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: currentColor; border: 0; }
.dial input:focus-visible { outline: none; }
.dial:focus-within { outline: 2px solid var(--powder); outline-offset: 2px; }
.dial-label { min-width: 9.5em; text-align: left; font-size: 14px; }
@media (max-width: 380px) { .dial { gap: 8px; padding-inline: 8px; } .dial input { width: 96px; } .dial-label { min-width: 0; } }

/* ---------- every page's top band follows the same time of day ---------- */
.page-top.has-sky { position: relative; overflow: hidden; isolation: isolate; background: var(--night); transition: color 1s ease; }
.page-top .skies { z-index: -1; }
/* a light scatter of stars in the evening and at night */
.page-top .skies::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 64%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 41% 12%, #fff, transparent), radial-gradient(1px 1px at 58% 38%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 73% 9%, #fff, transparent), radial-gradient(1px 1px at 86% 52%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 93% 22%, #fff, transparent), radial-gradient(1px 1px at 6% 47%, #fff, transparent),
    radial-gradient(1px 1px at 34% 30%, #fff, transparent), radial-gradient(1.1px 1.1px at 67% 70%, #fff, transparent),
    radial-gradient(1px 1px at 79% 33%, #fff, transparent), radial-gradient(1.2px 1.2px at 18% 80%, #fff, transparent); }
.page-top[data-time="3"] .skies::after { opacity: .5; }
.page-top[data-time="4"] .skies::after { opacity: .8; }
.page-top.is-day { color: var(--ink); }
.page-top.is-day .lede { color: #4a5068; }
.page-top.is-day .price s { color: #4a5068; }
.page-top.is-night { color: var(--night-text); }
.page-top.is-night .lede, .page-top.is-night .price s { color: var(--night-muted); }
.page-top.is-night .btn-dark { background: var(--white); color: var(--ink); }
.page-top.is-night a:not(.btn) { color: var(--powder); }
.page-top.is-night .field label { color: var(--night-text); }
.page-top.is-night .plan-plus { color: var(--ink); }
.page-top.is-night .plan-plus .lede, .page-top.is-night .plan-plus span { color: var(--muted); }
/* At night, a dark top band right above another dark section gets a faint line between them. */
.page-top.is-night + .night { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.page-top.is-night:last-child + * , main > .page-top.is-night:last-child { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }

/* "Three things" icons: typing dots, a slowly turning sun, a beating heart. */
.does-icon .dot { stroke-width: 3.4; animation: typing 1.4s ease-in-out infinite; }
.does-icon .dot:nth-child(3) { animation-delay: .2s; }
.does-icon .dot:nth-child(4) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.does-icon .spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.does-icon .beat { transform-box: fill-box; transform-origin: center; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.06); }
  24% { transform: scale(1); }
  36% { transform: scale(1.035); }
  50%, 100% { transform: scale(1); }
}

/* "Soft on the outside": frosted pins with a tag, glued to the 3D pillow on computers. */
.anatomy-pic.is-3d .cutout { visibility: hidden; }
.anatomy-stage { overflow: hidden; }
.pin { z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 8px 22px rgba(30, 40, 80, .28); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.pin::before { inset: 8px; background: var(--ink); transition: background .3s, transform .3s; }
.pin::after { inset: -6px; border: 1.5px solid rgba(255, 255, 255, .9); opacity: .6; animation: pinpulse 2.6s ease-out infinite; }
.pin[aria-expanded="true"] { background: rgba(255, 255, 255, .85); transform: scale(1.15); }
.pin[aria-expanded="true"]::before { background: var(--ks-dark); transform: scale(1.15); }
.pin[aria-expanded="true"]::after { border-color: var(--ks); }
.pin:hover { transform: scale(1.1); }
.pin-tag { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); padding: 7px 12px; border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 8px 24px rgba(30, 40, 80, .18); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.pin[aria-expanded="true"] .pin-tag { opacity: 1; transform: translate(-50%, 0); }
/* Phones (flat photo): the active pin sends rings out instead */
@media (hover: none), (max-width: 820px) {
  @keyframes pinripple { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
  .pin-tag { font-size: 12px; }
}
@media (hover: none), (max-width: 820px) { .pin { width: 32px; height: 32px; margin: -16px 0 0 -16px; } .pin::before { inset: 10px; } }
.pin-tag { z-index: 1; }

/* Computers: hide the flat pillow photo until the 3D pillow (with its pillowcase) is ready, so it isn't seen uncovered first.
   If 3D can't start, v2.js adds .no-3d after a moment and the photo comes back. */
@media (hover: hover) and (min-width: 821px) {
  .js .hero-pillow:not(.is-3d):not(.no-3d) .cutout { opacity: 0; }
  .hero-pillow .cutout { transition: opacity .4s ease; }
}

/* Switching times: the new sky fades in on top while the old one stays fully visible underneath,
   then the old one is removed. So nothing darker ever shows through mid-fade. */
.skies i { transition: opacity 0s linear 1.4s; z-index: 0; }
[data-time="0"] > .skies i[data-s="0"], [data-time="1"] > .skies i[data-s="1"], [data-time="2"] > .skies i[data-s="2"],
[data-time="3"] > .skies i[data-s="3"], [data-time="4"] > .skies i[data-s="4"] { z-index: 1; transition: opacity 1.4s ease 0s; }
/* Keep the sky layers inside their own stack, behind the hero's text and pillow. */
.skies { isolation: isolate; }
.hero > .skies { z-index: 0; }
.hero > .sky { z-index: 0; }
.hero-in { z-index: 1; }


