/* Corvo's site. Two themes from the logo, each 60 / 30 / 10:
   light: fog (60%), the crow's ink (30%: text, dark bands, buttons), ember (10%: accents);
   dark:  night (60%), slate surfaces (30%), ember (10%).
   The crow's cyan eye is only for "alive" things: Nova listening, progress, focus. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #e8ebf1;
  --bg-2: #dde2ea;
  --surface: #f5f7fa;
  --line: #c9d0dc;
  --text: #182033;
  --muted: #4a5468;
  --band: #182033;
  --band-2: #222b40;
  --band-line: #343e56;
  --band-text: #e6eaf2;
  --band-muted: #a8b1c4;
  --accent: #e2592a;
  --primary: #182033;
  --primary-hover: #26304a;
  --on-primary: #f5f7fa;
  --crow: #182033;
  --crow-line: #3a4560;
  --eye: #2fe0cc;
  --shadow: 0 18px 40px -22px rgba(24, 32, 51, 0.45);
  --spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-s: 10px;
  --radius-m: 18px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: "Bricolage", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

/* Dark: chosen, or the system's when nothing was chosen. */
:root[data-theme="dark"] {
  --bg: #0e131f;
  --bg-2: #121827;
  --surface: #1b2334;
  --line: #2b3448;
  --text: #e6eaf2;
  --muted: #9aa4b8;
  --band: #141b2a;
  --band-2: #1e2638;
  --band-line: #2f3a52;
  --band-text: #e6eaf2;
  --band-muted: #9aa4b8;
  --accent: #ff7a45;
  --primary: #ff7a45;
  --primary-hover: #ff8e60;
  --on-primary: #0e131f;
  --crow: #e6eaf2;
  --crow-line: #8c96ab;
  --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131f;
    --bg-2: #121827;
    --surface: #1b2334;
    --line: #2b3448;
    --text: #e6eaf2;
    --muted: #9aa4b8;
    --band: #141b2a;
    --band-2: #1e2638;
    --band-line: #2f3a52;
    --band-text: #e6eaf2;
    --band-muted: #9aa4b8;
    --accent: #ff7a45;
    --primary: #ff7a45;
    --primary-hover: #ff8e60;
    --on-primary: #0e131f;
    --crow: #e6eaf2;
    --crow-line: #8c96ab;
    --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--font);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--eye);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-s);
}
.skip:focus {
  top: 1rem;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  font-stretch: 86%;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-stretch: 88%;
}
h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-stretch: 90%;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  max-width: 34em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  font: 700 1.05rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn.small {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  box-shadow: none;
}
.btn.big {
  min-height: 4rem;
  padding: 0 2.2rem;
  font-size: 1.25rem;
}

/* ---------- header ---------- */

