/* khinoamail.space: a cloud sky (day, evening, night), liquid-glass chrome with holographic foil, one cobalt. */
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-ext.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ground: #dfe2e7;
  --ink: #0d1424;
  --ink-2: #1b2640;
  --ink-3: #26345a;
  --cobalt: #2259e6;
  --cobalt-hi: #3a6cf0;
  --cobalt-deep: #1a47c2;
  --steel: #c9d1dc;
  --night: #0b0d12;
  --night-ink: #eef0f4;
  --night-ink-2: #b4bac6;
  --hair: rgba(16, 19, 26, 0.12);
  --glass-fill: rgba(255, 255, 255, 0.52);
  --glass-rim: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 1px 1px rgba(16, 19, 26, 0.06), 0 10px 30px -8px rgba(16, 24, 48, 0.22);
  --display: "Mona Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.2vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dark: 0;
  --mx: 0.5;
  --my: 0.5;
  --holo: linear-gradient(115deg, #ff8fd0 0%, #9be8ff 15%, #fff59e 30%, #b9a2ff 46%, #86f2cf 62%, #ffadc6 78%, #9fc2ff 100%);
  --holo-pos: calc(var(--mx) * 100%) calc(var(--my) * 100%);
  --link: #0f2f8f;
}
/* Night sky: the page turns dark so text stays readable over it. */
html[data-sky="night"] {
  color-scheme: dark;
  --ground: #0c1630;
  --ink: #eef1f7;
  --ink-2: #c6cddc;
  --ink-3: #a6afc2;
  --hair: rgba(255, 255, 255, 0.14);
  --glass-fill: rgba(16, 24, 46, 0.52);
  --glass-rim: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --link: #9db8ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.55 var(--text);
  font-feature-settings: "tnum" 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: #fff; }
img, svg, canvas, iframe { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt); }
html[data-sky="night"] a:hover { color: #c3d3ff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 650; }
.sprite { position: absolute; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus, .doc-tabs a[aria-current="page"]:hover { color: #fff; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

html { scrollbar-color: rgba(16, 19, 26, 0.35) transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: rgba(16, 19, 26, 0.28); border: 3px solid transparent; background-clip: padding-box; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: clamp(2.9rem, 6.1vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 620;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin: 26px 0 0; max-width: 40ch; font-size: clamp(1.06rem, 1.25vw, 1.2rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
p { text-wrap: pretty; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.42em;
  border: 1px solid rgba(16, 19, 26, 0.16);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font: 600 0.78em/1 var(--text);
  letter-spacing: 0.02em;
  vertical-align: 0.1em;
}
kbd + kbd { margin-left: 4px; }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h);
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: 620 0.95rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 200ms;
}
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: 60ms; }
.btn-primary {
  background: linear-gradient(180deg, var(--cobalt-hi), var(--cobalt) 55%, var(--cobalt-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(10, 30, 90, 0.3), 0 8px 22px -6px rgba(34, 89, 230, 0.55);
}
.btn-primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(10, 30, 90, 0.3), 0 12px 30px -6px rgba(34, 89, 230, 0.7); }
.btn-sm { --h: 34px; padding: 0 15px; font-size: 0.88rem; }
.btn-lg { --h: 52px; padding: 0 26px 0 22px; font-size: 1.04rem; }
.btn-xl { --h: 62px; padding: 0 34px 0 28px; font-size: 1.15rem; }

/* ---------- sky ---------- */
/* sky.js draws the clouds on a canvas; this gradient is the sky before it starts, and without WebGL. */
html { background: #7fb0ee; }
html[data-sky="evening"] { background: #c9a3c4; }
html[data-sky="night"] { background: #0c1630; }
body { background: transparent; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(40% 22% at 78% 82%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(30% 16% at 18% 90%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(26% 12% at 52% 70%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #4d8ce6, #78b0f0 45%, #cde3fa);
}
html[data-sky="evening"] body::after {
  background:
    radial-gradient(40% 22% at 78% 82%, rgba(255, 222, 210, 0.85), transparent 70%),
    radial-gradient(30% 16% at 18% 90%, rgba(255, 210, 200, 0.7), transparent 70%),
    radial-gradient(35% 30% at 18% 82%, rgba(255, 190, 120, 0.6), transparent 70%),
    linear-gradient(180deg, #6b6bc7, #db94b8 55%, #ffcc9e);
}
html[data-sky="night"] body::after {
  background:
    radial-gradient(40% 22% at 78% 82%, rgba(120, 140, 200, 0.35), transparent 70%),
    radial-gradient(14% 14% at 78% 20%, rgba(190, 205, 255, 0.25), transparent 70%),
    linear-gradient(180deg, #050a1f, #0d1838 50%, #1f2952);
}
.sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.sky.on { opacity: 1; }

/* ---------- day / evening / night switch ---------- */
.sky-toggle {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 32px);
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.sky-toggle button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 200ms;
}
.sky-toggle button[aria-checked="true"], .sky-toggle button[aria-checked="true"]:hover { color: #fff; }
.sky-toggle button:hover { color: var(--ink); }
.sky-toggle .icon { width: 17px; height: 17px; }
.sky-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cobalt-hi), var(--cobalt-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px -4px rgba(34, 89, 230, 0.7);
  transition: transform 380ms var(--ease-out);
}
.sky-knob::after { content: ""; position: absolute; inset: 0; background: var(--holo); background-size: 300% 300%; background-position: var(--holo-pos); opacity: 0.35; mix-blend-mode: screen; }

/* ---------- holographic shine: foil that slides with the pointer ---------- */
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent calc(var(--mx) * 100% - 16%), rgba(255, 143, 208, 0.12) calc(var(--mx) * 100% - 6%), rgba(155, 232, 255, 0.15) calc(var(--mx) * 100%), rgba(255, 245, 158, 0.12) calc(var(--mx) * 100% + 6%), transparent calc(var(--mx) * 100% + 16%));
  mix-blend-mode: multiply;
  /* the sheen lives at the glass edge only; the inbox itself stays clean */
  -webkit-mask: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000), linear-gradient(180deg, #000, transparent 10%, transparent 90%, #000);
  mask: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000), linear-gradient(180deg, #000, transparent 10%, transparent 90%, #000);
}
html[data-sky="night"] .window::before { mix-blend-mode: screen; }
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  padding: 3px;
  background: var(--holo);
  background-size: 220% 220%;
  filter: saturate(1.6) contrast(1.1);
  background-position: var(--holo-pos);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.cap { isolation: isolate; overflow: hidden; }
.cap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--holo);
  background-size: 260% 260%;
  background-position: calc(var(--mx) * 140% - 20%) calc(var(--my) * 140% - 20%);
  opacity: 0.34;
  mix-blend-mode: multiply;
}
.cap::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%);
  transform: translateX(calc((var(--mx) - 0.5) * 70%));
  mix-blend-mode: soft-light;
}
.btn-primary { position: relative; isolation: isolate; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--holo);
  background-size: 300% 300%;
  background-position: var(--holo-pos);
  opacity: 0.32;
  mix-blend-mode: screen;
}
.brand, .foot-brand { position: relative; }
.brand::before, .foot-brand::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  pointer-events: none;
  background: var(--holo);
  background-size: 320% 320%;
  background-position: var(--holo-pos);
  -webkit-mask: url("/assets/icon.png") center / contain no-repeat;
  mask: url("/assets/icon.png") center / contain no-repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
html[data-sky="night"] .brand::before, html[data-sky="night"] .foot-brand::before { mix-blend-mode: screen; opacity: 0.7; }
.foot-brand::before { left: 0; width: 22px; height: 22px; margin-top: -11px; }

/* The page goes to night for Khinoa SI: one overlay, its opacity driven by scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 70% 20%, #151a26, var(--night) 70%);
  opacity: var(--dark);
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  pointer-events: auto;
  transition: background-color 300ms, border-color 300ms, box-shadow 300ms;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 2px; color: var(--ink); font: 650 0.98rem/1 var(--display); font-stretch: 105%; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 8px; filter: drop-shadow(0 0 0.5px #0d1424) drop-shadow(0 0 0.5px #0d1424) drop-shadow(0 1px 2px rgba(16, 24, 48, 0.45)); }
html.night .brand img { filter: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 9px 13px; border-radius: 999px; color: var(--ink-2); font-size: 0.9rem; font-weight: 550; text-decoration: none; transition: background-color 140ms, color 140ms; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
html.night .nav-pill { background: rgba(22, 26, 36, 0.55); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
html.night .brand { color: var(--night-ink); }
html.night .nav-links a { color: var(--night-ink-2); }
html.night .nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--night-ink); }

/* ---------- stage: hero + make it yours ---------- */
.stage { position: relative; height: 420vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; perspective: 1700px; }
.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(36vw, 560px);
  transform: translateY(-46%);
  z-index: 3;
  will-change: transform, opacity;
}
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 34px; }
.cta-meta { margin: 0; color: var(--ink-3); font-size: 0.86rem; line-height: 1.45; }
.hero-right {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: min(54vw, 980px);
  transform: translateY(-44%);
  display: flex;
  flex-direction: column;
  gap: 70px;
}
.device-slot { width: 100%; aspect-ratio: 1.6; }
.device {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--full-w, 80vw);
  aspect-ratio: 1.6;
  z-index: 2;
  transform-origin: 50% 50%;
  will-change: transform;
}
.window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f9;
  box-shadow:
    0 0 0 1px rgba(16, 19, 26, 0.10),
    0 2px 4px rgba(16, 24, 48, 0.08),
    0 24px 48px -12px rgba(16, 24, 48, 0.32),
    0 60px 120px -40px rgba(16, 24, 48, 0.35);
}
.window iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--demo-scale, 0.5));
  background: #f3f5f9;
}
/* a soft placeholder: the live app sharpens out of it on load and between film loops */
.window-still { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 1; pointer-events: none; filter: blur(14px) saturate(1.15); transform: scale(1.06); transition: opacity 500ms; }
.demo-tag {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: opacity 300ms;
}
.keys-wrap { position: relative; z-index: 3; will-change: transform, opacity; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; }
.key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cap {
  position: relative;
  display: grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 6px;
  min-width: 54px;
  height: 54px;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--ink);
  font: 640 1.15rem/1 var(--display);
  font-stretch: 105%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 -3px 0 rgba(16, 19, 26, 0.10),
    inset 0 1px 0 #fff,
    0 1px 1px rgba(16, 19, 26, 0.10),
    0 8px 18px -8px rgba(16, 24, 48, 0.35);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 200ms;
}
.cap small { font: 600 0.72rem/1 var(--text); color: var(--ink-3); letter-spacing: 0.02em; }
.cap-wide { min-width: 76px; }
.what { font-size: 0.78rem; font-weight: 550; color: var(--ink-3); }
.key:hover .cap { box-shadow: inset 0 -3px 0 rgba(16, 19, 26, 0.10), inset 0 1px 0 #fff, 0 1px 1px rgba(16, 19, 26, 0.10), 0 12px 24px -8px rgba(16, 24, 48, 0.42); }
.key.down .cap, .key:active .cap {
  transform: translateY(2px);
  transition-duration: 40ms;
  box-shadow: inset 0 -1px 0 rgba(16, 19, 26, 0.10), inset 0 1px 0 #fff, 0 0 0 3px rgba(34, 89, 230, 0.28), 0 3px 8px -4px rgba(16, 24, 48, 0.35);
  background: linear-gradient(180deg, #fff, rgba(232, 238, 255, 0.85));
}
.key.down .what { color: var(--link); }
.key-si .cap { background: linear-gradient(180deg, rgba(246, 248, 251, 0.95), rgba(201, 209, 220, 0.75)); }
.keys-note { margin: 16px 0 0; min-height: 1.6em; color: var(--ink-2); font-size: 0.92rem; }
.keys-note kbd { font-size: 0.74em; }
.yours-copy {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(30vw, 440px);
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  visibility: hidden;
}
.yours-copy p { margin: 22px 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: 32ch; }
.yours-copy .readout { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@keyframes tick { 0% { background: rgba(34, 89, 230, 0.16); border-color: rgba(34, 89, 230, 0.45); } }
.readout span.tick { animation: tick 900ms var(--ease-out); }
.readout span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- tour ---------- */
.tour { position: relative; height: 460vh; }
.tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.tour-title { position: absolute; left: var(--gutter); top: max(11vh, 96px); z-index: 2; }
.tour-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5vw;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + min(30vw, 480px));
  will-change: transform;
}
.shot { flex: none; width: min(52vw, 900px); margin: 17vh 0 0; }
.shot-frame { position: relative; aspect-ratio: 1.6; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 19, 26, 0.1), 0 30px 60px -20px rgba(16, 24, 48, 0.4); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
html.bend-on .shot-frame { box-shadow: none; }
html.bend-on .shot-frame img { opacity: 0; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; max-width: 60ch; margin-top: 22px; color: var(--ink-2); font-size: 1.02rem; }
.shot figcaption strong { color: var(--ink); margin-left: 6px; }
.bend { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- ribbon ---------- */
.ribbon-host { position: relative; }
.ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.ribbon-host > section { position: relative; z-index: 1; }

/* ---------- inboxes ---------- */
.inboxes { padding: 26vh 0 16vh; }
.inboxes-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.inboxes-copy p { margin: 24px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 1.1rem; }
.streams-col { position: relative; z-index: 2; display: grid; gap: 150px; }
.streams { display: grid; gap: 64px; margin: 0; padding: 0; list-style: none; justify-items: end; }
.merge {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 #fff, var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  text-align: center;
  transition: box-shadow 500ms var(--ease-out);
}
.merge b { font: 660 1.25rem/1.2 var(--display); font-stretch: 108%; letter-spacing: -0.015em; }
.merge span { color: var(--ink-3); font-size: 0.88rem; }
.merge.lit { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(34, 89, 230, 0.14), 0 14px 34px -10px rgba(34, 89, 230, 0.5); }
.stream { display: grid; justify-items: end; gap: 2px; padding: 12px 18px; border-radius: 16px; background: var(--glass-fill); border: 1px solid var(--glass-rim); box-shadow: inset 0 1px 0 #fff, var(--glass-shadow); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); text-align: right; }
.stream-name { font: 640 1.15rem/1.2 var(--display); font-stretch: 105%; letter-spacing: -0.01em; }
.stream-how { color: var(--ink-3); font-size: 0.88rem; }
.stream-soon { background: rgba(255, 255, 255, 0.3); border-style: dashed; border-color: rgba(16, 19, 26, 0.25); box-shadow: none; }
.streams-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }

/* ---------- Khinoa SI ---------- */
.si { padding: 24vh 0 26vh; color: var(--night-ink); }
html:not(.js) .si { background: var(--night); }
.split-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 660;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.split-title .w { display: inline-block; will-change: transform, opacity, filter; }
.si-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 6vw; margin-top: 12vh; align-items: start; }
.si-lede { margin: 0; max-width: 36ch; color: var(--night-ink); font-size: 1.25rem; line-height: 1.5; }
.facts { margin: 44px 0 0; display: grid; gap: 26px; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.facts dt { font: 640 1rem/1.4 var(--display); font-stretch: 105%; color: var(--night-ink); }
.facts dd { margin: 0; color: var(--night-ink-2); }
.si kbd { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: var(--night-ink); }
.si-chat {
  position: relative;
  border-radius: 20px;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 700px;
}
.si-chat-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.98rem; }
.si-orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #1b1f28;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, rgba(255, 255, 255, 0) 1px 4px, rgba(0, 0, 0, 0.08) 5px, rgba(255, 255, 255, 0) 6px),
    linear-gradient(160deg, #f4f6f9, #b9c2cf 55%, #8e99aa);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 24px rgba(201, 209, 220, 0.35);
}
.si-orb .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.beta { padding: 3px 7px; border-radius: 6px; background: rgba(201, 209, 220, 0.16); color: var(--steel); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.replay { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--night-ink-2); cursor: pointer; transition: background-color 140ms, color 140ms; }
.replay:hover { background: rgba(255, 255, 255, 0.08); color: var(--night-ink); }
.si-log { display: grid; gap: 14px; margin: 0; padding: 18px 2px 0; list-style: none; }
.si-log li { animation: rise 420ms var(--ease-out) both; }
.msg-you { justify-self: end; max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: rgba(201, 209, 220, 0.16); color: var(--night-ink); }
.msg-step { display: flex; align-items: center; gap: 8px; color: var(--night-ink-2); font-size: 0.86rem; }
.msg-step::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 10px var(--steel); }
.msg-si { color: var(--night-ink); white-space: pre-line; line-height: 1.55; }
.msg-si .caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; border-radius: 2px; background: var(--steel); animation: blink 1s steps(2) infinite; }
.draft { margin: 4px -18px 0; padding: 16px 18px 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.035); color: var(--night-ink); }
.draft dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 0.86rem; }
.draft dt { color: var(--night-ink-2); }
.draft dd { margin: 0; color: var(--night-ink); }
.draft p { margin: 0; white-space: pre-line; font-size: 0.95rem; line-height: 1.6; color: var(--night-ink); }
.draft-actions { display: flex; gap: 8px; margin-top: 14px; }
.draft-actions span { padding: 8px 14px; border-radius: 9px; font-size: 0.86rem; font-weight: 600; }
.draft-actions span:first-child { background: var(--cobalt); color: #fff; }
.draft-actions span + span { color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { to { opacity: 0; } }

/* ---------- speed ---------- */
.speed { padding: 30vh 0 18vh; }
.speed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; margin-top: 8vh; align-items: start; }
.speed-lede { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 1.15rem; }
.corner {
  position: relative;
  height: 260px;
  margin-top: 40px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(16, 19, 26, 0.10)),
    radial-gradient(45% 60% at 0% 8%, #6f7cff, transparent 70%), radial-gradient(40% 60% at 100% 12%, #8b5cf6, transparent 70%), radial-gradient(50% 60% at 4% 100%, #ff5c7a, transparent 70%), radial-gradient(45% 55% at 100% 100%, #f9738a, transparent 70%), linear-gradient(165deg, #1e1b4b, #35194a 55%, #4a1631);
  box-shadow: 0 0 0 1px rgba(16, 19, 26, 0.1), 0 30px 60px -24px rgba(16, 24, 48, 0.45);
}
.popup {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100% - 36px));
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: rgba(250, 251, 253, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  transform: translateY(150%);
  opacity: 0;
}
.popup img { border-radius: 5px; filter: drop-shadow(0 0 0.5px #10131a) drop-shadow(0 0 0.5px #10131a) drop-shadow(0 1px 1.5px rgba(16, 24, 48, 0.5)); }
.popup-text { display: grid; min-width: 0; font-size: 0.88rem; line-height: 1.35; }
.popup-text b { color: var(--ink); }
.popup-text span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popup-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--cobalt); color: #fff; font: 600 0.84rem/1 var(--text); white-space: nowrap; cursor: pointer; transition: background-color 160ms, transform 120ms var(--ease-out); }
.popup-copy:hover { background: var(--cobalt-hi); }
.popup-copy:active { transform: scale(0.97); }
.popup-copy.done { background: #1f8f5c; }
.keyboard-sheet {
  padding: 26px 28px 18px;
  border-radius: 22px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 0 #fff, var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.keyboard-sheet h3 { margin: 0 0 10px; font: 640 1.05rem/1.2 var(--display); font-stretch: 105%; }
.keymap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0; }
.keymap div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); }
.keymap dt { order: 2; white-space: nowrap; }
.keymap dd { margin: 0; color: var(--ink-2); font-size: 0.93rem; }

