/* JustCode website. Zero-dependency, dark-first, with a light theme (system preference or the toggle). */

/* ---------------------------------------------------------------- Fonts (self-hosted Geist, OFL) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  color-scheme: dark;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Brand, from the app icon: indigo #3b2fb8 -> #5b4cf0 -> cyan #18b6d6 */
  --brand-deep: #3b2fb8;
  --brand: #5b4cf0;
  --brand-cyan: #18b6d6;

  --bg: #07080c;
  --bg-2: #0b0c12;
  --card: #0e0f16;
  --card-2: #12131c;
  --raise: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f4f9;
  --text-2: #a9adc1;
  --text-3: #80849b;
  --accent: #8f84ff;
  --accent-2: #4fd4ef;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --grad-text: linear-gradient(100deg, #b4a9ff 0%, #8693ff 45%, #55d6f0 100%);
  --btn-bg: linear-gradient(180deg, #6b5cff 0%, #5444ea 100%);
  --btn-shadow: 0 0 0 1px rgba(124, 108, 255, 0.6), 0 8px 24px -6px rgba(91, 76, 240, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  --frame-ring: rgba(255, 255, 255, 0.09);
  --frame-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --glow-a: rgba(91, 76, 240, 0.42);
  --glow-b: rgba(24, 182, 214, 0.22);
  --nav-bg: rgba(7, 8, 12, 0.72);
  --code-bg: #090a10;

  --working: #5aa2ff;
  --approval: #ff9f43;
  --done: #33d17a;
  --waiting: #c58bff;
  --error: #ff6b7a;

  --sun: block;
  --moon: none;
}

/* Light theme: system preference (unless the visitor picked dark) or an explicit pick. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #fbfbfd;
    --bg-2: #f4f5f9;
    --card: #ffffff;
    --card-2: #f7f7fb;
    --raise: rgba(16, 18, 48, 0.03);
    --line: rgba(16, 18, 48, 0.085);
    --line-2: rgba(16, 18, 48, 0.15);
    --text: #0b0c14;
    --text-2: #474b61;
    --text-3: #62667c;
    --accent: #4b3bdc;
    --accent-2: #0a7591;
    --accent-soft: rgba(91, 76, 240, 0.09);
    --grad-text: linear-gradient(100deg, #4a37d8 0%, #5b4cf0 45%, #0f9cc0 100%);
    --btn-bg: linear-gradient(180deg, #6656f7 0%, #4f3fe6 100%);
    --btn-shadow: 0 0 0 1px rgba(79, 63, 230, 0.9), 0 8px 20px -8px rgba(79, 63, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
    --frame-ring: rgba(16, 18, 48, 0.1);
    --frame-shadow: 0 40px 90px -30px rgba(30, 30, 80, 0.28), 0 18px 36px -20px rgba(30, 30, 80, 0.18);
    --glow-a: rgba(91, 76, 240, 0.2);
    --glow-b: rgba(24, 182, 214, 0.16);
    --nav-bg: rgba(251, 251, 253, 0.76);
    --code-bg: #f3f4f8;
    --working: #2f7de1;
    --approval: #d9770b;
    --done: #18a058;
    --waiting: #9b55e0;
    --error: #d1344b;
    --sun: none;
    --moon: block;
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-2: #f4f5f9;
  --card: #ffffff;
  --card-2: #f7f7fb;
  --raise: rgba(16, 18, 48, 0.03);
  --line: rgba(16, 18, 48, 0.085);
  --line-2: rgba(16, 18, 48, 0.15);
  --text: #0b0c14;
  --text-2: #474b61;
  --text-3: #62667c;
  --accent: #4b3bdc;
  --accent-2: #0a7591;
  --accent-soft: rgba(91, 76, 240, 0.09);
  --grad-text: linear-gradient(100deg, #4a37d8 0%, #5b4cf0 45%, #0f9cc0 100%);
  --btn-bg: linear-gradient(180deg, #6656f7 0%, #4f3fe6 100%);
  --btn-shadow: 0 0 0 1px rgba(79, 63, 230, 0.9), 0 8px 20px -8px rgba(79, 63, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --frame-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --frame-ring: rgba(16, 18, 48, 0.1);
  --frame-shadow: 0 40px 90px -30px rgba(30, 30, 80, 0.28), 0 18px 36px -20px rgba(30, 30, 80, 0.18);
  --glow-a: rgba(91, 76, 240, 0.2);
  --glow-b: rgba(24, 182, 214, 0.16);
  --nav-bg: rgba(251, 251, 253, 0.76);
  --code-bg: #f3f4f8;
  --working: #2f7de1;
  --approval: #d9770b;
  --done: #18a058;
  --waiting: #9b55e0;
  --error: #d1344b;
  --sun: none;
  --moon: block;
}

/* ---------------------------------------------------------------- Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
  /* Decorative glows and bleeding screenshots must never make the page scroll sideways. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 640;
  text-wrap: balance;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgba(124, 108, 255, 0.35);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code,
kbd,
.mono {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  font-weight: 560;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn-primary {
  color: #fff;
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px -4px rgba(91, 76, 240, 0.7);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--raise);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--raise);
}
.theme-toggle .i-sun {
  display: var(--sun);
}
.theme-toggle .i-moon {
  display: var(--moon);
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 400px) {
  .nav .btn-sm .label-long {
    display: none;
  }
}

/* ---------------------------------------------------------------- Shared section typography */
.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 152px);
}
.section-head {
  max-width: 760px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan));
  box-shadow: 0 0 12px var(--brand);
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.lede {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.section-head.center .lede {
  margin-inline: auto;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted {
  color: var(--text-3);
}

kbd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
kbd > span {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  border-radius: 6px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2);
  color: var(--text);
}

/* ---------------------------------------------------------------- Screenshot frames */
.frame {
  position: relative;
  margin: 0;
  padding: 6px;
  border-radius: 18px;
  background: var(--frame-bg);
  box-shadow: 0 0 0 1px var(--frame-ring), var(--frame-shadow);
}
.frame picture,
.frame img {
  width: 100%;
  border-radius: 12px;
}
.frame img {
  box-shadow: 0 0 0 1px var(--frame-ring);
  background: var(--bg-2);
}
.frame--fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
}
.glow {
  position: absolute;
  pointer-events: none;
  inset: -12% -8% auto;
  height: 80%;
  background: radial-gradient(50% 55% at 30% 45%, var(--glow-a), transparent 72%), radial-gradient(45% 50% at 72% 55%, var(--glow-b), transparent 72%);
  filter: blur(40px);
  z-index: -1;
}

