:root {
  --bg: #ededed; /* soft light-gray page */
  --surface: #ececed; /* code chips */
  --card: #ffffff; /* cards */
  --card-2: #f7f7f8;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --text: #1c1c1e; /* near-black headings/text */
  --muted: #6e6e73; /* gray body */
  --dark: #1c1c1e; /* dark island / nav cta */
  --accent: #5b5fdb; /* subtle indigo — links, markers */
  --accent-soft: rgba(91, 95, 219, 0.14);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1080px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Gentle light lift behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% -5%,
    rgba(255, 255, 255, 0.7),
    transparent 60%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family:
    "Inter Tight",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

/* Fixed faux notch is replaced by the in-hero island */
.notch {
  display: none;
}

/* ---- Dynamic-Island pill: wide at rest, springs open on hover ---- */
.island {
  width: fit-content;
  min-width: 288px;
  max-width: 100%;
  margin: 0 auto 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 62px;
  padding: 0 15px;
  background: var(--dark);
  border-radius: 999px;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.5s var(--bounce),
    box-shadow 0.45s ease;
}
.island:hover,
.island:focus-within {
  transform: scale(1.03);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.55);
}
.island-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
}
.island-links {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.55s var(--bounce),
    margin-left 0.55s var(--bounce),
    opacity 0.35s ease;
}
.island:hover .island-links,
.island:focus-within .island-links {
  max-width: 620px;
  margin-left: 10px;
  opacity: 1;
}
.island-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.18s;
}
.island-links a:hover {
  color: #2f7bff;
}
.island-links .island-cta {
  color: #fff;
  font-weight: 700;
}
.island-links .island-cta:hover {
  color: #fff;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  background: rgba(237, 237, 237, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.18s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  color: #fff !important;
  font-weight: 600;
  background: var(--dark);
  padding: 8px 18px;
  border-radius: 999px;
  transition:
    background 0.18s,
    transform 0.15s;
}
.nav-cta:hover {
  background: #333336;
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  transition:
    transform 0.15s,
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-ico {
  flex-shrink: 0;
}

/* Dark "Download for Mac" button — Apple logo that swaps to an arrow on hover */
.btn-primary {
  background: #26211c;
  color: var(--bg);
  padding: 15px 30px;
  font-size: 1.02rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  gap: 0;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 12px 34px -14px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 20px 44px -14px rgba(0, 0, 0, 0.55);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.12rem;
  border-radius: 18px;
}

/* Icon swap: apple (left) collapses, label slides left, arrow (right) reveals */
.btn-apple,
.btn-arrow {
  flex-shrink: 0;
  display: block;
  height: 18px;
  transition:
    width 0.28s ease,
    opacity 0.2s ease,
    margin 0.28s ease,
    transform 0.28s ease;
}
.btn-apple {
  width: 18px;
  opacity: 1;
  margin-right: 9px;
}
.btn-arrow {
  width: 0;
  opacity: 0;
  margin-left: 0;
  transform: translateX(-6px);
}
.btn-primary:hover .btn-apple {
  width: 0;
  opacity: 0;
  margin-right: 0;
  transform: translateX(-6px);
}
.btn-primary:hover .btn-arrow {
  width: 18px;
  opacity: 1;
  margin-left: 10px;
  transform: translateX(0);
}
.btn-lg .btn-apple,
.btn-lg .btn-arrow {
  height: 19px;
}
.btn-lg .btn-apple {
  width: 19px;
}
.btn-lg:hover .btn-arrow {
  width: 19px;
}

/* Outlined pill — "Blog" style */
.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 15px 34px;
  font-size: 1.02rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
}
.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.03);
}