/* ---------- privacy ---------- */
.private { padding: 22vh 0 18vh; }
.vows { display: grid; gap: 4.5vh; margin: 7vh 0 0; padding: 0; list-style: none; max-width: 980px; }
.vows li { font: 500 clamp(1.25rem, 2.1vw, 1.85rem)/1.32 var(--display); font-stretch: 102%; letter-spacing: -0.015em; color: var(--ink-2); text-wrap: pretty; }
.vows b { color: var(--ink); font-weight: 680; }
.google-note { max-width: 70ch; margin: 9vh 0 0; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 0.9rem; }

/* ---------- close ---------- */
.close { padding: 26vh 0 24vh; text-align: center; }
.close-inner { display: grid; justify-items: center; }
.close-title { font-size: clamp(3rem, 6.6vw, 6rem); }
.close .btn-xl { margin-top: 48px; }
.close .cta-meta { margin-top: 18px; }
.close-help { margin: 28px 0 0; }
.close-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.close-help a:hover { text-decoration: underline; }
#close-btn.docked { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 6px rgba(34, 89, 230, 0.16), 0 16px 40px -6px rgba(34, 89, 230, 0.75); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 0.88rem; color: var(--ink-2); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; letter-spacing: 0.02em; }
.foot-brand img { border-radius: 6px; filter: drop-shadow(0 0 0.5px #0d1424) drop-shadow(0 0 0.5px #0d1424) drop-shadow(0 1px 2px rgba(16, 24, 48, 0.45)); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--link); text-decoration: underline; }
.foot-legal { width: 100%; margin: 0; color: var(--ink-3); font-size: 0.8rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .stage { height: auto; }
  .stage-sticky { position: relative; height: auto; overflow: visible; padding: 100px var(--gutter) 64px; perspective: none; }
  .hero-copy, .hero-right, .yours-copy { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; }
  .hero-right { margin-top: 48px; }
  .device { position: relative; width: 100%; transform: none !important; }
  .device-slot { display: none; }
  .yours-copy { opacity: 1; visibility: visible; margin-top: 88px; width: auto; }
  .tour { height: auto; padding: 12vh 0 4vh; }
  .tour-sticky { position: relative; height: auto; overflow: visible; }
  .tour-title { position: relative; left: auto; top: auto; margin: 0 var(--gutter) 40px; }
  .tour-track { position: relative; height: auto; flex-direction: column; align-items: stretch; gap: 64px; padding: 0 var(--gutter); transform: none !important; }
  .shot { width: 100%; margin: 0; }
  html.bend-on .shot-frame img { opacity: 1; }
  .bend { display: none; }
  .inboxes-grid, .si-grid, .speed-grid { grid-template-columns: 1fr; gap: 56px; }
  .streams { justify-items: stretch; gap: 22px; }
  .streams-col { gap: 96px; padding-right: 10px; }
  .stream { justify-items: start; text-align: left; }
}
@media (max-width: 640px) {
  .film-chips li:not(:last-child) { display: none; }
  .lede { font-size: 1.02rem; }
  .btn-lg { --h: 50px; }
  .keys { gap: 8px; }
  .cap { min-width: 44px; height: 46px; padding: 0 10px; font-size: 1rem; border-radius: 11px; }
  .cap-wide { min-width: 60px; }
  .what { font-size: 0.7rem; }
  .facts div { grid-template-columns: 1fr; gap: 6px; }
  .keymap { grid-template-columns: 1fr; }
  .keyboard-sheet { padding: 20px 18px 12px; }
  .corner { height: 220px; }
  .si-chat { min-height: 0; padding: 14px 14px 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
html.reduced .stage { height: auto; }
html.reduced .stage-sticky { position: relative; height: auto; overflow: visible; padding: 130px 0 80px; perspective: none; }
html.reduced .hero-copy, html.reduced .hero-right, html.reduced .yours-copy { position: relative; left: auto; right: auto; top: auto; transform: none; margin-inline: var(--gutter); width: auto; max-width: 980px; }
html.reduced .hero-right { margin-top: 56px; }
html.reduced .device { position: relative; width: 100%; transform: none !important; }
html.reduced .device-slot { display: none; }
html.reduced .yours-copy { opacity: 1; visibility: visible; margin-top: 96px; }
html.reduced .tour { height: auto; padding: 12vh 0 4vh; }
html.reduced .tour-sticky { position: relative; height: auto; overflow: visible; }
html.reduced .tour-title { position: relative; left: auto; top: auto; margin: 0 var(--gutter) 40px; }
html.reduced .tour-track { position: relative; height: auto; flex-direction: column; align-items: stretch; gap: 64px; padding: 0 var(--gutter); max-width: 1100px; transform: none !important; }
html.reduced .shot { width: 100%; margin: 0; }
html.reduced .popup { transform: none; opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .nav-pill, .stream, .keyboard-sheet, .readout span, .popup { background: #f7f8fa; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.night .nav-pill { background: #161a24; }
}

/* ---------- inner pages: download, legal, 404 ---------- */
.page main { padding-top: 132px; }
.dl-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5vw; align-items: center; min-height: calc(100svh - 132px); padding-bottom: 8vh; }
.dl .lede { max-width: 38ch; }
.specs { display: grid; gap: 0; margin: 40px 0 0; max-width: 520px; }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); }
.specs dt { font-weight: 650; color: var(--ink); }
.specs dd { margin: 0; color: var(--ink-2); }
.dl-shot { margin: 0; }
.dl-shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(16, 19, 26, 0.12), 0 30px 70px -24px rgba(16, 24, 48, 0.45); }
.dl-shot figcaption { margin-top: 14px; color: var(--ink-3); font-size: 0.88rem; }
.dl-steps, .dl-news { padding: 12vh 0 0; }
.dl-intro { max-width: 52ch; margin: 22px 0 0; color: var(--ink-2); font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 6vw; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 22px; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(step); position: absolute; right: 0; top: 16px; font: 640 2.6rem/1 var(--display); font-stretch: 112%; color: rgba(16, 19, 26, 0.16); }
.steps h3 { margin: 0 3.5rem 10px 0; font: 640 1.3rem/1.25 var(--display); font-stretch: 105%; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.dl-news { padding-bottom: 16vh; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 4vw; margin-top: 44px; }
.news h3 { margin: 0 0 8px; font: 640 1.05rem/1 var(--display); font-stretch: 105%; color: var(--cobalt-deep); font-variant-numeric: tabular-nums; }
.news p { margin: 0; color: var(--ink-2); }

.doc-page { width: min(1120px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: 14vh; }
.doc-head { padding: 4vh 0 0; }
.doc-meta { margin: 14px 0 0; color: var(--ink-3); font-size: 0.92rem; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.doc-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--glass-fill); border: 1px solid var(--glass-rim); color: var(--ink-2); font-size: 0.88rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.doc-tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.8); }
.doc-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--glass-shadow);
  font-size: 1.02rem;
  line-height: 1.65;
}
.doc > * { max-width: 72ch; }
.doc h2 { margin: 2.2em 0 0.5em; font: 640 1.35rem/1.25 var(--display); font-stretch: 104%; letter-spacing: -0.015em; color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.6em 0 0.4em; font: 640 1.08rem/1.3 var(--display); font-stretch: 104%; }
.doc p, .doc li { color: var(--ink-2); }
.doc .lead { font-size: 1.12rem; color: var(--ink); }
.doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 0.35em; }
.doc table { width: 100%; max-width: none; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 650; white-space: nowrap; }
.doc .note { padding: 14px 16px; border-radius: 12px; background: rgba(34, 89, 230, 0.07); color: var(--ink-2); }
.doc pre { max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 Consolas, "Cascadia Mono", monospace; color: var(--ink-2); }

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: start; padding: 0 var(--gutter); }
.lost .lede { max-width: 40ch; }

