/* Landing page. Light theme. A dark theme is kept below, opt-in via data-theme="dark".
   Motion uses only opacity, transform and a short blur, never scale. */

/* SF Pro is used where it's installed (Apple devices, or added by hand on
   Windows). Everyone else gets Inter, which is self-hosted and close to it. */
@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #f2f2f4;
  --fg: #111113;
  --fg-2: #5e5e66;
  --fg-3: #94949c;
  --line: rgba(17, 17, 19, 0.09);
  --line-2: rgba(17, 17, 19, 0.06);
  --chip: rgba(17, 17, 19, 0.05);
  --sel: #b8d4fe;
  --accent: #0a6cff;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --glass-edge: rgba(17, 17, 19, 0.08);
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.05), 0 10px 30px -14px rgba(17, 17, 19, 0.16);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 5vw, 32px);
  color-scheme: light;
}

/* Dark theme: off by default; set data-theme="dark" on <html> to use it. */
  :root[data-theme="dark"] {
    --bg: #0a0a0b;
    --bg-soft: #121214;
    --surface: #17171a;
    --fg: #f5f5f7;
    --fg-2: #a1a1a8;
    --fg-3: #6e6e76;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.06);
    --chip: rgba(255, 255, 255, 0.07);
    --sel: #2b4f94;
    --accent: #3d8bff;
    --glass: rgba(32, 32, 36, 0.8);
    --glass-rim: rgba(255, 255, 255, 0.08);
    --glass-edge: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }


/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: 88px;
  overflow-x: clip; interpolate-size: allow-keywords;
}
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--font); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
code, kbd { font-family: inherit; }
kbd {
  display: inline-block; padding: 0 0.4em; border-radius: 5px;
  font-size: 0.8em; font-weight: 500; line-height: 1.55;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line);
  vertical-align: 0.08em;
}
::selection { background: var(--sel); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.mark { width: 28px; height: 28px; flex: none; }
/* Dark theme: off by default; set data-theme="dark" on <html> to use it. */
  :root[data-theme="dark"] .mark { filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.5)); } 


.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 11px; margin-bottom: 20px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  background: var(--chip);
}
.tag i { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }

/* Buttons: a raised face with a light top lip, a hairline edge and a soft
   outer ring. On hover a faint sheen passes over the face. */
.btn {
  --face: linear-gradient(180deg, #2b2d34 0%, #15171c 100%);
  --ink: #ffffff;
  --edge: #0b0c0f;
  --lip: rgba(255, 255, 255, 0.18);
  --ring: rgba(17, 17, 19, 0.07);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  font: 500 14px/1 var(--font); letter-spacing: -0.005em; cursor: pointer;
  color: var(--ink); background: var(--face);
  box-shadow:
    inset 0 1px 0 var(--lip),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--edge),
    0 0 0 4px var(--ring),
    0 1px 2px rgba(17, 17, 19, 0.16),
    0 6px 14px -6px rgba(17, 17, 19, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:hover::after { transform: translateX(110%); }
.btn:active {
  transform: translateY(0.5px); filter: brightness(0.97);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--edge), 0 0 0 4px var(--ring);
}
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-soft {
  --face: linear-gradient(180deg, #ffffff 0%, #f6f6f8 100%);
  --ink: var(--fg);
  --edge: rgba(17, 17, 19, 0.11);
  --lip: #ffffff;
  --ring: rgba(17, 17, 19, 0.045);
}
.btn-soft::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%); }
.btn-soft:hover { filter: none; }
/* Dark theme: off by default; set data-theme="dark" on <html> to use it. */
  :root[data-theme="dark"] .btn {
    --face: linear-gradient(180deg, #ffffff 0%, #e6e6ea 100%);
    --ink: #111113;
    --edge: rgba(255, 255, 255, 0.5);
    --lip: #ffffff;
    --ring: rgba(255, 255, 255, 0.08);
  }
  :root[data-theme="dark"] .btn::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%); }
  :root[data-theme="dark"] .btn-soft {
    --face: linear-gradient(180deg, #232327 0%, #1a1a1d 100%);
    --ink: var(--fg);
    --edge: rgba(255, 255, 255, 0.1);
    --lip: rgba(255, 255, 255, 0.08);
    --ring: rgba(255, 255, 255, 0.04);
  }
  :root[data-theme="dark"] .btn-soft::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%); }