/* Wide screenshots bleed off the right edge on small screens so the UI stays legible. */
.wide-shot {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  overflow-x: clip;
  overflow-clip-margin: 24px;
}
@media (max-width: 700px) {
  .wide-shot .frame {
    width: 165%;
  }
  .wide-shot .frame--fade {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, #000 52%, transparent 62%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, #000 52%, transparent 62%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

/* ---------------------------------------------------------------- Hero */
/* The copy (pill to the note under the buttons) always fits the first screen under the sticky navbar: the space
   above it, the title size and the gaps shrink with the viewport HEIGHT as well as its width (svh where supported, so
   mobile toolbars count). Tall screens keep the roomy layout. */
.hero {
  position: relative;
  --hero-top: clamp(16px, min(max(8vw, 48px), 14.4vh - 66px), 96px);
  --hero-gap: clamp(14px, 2.4vh, 26px);
  --hero-cta-gap: clamp(20px, 3.4vh, 36px);
  --hero-note-gap: clamp(10px, 1.7vh, 18px);
  --hero-h1: clamp(2.7rem, min(7vw, 10vh + 1.25rem), 5.4rem);
  padding-top: var(--hero-top);
  padding-bottom: clamp(64px, 9vw, 120px);
  isolation: isolate;
}
@supports (height: 1svh) {
  .hero {
    --hero-top: clamp(16px, min(max(8vw, 48px), 14.4svh - 66px), 96px);
    --hero-gap: clamp(14px, 2.4svh, 26px);
    --hero-cta-gap: clamp(20px, 3.4svh, 36px);
    --hero-note-gap: clamp(10px, 1.7svh, 18px);
    --hero-h1: clamp(2.7rem, min(7vw, 10svh + 1.25rem), 5.4rem);
  }
}
.hero-bg {
  position: absolute;
  inset: -64px 0 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -260px;
  width: min(1100px, 140vw);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 70% 60%, var(--glow-b), transparent);
  filter: blur(30px);
  opacity: 0.9;
}
.hero-copy {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px;
  color: var(--text-2);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}
.pill:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}
.pill-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 70%, color-mix(in srgb, var(--brand-cyan) 70%, var(--brand-deep)));
}
.pill .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.pill-tag {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .pill {
    gap: 8px;
    padding-right: 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .pill-more {
    display: none;
  }
}
.hero h1 {
  margin-top: var(--hero-gap);
  font-size: var(--hero-h1);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 660;
}
.hero-sub {
  margin: var(--hero-gap) auto 0;
  max-width: 680px;
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--hero-cta-gap);
}
.hero-ctas .btn {
  height: 50px;
  padding: 0 24px;
  font-size: 15.5px;
}
.hero-note {
  margin-top: var(--hero-note-gap);
  font-size: 13.5px;
  color: var(--text-3);
}
/* Short, wide screens (laptops with zoom, browser chrome and a taskbar): a slightly tighter subtitle and buttons. */
@media (max-height: 640px) and (min-width: 700px) {
  .hero-sub {
    font-size: 1.04rem;
    max-width: 640px;
  }
  .hero-ctas .btn {
    height: 46px;
  }
}
.hero-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.hero-note a:hover {
  color: var(--text);
}
.hero-shot {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  perspective: 2000px;
}
.hero-shot .frame {
  transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-shot .frame {
      animation: hero-tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
  @keyframes hero-tilt {
    from {
      transform: rotateX(14deg) scale(0.94);
    }
    to {
      transform: rotateX(0deg) scale(1);
    }
  }
}

/* Floating status chips around the hero shot (they mirror the three sessions in the screenshot). */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  white-space: nowrap;
}
.chip b {
  font-weight: 600;
}
.chip .muted {
  color: var(--text-3);
}
.status-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: none;
}
.status-dot svg {
  width: 12px;
  height: 12px;
}
.s-working {
  color: var(--working);
  background: color-mix(in srgb, var(--working) 16%, transparent);
}
.s-approval {
  color: var(--approval);
  background: color-mix(in srgb, var(--approval) 16%, transparent);
}
.s-done {
  color: var(--done);
  background: color-mix(in srgb, var(--done) 16%, transparent);
}
.s-waiting {
  color: var(--waiting);
  background: color-mix(in srgb, var(--waiting) 16%, transparent);
}
.spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .spin {
    animation: spin 0.9s linear infinite;
  }
  .pulse::after {
    animation: pulse 1.8s ease-out infinite;
  }
  .float {
    animation: float 6s ease-in-out infinite;
  }
  .float.d2 {
    animation-delay: -2s;
  }
  .float.d3 {
    animation-delay: -4s;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
.hero-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-chips .chip {
  position: absolute;
}
.hero-chips .c1 {
  left: -28px;
  top: 14%;
}
.hero-chips .c2 {
  right: -30px;
  top: 30%;
}
.hero-chips .c3 {
  left: 6%;
  bottom: 9%;
}
@media (max-width: 1100px) {
  .hero-chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }
  .hero-chips .chip {
    position: static;
  }
  .hero-chips .float {
    animation: none;
  }
}
@media (max-width: 520px) {
  .hero-chips .chip .muted {
    display: none;
  }
}