.top {
  position: relative;
  z-index: 3;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.top nav {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 1rem;
}
.top nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.top nav a:hover {
  color: var(--text);
}
.top nav a:hover::after {
  transform: scaleX(1);
}
.theme {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s var(--spring);
}
.theme:hover {
  transform: rotate(-12deg);
}
.theme svg {
  grid-area: 1 / 1;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}
.theme .moon {
  fill: currentColor;
  stroke: none;
}
/* The one showing is the one you'd switch to. */
.theme .sun {
  transform: translateY(140%) rotate(90deg);
  opacity: 0;
}
:root[data-theme="dark"] .theme .sun {
  transform: none;
  opacity: 1;
}
:root[data-theme="dark"] .theme .moon {
  transform: translateY(-140%) rotate(-90deg);
  opacity: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun {
    transform: none;
    opacity: 1;
  }
  :root:not([data-theme="light"]) .theme .moon {
    transform: translateY(-140%) rotate(-90deg);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .top nav {
    display: none;
  }
}

/* Switching themes: the new one grows out of the button (View Transitions). */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: reveal 0.7s var(--ease);
}
@keyframes reveal {
  from {
    clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 2rem));
  }
  to {
    clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 2rem));
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
  text-align: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 11em;
}
.hero h1 .line {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: bottom;
}
.hero h1 .line > span {
  display: inline-block;
  animation: rise 1s var(--spring) both;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.12s;
}
@keyframes rise {
  from {
    transform: translateY(110%);
  }
}
.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  max-width: 32em;
  color: var(--muted);
  animation: fade 0.9s 0.3s var(--ease) both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 2rem;
  animation: fade 0.9s 0.4s var(--ease) both;
}
.cta-note {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Corvo's bar, docked at the top like on the desktop. */
.pill-dock {
  position: relative;
  z-index: 2;
  height: calc(3.5rem + clamp(2.5rem, 6vw, 4.5rem));
}
.pill {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: 0.6rem;
  width: min(30rem, calc(100% - 2 * var(--gutter)));
  min-height: 3rem;
  padding: 0.55rem 1.1rem;
  background: var(--band);
  color: var(--band-text);
  border-radius: 999px;
  text-align: left;
  box-shadow: var(--shadow);
  animation: drop 0.9s var(--spring) both;
  transition: border-radius 0.45s var(--spring), padding 0.45s var(--spring), box-shadow 0.3s;
}
:root[data-theme="dark"] .pill {
  box-shadow: 0 0 0 1.5px var(--line), var(--shadow);
}
@keyframes drop {
  from {
    transform: translateY(-160%);
  }
}
.pill[data-state="reply"],
.pill[data-state="thinking"] {
  border-radius: 24px;
  padding-bottom: 1rem;
}
.pill[data-state="listening"] {
  box-shadow: 0 0 0 3px var(--eye), 0 16px 44px -14px rgba(47, 224, 204, 0.65);
}
.pill-eye {
  width: 1.5rem;
  height: 0.45rem;
  border-radius: 9px;
  background: var(--eye);
  transform: rotate(-9deg);
  opacity: 0.55;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.pill[data-state="listening"] .pill-eye,
.pill[data-state="thinking"] .pill-eye {
  opacity: 1;
  box-shadow: 0 0 12px var(--eye);
}
.pill-name {
  font-weight: 700;
  font-size: 0.98rem;
}
.pill-clock,
.pill-timer {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--band-muted);
}
.pill-timer {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #10141f;
  animation: pop 0.45s var(--spring);
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
.pill:has(.pill-timer:not([hidden])) .pill-clock {
  visibility: hidden;
}
.pill-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.pill-wave i {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--eye);
}
.pill[data-state="listening"] .pill-wave {
  opacity: 1;
}
.pill[data-state="listening"] .pill-wave i {
  animation: wave 0.9s ease-in-out infinite;
}
.pill-wave i:nth-child(2) { animation-delay: -0.7s !important; }
.pill-wave i:nth-child(3) { animation-delay: -0.4s !important; }
.pill-wave i:nth-child(4) { animation-delay: -0.2s !important; }
.pill-wave i:nth-child(5) { animation-delay: -0.55s !important; }
@keyframes wave {
  50% {
    height: 100%;
  }
}
/* The answer opens smoothly to its own height (grid rows 0fr -> 1fr). */
.pill-say {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease), margin-top 0.45s var(--ease);
}
.pill-say-in {
  overflow: hidden;
  display: grid;
  gap: 0.3rem;
}
.pill[data-state="reply"] .pill-say,
.pill[data-state="thinking"] .pill-say {
  grid-template-rows: 1fr;
  margin-top: 0.55rem;
}
.pill-heard {
  font-size: 0.9rem;
  color: var(--band-muted);
}
.pill-heard:not(:empty)::before {
  content: "“";
}
.pill-heard:not(:empty)::after {
  content: "”";
}
.pill-reply {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}
.pill[data-state="thinking"] .pill-reply::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 0.3em;
  background: radial-gradient(circle, var(--eye) 45%, transparent 50%) 0 50% / 0.45em 0.3em repeat-x;
  animation: dots 0.8s steps(4) infinite;
}
@keyframes dots {
  from {
    width: 0;
  }
}

/* "Try Nova": shaped like Corvo's corner chat, with the crow perched on top of it. */
.stage {
  display: flex;
  justify-content: center;
  margin-top: clamp(5.5rem, 10vw, 7.5rem);
}
.try {
  position: relative;
  width: min(38rem, 100%);
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  animation: fade 0.9s 0.55s var(--ease) both;
}
.try label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.try-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  background: var(--band);
  border-radius: 999px;
  transition: box-shadow 0.25s var(--ease);
}
:root[data-theme="dark"] .try-row {
  background: var(--bg);
}
.try-row:focus-within {
  box-shadow: 0 0 0 3px var(--eye);
}
.try-row input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.6rem;
  border: 0;
  background: transparent;
  color: var(--band-text);
  font: 500 1.05rem var(--font);
}
.try-row input::placeholder {
  color: var(--band-muted);
}
.try-row input:focus {
  outline: none;
}
.talk {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--band-2);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--spring);
}
.talk svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--band-text);
  stroke-width: 2;
  stroke-linecap: round;
}
.talk svg rect {
  fill: var(--band-text);
  stroke: none;
}
.talk.held {
  background: var(--eye);
  box-shadow: 0 0 0 7px rgba(47, 224, 204, 0.22);
  transform: scale(1.08);
}
.talk.held svg {
  stroke: #10141f;
}
.talk.held svg rect {
  fill: #10141f;
}
.send {
  min-height: 2.75rem;
  background: var(--accent);
  color: #10141f;
}
.send:hover {
  background: #ec6a3c;
}
.talk-tip {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.93rem var(--font);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--spring);
}
.chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chip:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .try {
    padding: 1.1rem 1rem 1rem;
    border-radius: 24px;
  }
  .send {
    padding: 0 1rem;
  }
  .try-row input {
    padding: 0 0.3rem;
    font-size: 1rem;
  }
}