.btn .win { width: 15px; height: 15px; fill: currentColor; }

/* Nav: full width at the top, a compact frosted bar after scrolling */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 20px;
  max-width: 1056px; height: 54px; margin: 0 auto; padding: 0 10px 0 12px;
  border-radius: 14px;
  transition: max-width 0.6s var(--ease), background-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled .nav-bar {
  max-width: 720px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 8px 28px -14px rgba(17, 17, 19, 0.22);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.025em; white-space: nowrap; }
.nav-links { display: flex; gap: 2px; margin-left: auto; font-size: 14px; color: var(--fg-2); }
.nav-links a { padding: 7px 11px; border-radius: var(--r-sm); transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links a:hover { color: var(--fg); background: var(--chip); }
/* No fill-mode: a held animation on .nav would stop the bar's backdrop blur from working. */
.js .nav { animation: navIn 0.9s var(--ease); }
html.loading .nav { animation: none; opacity: 0; }
@keyframes navIn { from { opacity: 0; transform: translateY(-16px); } }

/* Hero */
.hero { padding: clamp(116px, 15vw, 156px) 0 clamp(40px, 6vw, 72px); }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(42px, 8vw, 86px); max-width: 920px; margin: 0 auto; letter-spacing: -0.04em; }
.lede { max-width: 600px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--fg-2); }
.lede kbd { font-size: 0.76em; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fine { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

/* Placeholders: plain surfaces with a small label */
.ph {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
}
.section-soft .ph { background: var(--bg); }
.ph-label, .ph-tag {
  padding: 5px 10px; border-radius: var(--r-sm); white-space: nowrap;
  font-size: 12px; font-weight: 500; color: var(--fg-3);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.section-soft .ph-label { background: var(--bg-soft); }
.ph-label.swap { opacity: 0; transform: translateY(4px); }
.ph-tag { position: absolute; top: 16px; left: 16px; }

/* Hero stage: a desktop scene. The wallpaper fills the stage; .scene is a
   440px-tall canvas that site.js scales to fit, so the chat window, the bar
   and the cursor keep their proportions at every width. */
@font-face {
  font-family: "HAI Montserrat";
  src: url("assets/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
.stage {
  position: relative; overflow: hidden;
  margin-top: clamp(52px, 7vw, 80px);
  border-radius: 8px;
  aspect-ratio: 900 / 440;
  background: #1f2a20 url("assets/hero-forest.jpg?v=14") center top / cover no-repeat;
  background-image: image-set(url("assets/hero-forest.webp?v=14") type("image/webp"), url("assets/hero-forest.jpg?v=14") type("image/jpeg"));
  box-shadow: inset 0 0 0 1px rgba(17, 17, 19, 0.06), var(--shadow);
}
@media (max-width: 700px) {
  .stage {
    background-image: url("assets/hero-forest-1000.jpg?v=14");
    background-image: image-set(url("assets/hero-forest-1000.webp?v=14") type("image/webp"), url("assets/hero-forest-1000.jpg?v=14") type("image/jpeg"));
  }
}
.scene {
  position: absolute; left: 0; top: 0; width: 900px; height: 440px;
  transform-origin: 0 0; transform: scale(var(--k, 1));
  container-type: inline-size;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0; color: #1d1c1d;
}

/* The chat app: a calm, light messaging app with a frosted sidebar that lets
   the wallpaper glow through. Cropped on the right so it reads as a close-up. */
.chat {
  position: absolute; left: 6%; right: -5%; top: 14px; height: 356px;
  display: flex; overflow: hidden;
  border-radius: 10px; background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}
.chat svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar */
.chat-side {
  flex: none; width: 206px; padding: 14px 10px; overflow: hidden;
  background: rgba(244, 244, 247, 0.74);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  color: #3a3a40; font-size: 13.5px;
}
.ws { display: flex; align-items: center; gap: 9px; padding: 2px 6px 12px; }
.ws b { font-size: 14.5px; font-weight: 600; color: #16161a; }
.ws svg { width: 13px; height: 13px; color: #8a8a92; }
.ws-logo {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff8a4c 0%, #ff4f6d 55%, #e2367f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(226, 54, 127, 0.35);
}
.ws-logo svg { width: 15px; height: 15px; fill: #ffffff; stroke: none; }
.side-search {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; margin-bottom: 6px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 12.5px; color: #8a8a92;
}
.side-search svg { width: 13px; height: 13px; }
.side-search span { margin-left: auto; font-size: 11px; color: #a6a6ad; }
.side-h { padding: 12px 8px 5px; font-size: 11.5px; font-weight: 600; color: #8f8f97; }
.side-item { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 8px; border-radius: 8px; white-space: nowrap; }
.side-item > i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.side-item.on { background: #ffffff; color: #16161a; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.count { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 9px; font-size: 11px; font-weight: 600; text-align: center; color: #ffffff; background: #111214; }
.sav { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #ffffff; background: var(--av); }
.sav i { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: #34c37a; box-shadow: 0 0 0 2px #f4f4f7; }
.sav i.away { background: #f4f4f7; box-shadow: inset 0 0 0 1.5px #a6a6ad, 0 0 0 2px #f4f4f7; }

/* Main column */
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { flex: none; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px; border-bottom: 1px solid #f0f0f2; }
.head-title { display: grid; line-height: 1.3; }
.head-title b { font-size: 15px; font-weight: 600; color: #16161a; }
.head-title span { font-size: 12px; color: #8f8f97; }
.head-avs { margin-left: auto; display: flex; }
.head-avs i { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-style: normal; font-weight: 600; color: #ffffff; background: var(--av); box-shadow: 0 0 0 2px #ffffff; }
.chat-ctrls { display: flex; gap: 22px; padding: 0 56px 0 10px; }
.chat-ctrls i { width: 10px; height: 10px; display: block; border: 0 solid #9a9aa2; }
.chat-ctrls .c-min { border-bottom-width: 1px; height: 6px; }
.chat-ctrls .c-max { border-width: 1px; border-radius: 2px; }
.chat-ctrls .c-x { background: linear-gradient(45deg, transparent 46%, #9a9aa2 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #9a9aa2 46% 54%, transparent 54%); }
.feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.feed-inner { padding: 4px 20px 6px; transition: transform 0.5s var(--ease); }
.day { margin: 0 0 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: #a6a6ad; }
.msg { display: flex; gap: 11px; padding: 6px 0; font-size: 14.5px; line-height: 1.45; color: #26262b; }
.msg .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #ffffff; background: var(--av); }
.msg .who { font-weight: 600; font-size: 14px; color: #16161a; }
.msg time { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: #a6a6ad; }
.file { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px 8px 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px #ececef; }
.file-ic { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #ffffff; background: #e5484d; }
.file span:last-child { display: grid; line-height: 1.3; }
.file b { font-size: 13px; font-weight: 600; }
.file small { font-size: 11.5px; color: #8f8f97; }
.react { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 1px 8px; border-radius: 12px; font-size: 12px; color: #3a3a40; background: #f4f4f6; box-shadow: inset 0 0 0 1px #ebebee; }
.msg.new { animation: msgIn 0.5s var(--ease) both; }
.msg.out { opacity: 0; transition: opacity 0.4s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }

/* Composer */
.composer { flex: none; margin: 4px 20px 16px; border-radius: 12px; background: #ffffff; box-shadow: inset 0 0 0 1px #e4e4e8, 0 1px 2px rgba(0, 0, 0, 0.04); }
.compose-text { min-height: 46px; padding: 11px 14px 2px; font-size: 15px; line-height: 1.5; color: #16161a; transition: opacity 0.3s ease, filter 0.3s ease; }
.compose-text:empty::before { content: "Message Launch"; color: #a6a6ad; }
.compose-text.fade { opacity: 0; filter: blur(4px); }
.compose-text span.sel { background: #b3d7ff; }
.compose-caret { display: inline-block; width: 1.5px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #16161a; animation: blink 1s steps(1) infinite; }
.compose-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px 10px; }
.cb-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; color: #8a8a92; }
.compose-send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #ffffff; background: #d9d9de; transition: background-color 0.2s ease; }
.compose-send svg { width: 14px; height: 14px; stroke-width: 1.8; }
.composer.ready .compose-send { background: #111214; }

/* Liquid glass: glass.js draws the bar (same shader as the app) into this
   canvas, 28px larger on each side for the shadow. Without WebGL the CSS
   frosted look below stays. */
.hai-gl { position: absolute; left: -28px; top: -28px; width: calc(100% + 56px); height: calc(100% + 56px); z-index: -1; pointer-events: none; }
.hai.gl { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@container (max-width: 700px) {
  .chat { left: 12px; right: 12px; }
  .chat-side, .head-avs { display: none; }
  .chat-ctrls { padding-right: 0; gap: 18px; }
}

/* 1:1 copy of the app's bar. Sizes and colors match highlight-ai/src/popup.html. */
.hai {
  position: absolute; left: 0; top: 0; width: 460px; max-width: calc(100cqw - 24px);
  padding: 12px 16px 12px 13px; border-radius: 10px;
  font-family: "HAI Montserrat", "Montserrat", sans-serif; color: #1d1d1f;
  background: rgba(244, 244, 247, 0.74);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
              0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 12px 32px -8px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: translate3d(var(--x, 0), calc(var(--y, 0) + 6px), 0);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), opacity 90ms ease-out;
  pointer-events: none;
}
.hai.in { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.hai-row { display: flex; align-items: center; gap: 10px; }
.hai-spark { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.hai-spark svg { width: 13px; height: 13px; fill: currentColor; }
.hai.loading .hai-spark svg { animation: spin 0.9s linear infinite; }
.hai-field { position: relative; flex: 1; min-width: 0; padding: 2px 0; white-space: nowrap; overflow: hidden; font: 400 15px/1.3 "HAI Montserrat", "Montserrat", sans-serif; letter-spacing: -0.01em; }
.hai-ph { position: absolute; left: 0; top: 2px; font-weight: 300; color: rgba(60, 60, 67, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hai-text:not(:empty) ~ .hai-ph { display: none; }
.hai.loading .hai-text { color: rgba(60, 60, 67, 0.55); }
.hai-caret { display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: -3px; background: #0a84ff; opacity: 0; }
.hai.in:not(.loading):not(.done) .hai-caret { animation: blink 1s steps(1) infinite; }
.hai-send {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(60, 60, 67, 0.1); color: rgba(60, 60, 67, 0.45);
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.hai.typed .hai-send, .hai.loading .hai-send, .hai.done .hai-send { background: #1d1d1f; color: #ffffff; }
.hai-send.pressed { animation: press 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.hai-send svg {
  position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease-out;
}
.hai-check { opacity: 0; transform: scale(0.6); }
.hai.loading .hai-arrow { transform: translateY(-16px); opacity: 0; }
.hai.done .hai-arrow { opacity: 0; transform: scale(0.6); }
.hai.done .hai-check { opacity: 1; transform: none; }
.hai-dots { position: absolute; inset: 0; display: flex; gap: 2.5px; align-items: center; justify-content: center; opacity: 0; transition: opacity 160ms ease-out; }
.hai.loading .hai-dots { opacity: 1; transition-delay: 120ms; }
.hai-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; animation: dot 1s ease-in-out infinite; }
.hai-dots i:nth-child(2) { animation-delay: 0.15s; }
.hai-dots i:nth-child(3) { animation-delay: 0.3s; }
.hai-meta { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 0 32px; font-size: 12px; color: rgba(60, 60, 67, 0.7); }
.hai-body { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hai.done .hai-body { font-size: 12.5px; color: #1d1d1f; animation: rise 260ms ease-out; }
.hai-nav { display: none; align-items: center; gap: 1px; margin-top: -1px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(60, 60, 67, 0.6); }
.hai.done .hai-nav { display: flex; }
.hai-nav svg { width: 18px; height: 18px; padding: 4px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hai-nav svg.off { opacity: 0.35; }

/* Mouse cursor and the keys being pressed */
.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 26px; transform: translate3d(var(--cx, 1200px), var(--cy, 420px), 0); will-change: transform; pointer-events: none; }
.cursor svg { position: absolute; left: 0; top: 0; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); transition: opacity 0.12s ease; }
.cur-arrow { width: 16px; height: 24px; fill: #ffffff; stroke: #000000; stroke-width: 1.1; stroke-linejoin: round; }
.cursor .cur-beam { width: 10px; height: 22px; left: -5px; top: -11px; fill: none; stroke: #111111; stroke-width: 1.4; opacity: 0; }
.cursor.beam .cur-beam { opacity: 1; }
.cursor.beam .cur-arrow { opacity: 0; }
.keys { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 8px; }
.keys kbd {
  min-width: 52px; padding: 7px 12px; border-radius: 9px; text-align: center;
  font: 500 13px/1 var(--font); color: #ffffff; vertical-align: 0;
  background: rgba(20, 22, 26, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 0 rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease), box-shadow 0.12s ease;
}
.keys kbd.show { opacity: 1; transform: none; }
.keys kbd.down { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.25); }

@keyframes blink { 50% { opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes press { 0% { transform: scale(1); } 35% { transform: scale(0.86); } 100% { transform: scale(1); } }
@keyframes dot { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-1.5px); } }

/* Statement */
.statement { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(8px, 2vw, 24px); max-width: 980px; }
.statement p { font-size: clamp(26px, 4vw, 44px); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; text-align: center; }
.statement .w { opacity: 0.15; transition: opacity 0.35s ease; }
.statement .w.lit { opacity: 1; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.section-soft { background: var(--bg-soft); }
.split-head {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.split-head h2, .price-head h2, .faq-title { font-size: clamp(34px, 5vw, 56px); }
.split-head > p { font-size: 17px; color: var(--fg-2); max-width: 400px; padding-bottom: 6px; }

/* How it works: steps on the left, one media slot on the right */
.how { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.how-list { display: grid; }
.how-step {
  position: relative; display: flex; gap: 16px; text-align: left;
  padding: 22px 4px 24px; border: 0; background: none; cursor: pointer;
  border-top: 1px solid var(--line);
}
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-n { min-width: 18px; font-size: 14px; font-weight: 500; color: var(--fg-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.how-copy { display: grid; gap: 6px; }
.how-copy b { font-size: 19px; font-weight: 500; letter-spacing: -0.025em; color: var(--fg-3); transition: color 0.3s ease; }
.how-copy span { font-size: 15.5px; line-height: 1.55; color: var(--fg-3); transition: color 0.3s ease; }
.how-step[aria-selected="true"] .how-copy b { color: var(--fg); }
.how-step[aria-selected="true"] .how-copy span { color: var(--fg-2); }
.how-step[aria-selected="true"] .how-n { color: var(--fg); }
.how-prog {
  position: absolute; left: 0; right: 0; top: -1px; height: 1.5px; background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%;
}
.how-step[aria-selected="true"] .how-prog { animation: prog 4.5s linear forwards; }
.how.paused .how-prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }

/* Marquee */
.marquee {
  display: grid; gap: 12px; overflow: hidden; padding: 2px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* Spacing is a right margin, not gap, so -50% lands exactly on the copy */
.marquee-row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee.paused .marquee-row, .marquee:hover .marquee-row { animation-play-state: paused; }
.marquee li {
  display: inline-flex; align-items: center; gap: 12px; flex: none; margin-right: 12px;
  padding: 13px 18px; border-radius: var(--r);
  font-size: 15px; color: var(--fg-2); white-space: nowrap;
  background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-2);
}
.marquee li b { font-weight: 500; color: var(--fg); }
.section-soft .marquee li { background: var(--bg); }
.marquee li.own { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Free: one dark card, slightly lifted, with a soft light from above */
.price-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); }
.price-head > p:not(.tag) { margin: 16px auto 0; max-width: 440px; font-size: 17px; color: var(--fg-2); }

.free-card {
  max-width: 720px; margin: 0 auto; padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-lg); color: #f5f5f7;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.13), transparent 60%),
    linear-gradient(180deg, #1c1d22 0%, #0f1012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 0 1px #0b0c0f, 0 34px 64px -30px rgba(17, 17, 19, 0.6);
}
.free-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.free-title { font-size: 52px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.free-sub { font-size: 15px; color: rgba(245, 245, 247, 0.55); }
.free-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px;
  margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15px; color: rgba(245, 245, 247, 0.78);
}
.free-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.free-list li::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px;
  background: currentColor; opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.free-cta { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 30px; }
.free-cta .btn-soft { --ring: rgba(255, 255, 255, 0.07); --edge: rgba(255, 255, 255, 0.6); }
.free-limit { font-size: 14px; color: rgba(245, 245, 247, 0.72); }
.free-mac { color: rgba(245, 245, 247, 0.45); }
.privacy-line { margin: 20px auto 0; max-width: 520px; text-align: center; font-size: 13.5px; color: var(--fg-3); }

@media (max-width: 560px) {
  .free-list { grid-template-columns: 1fr; }
  .free-cta .btn { width: 100%; }
  .free-limit { text-align: center; width: 100%; }
}

/* FAQ */
.faq-title { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 19px 2px; cursor: pointer; list-style: none;
  font-size: clamp(16.5px, 2vw, 18.5px); font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--fg-3);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 40px 24px 2px; color: var(--fg-2); }

/* Closing CTA */
.final { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 120px); text-align: center; }
.final-title { font-size: clamp(34px, 6vw, 68px); line-height: 1.2; max-width: 860px; margin: 0 auto; }
.final .actions { margin-top: 36px; }
.keycap {
  display: inline-grid; place-items: center; vertical-align: 0.06em;
  height: 1.1em; padding: 0 0.3em; margin: 0 0.04em;
  border-radius: 0.18em;
  font-size: 0.8em; font-weight: 500; letter-spacing: -0.02em; color: #f5f5f7;
  background: linear-gradient(180deg, #3a3b40, #18191c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0.09em 0 #050506, 0 0.16em 0.4em -0.06em rgba(0, 0, 0, 0.45);
  transform: translateY(-0.04em);
}
.keycap span { display: block; transform: translateY(-0.02em); }
.final-title.in .keycap { animation: press 3.2s var(--ease) 1.4s infinite; }
@keyframes press {
  0%, 30%, 100% { transform: translateY(-0.04em); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0.09em 0 #050506, 0 0.16em 0.4em -0.06em rgba(0, 0, 0, 0.45); }
  8%, 22% { transform: translateY(0.03em); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0.02em 0 #050506, 0 0.06em 0.2em -0.06em rgba(0, 0, 0, 0.45); }
}

/* Headline: the word after "any" changes every couple of seconds */
.rot { white-space: nowrap; }
.rot-track { position: relative; display: inline-block; vertical-align: bottom; transition: width 0.55s var(--ease); }
.rot-sizer { visibility: hidden; }
.rot-word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(0.32em); filter: blur(6px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease), filter 0.45s ease;
}
.rot-word.on { opacity: 1; transform: none; filter: blur(0); }
.rot-word.off { opacity: 0; transform: translateY(-0.32em); filter: blur(6px); }
.br-m { display: none; }
@media (max-width: 640px) { .br-m { display: inline; } }

/* How it works: a sentence on its own, highlighted and rewritten */
.how-media { display: grid; place-items: center; min-height: 300px; }
.mini { position: relative; width: min(460px, 100%); padding: 24px 0 64px; }
.mini-text { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -0.02em; color: var(--fg); transition: opacity 0.3s ease, filter 0.3s ease; }
.mini-text.fade { opacity: 0; filter: blur(5px); }
.mini-text span.sel { background: var(--sel); }
.mini .hai-static { position: relative; width: 100%; max-width: 100%; margin-top: 14px; }
.mini .hai-static:not(.gl) { background: rgba(246, 246, 248, 0.92); }
.mini .cursor { transform: translate3d(var(--cx, 520px), var(--cy, 220px), 0); }
.mini-keys { right: 0; bottom: 0; }
.mini-keys kbd { background: rgba(20, 22, 26, 0.82); }

/* Apps row: white tiles drifting by in a gentle wave */
.app-row {
  overflow: hidden; padding: 40px 0 50px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.app-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.app-row.paused .app-track, .app-row:hover .app-track { animation-play-state: paused; }
.app-track li { flex: none; margin-right: 44px; transform: translateY(var(--wave, 0)); }
.app-ic { display: block; width: 64px; height: 64px; object-fit: contain; }

/* Closing keycap: presses with the real Ctrl key, or a click */
.keycap { cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.final-title .keycap.down {
  animation: none;
  transform: translateY(0.05em);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0.02em 0 #050506, 0 0.05em 0.15em -0.05em rgba(0, 0, 0, 0.45);
}
@media (hover: none) { .ctrl-hint { display: none; } }

/* Loading screen */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; align-content: center; justify-items: center; gap: 26px;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s;
  animation: loaderSafety 0s 4s forwards; /* never stays up longer than 4s */
}
html:not(.loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.loader-mark { width: 72px; height: 72px; animation: capTap 1.4s var(--ease) infinite; }
@keyframes capTap { 0%, 55%, 100% { transform: translateY(0); } 25%, 35% { transform: translateY(3px); } }
.loader-bar { width: 132px; height: 3px; border-radius: 2px; overflow: hidden; background: var(--chip); }
.loader-bar i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0.08)); transition: transform 0.35s var(--ease); }

/* Phone notes */
.phone-note { display: none; margin-top: 6px; font-size: 13px; color: var(--fg-3); }
@media (hover: none) and (pointer: coarse) { .phone-note { display: block; } }
.mini-step { display: none; position: absolute; left: 0; bottom: 4px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
@media (max-width: 900px) {
  .how-media { min-height: 0; }
  .mini { padding: 4px 0 56px; }
  .mini-step { display: block; }
}
@media (max-width: 640px) {
  .app-ic { width: 50px; height: 50px; }
  .app-track li { margin-right: 30px; }
  .app-row { padding: 30px 0 38px; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--fg-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot .brand { color: var(--fg); }
.foot-privacy { max-width: 420px; margin-top: 16px; line-height: 1.6; }
.foot-privacy strong { color: var(--fg); font-weight: 500; }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col p { font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.foot-col a { width: fit-content; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-3); }

/* Sign-in sheet */
.sheet {
  width: min(380px, calc(100% - 32px)); padding: 34px 30px 26px; border: 0; border-radius: var(--r-lg);
  text-align: center; color: var(--fg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 30px 80px -20px rgba(0, 0, 0, 0.35);
}
.sheet::backdrop { background: rgba(10, 10, 12, 0.28); }
.sheet[open] { animation: sheetIn 0.5s var(--ease); }
.sheet[open]::backdrop { animation: fade 0.3s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.mark-lg { width: 52px; height: 52px; margin: 0 auto 14px; display: block; }
.sheet h2 { font-size: 21px; letter-spacing: -0.03em; }
.sheet h2:focus { outline: none; }
.sheet p { margin: 10px 0 22px; font-size: 15px; color: var(--fg-2); }
.sheet form { margin: 0; }

/* ------------------------------------------------------------------ */
/* Motion. Hidden states apply only when JS runs; .in reveals.         */
/* ------------------------------------------------------------------ */
.js [data-anim] {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-anim].in { opacity: 1; transform: none; filter: blur(0); }
.js [data-anim].settled { filter: none; transition: none; }

/* Split text: each word (or letter) rises and straightens */
[data-split] .w { display: inline-block; white-space: nowrap; }
.js [data-split] .p {
  display: inline-block; opacity: 0; filter: blur(6px);
  transform: translateY(0.36em) rotate(4deg); transform-origin: 0 70%;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-split].in .p { opacity: 1; filter: blur(0); transform: none; }
.js [data-split].settled .p { filter: none; transition: none; }

/* Responsive */
@media (max-width: 900px) {
  .split-head, .how { grid-template-columns: 1fr; }
  .split-head { gap: 16px; }
  .split-head > p { padding-bottom: 0; }
  .how-media { order: -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-bar { justify-content: space-between; }
  .nav.scrolled .nav-bar { max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .actions .btn { width: 100%; }
  .marquee li { padding: 11px 15px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim], .js [data-split] .p { opacity: 1; transform: none; filter: none; transition: none; }
  .js .nav { animation: none; }
  .marquee-row { animation: none; }
  .app-track { animation: none; }
  .statement .w { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