/* ---------------------------------------------------------------- Works with */
.works {
  padding-block: 8px clamp(40px, 6vw, 72px);
}
.works-title {
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.works-title b {
  color: var(--text-2);
  font-weight: 560;
}
.marquee {
  position: relative;
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee ul {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee li {
  display: flex;
  align-items: center;
  padding-inline: 22px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee li::after {
  content: '';
  width: 4px;
  height: 4px;
  margin-left: 44px;
  border-radius: 50%;
  background: var(--line-2);
}
.marquee li.custom {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0;
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 70s linear infinite;
  }
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track,
  .marquee.is-paused .marquee-track {
    animation-play-state: paused;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    width: auto;
  }
  .marquee ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .marquee ul[aria-hidden='true'] {
    display: none;
  }
}

/* ---------------------------------------------------------------- Feature blocks */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.split .lede {
  margin-top: 0;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.points.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.points li {
  padding: 22px 24px 4px 0;
  margin-right: 24px;
}
.points h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.points h3 .icon {
  color: var(--accent);
}
.points p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
@media (max-width: 1000px) {
  .points,
  .points.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .points,
  .points.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .points li {
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
  .points li:last-child {
    border-bottom: 0;
  }
}

.states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border-radius: 10px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 540;
}

/* ---------------------------------------------------------------- Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 0% 0%, var(--accent-soft), transparent 70%);
  opacity: 0.8;
}
.card-body {
  padding: clamp(22px, 2.6vw, 32px);
  padding-bottom: 0;
}
.card-body:last-child {
  padding-bottom: clamp(22px, 2.6vw, 32px);
}
.card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 620;
}
.card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  text-wrap: pretty;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
/* Screenshot that bleeds out of the bottom-right corner of a card. */
.card-media {
  margin-top: auto;
  padding: 28px 0 0 clamp(22px, 2.6vw, 32px);
}
.card-media img {
  width: 100%;
  border-radius: 12px 0 0 0;
  box-shadow: 0 0 0 1px var(--frame-ring), 0 -10px 40px -20px rgba(0, 0, 0, 0.5);
}
/* Centered screenshot (dialogs), bleeding out of the bottom edge only. */
.card-media.center {
  padding: 28px clamp(22px, 3vw, 40px) 0;
}
.card-media.center img {
  border-radius: 12px 12px 0 0;
}
.card-media.fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.span-12 {
  grid-column: span 12;
}
.span-7 {
  grid-column: span 7;
}
.span-6 {
  grid-column: span 6;
}
.span-5 {
  grid-column: span 5;
}
.span-4 {
  grid-column: span 4;
}
.span-8 {
  grid-column: span 8;
}
@media (max-width: 960px) {
  .span-7,
  .span-6,
  .span-5,
  .span-8 {
    grid-column: span 12;
  }
  .span-4 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .span-4 {
    grid-column: span 12;
  }
}

/* Horizontal card: text left, screenshot right. */
.card.row {
  flex-direction: row;
  align-items: stretch;
}
.card.row .card-body {
  flex: 0 0 38%;
  padding-bottom: clamp(22px, 2.6vw, 32px);
  align-self: center;
}
.card.row .card-media {
  flex: 1;
  margin-top: 0;
  padding-top: clamp(28px, 3vw, 40px);
  align-self: flex-end;
}
@media (max-width: 860px) {
  .card.row {
    flex-direction: column;
  }
  .card.row .card-body {
    flex: none;
    padding-bottom: 0;
    align-self: stretch;
  }
}

/* Workflow chain diagram */
.chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chain span {
  padding: 7px 12px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.chain i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  position: relative;
}
.chain i::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 3.5px solid transparent;
  border-left: 5px solid var(--brand-cyan);
  border-right: 0;
}

/* Code block */
.code {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-2);
}
.code .p {
  color: var(--text-3);
  user-select: none;
}
.code .c {
  color: var(--accent);
}
.code .s {
  color: var(--accent-2);
}

/* Tags (sounds, themes...) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Shared look for chips that do something when clicked (sounds, sync targets, themes...). */
button.tag {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  line-height: inherit;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
button.tag:hover {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
button.tag:active {
  transform: scale(0.97);
}
button.tag:focus-visible {
  border-radius: 999px;
}

/* Alert sounds: every chip plays the app's real sound file. */
.sound-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex: none;
}
.sound-ico .icon {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.eq i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 50% 100%;
  transform: scaleY(0.35);
}
.sound.is-playing {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.sound.is-playing .sound-ico .icon {
  opacity: 0;
  transform: scale(0.6);
}
.sound.is-playing .eq {
  opacity: 1;
}
.sound.is-playing .eq i:nth-child(1) {
  transform: scaleY(0.55);
}
.sound.is-playing .eq i:nth-child(2) {
  transform: scaleY(1);
}
.sound.is-playing .eq i:nth-child(3) {
  transform: scaleY(0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .sound.is-playing .eq i {
    animation: eq 0.9s ease-in-out infinite;
  }
  .sound.is-playing .eq i:nth-child(2) {
    animation-duration: 0.7s;
    animation-delay: -0.3s;
  }
  .sound.is-playing .eq i:nth-child(3) {
    animation-duration: 1.1s;
    animation-delay: -0.5s;
  }
  .sound.is-nudged {
    animation: nudge 0.4s ease;
  }
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes nudge {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.sound-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}
.mute-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.mute-toggle:hover {
  color: var(--text);
  background: var(--raise);
}
.mute-toggle:focus-visible {
  border-radius: 999px;
}
.mute-toggle .icon {
  width: 15px;
  height: 15px;
}
.mute-toggle .i-vol-off,
.mute-toggle[aria-pressed='true'] .i-vol {
  display: none;
}
.mute-toggle[aria-pressed='true'] .i-vol-off {
  display: block;
}
.mute-toggle[aria-pressed='true'] {
  color: var(--approval);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--approval) 45%, transparent);
}
.sound-hint {
  font-size: 13px;
  color: var(--text-3);
}

/* Feature checklist */
.checks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}
.checks li strong {
  color: var(--text);
  font-weight: 580;
}
.checks .tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
}
.checks .tick svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

/* Two-column feature with media */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.duo.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.duo.flip > .duo-media {
  order: -1;
}
@media (max-width: 960px) {
  .duo,
  .duo.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo.flip > .duo-media {
    order: 0;
  }
}
.duo-media {
  position: relative;
}
.duo-media .glow {
  inset: 0 -10%;
  height: 100%;
}

/* Sync diagram */
.sync-flow {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.sync-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sync-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.sync-arrow::before,
.sync-arrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.sync-arrow .icon {
  width: 14px;
  height: 14px;
  color: var(--done);
}

/* ---------------------------------------------------------------- Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (max-width: 1000px) {
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- Keyboard */
.shortcuts {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.shortcuts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- Download */
.download {
  position: relative;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.download::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 90%;
  z-index: -1;
  background: radial-gradient(40% 60% at 35% 40%, var(--glow-a), transparent 70%), radial-gradient(35% 50% at 70% 50%, var(--glow-b), transparent 70%);
  filter: blur(30px);
}
.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 18px;
  box-shadow: 0 18px 44px -12px rgba(91, 76, 240, 0.75);
}
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}
@media (max-width: 720px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}
.platform {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-align: left;
}
.platform.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 4px var(--accent-soft);
}
.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.platform h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 620;
}
.badge {
  display: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  color: var(--accent);
  background: var(--accent-soft);
}
.platform.is-current .badge {
  display: inline-block;
}
.platform p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
}
.platform-btns {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.platform-btns .btn {
  justify-content: space-between;
  height: 50px;
  padding: 0 16px 0 18px;
}
.platform-btns .btn small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.platform-btns .btn span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Compatibility estimate */
.compat {
  max-width: 860px;
  margin: 22px auto 0;
  text-align: center;
}
.compat-toggle[aria-expanded='true'] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.compat-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.compat-panel {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 18px;
  text-align: left;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.compat-panel[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .compat-panel:not([hidden]) {
    animation: compat-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
@keyframes compat-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.compat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compat-head h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 620;
}
.compat-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--approval);
  background: color-mix(in srgb, var(--approval) 13%, transparent);
}
.compat-loading {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  --v: var(--done);
  background: color-mix(in srgb, var(--v) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v) 35%, transparent);
}
.verdict.v-maybe {
  --v: var(--approval);
}
.verdict.v-no {
  --v: var(--error);
}
.verdict-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: var(--v);
  background: color-mix(in srgb, var(--v) 16%, transparent);
}
.verdict-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.verdict-title {
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.verdict-sub {
  font-size: 14px;
  color: var(--text-2);
}
.compat-reasons,
.compat-notes {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
}
.compat-reasons li,
.compat-notes li {
  position: relative;
  padding-left: 16px;
}
.compat-reasons li::before,
.compat-notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.compat-notes {
  font-size: 13.5px;
  color: var(--text-3);
}
.compat-rec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}
.compat-rec-label {
  font-size: 13.5px;
  color: var(--text-3);
}
.compat-rec .btn {
  gap: 14px;
  height: 44px;
  padding: 0 16px;
}
.compat-rec .btn span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.compat-rec .btn small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}
.compat-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  margin: 18px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 560px) {
  .compat-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.compat-facts > div {
  padding: 10px 14px;
  background: var(--card);
  min-width: 0;
}
.compat-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compat-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.compat-req,
.compat-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.compat-req strong {
  color: var(--text-2);
  font-weight: 560;
}
.compat-fine {
  margin-top: 6px;
}
.download-notes {
  max-width: 860px;
  margin: 22px auto 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
}

/* ---------------------------------------------------------------- FAQ */
.faq {
  max-width: 820px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 580;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary .plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-3);
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq summary .plus::after {
  transform: rotate(90deg);
}
.faq details[open] summary .plus::after {
  transform: rotate(0deg);
}
.faq .answer {
  padding: 0 4px 24px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 70ch;
}
.faq .answer p + p {
  margin-top: 10px;
}
.faq .answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Footer */
.footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 34ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  /* The hero paints immediately (it is the largest contentful paint): only a gentle, transform-only rise. */
  .hero-in {
    animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0s);
  }
}
@keyframes hero-rise {
  from {
    transform: translateY(14px);
  }
}

/* ---------------------------------------------------------------- 404 */
.notfound {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 16px;
}
.notfound .code404 {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.notfound h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.notfound p {
  margin: 18px auto 0;
  max-width: 46ch;
  color: var(--text-2);
}
.notfound .hero-ctas {
  margin-top: 30px;
}