/* The crow sits on the box's top edge, on the right, and watches. */
.crow {
  position: absolute;
  right: 1.8rem;
  bottom: calc(100% - 2px);
  width: clamp(6.5rem, 14vw, 9rem);
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: hop 1s 0.9s var(--spring) both;
}
.crow-head {
  transform-box: fill-box;
  transform-origin: 30% 100%;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.6s var(--spring);
}
.crow-body {
  fill: var(--crow);
}
.crow-line {
  fill: none;
  stroke: var(--crow-line);
  stroke-width: 14;
  stroke-linecap: round;
}
.crow-eye rect {
  fill: var(--eye);
  transition: opacity 0.3s;
}
.crow-glint {
  fill: #e9fffc;
}
@keyframes hop {
  0% {
    transform: translateY(40%) scaleY(0.6);
    opacity: 0;
  }
  45% {
    transform: translateY(-14%) scaleY(1.05);
    opacity: 1;
  }
  70% {
    transform: translateY(2%) scaleY(0.96);
  }
}
.crow.blink .crow-eye,
.crow.blink .crow-glint {
  animation: blink 0.22s ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes blink {
  50% {
    transform: rotate(-9deg) scaleY(0.1);
  }
}
/* Listening: it perks up and its eye pulses. */
.crow.alert .crow-head {
  transform: translateY(-6%) rotate(calc(var(--tilt, 0deg) - 3deg)) scale(1.04);
}
.crow.alert .crow-eye rect {
  animation: alert 1.1s ease-in-out infinite;
}
@keyframes alert {
  50% {
    opacity: 0.55;
  }
}

/* ---------- bands ---------- */

.band {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.band.dark {
  background: var(--band);
  color: var(--band-text);
}
.band.alt {
  background: var(--bg-2);
}
.band h2 {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* What it does: one row per feature. */
.features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1.5px solid var(--line);
}
.feature:nth-child(even) .feature-text {
  order: 2;
}
.feature-text p {
  margin-top: 1rem;
  color: var(--muted);
}
.says {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}
.says li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

/* Screenshots: a quiet frame until the real picture is in (img replaces it). As the
   page scrolls, each one settles into place (scroll-linked, where supported). */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.shot:has(img) {
  border-style: solid;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot figcaption {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.shot:has(img) figcaption {
  display: none;
}
@supports (animation-timeline: view()) {
  .shot {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  @keyframes settle {
    from {
      transform: translateY(48px) scale(0.94) rotate(-1deg);
      opacity: 0.2;
    }
  }
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature-text {
    order: 0;
  }
}

/* Transfer */
.transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.transfer-text p {
  color: var(--band-muted);
}
.transfer-text p + p {
  margin-top: 1rem;
}
.transfer-text .hint-line {
  font-weight: 600;
  color: var(--eye);
}
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.file {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1.5px solid var(--band-line);
  border-radius: var(--radius-s);
  background: var(--band-2);
  color: var(--band-text);
  font: 600 1rem var(--font);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s var(--spring), opacity 0.3s, border-color 0.2s;
}
.file:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: var(--accent);
}
.file::before {
  content: "";
  width: 0.9rem;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--accent);
  clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%);
}
.file[data-kind="photo"]::before {
  background: var(--eye);
}
.file[data-kind="audio"]::before {
  background: var(--band-text);
}
.file.dragging {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  cursor: grabbing;
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6);
  transition: none;
}
.file.sent {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.phone {
  justify-self: center;
  position: relative;
  width: min(19rem, 100%);
  aspect-ratio: 9 / 18;
  padding: 2.6rem 1.1rem 1.2rem;
  border-radius: 2.6rem;
  background: #f5f7fa;
  color: #182033;
  box-shadow: 0 0 0 10px var(--band-2), 0 0 0 12px var(--band-line), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
}
.phone.over {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 0 0 10px var(--band-2), 0 0 0 14px var(--eye), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone-notch {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 5.5rem;
  height: 1.3rem;
  translate: -50% 0;
  border-radius: 999px;
  background: #182033;
}
.phone-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.phone-empty {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #5a6478;
}
.phone-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.phone-list li {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-s);
  background: #e8ebf1;
  font-weight: 600;
  font-size: 0.95rem;
  animation: land 0.6s var(--spring);
}
@keyframes land {
  from {
    transform: translateY(-30px) scale(0.9);
    opacity: 0;
  }
}
.phone-list .bar {
  height: 6px;
  border-radius: 3px;
  background: #d3d9e3;
  overflow: hidden;
}
.phone-list .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #e2592a;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-list .done {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5468;
}
@media (max-width: 760px) {
  .transfer-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    width: min(16rem, 80%);
  }
}