/* ---- Hero ---- */
.hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 70px 24px 0;
  text-align: center;
}
.eyebrow {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}
.grad {
  background: linear-gradient(120deg, #2b2b2e 10%, #5a5a62 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl {
  position: relative;
  background: linear-gradient(120deg, #2b2b2e 10%, #5a5a62 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.45em;
  background: #c9c9cd;
  border-radius: 1px;
  z-index: -1;
}
.sub {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 44px;
}
.fineprint {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Hero product shot ---- */
.hero-stage {
  margin-top: 70px;
  position: relative;
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 860px;
  max-width: 128%;
  height: 460px;
  background: radial-gradient(
    closest-side,
    rgba(0, 0, 0, 0.12),
    transparent 72%
  );
  filter: blur(34px);
  z-index: -1;
}

/* ---- MacBook mockup (dark device on light page) ---- */
.macbook {
  width: min(960px, 100%);
  margin: 0 auto;
  position: relative;
}
.mb-screen {
  position: relative;
  /* Query container + fixed aspect ratio so the whole interior (menu bar, notch,
     panel, dock) can be sized in cqi units and scale as one unit with the screen. */
  container-type: inline-size;
  aspect-ratio: 960 / 580;
  background: #000;
  /* Percentage radius (relative to the screen's own box) so the bezel corners
     scale with the mockup instead of clipping content at narrow widths. */
  border-radius: 2.7% / 4.5%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 55px 110px -40px rgba(0, 0, 0, 0.55);
}
.mb-wallpaper {
  position: absolute;
  inset: 0;
  /* Demo screen wallpaper. Options live in assets/wallpapers/ — see memory
     "demo-screen-wallpapers". Swap this one line to change it:
       waves-blue-pink.png · imac-blue-light.jpg · imac-lines-dark.jpg (current) */
  background: url("assets/wallpapers/imac-lines-dark.jpg") center / cover no-repeat;
  z-index: 0;
}
/* macOS menu bar */
.mb-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 3.54cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.56cqi;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.mb-menubar .mb-left,
.mb-menubar .mb-right {
  display: flex;
  align-items: center;
}
.mb-menubar .mb-right {
  gap: 1.56cqi;
}
.mb-apple {
  width: 1.46cqi;
  height: 1.46cqi;
  display: block;
  opacity: 0.95;
}
.mb-mi {
  width: 1.77cqi;
  height: 1.77cqi;
  display: block;
  opacity: 0.95;
}
.mb-clock {
  font-size: 1.37cqi;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* MacBook notch (top-center) — hover to drop the panel */
.notch-zone {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 23cqi;
  z-index: 6;
  cursor: pointer;
}
.mb-notch {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 3.1cqi;
  background: #000;
  border-radius: 0 0 1.67cqi 1.67cqi;
  transition: filter 0.3s ease;
}
.notch-zone:hover .mb-notch {
  filter: brightness(1.4);
}

/* ---- Compact live activity (state 2) ---- */
/* A black pill hugging the notch: album art on the left wing, an animating
   waveform on the right. Merges with the notch, then fades as the dropdown
   expands on hover. */
.compact {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 11.25cqi);
  height: 3.1cqi;
  padding: 0 1.04cqi;
  background: #000;
  border-radius: 0 0 1.67cqi 1.67cqi;
  opacity: 1;
  transition: opacity 0.22s ease;
}
.notch-zone:hover .compact {
  opacity: 0;
  pointer-events: none;
}
.c-art {
  width: 2.08cqi;
  height: 2.08cqi;
  border-radius: 0.52cqi;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.c-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-eq {
  display: flex;
  align-items: center;
  gap: 0.26cqi;
  height: 1.46cqi;
  flex-shrink: 0;
}
.c-eq i {
  width: 0.26cqi;
  height: 30%;
  background: #fff;
  border-radius: 0.21cqi;
  transform-origin: center;
  animation: eq-bounce 0.85s ease-in-out infinite;
}
.c-eq i:nth-child(1) {
  animation-delay: 0s;
}
.c-eq i:nth-child(2) {
  animation-delay: 0.18s;
}
.c-eq i:nth-child(3) {
  animation-delay: 0.36s;
}
.c-eq i:nth-child(4) {
  animation-delay: 0.09s;
}
@keyframes eq-bounce {
  0%,
  100% {
    height: 28%;
  }
  50% {
    height: 100%;
  }
}

/* ---- Notch-rim song timeline ---- */
/* A glowing progress line that traces the shell's rim (down the left, around the
   bottom, up the right) as the track plays, led by a bright head — like the app's
   NotchRimShape. Injected into both the compact pill and the expanded panel. */
.rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}
.rim-line {
  fill: none;
  /* Follows the selected accent (the app's dayColor), defaulting to the white
     theme the site loads on. */
  stroke: var(--rim, #f5f5f7);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 1.5px var(--rim, #f5f5f7))
    drop-shadow(0 0 4px color-mix(in srgb, var(--rim, #f5f5f7) 55%, transparent));
}
.rim-head {
  fill: var(--rim, #f5f5f7);
  filter:
    drop-shadow(0 0 2px var(--rim, #f5f5f7))
    drop-shadow(0 0 5px color-mix(in srgb, var(--rim, #f5f5f7) 80%, transparent));
  transition: opacity 0.4s ease;
}

/* ---- Panel preview (dark app UI) ---- */
.panel {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 49cqi;
  background: #000;
  border: 1px solid #1a1816;
  border-top: none;
  border-radius: 0 0 2.29cqi 2.29cqi;
  padding: 0.63cqi 0.83cqi 1.25cqi;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  /* Collapsed into the notch: scaled down to roughly the notch's width/height,
     anchored at the top-center so it grows out of the notch in x and y at once. */
  transform-origin: top center;
  transform: translateX(-50%) scale(0.42, 0.14);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1),
    opacity 0.34s ease;
}
.notch-zone:hover .panel {
  transform: translateX(-50%) scale(1, 1);
  opacity: 1;
  pointer-events: auto;
}
/* Content fades in so it doesn't look squished while the shell grows. */
.panel > * {
  transition: opacity 0.28s ease 0.06s;
}
.notch-zone:not(:hover) .panel > * {
  opacity: 0;
}

/* macOS dock */
.mb-dock {
  position: absolute;
  bottom: 1.67cqi;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.46cqi;
  padding: 1.15cqi 1.67cqi;
  border-radius: 2.5cqi;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    0 12px 24px -8px rgba(0, 0, 0, 0.35),
    0 30px 60px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.dock-app {
  width: 5.83cqi;
  height: 5.83cqi;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.3, 1);
  transform-origin: bottom center;
}
.dock-app img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.32));
}
/* Our app icon is full-bleed, so scale + round it to match the system icons' size */
.dock-lepus img,
.dock-lepus .app-icon {
  transform: scale(0.86);
  border-radius: 22%;
}
.dock-lepus .app-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.32));
}

/* App-icon mark: black rounded square with a center dot that follows the
   selected accent (the app's icon dot). Used in the hero, dock, and CTA. */
.app-icon {
  display: block;
}

/* Dock magnification — hovered icon grows most, neighbours taper off */
.dock-app:hover {
  transform: scale(1.55) translateY(-0.83cqi);
}
.dock-app:hover + .dock-app,
.dock-app:has(+ .dock-app:hover) {
  transform: scale(1.28) translateY(-0.31cqi);
}
.dock-app:hover + .dock-app + .dock-app,
.dock-app:has(+ .dock-app + .dock-app:hover) {
  transform: scale(1.12) translateY(-0.1cqi);
}

/* Top bar: Lepus/Tray tabs (left) · gear (right) — sits on the black shell */
.p-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.13cqi;
  padding: 0.21cqi 0.63cqi 0;
}
.p-tabs {
  display: flex;
  align-items: center;
  gap: 0.63cqi;
}
.p-tab {
  font-size: 1.13cqi;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.31cqi 0.94cqi;
  border-radius: 999px;
  white-space: nowrap;
}
.p-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.p-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.42cqi;
}
.p-gear svg {
  width: 1.35cqi;
  height: auto;
}

/* Weather card — themed background holding the header, scene, and controls */
.p-card {
  position: relative;
  margin: 0.52cqi 0.21cqi 0.21cqi;
  border-radius: 1.46cqi;
  overflow: hidden;
  /* The card follows the site's selected accent. The site loads on the "white"
     accent, so the card is near-white with dark ink content — matching the app's
     white AccentTheme (dayColor #f5f5f7 + dark dayContentColor). */
  --card-bg: #f5f5f7;
  --card-ink: #1a1a1c;
  background: var(--card-bg);
  color: var(--card-ink);
}
.p-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.58cqi;
  padding: 0 1.25cqi;
  gap: 1.04cqi;
}
.p-weather {
  display: flex;
  align-items: center;
  gap: 0.83cqi;
  min-width: 0;
}
.wx-ico {
  width: 2.08cqi;
  height: 2.08cqi;
  color: var(--card-ink);
  flex-shrink: 0;
  display: block;
}
.wx-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wx-primary {
  font-size: 1.3cqi;
  font-weight: 600;
  color: var(--card-ink);
  white-space: nowrap;
}
.wx-sub {
  font-size: 1.03cqi;
  color: color-mix(in srgb, var(--card-ink) 65%, transparent);
  white-space: nowrap;
}
.p-np {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}
.np-title {
  font-size: 1.33cqi;
  font-weight: 600;
  color: var(--card-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20.83cqi;
}
.np-artist {
  font-size: 1.13cqi;
  color: color-mix(in srgb, var(--card-ink) 70%, transparent);
  margin-top: 0.1cqi;
}

/* Daytime bunny scene (inside the weather card) */
.p-scene {
  position: relative;
  height: 11.04cqi;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ASCII bunny — split into a head (ears + face) and a static body so the head
   can lean toward the cursor and the eyes lean a touch further, matching the
   app's RabbitScene. */
.bunny {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.67cqi;
  line-height: 1.25;
  color: var(--card-ink);
  white-space: pre;
  text-align: center;
}
.bunny-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(0, 0);
  will-change: transform;
}
.b-face {
  position: relative;
}
.b-eyes {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  transform: translate(0, 0);
  will-change: transform;
}

/* Drifting daytime clouds */
.clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.cloud {
  position: absolute;
  left: 0;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.83cqi;
  line-height: 1;
  color: color-mix(in srgb, var(--card-ink) 32%, transparent);
  white-space: pre;
  will-change: transform;
}
.cloud-1 {
  top: 0.63cqi;
  animation: cloud-drift 26s linear infinite;
}
.cloud-2 {
  top: 4.17cqi;
  animation: cloud-drift 34s linear infinite;
  animation-delay: -14s;
}
@keyframes cloud-drift {
  from {
    transform: translateX(-7.29cqi);
  }
  to {
    transform: translateX(50cqi);
  }
}

/* Transport controls + album art, pinned to the card's bottom-right corner */
.p-controls {
  position: absolute;
  right: 1.25cqi;
  bottom: 1.04cqi;
  display: flex;
  align-items: flex-end;
  gap: 1.04cqi;
  color: var(--card-ink);
}
.ctl-group {
  display: flex;
  align-items: center;
  gap: 1.04cqi;
}
.p-controls .ctl {
  font-size: 1.42cqi;
  opacity: 0.95;
}
.p-controls .play {
  font-size: 1.75cqi;
}
.np-art {
  position: relative;
  width: 3.54cqi;
  height: 3.54cqi;
  border-radius: 0.63cqi;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.np-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.np-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}
.np-art .eq {
  position: relative;
  z-index: 2;
  height: 1.56cqi;
  gap: 0.31cqi;
}
.np-art .eq i {
  width: 0.31cqi;
  background: #fff;
}

.eq {
  display: flex;
  gap: 0.21cqi;
  height: 1.15cqi;
  align-items: flex-end;
  flex-shrink: 0;
}
.eq i {
  width: 0.26cqi;
  background: #cfd0ff;
  border-radius: 0.21cqi;
  animation: bounce 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) {
  animation-delay: 0s;
}
.eq i:nth-child(2) {
  animation-delay: 0.15s;
}
.eq i:nth-child(3) {
  animation-delay: 0.3s;
}
.eq i:nth-child(4) {
  animation-delay: 0.45s;
}
@keyframes bounce {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 11px;
  }
}

@media (max-width: 540px) {
  .panel-row {
    grid-template-columns: 1fr;
  }
  .bunny-col {
    order: -1;
  }
}

/* ---- Big statement ---- */
.statement {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px 110px;
  text-align: center;
}
.statement h2 {
  font-size: clamp(2.4rem, 6.5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
}
.dim {
  color: var(--muted);
}

/* ---- Bento grid (light cards) ---- */
.bento {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* Three equal columns filling the row. There's deliberately no 2+1 state:
     once all three no longer fit, the 980px query stacks them instead. */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 34px -24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.cell:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.3);
}
/* Cursor-following spotlight */
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.cell:hover::after {
  opacity: 1;
}
.cell h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}
.cell-copy {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: 42ch;
}

/* spans */
.cell-ai {
  display: flex;
  flex-direction: column;
}
.cell-scene {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cell-body {
  flex: 0 0 auto;
}

/* AI mock */
.ai-mock {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.4;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble.bunny {
  align-self: flex-start;
  background: #f0f0f2;
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.cell-ai:hover .bubble.user {
  transform: scale(1.04) translateX(-4px);
}
.cell-ai:hover .bubble.bunny {
  transform: scale(1.04) translateX(4px);
  transition-delay: 0.08s;
}
.ai-input {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f4f4f6;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}
.cell-ai:hover .ai-input {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* mini weather */
.mini-weather {
  margin-top: 22px;
}
.mw-temp {
  font-family: "Inter Tight", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cell-weather:hover .mw-temp {
  transform: scale(1.08);
}
.mw-cond {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* mini equalizer (music cell) */
.mini-eq {
  margin-top: 24px;
  display: flex;
  gap: 5px;
  height: 44px;
  align-items: flex-end;
}
.mini-eq i {
  width: 7px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fb5c74, #b5179e);
  animation: bounce2 1s ease-in-out infinite;
}
.mini-eq i:nth-child(1) {
  animation-delay: 0s;
}
.mini-eq i:nth-child(2) {
  animation-delay: 0.12s;
}
.mini-eq i:nth-child(3) {
  animation-delay: 0.24s;
}
.mini-eq i:nth-child(4) {
  animation-delay: 0.36s;
}
.mini-eq i:nth-child(5) {
  animation-delay: 0.48s;
}
.mini-eq i:nth-child(6) {
  animation-delay: 0.6s;
}
.mini-eq i:nth-child(7) {
  animation-delay: 0.72s;
}
@keyframes bounce2 {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 44px;
  }
}

/* system stat bars */
.stat-bars {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  width: 34px;
}
.stat .track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.stat .track span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c);
  border-radius: 999px;
}
.cell-stats .stat .track span {
  animation: grow 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.cell-stats .stat:nth-child(2) .track span {
  animation-delay: 0.12s;
}
.cell-stats .stat:nth-child(3) .track span {
  animation-delay: 0.24s;
}
@keyframes grow {
  0% {
    width: 0;
  }
  28% {
    width: var(--w);
  }
  72% {
    width: var(--w);
  }
  100% {
    width: 0;
  }
}

/* living scene */
.scene-bunny {
  font-family: "JetBrains Mono", monospace;
  color: #9a9aa2;
  font-size: clamp(0.7rem, 1.6vw, 1rem);
  line-height: 1.5;
  margin: 24px 0 0;
  white-space: pre;
  overflow: hidden;
}
.cell-scene:hover .scene-bunny {
  animation: hop 0.6s ease-in-out;
}
@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  55% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-4px);
  }
}

/* The point where a third card would be squeezed out of the row: the grid's
   content box is the viewport minus 48px of padding, and two 16px gaps leave
   300px per card at 980px. At or below that, stack all three. */
@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .cell {
    padding: 26px;
  }
}

/* ---- Themes ---- */
.themes {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.themes h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
}
.themes-sub {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 16px 0 40px;
}
.swatches {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.swatch {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  box-shadow:
    0 0 0 3px #fff,
    0 4px 12px -4px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.swatch:hover {
  transform: scale(1.2);
}
.swatch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
/* Selected accent: dark ring so the current choice reads clearly. */
.swatch.is-active {
  transform: scale(1.12);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--text),
    0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

/* ---- Download ---- */
.download {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 56px;
  text-align: center;
}
.dl-icon {
  width: 96px;
  height: 96px;
  /* Block-level SVG needs explicit auto margins to sit under the centered
     heading (the old inline <img> was centered by text-align). */
  margin: 0 auto;
  border-radius: 22px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.3));
}
.download h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 34px;
}
.dl-sub {
  color: var(--muted);
  font-size: 1.18rem;
  margin: 16px 0 34px;
}
.req {
  list-style: none;
  padding: 0;
  margin: 44px auto 0;
  display: inline-block;
  text-align: left;
}
.req li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
  color: var(--muted);
}
.req li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.hint {
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 470px;
}
.hint code {
  font-family: "JetBrains Mono", monospace;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* ---- FAQ page ---- */
.nav-links a.active {
  color: var(--text);
}

.faq-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 50px;
  text-align: center;
}
.faq-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 26px 44px 26px 0;
  position: relative;
  transition: color 0.18s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
  color: var(--accent);
}
.faq-item p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  padding: 0 44px 28px 0;
  animation: fadeIn 0.3s ease both;
}
.faq-item p a {
  color: var(--accent);
}
.faq-item p a:hover {
  text-decoration: underline;
}
.faq-item code {
  font-family: "JetBrains Mono", monospace;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.85em;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-cta {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
}
.faq-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.social-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.social-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}
.social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Giant wordmark, half cut off at the very bottom of the page */
.wordmark {
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-size: clamp(8rem, 38vw, 36rem);
  margin: 48px auto -0.4em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(90, 74, 56, 0.16) 10%,
    rgba(90, 74, 56, 0) 85%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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