@media (max-width: 1080px) {
  .dl-hero { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page main { padding-top: 104px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .doc { border-radius: 16px; font-size: 0.98rem; }
}

/* ---------- night sky: surfaces that were white glass ---------- */
html[data-sky="night"] .nav-pill { background: rgba(14, 20, 38, 0.55); border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -8px rgba(0, 0, 0, 0.6); }
html[data-sky="night"] .nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
html[data-sky="night"] .brand img, html[data-sky="night"] .foot-brand img { filter: none; }
html[data-sky="night"] kbd { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: var(--ink); }
html[data-sky="night"] .cap { color: var(--ink); background: linear-gradient(180deg, rgba(60, 72, 104, 0.75), rgba(22, 30, 54, 0.7)); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -8px rgba(0, 0, 0, 0.6); }
html[data-sky="night"] .cap::after { mix-blend-mode: screen; opacity: 0.22; }
html[data-sky="night"] .key.down .cap, html[data-sky="night"] .key:active .cap { background: linear-gradient(180deg, rgba(80, 100, 150, 0.85), rgba(34, 50, 92, 0.8)); }
html[data-sky="night"] .key-si .cap { background: linear-gradient(180deg, rgba(110, 120, 140, 0.7), rgba(40, 46, 60, 0.7)); }
html[data-sky="night"] .stream, html[data-sky="night"] .merge, html[data-sky="night"] .keyboard-sheet { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--glass-shadow); }
html[data-sky="night"] .stream-soon { background: rgba(16, 24, 46, 0.3); border-color: rgba(255, 255, 255, 0.25); }
html[data-sky="night"] .foot { background: rgba(8, 12, 26, 0.5); border-top-color: rgba(255, 255, 255, 0.1); }
html[data-sky="night"] .doc { background: rgba(14, 20, 38, 0.86); border-color: rgba(255, 255, 255, 0.12); }
html[data-sky="night"] .doc-tabs a[aria-current="page"], html[data-sky="night"] .doc-tabs a[aria-current="page"]:hover { background: #eef1f7; border-color: #eef1f7; color: #0c1630; }
html[data-sky="night"] .doc .note { background: rgba(157, 184, 255, 0.1); }
html[data-sky="night"] .steps li::before { color: rgba(255, 255, 255, 0.16); }
html[data-sky="night"] .news h3 { color: var(--link); }
html[data-sky="night"] .window { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 60px 120px -40px rgba(0, 0, 0, 0.6); }
html[data-sky="night"] { scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }
html[data-sky="night"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border: 3px solid transparent; background-clip: padding-box; }

/* ---------- the hero film ---------- */
/* The window is drawn at full size and scaled down on the stage; --inv undoes that scale for the film's own labels,
   so the chips, the pause control and the demo label always read at their real size. */
.device { --inv: 1; }
.film-chips {
  position: absolute;
  right: 0;
  bottom: 100%;
  z-index: 4;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 10px;
  width: calc(100% / var(--inv));
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  pointer-events: none;
  transform: scale(var(--inv));
  transform-origin: 100% 100%;
}
.film-chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #14171f;
  font: 600 14px/1.2 var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 48, 0.12), 0 14px 30px -10px rgba(16, 24, 48, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  animation: chip-in 520ms var(--ease-out) both;
}
html[data-sky="night"] .film-chips li { background: rgba(18, 26, 48, 0.8); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); }
.film-chips li.out { animation: chip-out 360ms ease both; }
.film-chips .tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(34, 89, 230, 0.55);
  color: var(--cobalt);
}
html[data-sky="night"] .film-chips .tick { color: var(--link); border-color: rgba(157, 184, 255, 0.6); }
.film-chips .tick .icon { width: 14px; height: 14px; stroke-width: 2.2; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(4px); } }
@keyframes chip-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
.device-meta {
  position: absolute;
  left: 0;
  top: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: calc(100% / var(--inv));
  padding-top: 14px;
  transform: scale(var(--inv));
  transform-origin: 0 0;
}
.film-bar { display: flex; align-items: center; gap: 10px; }
.device-meta .demo-tag { position: static; margin: 0; color: var(--ink-2); }
.device-meta .demo-tag::before { content: "·"; margin-right: 18px; color: var(--ink-3); }
.film-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.film-btn:hover { color: var(--ink); }
.film-btn .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.film-state { color: var(--ink-2); font-size: 0.82rem; }
.window.fading iframe { opacity: 0; transition: opacity 400ms; }
.window iframe { transition: opacity 500ms; }

