/* Landing continuity layer. Loaded last: shared tokens, the framed hero video
   card, and section-to-section transitions. Vanilla CSS, no new dependencies. */
:root{
  --d-night:#1b1411;          /* warm charcoal, replaces pure black */
  --d-night-2:#2a201b;        /* raised dark surface */
  --d-cream:#faf7f0;          /* page background */
  --d-cream-2:#f3eee3;
  --d-ink:#28150b;
  --d-accent:#ff6812;         /* the one accent */
  --d-line:#28150b14;
  --d-radius-lg:36px;         /* large surfaces and media */
  --d-radius-md:24px;         /* cards */
  --d-section-y:clamp(72px,9vw,128px);
  --d-gutter:clamp(20px,4vw,40px);
  --d-shadow:0 1px 2px #3823130d,0 14px 40px #38231314;
  --d-ease:cubic-bezier(.2,.8,.2,1);
  --video-x:50%;--video-y:50%;
}
html{background:var(--d-cream)}
body{background:var(--d-cream)}
::selection{background:var(--d-accent);color:#fff}
:focus-visible{outline:3px solid var(--d-accent);outline-offset:4px}

/* ---------- Hero: framed video card + overlapping panel ---------- */
.hero-section{height:auto;max-height:none;min-height:min(100svh,880px);overflow:visible;border-radius:0;position:relative;z-index:2;background:var(--d-cream);display:flex;align-items:center;padding:clamp(96px,12vh,140px) var(--d-gutter) clamp(40px,7vh,96px);isolation:isolate}
.hero-stage{position:relative;width:100%;max-width:1240px;margin:0 auto}
.hero-section .hero-media{position:relative;display:block;inset:auto;width:min(72%,900px,calc((100svh - 230px) * 1.4545));min-width:min(100%,520px);aspect-ratio:16/11;margin-left:auto;border-radius:var(--d-radius-lg);background:#efe8dc;box-shadow:0 0 0 1px #28150b14,0 30px 60px -26px #5a3a1e66,0 8px 20px -10px #5a3a1e29}
.hero-backdrop{position:absolute;inset:0;background:var(--d-cream);pointer-events:none}
.hero-sources{position:absolute;width:2px;height:2px;overflow:hidden;opacity:0;pointer-events:none}
.hero-sources video{width:2px;height:2px}
.hero-section .hero-bubble{position:absolute;z-index:2;right:6%;top:9%;max-width:min(300px,70%);background:#fffdf8d9;color:var(--d-ink);box-shadow:0 8px 24px #5a3a1e29}
.hero-section .hero-bubble::before{display:none}
.hero-section .hero-bubble{transform-origin:50% 100%;will-change:transform,opacity}
.hero-bubble.is-typing{padding:12px 16px}
.hero-bubble .dots{display:inline-flex;gap:5px;align-items:center;height:1.3em}
.hero-bubble .dots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.35;animation:hero-dot 1s infinite ease-in-out}
.hero-bubble .dots i:nth-child(2){animation-delay:.15s}.hero-bubble .dots i:nth-child(3){animation-delay:.3s}
@keyframes hero-dot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-3px);opacity:.9}}
@media(prefers-reduced-motion:reduce){.hero-bubble .dots i{animation:none}}
.hero-panel{position:absolute;z-index:3;left:0;top:50%;transform:translateY(-50%);width:clamp(260px,38%,400px);padding:clamp(16px,2vw,26px);border-radius:var(--d-radius-lg);background:#fffdf8f2;border:1px solid #28150b14;box-shadow:0 24px 50px -22px #5a3a1e52,inset 0 1px 0 #ffffffd9}
/* Liquid glass active: the library paints the glass canvas, so drop the solid fallback look. */
.lg-on .hero-panel{background:#fffdf84d;border-color:transparent;box-shadow:none}
.lg-on .hero-bubble{background:#fffdf873;box-shadow:none}
.lg-on .hero-lede{opacity:.9}
.hero-section .hero-copy{position:relative;right:auto;bottom:auto;left:auto;width:86%;transform:none}
.hero-copy h1{color:#e4570f}
.hero-yours{color:#e4570f}
.hero-life{-webkit-text-stroke:0}
.hero-lede{margin:clamp(12px,1.4vw,20px) 0 14px;max-width:30ch;font-size:clamp(14px,1.05vw,16px);line-height:1.45;color:var(--d-ink);opacity:.78;text-wrap:pretty}
.hero-badge{margin:0}
.hero-badge img{width:120px;height:auto}
.hero-badge img{transition:transform .25s var(--d-ease)}
.hero-badge:hover img{transform:translateY(-2px)}
.hero-badge:active img{transform:scale(.98)}


.home-section{margin-top:0;padding:clamp(96px,11vw,170px) var(--d-gutter) var(--d-section-y);background:var(--d-cream)}
.home-section-copy h2{color:var(--d-ink)}
.home-section-copy p{color:#28150bb8}

/* ---------- Shared section rhythm and surfaces ---------- */
.conversation-section{padding:clamp(56px,7vw,96px) var(--d-gutter) clamp(64px,8vw,104px);background:var(--d-cream)}
.conversation-inner{gap:clamp(28px,4vw,56px)}
.conv-memory{display:flex;gap:12px;align-items:flex-start;margin:22px 0 0;padding:16px 0 0;border-top:1px solid var(--d-line)}
.conv-memory svg{flex:none;color:var(--d-accent);margin-top:2px}
.conv-memory h3{margin:0 0 4px;font:650 18px/1.2 Fraunces,Georgia,serif;letter-spacing:-.02em;color:var(--d-ink)}
.conv-memory h3 em{color:var(--d-accent);font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;font-size:1.15em}
.conv-memory p{margin:0;font-size:14px;line-height:1.5;color:#28150bb8}
.conv-cta{margin-top:20px}
.conv-cta img{width:120px;height:auto;display:block}
.anywhere-section{background:var(--d-cream)}
.anywhere-stage{background:radial-gradient(ellipse at 50% 52%,#ffd5b366,transparent 64%)}
.anywhere-controls,.conversation-scene{border-radius:var(--d-radius-md);border:1px solid var(--d-line);box-shadow:var(--d-shadow)}
.conversation-scene{border-radius:var(--d-radius-lg)}
.anywhere-controls{border-radius:999px;background:#fffaf5ee}
.anywhere-gender input:checked+span{background:var(--d-accent)}
.oval-heading em::before,.anywhere-copy h2 em::before{background:var(--d-accent)}
.home-section-copy .oval-heading,.conversation-copy .oval-heading{color:var(--d-accent)}
.region-step,#anywhere-region{transition:background .2s,border-color .2s,transform .2s}
.region-step:hover{background:#fff;border-color:var(--d-accent)}
.region-step:active{transform:scale(.96)}
.app-store-badge{transition:transform .25s var(--d-ease)}
.app-store-badge:hover{transform:translateY(-2px)}
/* soft edges between the sticky globe stage and neighbours */
.anywhere-stage::before,.anywhere-stage::after{content:"";position:absolute;left:0;right:0;height:96px;z-index:3;pointer-events:none}
.anywhere-stage::before{top:0;background:linear-gradient(var(--d-cream),transparent)}
.anywhere-stage::after{bottom:0;background:linear-gradient(transparent,var(--d-cream))}

/* ---------- Compact desktop: stays side-by-side down to ~761px, scaled to fit ---------- */
@media(max-width:1100px) and (min-width:761px){
  .hero-section .hero-media{min-width:0;width:min(74%,calc((100svh - 210px) * 1.4545))}
  .hero-panel{width:clamp(250px,40%,330px);padding:16px 18px}
  .hero-lede{font-size:14px;margin:10px 0 12px}
  .hero-badge img{width:108px}
  .hero-section .hero-bubble{font-size:14px;max-width:min(240px,60%)}
}
@media(max-height:640px) and (min-width:761px){.hero-section{min-height:0;padding-top:88px;padding-bottom:32px}}

/* ---------- Tablet / mobile ---------- */
@media(max-width:760px){
  .hero-section{min-height:0;padding-top:104px;padding-bottom:64px;align-items:flex-start}
  .hero-section .hero-media{width:100%;aspect-ratio:4/5;max-height:62svh}
  .hero-section .hero-bubble{right:auto;left:5%;top:6%;max-width:75%}
  .hero-panel{position:relative;left:auto;top:auto;transform:none;width:min(340px,calc(100% - 32px));margin:-36px auto 0}
}
@media(max-width:680px){
  .hero-section{padding:92px 16px 56px}
  .hero-section .hero-media{border-radius:28px}
  .hero-panel{border-radius:26px;padding:16px 18px}
  .hero-section .hero-bubble{font-size:15px}
  .home-section{padding-top:112px}
}
@media(prefers-reduced-motion:reduce){.hero-video{transition:none}}
@media(prefers-reduced-transparency:reduce){.hero-panel,.hero-bubble{background:#fffdf8}}

/* Phone-mockup bubbles: solid, no backdrop blur (glass lives in the hero only). */
.home-phone-messages .chat-bubble{background:#fffaf4ee}