/* Privacy */
.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.private-grid h2 {
  margin: 0;
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.4rem;
}
.facts li {
  padding-top: 1.2rem;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
}
.facts strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.more {
  grid-column: 2;
  font-weight: 700;
}
@media (max-width: 760px) {
  .private-grid {
    grid-template-columns: 1fr;
  }
  .more {
    grid-column: 1;
  }
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.download h2 {
  margin-bottom: 1rem;
}
.download .btn-primary {
  background: var(--accent);
  color: #10141f;
}
.version {
  margin-bottom: 2rem;
  color: var(--band-muted);
}
.download h3 {
  margin-bottom: 1.2rem;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 2.2rem;
  padding: 0.2rem 0 0 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--band-2);
  border: 1.5px solid var(--accent);
  color: var(--band-text);
  font-weight: 800;
}
kbd {
  padding: 0.05rem 0.45rem;
  border: 1.5px solid var(--band-line);
  border-bottom-width: 3px;
  border-radius: 6px;
  font: 600 0.95em var(--font);
}
.small-print {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--band-muted);
}
@media (max-width: 760px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Questions: each opens smoothly to its own height. */
.faq-wrap details {
  max-width: 52rem;
}
details {
  border-top: 1.5px solid var(--line);
}
details:last-of-type {
  border-bottom: 1.5px solid var(--line);
}
details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
details[open]::details-content {
  block-size: auto;
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.4s var(--spring);
}
details[open] summary::after {
  transform: rotate(225deg) translateY(-25%);
}
details p {
  padding-bottom: 1.4rem;
  color: var(--muted);
}

/* Footer */
.foot {
  background: var(--band);
  color: var(--band-text);
  padding-block: 2.5rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot .brand {
  margin-right: 0;
}
.foot nav {
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
}
.foot p {
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--band-muted);
}

/* ---------- the privacy page ---------- */

.doc {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}
.doc .wrap {
  max-width: 46rem;
}
.doc h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
.doc h2 {
  margin: 2.8rem 0 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-stretch: 90%;
}
.doc p,
.doc li {
  max-width: none;
  color: var(--muted);
}
.doc b {
  color: var(--text);
}
.doc p + p {
  margin-top: 0.9rem;
}
.doc ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.doc li::marker {
  color: var(--accent);
}
.doc .updated {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Alive: a glow that drifts behind the hero (and follows the pointer a
   little), things rising in as they scroll into view, and little scenes
   in place of screenshots that act out each feature while on screen.
   ===================================================================== */

/* ---------- rising into view (only with JavaScript on: without it, all just shows) ---------- */
.js [data-reveal],
.js [data-reveal-kids] > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.95s var(--spring);
}
.js [data-reveal-kids] > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].in,
.js [data-reveal-kids].in > * {
  opacity: 1;
  transform: none;
}

