.header-tools{display:flex;align-items:center;gap:12px}
.theme-toggle{position:relative;isolation:isolate;display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;color:var(--silver);background:rgb(255 255 255 / .04);transition:background .5s,border-color .5s,color .5s}
.theme-toggle:hover{background:rgb(var(--accent-rgb) / .12)}
.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-eclipse{overflow:visible}
.theme-eclipse-moon{opacity:0;transition:opacity .3s .08s}
[data-theme=light] .theme-eclipse-core{opacity:0}
[data-theme=light] .theme-eclipse-moon{opacity:1}
.theme-eclipse-veil{position:absolute;z-index:2;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.theme-shadow-disc{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse at 5% 48%,#345468 0%,#1b2b38 18%,#111923 48%,#1a2029 100%);border-left:1.5px solid #f1fbff;box-shadow:-1px 0 2px #fff9,-3px 0 8px #8dcffa80,inset 2px 0 4px #c9efff26;transform:translateX(120%);opacity:0}
.theme-shadow-disc::after{content:"";position:absolute;inset:1px;border-radius:inherit;border-left:1px solid #dbf5ff66;pointer-events:none}
.theme-toggle::before{content:"";position:absolute;z-index:3;inset:-1px;padding:1px;border-radius:inherit;background:conic-gradient(from -45deg,transparent 0% 66%,#a6e3ff66 77%,#fff 81%,#c5efff99 84%,transparent 90%);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:0;pointer-events:none}
.theme-toggle.is-eclipsing::before{animation:theme-eclipse-glint 1.05s cubic-bezier(.22,.6,.3,1)}
.theme-toggle[data-eclipse-target=dark].is-eclipsing::before{animation-direction:reverse}
@keyframes theme-eclipse-glint{0%{transform:rotate(-70deg);opacity:0}25%{opacity:.9}65%{opacity:1}100%{transform:rotate(220deg);opacity:0}}
.theme-toggle.is-eclipsing .theme-shadow-disc{animation:theme-shadow-pass 1.05s cubic-bezier(.3,.1,.25,1) both}
.theme-toggle[data-eclipse-target=dark].is-eclipsing .theme-shadow-disc{animation-direction:reverse}
@keyframes theme-shadow-pass{0%{transform:translateX(120%);opacity:0}12%{opacity:1}40%{transform:translateX(32%);opacity:1}65%{transform:translateX(-32%);opacity:1}100%{transform:translateX(-120%);opacity:0}}
.theme-eclipse-core{r:4;opacity:1;transition:opacity .25s,r .62s cubic-bezier(.22,.7,.2,1)}
.theme-eclipse-cut{transform:translate(16px,-16px);transition:transform .62s cubic-bezier(.22,.7,.2,1)}
.theme-eclipse-rays{transform-origin:12px 12px;opacity:1;transition:opacity .25s,transform .62s cubic-bezier(.22,.7,.2,1)}
[data-theme=light] .theme-eclipse-core{r:7}
[data-theme=light] .theme-eclipse-cut{transform:translate(4px,-4px)}
[data-theme=light] .theme-eclipse-rays{opacity:0;transform:rotate(40deg) scale(.6)}
.theme-toggle::after{content:"";position:absolute;inset:-1px;border:1px solid transparent;border-radius:inherit;pointer-events:none}
.theme-toggle.is-eclipsing::after{animation:theme-eclipse-halo 1.05s ease-out}
.theme-toggle.is-eclipsing .theme-eclipse{filter:drop-shadow(0 0 3px #a8dcf9a6)}
@keyframes theme-eclipse-halo{0%,100%{border-color:transparent;box-shadow:0 0 0 #9bcbef00}28%{border-color:#ccecff88;box-shadow:0 0 7px #9bcbef40,inset 0 0 4px #9bcbef1a}48%{border-color:#e5f6ff;box-shadow:0 0 4px #c7edff80,0 0 15px #9bcbef40,inset 0 0 7px #9bcbef26}78%{border-color:#ccecff44;box-shadow:0 0 10px #9bcbef26}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-eclipse-core,.theme-eclipse-cut,.theme-eclipse-rays,.theme-eclipse-moon{transition:none}.theme-toggle.is-eclipsing::before,.theme-toggle.is-eclipsing::after,.theme-toggle.is-eclipsing .theme-shadow-disc{animation:none}.theme-toggle.is-eclipsing .theme-eclipse{filter:none}}
@media(forced-colors:active){.theme-toggle::before,.theme-eclipse-veil{display:none}.theme-toggle.is-eclipsing::after{animation:none}.theme-toggle.is-eclipsing .theme-eclipse{filter:none}}
:root[data-theme=light]{color-scheme:light;--canvas:#f3f6f8;--deep:#e8eef2;--surface:#fff;--text:#182c39;--muted:#536572;--accent:#25638e;--accent-rgb:37 99 142;--ink:#245d80;--rim:#7babc9;--silver:#334e60;--blue:#397591;--line:rgb(40 77 101 / .18);--glass:rgb(255 255 255 / .75);--focus:#25638e}
[data-theme=light] .theme-toggle{background:#ffffff9c}
[data-theme=light] ::selection{background:#b9dced;color:#173549}
[data-theme=light] .button{border-color:#91a5b3;background:#ffffff80}
[data-theme=light] .button:hover{background:#fff;box-shadow:0 5px 20px #47779112}
[data-theme=light] .button-primary{color:#fff;border-color:#3b789f;background:linear-gradient(150deg,#347ca7,#20597e);box-shadow:inset 0 1px 1px #ffffff55,0 4px 18px #2a6a9226}
[data-theme=light] .button-primary:hover{background:linear-gradient(150deg,#2c729e,#174d72)}
[data-theme=light] .release-label{background:#ffffff85;color:#36576b;border-color:#6e98b93d}
[data-theme=light] .waitlist-intro{color:#415d70}
[data-theme=light] .ocean-backdrop{background-image:linear-gradient(90deg,var(--canvas) 0%,#f3f6f8ed 25%,#f3f6f82b 65%,transparent),linear-gradient(0deg,var(--canvas),transparent 40%),url('../assets/ocean-hero-v1.webp')}
/* Ease the artwork into the pale canvas across a broad optical fade.
   The near-flat first stops avoid a visible horizontal start to the image. */
@media(min-width:761px){
  [data-theme=light] .ocean-backdrop{
    mask-image:linear-gradient(to bottom,transparent 0,rgb(0 0 0 / .015) 24px,rgb(0 0 0 / .065) 56px,rgb(0 0 0 / .16) 100px,rgb(0 0 0 / .32) 150px,rgb(0 0 0 / .53) 195px,rgb(0 0 0 / .74) 240px,rgb(0 0 0 / .92) 290px,#000 350px);
  }
}
[data-theme=light] .email-composer{border-color:#89a9bd;background:#ffffffde;box-shadow:inset 0 1px 0 #fff,0 12px 36px #42657d12}
[data-theme=light] .email-composer input::placeholder{color:#697e8d}
/* Pale optical glass with the reference's narrow blue rim and feathered halo. */
[data-theme=light] .email-composer .button-primary{
  color:#17384e;border:1px solid #86bfe2;border-radius:999px;
  background:linear-gradient(165deg,#ffffffed 3%,#e8f5fcda 48%,#d1e8f5e8);
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 2px #fff,inset 0 -2px 7px #74b8de38,0 0 0 1px #eaf9ffb3,0 0 9px #68bde64d,0 3px 14px #3d85b51f;
}
[data-theme=light] .email-composer .button-primary:hover{
  background:linear-gradient(165deg,#fff,#e5f5ff 55%,#cde8f7);
  border-color:#5caddc;
  box-shadow:inset 0 1px 2px #fff,inset 0 -2px 7px #74b8de38,0 0 0 1px #eaf9ff,0 0 12px #68bde666,0 3px 14px #3d85b526;
}
[data-theme=light] .email-composer .button-primary:focus-visible{outline:2px solid #25638e;outline-offset:4px}
[data-theme=light] .email-composer .button[data-state=success]{color:#174a68;border-color:#70b1d8;background:linear-gradient(165deg,#f6fcff,#d8edf9);box-shadow:inset 0 1px 2px #fff,inset 0 -2px 7px #74b8de30,0 0 0 1px #eaf9ffb3,0 0 12px #68bde64d}
@media(forced-colors:active){[data-theme=light] .email-composer .button-primary{border-color:ButtonText;background:ButtonFace;color:ButtonText;box-shadow:none}}
[data-theme=light] .inline-link:hover{color:#174c70}
[data-theme=light] .signup-status[data-error=true]{color:#9c3733}
[data-theme=light] .companion-caption>div{background:#f8fcfff0;border-color:#a0bfd1;box-shadow:0 8px 28px #183f5b16}
[data-theme=light] .companion-caption p{color:#4b6475}
[data-theme=light] .companions>p,[data-theme=light] .waitlist-lineup small{color:#4c6678}
[data-theme=light] dialog{background:#f8fbfd;color:var(--text);border-color:#b2c6d3;box-shadow:0 24px 90px #173b5640}
[data-theme=light] dialog::backdrop{background:#375a6b45}
/* Retain readable illustration stages while the unpublished full site shares the theme. */
[data-theme=light] .brand small,[data-theme=light] .desktop-nav>a:not(.button),[data-theme=light] .hero-description{color:#415d70}
[data-theme=light] .desktop-nav>a:hover{color:#174c70}
[data-theme=light] .hero-scene::after{background:linear-gradient(90deg,#f3f6f8fa 0%,#f3f6f8b8 37%,transparent 65%),linear-gradient(0deg,var(--canvas),transparent 35%)}
[data-theme=light] .speech,[data-theme=light] .hero-pill,[data-theme=light] .voice-preview-pill,[data-theme=light] .orbit-bubbles a svg,[data-theme=light] .mobile-navigation{background:#f6fbfff0;border-color:#8dadc5;color:#24485f}
[data-theme=light] .speech span,[data-theme=light] .pill-label,[data-theme=light] .hero-pill>svg{color:#365970}
[data-theme=light] .site-header{gap:14px}
[data-theme=light] .dialog-note{background:#e4edf4}
@media(max-width:760px){
  .header-tools{gap:8px}.theme-toggle{width:36px;height:36px}
  [data-theme=light] .ocean-backdrop{background-image:linear-gradient(0deg,var(--canvas),transparent 50%,#f3f6f820 70%,var(--canvas)),url('../assets/ocean-hero-v1.webp')}
  [data-theme=light] .signup-note{background:#f3f6f8ed;border-radius:12px;padding:10px 12px;margin-inline:0}
  [data-theme=light] .signup-status[data-error=true]{background:#f3f6f8ed;border-radius:12px;padding:10px 12px;margin-inline:0}
  [data-theme=light] .hero-scene::after{background:linear-gradient(180deg,var(--canvas),transparent 18%,transparent 75%,var(--canvas))}
}