/* ---------- why ---------- */
.why { position: relative; padding: 20vh 0 8vh; }
.why-lede { max-width: 52ch; margin: 26px 0 0; color: var(--ink-2); font-size: 1.15rem; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 4vw; margin: 9vh 0 0; padding: 0; list-style: none; }
.benefits li { padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 1.02rem; }
.benefits b { display: block; margin-bottom: 10px; color: var(--ink); font: 640 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--display); font-stretch: 106%; letter-spacing: -0.02em; }

@media (max-width: 1080px) {
  /* one round button that steps through day, evening and night, beside the nav */
  .sky-toggle { top: max(19px, env(safe-area-inset-top)); right: 12px; grid-template-columns: 32px; }
  .sky-toggle button:not([aria-checked="true"]) { display: none; }
  .sky-knob { transform: none !important; }
  .benefits { grid-template-columns: 1fr; }
  .device { margin-top: 84px; }
  .device-meta { position: static; transform: none; width: auto; flex-wrap: wrap; padding-top: 12px; }
  .device-meta .demo-tag { width: 100%; }
  .device-meta .demo-tag::before { display: none; }
  .film-chips { transform: none; width: auto; left: 0; padding-bottom: 12px; }
  .film-chips li { padding: 7px 11px 7px 9px; font-size: 13px; border-radius: 11px; }
  .film-chips .tick { width: 17px; height: 17px; border-radius: 5px; }
}
@media (prefers-reduced-transparency: reduce) {
  .sky-toggle { background: #f7f8fa; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-sky="night"] .sky-toggle, html[data-sky="night"] .nav-pill { background: #121a30; }
}

html[data-sky="night"] .doc-tabs a:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
html[data-sky="night"] .window, html[data-sky="night"] .window iframe { background: #17191f; }
html[data-sky="night"] .cap small { color: var(--ink-2); }

/* ---------- live wallpapers ---------- */
.live { position: relative; padding: 20vh 0 8vh; }
.live-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); column-gap: 5vw; row-gap: 0; }
.live-copy { grid-column: 1; grid-row: 1; align-self: end; }
.live-stage { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.live-pick { grid-column: 1; grid-row: 2; align-self: start; }
.live-copy p { margin: 22px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 1.08rem; }
.walls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; margin-top: 34px; }
.wall {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--glass-rim);
  border-radius: 16px;
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms;
}
.wall:active { transform: scale(0.98); transition-duration: 60ms; }
.wall[aria-checked="true"] { box-shadow: 0 0 0 2px var(--cobalt), inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--glass-shadow); }
.wall-thumb { position: relative; flex: none; width: 66px; height: 42px; overflow: hidden; border-radius: 10px; background: #0c0e13 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.wall[aria-checked="true"] .wall-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: wall-play 2.4s linear infinite;
}
@keyframes wall-play { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.wall-live { background: radial-gradient(60% 80% at 20% 30%, #6f7cff, transparent 70%), radial-gradient(60% 80% at 80% 60%, #ff5c7a, transparent 70%), radial-gradient(50% 70% at 50% 100%, #22d3a6, transparent 70%), linear-gradient(160deg, #10163f, #33122a); background-size: 200% 200%; animation: wall-drift 9s ease-in-out infinite alternate; }
@keyframes wall-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.wall-koda { background: radial-gradient(70% 90% at 10% 10%, #8fb0ff, transparent 70%), radial-gradient(60% 80% at 90% 90%, #f5c2d8, transparent 70%), #f3f5f9; }
.wall-name { display: grid; gap: 1px; font-weight: 640; font-size: 0.95rem; line-height: 1.2; }
.wall-name small { color: var(--ink-3); font-size: 0.78rem; font-weight: 500; }
.live-fine { color: var(--ink-3); font-size: 0.85rem !important; }
.live-stage { position: relative; }
.live-window { aspect-ratio: 1.6; width: 100%; transform: perspective(1800px) rotateY(7deg) rotateX(3deg); transform-origin: 30% 50%; }
.live-tag { margin: 14px 0 0; text-align: right; color: var(--ink-2); font-size: 0.82rem; }
@media (max-width: 1080px) {
  .live-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .live-copy, .live-stage, .live-pick { grid-column: 1; grid-row: auto; }
  .live-pick .walls { margin-top: 0; }
  .live-window { transform: none; }
  .walls { max-width: none; }
}
@media (max-width: 420px) {
  .walls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .live-window { transform: none; }
}

/* ---------- your own wallpaper ---------- */
.wall-own { grid-column: 1 / -1; border-style: dashed; border-color: rgba(34, 89, 230, 0.45); }
html[data-sky="night"] .wall-own { border-color: rgba(157, 184, 255, 0.45); }
.wall-plus { display: grid; place-items: center; background: rgba(255, 255, 255, 0.55) center / cover no-repeat; color: var(--cobalt); }
html[data-sky="night"] .wall-plus { background-color: rgba(255, 255, 255, 0.08); color: var(--link); }
.wall-plus .icon { width: 22px; height: 22px; stroke-width: 2; }
.wall-plus.has-file .icon { display: none; }
.wall-own .wall-name small { white-space: normal; }
.own-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: own; }
.own-steps li { counter-increment: own; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 0.84rem; line-height: 1.35; }
.own-steps li span { display: flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 650; font-size: 0.86rem; }
.own-steps li span::before { content: counter(own); display: grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 0.7rem; font-weight: 700; }
.own-steps kbd { font-size: 0.72rem; }
.drop-hint {
  position: absolute;
  inset: 0 0 34px 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(20, 40, 90, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}
.drop-hint[hidden] { display: none; }
.drop-hint .icon { width: 34px; height: 34px; stroke-width: 1.8; }
.drop-hint b { font: 650 1.3rem/1.2 var(--display); font-stretch: 106%; }
.drop-hint span { font-size: 0.9rem; opacity: 0.9; }
@media (max-width: 640px) {
  .own-steps { grid-template-columns: 1fr; }
}

/* ---------- Professional: matte black type, no pill; light at night so it stays readable on dark glass ---------- */
.nav-links a.nav-pro { color: #141414; font-weight: 650; white-space: nowrap; }
.nav-links a.nav-pro:hover { background: none; color: #141414; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
html.night .nav-links a.nav-pro, html.night .nav-links a.nav-pro:hover { background: none; color: var(--night-ink); }
html[data-sky="night"] .nav-links a.nav-pro, html[data-sky="night"] .nav-links a.nav-pro:hover { background: none; color: var(--ink); }
/* the other links fold away on small screens; Professional stays */
@media (max-width: 1080px) {
  .nav-links { display: flex; margin-left: auto; }
  .nav-links a:not(.nav-pro) { display: none; }
}
@media (max-width: 400px) {
  .nav-links a.nav-pro { padding-inline: 11px; }
}
/* Professional page: blank for now */
.pro-page { min-height: 100vh; min-height: 100svh; }
/* phones: the nav centres in the room left of the round sky button, and the brand keeps just its mark */
@media (max-width: 560px) {
  .nav { padding-inline: 12px 60px; }
}
@media (max-width: 460px) {
  .brand { padding-right: 4px; }
  .brand span { display: none; }
}
@media (max-width: 350px) {
  .nav { padding-inline: 8px 54px; }
  .nav-pill { gap: 4px; }
  .brand { padding-right: 0; }
  .nav-links a.nav-pro { padding-inline: 9px; }
  .nav-pill .btn-sm { padding: 0 11px; }
}

/* ---------- tools: the side panel's toolbox, live ---------- */
.tools { position: relative; padding: 20vh 0 8vh; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 6vw; }
.tools-copy { grid-column: 1; grid-row: 1; }
.tools-copy p { margin: 22px 0 0; max-width: 46ch; color: var(--ink-2); font-size: 1.08rem; }
.tools-pick { grid-column: 1; grid-row: 2; }
.tools-stage { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin-top: 34px; }
.tool {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 13px 12px;
  border: 1px solid var(--glass-rim);
  border-radius: 16px;
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms;
}
.tool:active { transform: scale(0.98); transition-duration: 60ms; }
.tool[aria-checked="true"] { box-shadow: 0 0 0 2px var(--tint), inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--glass-shadow); }
.tool .tool-mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--tint) 16%, rgba(255, 255, 255, 0.7)); color: var(--tint); }
html[data-sky="night"] .tool .tool-mark { background: color-mix(in srgb, var(--tint) 30%, transparent); color: color-mix(in srgb, var(--tint) 55%, #fff); }
.tool .tool-mark .icon { width: 19px; height: 19px; stroke-width: 1.7; }
.tool-text { display: grid; gap: 3px; min-width: 0; }
.tool-text b { font-weight: 650; font-size: 0.98rem; line-height: 1.2; }
.tool-text span { color: var(--ink-2); font-size: 0.84rem; line-height: 1.35; }
/* the window shows only the app's side panel, at its real size: site.js measures the panel inside the demo */
.panel-window { --s: 1.08; width: calc(var(--pw, 304px) * var(--s)); height: calc(var(--ph, 650px) * var(--s)); }
.panel-window iframe { left: calc(var(--px, 976px) * var(--s) * -1); top: calc(var(--py, 50px) * var(--s) * -1); transform: scale(var(--s)); }
.tools-stage .live-tag { text-align: center; }
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .tools-copy, .tools-pick, .tools-stage { grid-column: 1; grid-row: auto; }
  .tools-stage { justify-self: center; }
  .tool-list { margin-top: 0; max-width: none; }
}
/* phones: compact buttons (icon and name), so the live panel sits right under them */
@media (max-width: 640px) {
  .tool-list { gap: 8px; }
  .tool { align-items: center; gap: 9px; padding: 8px 10px 8px 8px; border-radius: 13px; }
  .tool .tool-mark { width: 30px; height: 30px; border-radius: 9px; }
  .tool-text span { display: none; }
  .tool-text b { font-size: 0.9rem; }
}

/* ---------- safe, and yours ---------- */
.private-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7vh 5vw; margin-top: 7vh; }
.vows-head { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--hair); color: var(--ink-3); font-size: 0.82rem; font-weight: 650; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.private-grid .vows { gap: 3.2vh; margin-top: 3.4vh; }
.private-grid .vows li { font-size: clamp(1.08rem, 1.45vw, 1.38rem); }
.safety-shots { grid-column: 1 / -1; display: grid; justify-items: start; gap: 16px; margin: 0; }
.safety-shots img { display: block; width: min(100%, 846px); height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(16, 19, 26, 0.08), 0 18px 40px -16px rgba(16, 24, 48, 0.35); }
.safety-shots figcaption { color: var(--ink-3); font-size: 0.85rem; }
@media (max-width: 860px) {
  .private-grid { grid-template-columns: 1fr; }
}
/* a shorter app window, so the whole side panel fits the card */
.panel-window iframe { height: 720px; }

/* ---------- leaving the sky for space (sky.js adds .to-space on the homepage) ---------- */
.space-warp { position: fixed; inset: 0; z-index: 999; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, #0b1030 0%, #000 70%); opacity: 0; animation: to-space 820ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.space-warp::before { content: ""; position: absolute; inset: -50%; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 35%, #fff, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent), radial-gradient(1.2px 1.2px at 90% 15%, #fff, transparent), radial-gradient(1px 1px at 40% 50%, #fff, transparent); background-size: 260px 260px; animation: stars-rise 820ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes to-space { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 1; } }
@keyframes stars-rise { from { transform: translateY(40%) scale(0.6); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
html.to-space body > *:not(.space-warp) { transition: transform 820ms cubic-bezier(0.65, 0, 0.35, 1), filter 820ms; transform: translateY(18vh) scale(0.96); filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .space-warp, .space-warp::before { animation-duration: 1ms; } html.to-space body > *:not(.space-warp) { transform: none; filter: none; } }