/* ---------- the scenes ---------- */
.shot:has(.mock) {
  border-style: solid;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: #0b0f1a;
}
.mock {
  --m-ink: #e8ecf6;
  --m-mute: #8b95ab;
  --m-glass: rgba(255, 255, 255, 0.07);
  --m-line: rgba(255, 255, 255, 0.1);
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--m-ink);
  font-size: clamp(0.62rem, 1.15vw, 0.86rem);
  text-align: left;
  background:
    radial-gradient(80% 70% at 20% 10%, rgba(107, 92, 255, 0.35), transparent 60%),
    radial-gradient(70% 60% at 90% 100%, rgba(255, 122, 69, 0.25), transparent 60%),
    linear-gradient(160deg, #141a2c, #0a0d17);
}
/* still until it's seen (site.js adds .in to the figure) */
.mock,
.mock * {
  animation-play-state: paused !important;
}
.in > .mock,
.in > .mock * {
  animation-play-state: running !important;
}
.mock b {
  font-weight: 700;
}
.m-card {
  position: absolute;
  border-radius: 14px;
  background: rgba(20, 25, 40, 0.78);
  border: 1px solid var(--m-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px -18px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

/* 1. Talk: "Spotify left, Discord right" and the windows snap into place */
.m-notch {
  position: absolute;
  left: 50%;
  top: 7%;
  z-index: 2;
  height: 2.3em;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 1em;
  border-radius: 99px;
  background: #04050a;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  animation: m-notch 8s var(--ease) infinite;
  overflow: hidden;
}
@keyframes m-notch {
  0%, 8% { width: 7em; }
  14%, 30% { width: 9em; }
  36%, 58% { width: 17em; }
  64%, 92% { width: 8em; }
  100% { width: 7em; }
}
.m-dot {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--eye);
  box-shadow: 0 0 8px var(--eye);
}
.m-wave,
.m-said,
.m-done {
  position: absolute;
  left: 2.2em;
  opacity: 0;
}
.m-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 1.2em;
  animation: m-show-wave 8s infinite;
}
.m-wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--eye);
  animation: m-wave 0.7s ease-in-out infinite alternate;
}
.m-wave i:nth-child(2) { animation-delay: -0.2s; }
.m-wave i:nth-child(3) { animation-delay: -0.45s; }
.m-wave i:nth-child(4) { animation-delay: -0.1s; }
.m-wave i:nth-child(5) { animation-delay: -0.35s; }
@keyframes m-wave {
  from { transform: scaleY(0.25); }
}
@keyframes m-show-wave {
  12%, 32% { opacity: 1; }
  0%, 10%, 34%, 100% { opacity: 0; }
}
.m-said {
  color: var(--m-ink);
  animation: m-show-said 8s infinite;
}
@keyframes m-show-said {
  37%, 58% { opacity: 1; }
  0%, 35%, 60%, 100% { opacity: 0; }
}
.m-done {
  color: var(--eye);
  font-weight: 700;
  animation: m-show-done 8s infinite;
}
@keyframes m-show-done {
  64%, 90% { opacity: 1; }
  0%, 62%, 93%, 100% { opacity: 0; }
}
.m-win {
  position: absolute;
  top: 24%;
  bottom: 6%;
  width: 44.5%;
  padding: 0.8em;
  border-radius: 10px;
  border: 1px solid var(--m-line);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.m-left {
  left: 4%;
  background: linear-gradient(160deg, #1d3b2a, #101c16);
  animation: m-snap-l 8s var(--spring) infinite;
}
.m-right {
  right: 4%;
  background: linear-gradient(160deg, #2b2f63, #15172e);
  animation: m-snap-r 8s var(--spring) infinite;
}
@keyframes m-snap-l {
  0%, 58% { transform: translate(28%, 6%) scale(0.72) rotate(-3deg); }
  66%, 92% { transform: none; }
  100% { transform: translate(28%, 6%) scale(0.72) rotate(-3deg); }
}
@keyframes m-snap-r {
  0%, 60% { transform: translate(-22%, 14%) scale(0.66) rotate(2deg); }
  68%, 92% { transform: none; }
  100% { transform: translate(-22%, 14%) scale(0.66) rotate(2deg); }
}
.m-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.m-lines i {
  height: 0.55em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}
.m-lines i:nth-child(2n) { width: 70%; }
.m-lines i:nth-child(3n) { width: 85%; }

/* 2. Show me how: the robot flies to the switch and flips it */
.m-app {
  position: absolute;
  inset: 10% 8% 10% 8%;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: #e9edf5;
  color: #1a2133;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: m-app-dark 7s infinite;
}
@keyframes m-app-dark {
  0%, 58% { background: #e9edf5; color: #1a2133; }
  64%, 94% { background: #1b2131; color: #e8ecf6; }
  100% { background: #e9edf5; color: #1a2133; }
}
.m-side {
  width: 26%;
  padding: 1em 0.7em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  background: rgba(0, 0, 0, 0.06);
}
.m-side i {
  height: 0.7em;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.15;
}
.m-side i.on {
  opacity: 0.45;
}
.m-body {
  flex: 1;
  padding: 1em 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}
.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 0.8em;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.12);
}
.m-row.dim {
  opacity: 0.6;
}
.m-slider {
  width: 30%;
  height: 0.45em;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.3;
}
.m-switch {
  position: relative;
  width: 2.4em;
  height: 1.35em;
  border-radius: 99px;
  background: #b7bfcf;
  animation: m-switch 7s infinite;
}
.m-switch i {
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: #fff;
  animation: m-knob 7s var(--spring) infinite;
}
@keyframes m-switch {
  0%, 55% { background: #b7bfcf; }
  58%, 94% { background: var(--accent); }
  100% { background: #b7bfcf; }
}
@keyframes m-knob {
  0%, 55% { transform: none; }
  60%, 94% { transform: translateX(1.05em); }
  100% { transform: none; }
}
.m-bot {
  position: absolute;
  /* lands just right of the switch (its centre is at 81% / 37%) */
  left: 85%;
  top: 27%;
  width: 3.4em;
  fill: #2a3360;
  stroke: rgba(190, 205, 255, 0.9);
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  animation: m-fly 7s var(--ease) infinite;
}
.m-bot .m-face {
  fill: #10142a;
}
.m-bot .m-eye {
  fill: var(--eye);
  stroke: none;
}
@keyframes m-fly {
  0%, 8% { transform: translate(-260%, 120%) rotate(-12deg); opacity: 0; }
  14% { opacity: 1; }
  40%, 92% { transform: none; opacity: 1; }
  100% { transform: translate(-260%, 120%) rotate(-12deg); opacity: 0; }
}
.m-bubble {
  position: absolute;
  right: 9%;
  top: 47%;
  padding: 0.45em 0.8em;
  border-radius: 10px;
  background: #04050a;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  animation: m-bubble 7s infinite;
}
@keyframes m-bubble {
  0%, 40% { opacity: 0; transform: translateY(6px); }
  45%, 58% { opacity: 1; transform: none; }
  64%, 100% { opacity: 0; }
}
.m-ping {
  position: absolute;
  /* (inside the switch: always centred on it) */
  left: 50%;
  top: 50%;
  margin: -1.3em 0 0 -1.3em;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  border: 2px solid var(--eye);
  opacity: 0;
  animation: m-ping 7s infinite;
}
@keyframes m-ping {
  0%, 54% { opacity: 0; transform: scale(0.4); }
  56% { opacity: 1; }
  66%, 100% { opacity: 0; transform: scale(1.6); }
}

/* 3. Memory: things it was told, appearing one by one; one forgotten */
.m-memory .m-card,
.m-catch .m-card {
  inset: 12% 14%;
  padding: 1.2em 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.m-memory ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.m-memory li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.75em;
  border-radius: 9px;
  background: var(--m-glass);
  border: 1px solid var(--m-line);
  animation: m-li 9s var(--spring) infinite both;
}
.m-memory li i {
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}
.m-memory li:nth-child(2) { animation-delay: 0.7s; }
.m-memory li:nth-child(3) { animation-delay: 1.4s; }
.m-memory li.m-gone {
  animation: m-gone 9s var(--ease) 2.1s infinite both;
}
@keyframes m-li {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  6%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}
@keyframes m-gone {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  6%, 46% { opacity: 1; transform: none; text-decoration: none; }
  52% { opacity: 0.5; text-decoration: line-through; }
  60%, 100% { opacity: 0; transform: translateX(30%); text-decoration: line-through; }
}
.m-lock {
  margin-top: auto;
  color: var(--m-mute);
  font-size: 0.85em;
}

/* 4. Catch-up: what you missed, written out */
.m-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.m-badge {
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border-radius: 99px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  text-align: center;
  animation: m-badge 8s infinite;
}
@keyframes m-badge {
  0%, 10% { transform: scale(1); }
  14% { transform: scale(1.25); }
  20%, 100% { transform: scale(1); }
}
.m-catch p {
  margin: 0;
  padding-left: 0.7em;
  border-left: 2px solid rgba(88, 101, 242, 0.7);
  color: var(--m-ink);
  line-height: 1.45;
  animation: m-li 8s var(--ease) infinite both;
}
.m-catch p i {
  font-style: normal;
  font-weight: 700;
  color: #9ea7ff;
}
.m-catch p:nth-of-type(1) { animation-delay: 0.9s; }
.m-catch p:nth-of-type(2) { animation-delay: 1.8s; }
.m-catch p:nth-of-type(3) { animation-delay: 2.7s; }
.m-typing {
  display: flex;
  gap: 4px;
  margin-top: auto;
}
.m-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-mute);
  animation: m-blink 1.1s ease-in-out infinite;
}
.m-typing i:nth-child(2) { animation-delay: 0.15s; }
.m-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes m-blink {
  50% { opacity: 0.25; }
}

/* 5. The bar: music playing, the PC working, the calendar */
.m-panel {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 0;
  bottom: 14%;
  padding: 1.1em 1.2em;
  border-radius: 0 0 22px 22px;
  background: rgba(8, 10, 18, 0.92);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 0.9em;
  animation: m-drop 1s var(--spring) both;
}
@keyframes m-drop {
  from { transform: translateY(-40%) scale(0.6, 0.3); opacity: 0; }
}
.m-music {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em;
  border-radius: 12px;
  background: var(--m-glass);
  border: 1px solid var(--m-line);
}
.m-art {
  flex: none;
  width: 3em;
  height: 3em;
  border-radius: 8px;
  background: conic-gradient(from 0deg, #ff7a45, #6b5cff, #2fe0cc, #ff7a45);
  animation: m-spin 9s linear infinite;
}
@keyframes m-spin {
  to { filter: hue-rotate(360deg); }
}
.m-song {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.m-song small {
  color: var(--m-mute);
}
.m-prog {
  margin-top: 0.35em;
  height: 0.3em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.m-prog i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--eye);
  transform-origin: left;
  animation: m-prog 14s linear infinite;
}
@keyframes m-prog {
  from { transform: scaleX(0.05); }
}
.m-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.6em;
}
.m-eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: m-eq 0.9s ease-in-out infinite alternate;
}
.m-eq i:nth-child(2) { animation-duration: 0.6s; }
.m-eq i:nth-child(3) { animation-duration: 1.1s; }
.m-eq i:nth-child(4) { animation-duration: 0.75s; }
@keyframes m-eq {
  from { transform: scaleY(0.2); }
}
.m-stats {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
  align-content: start;
}
.m-stats span {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: 0.6em;
  border-radius: 10px;
  background: var(--m-glass);
  border: 1px solid var(--m-line);
}
.m-stats small {
  color: var(--m-mute);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.m-stats i {
  height: 0.35em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--eye), var(--accent));
  transform-origin: left;
  transform: scaleX(var(--v));
  animation: m-load 3.2s ease-in-out infinite alternate;
}
.m-stats span:nth-child(2) i { animation-delay: -1.1s; }
.m-stats span:nth-child(3) i { animation-delay: -2s; }
@keyframes m-load {
  to { transform: scaleX(calc(var(--v) + 0.25)); }
}
.m-cal {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35em;
  align-content: center;
  padding: 0.7em;
  border-radius: 12px;
  background: var(--m-glass);
  border: 1px solid var(--m-line);
}
.m-cal i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}
.m-cal i.today {
  background: var(--eye);
  box-shadow: 0 0 10px color-mix(in srgb, var(--eye) 60%, transparent);
  animation: m-today 2.4s ease-in-out infinite;
}
/* recent apps, like the real bar's cards */
.m-apps {
  grid-column: 1;
  display: flex;
  gap: 0.6em;
  align-items: center;
}
.m-apps i {
  flex: 1;
  aspect-ratio: 1;
  max-width: 3em;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--c1, #6b5cff), var(--c2, #2b2f63));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
  animation: m-bob 3.6s ease-in-out infinite;
}
.m-apps i:nth-child(1) { --c1: #ff7a45; --c2: #a8361a; }
.m-apps i:nth-child(2) { --c1: #5865f2; --c2: #2d348a; animation-delay: -0.6s; }
.m-apps i:nth-child(3) { --c1: #2fe0cc; --c2: #127567; animation-delay: -1.2s; }
.m-apps i:nth-child(4) { --c1: #f5c84c; --c2: #8a6512; animation-delay: -1.8s; }
.m-apps i:nth-child(5) { --c1: #e85d9b; --c2: #7a2150; animation-delay: -2.4s; }
.m-apps i:nth-child(6) { --c1: #8fa1c2; --c2: #3d4a63; animation-delay: -3s; }
@keyframes m-bob {
  50% { transform: translateY(-4px); }
}
@keyframes m-today {
  50% { box-shadow: 0 0 2px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-kids] > * {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   The hero: Corvo on a desktop at night. The page is quiet around it;
   this is the one thing that moves on its own (it boots up once).
   ===================================================================== */
.hero {
  text-align: left;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
.hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.9rem, 7.2vw, 6.2rem);
  line-height: 0.92;
}
.hero h1 .line {
  display: block;
}
.hero-side .lede {
  margin: 0;
  padding: 0;
  max-width: 30em;
  font-size: 1.08rem;
}
.hero-side .cta-row {
  justify-content: flex-start;
  margin-top: 1.4rem;
}
@media (max-width: 860px) {
  .hero-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- the screen ---------- */
.screen {
  --glass: rgba(255, 255, 255, 0.085);
  --glass-line: rgba(255, 255, 255, 0.16);
  --ink: #e9edf6;
  --ink-2: #9aa5bd;
  container-type: inline-size;
  position: relative;
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  color: var(--ink);
  background: #04060d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 clamp(6px, 0.7vw, 10px) #0b0f18,
    0 0 0 calc(clamp(6px, 0.7vw, 10px) + 1px) rgba(255, 255, 255, 0.08),
    0 50px 120px -40px rgba(5, 8, 20, 0.9);
  isolation: isolate;
}
/* The wallpaper: deep space, a few stars, and a planet lit from one side. */
.wall {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 64%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 12%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 82%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 86%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 38%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 48%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(60% 70% at 70% 60%, rgba(46, 82, 160, 0.28), transparent 70%),
    radial-gradient(50% 60% at 15% 100%, rgba(226, 89, 42, 0.16), transparent 70%),
    #04060d;
  animation: wall-on 1.2s var(--ease) both;
}
.planet {
  position: absolute;
  left: 52%;
  top: 30%;
  width: 46cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(120, 190, 255, 0.55), transparent 42%),
    radial-gradient(circle at 62% 70%, rgba(30, 60, 120, 0.6), transparent 55%),
    radial-gradient(circle at 40% 45%, #1d4f8f, #0b1c3a 58%, #050b18 74%);
  box-shadow:
    -10px -8px 60px -10px rgba(90, 170, 255, 0.55),
    inset -30px -20px 60px rgba(0, 0, 0, 0.75),
    inset 6px 6px 18px rgba(150, 210, 255, 0.35);
}
@keyframes wall-on {
  from {
    opacity: 0;
    filter: brightness(2.2);
  }
}

/* ---------- the notch (the same pill Nova's script drives) ---------- */
.screen .pill-dock {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  z-index: 3;
}
.screen .pill {
  top: 0;
  width: clamp(15rem, 40cqi, 27rem);
  min-height: 0;
  padding: 0.5rem 1rem;
  border-radius: 0 0 22px 22px;
  background: #020308;
  color: var(--ink);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.9);
  font-size: clamp(0.78rem, 1.6cqi, 1rem);
  animation: drop 0.8s 0.45s var(--spring) both;
}
:root[data-theme="dark"] .screen .pill {
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.9);
}
.screen .pill[data-state="reply"],
.screen .pill[data-state="thinking"] {
  border-radius: 0 0 26px 26px;
  padding-bottom: 0.95rem;
}
.screen .pill[data-state="listening"] {
  box-shadow:
    0 0 0 2px var(--eye),
    0 16px 44px -14px rgba(47, 224, 204, 0.65);
}
.screen .pill-name {
  font-size: 1em;
}
.screen .pill-clock {
  color: var(--ink-2);
  font-size: 0.95em;
}
.screen .pill-heard {
  color: var(--ink-2);
  font-size: 0.9em;
}
.screen .pill-reply {
  font-size: 1.08em;
}

/* ---------- the glass dock on the right ---------- */
.dock {
  position: absolute;
  right: 1.6cqi;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 1.1cqi;
  padding: 1.2cqi 0.9cqi;
  border-radius: 2.4cqi;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px -18px rgba(0, 0, 0, 0.8);
  animation: dock-in 0.9s 0.75s var(--spring) both;
}
.dock i {
  width: 3.6cqi;
  aspect-ratio: 1;
  border-radius: 1cqi;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dock i:nth-child(1) { --c1: #ff8a55; --c2: #b2401c; }
.dock i:nth-child(2) { --c1: #6f7bff; --c2: #303a9a; }
.dock i:nth-child(3) { --c1: #3fe6d2; --c2: #157a6c; }
.dock i:nth-child(4) { --c1: #ffd25a; --c2: #94690f; }
.dock i:nth-child(5) { --c1: #f06aa6; --c2: #7c2252; }
.dock span {
  height: 1px;
  margin: 0.2cqi 0.4cqi;
  background: rgba(255, 255, 255, 0.2);
}
@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateX(140%);
  }
}

/* ---------- the side chat, where you try Nova ---------- */
.screen .try {
  position: absolute;
  left: 2.2cqi;
  bottom: calc(4.6cqi + 1.6cqi);
  width: clamp(16rem, 44cqi, 30rem);
  padding: 1.6cqi 1.6cqi 1.5cqi;
  border: 0;
  border-radius: 2.6cqi;
  color: var(--ink);
  background: rgba(14, 18, 30, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.5),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 26px 50px -22px rgba(0, 0, 0, 0.85);
  font-size: clamp(0.8rem, 1.55cqi, 1rem);
  animation: chat-in 0.8s 1s var(--spring) both;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(18%) scale(0.96);
  }
}
.screen .try label {
  margin: 0 0 0.6em 0.2em;
  font-size: 1em;
  color: var(--ink);
}
.screen .try-row {
  background: rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.16);
}
:root[data-theme="dark"] .screen .try-row {
  background: rgba(0, 0, 0, 0.32);
}
.screen .try-row:focus-within {
  box-shadow: 0 0 0 2px var(--eye);
}
.screen .try-row input {
  height: 2.4em;
  color: var(--ink);
  font-size: 1em;
}
.screen .try-row input::placeholder {
  color: var(--ink-2);
}
.screen .talk {
  width: 2.4em;
  height: 2.4em;
  background: rgba(255, 255, 255, 0.1);
}
.screen .talk svg {
  stroke: var(--ink);
}
.screen .talk svg rect {
  fill: var(--ink);
}
.screen .send {
  min-height: 2.4em;
  padding: 0 1.1em;
  font-size: 0.95em;
}
/* The crow on the chat's top edge, like the robot on Corvo's real one. */
.screen .crow {
  right: 1.4cqi;
  width: clamp(4.2rem, 11cqi, 7.5rem);
  animation: hop 1s 1.35s var(--spring) both;
}

/* ---------- the taskbar ---------- */
.taskbar {
  position: absolute;
  inset: auto 0 0;
  height: 4.6cqi;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2cqi;
  background: rgba(16, 20, 32, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.taskbar i {
  width: 2.4cqi;
  aspect-ratio: 1;
  border-radius: 0.6cqi;
  background: rgba(255, 255, 255, 0.16);
}
.taskbar i:first-child {
  background: linear-gradient(135deg, #4cc2ff, #1a6fd6);
}

/* under the screen */
.hero .talk-tip {
  max-width: none;
  margin: 1rem auto 0;
  text-align: center;
}
.hero .chips {
  justify-content: center;
  margin-top: 0.9rem;
}

/* ---------- small screens: a taller "phone-ish" desktop so the chat fits ---------- */
@media (max-width: 700px) {
  .screen {
    aspect-ratio: 3 / 4;
  }
  .planet {
    left: 30%;
    top: 22%;
    width: 80cqi;
  }
  .dock {
    display: none;
  }
  .screen .pill {
    width: 86cqi;
  }
  .screen .try {
    left: 3cqi;
    right: 3cqi;
    width: auto;
    bottom: calc(9cqi + 3cqi);
    padding: 4cqi;
    border-radius: 6cqi;
  }
  .taskbar {
    height: 9cqi;
  }
  .taskbar i {
    width: 5cqi;
    border-radius: 1.4cqi;
  }
}

/* (the screen is always night: the crow on it is the light one, whatever the page's theme) */
.screen .crow-body {
  fill: #e6eaf2;
}
.screen .crow-line {
  stroke: #9aa6be;
}
