/* ==========================================================================
   Micman website
   Plain CSS, no build step, system fonts only.

   Design rules (keep these consistent):
   - One accent: brand blue #3D63F5 for fills (white text on it is 4.88:1).
     Blue text/links use --link (#3558E8 light, #7B93FF dark).
     Green is only a semantic "connected / success" colour, never an accent.
   - Radii: capsule for buttons and keycap chips, 22px for glass surfaces,
     28px for the hero stage, 12px for small insets.
   - Glass (backdrop-filter) is used on a few surfaces that genuinely float:
     the header, the hero stage frame, feature tiles, the table, the price
     card. Body text always sits on a surface opaque enough for >= 4.5:1.
     prefers-reduced-transparency swaps every glass surface for a solid one.
   - Product visuals are real captures from Scripts/capture-screenshots.sh
     (opaque, with the wallpaper baked in), framed with a radius and
     --shot-frame / --shot-shadow. Nothing on this site imitates the app's UI in HTML/CSS.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand */
  --accent: #3D63F5;          /* fill, white text on it = 4.88:1 */
  --accent-hover: #2F55EA;
  --accent-press: #2748D1;
  --on-accent: #FFFFFF;
  --link: #3558E8;            /* brand text on light surfaces */
  --success: #1F8A4C;         /* semantic only */

  /* Neutrals, faintly tinted toward the brand hue */
  --bg: #EEF1FC;
  --text: #0E1220;
  --text-2: #454C5E;
  --text-3: #4D5467;
  --line: rgba(20, 32, 72, 0.10);
  --line-strong: rgba(20, 32, 72, 0.16);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-solid: #F8F9FC;     /* reduced-transparency fallback */
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-hairline: rgba(24, 36, 80, 0.09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glass-blur: blur(28px) saturate(180%);
  --glass-shadow:
    0 1px 2px rgba(22, 34, 84, 0.06),
    0 12px 40px -12px rgba(22, 34, 84, 0.18);

  /* Luminous backdrop fields */
  --field-1: rgba(61, 99, 245, 0.22);
  --field-2: rgba(84, 156, 255, 0.22);
  --field-3: rgba(61, 99, 245, 0.14);

  /* Captures ship with their own wallpaper; they sit in the page as framed tiles. */
  --shot-frame: 0 0 0 1px rgba(24, 36, 80, 0.10);
  --shot-shadow: 0 2px 6px rgba(22, 34, 84, 0.08), 0 24px 60px -20px rgba(22, 34, 84, 0.35);
  --menubar-bg: rgba(233, 243, 254, 0.78);
  --menubar-fg: #10151F;
  --hero-wall: url("images/hero-wall-light.jpg");

  --radius-surface: 22px;
  --radius-stage: 28px;
  --radius-inset: 12px;

  --gutter: 24px;
  --max: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3D63F5;
    --accent-hover: #3558E8;
    --accent-press: #2F55EA;
    --link: #7B93FF;
    --success: #4ACB7F;

    --bg: #0B0F22;
    --text: #F1F3F8;
    --text-2: #B3BACA;
    --text-3: #9CA3B4;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);

    --glass: rgba(26, 31, 46, 0.62);
    --glass-strong: rgba(28, 33, 48, 0.80);
    --glass-solid: #171B27;
    --glass-edge: rgba(255, 255, 255, 0.12);
    --glass-hairline: rgba(0, 0, 0, 0.5);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    --glass-shadow:
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 16px 44px -14px rgba(0, 0, 0, 0.6);

    --field-1: rgba(61, 99, 245, 0.30);
    --field-2: rgba(70, 120, 255, 0.16);
    --field-3: rgba(61, 99, 245, 0.12);

    --shot-frame: 0 0 0 1px rgba(255, 255, 255, 0.10);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 64px -20px rgba(0, 0, 0, 0.7);
    --menubar-bg: rgba(30, 58, 88, 0.80);
    --menubar-fg: #F4F7FC;
    --hero-wall: url("images/hero-wall-dark.jpg");
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

body:lang(zh) { line-height: 1.75; }

/* The luminous backdrop: soft brand-blue light fields behind every page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1600px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, var(--field-1), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, var(--field-2), transparent 70%),
    radial-gradient(70% 45% at 55% 70%, var(--field-3), transparent 75%);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
}

:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--link); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Glass ---------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-hairline), var(--glass-shadow);
  border-radius: var(--radius-surface);
}

@media (prefers-color-scheme: dark) {
  .glass { box-shadow: var(--glass-highlight), var(--glass-shadow); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .site-header,
  .btn-secondary,
  .demo-toggle,
  kbd,
  .key {
    background: var(--glass-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .demo-toggle[aria-pressed="true"] .key { background: var(--accent) !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; margin: -2px -2px -2px -4px; }

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  color: var(--text-2);
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--line); text-decoration: none; }

.nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  border: 1px solid var(--line-strong);
}
.nav .lang .icon { font-size: 15px; }

@media (max-width: 720px) {
  .nav .nav-section { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn .icon { font-size: 18px; stroke-width: 2; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(20, 40, 140, 0.25),
    0 6px 18px -6px rgba(40, 70, 220, 0.55);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

.btn-secondary {
  background: var(--glass-strong);
  color: var(--text);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 1px var(--line-strong), 0 2px 8px -2px rgba(20, 32, 72, 0.10);
}
.btn-secondary:hover { background: var(--glass-solid); }

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-meta { font-weight: 450; opacity: 0.85; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 8vw, 112px); }

.section-head { max-width: 660px; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 19px; line-height: 1.5; }
:lang(zh) .section-head p { font-size: 18px; }

kbd,
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  height: 1.9em;
  padding: 0 0.45em;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: inset 0 -1.5px 0 var(--line-strong), 0 0 0 1px var(--line-strong), 0 1px 2px rgba(20, 32, 72, 0.08);
  vertical-align: 0.08em;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
}

/* The product's own wallpaper behind the hero, so the glass stage has a real
   backdrop to refract. A scrim on the copy side keeps text contrast safe,
   and the bottom fades into the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: -60px 0 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 34%, color-mix(in srgb, var(--bg) 20%, transparent) 58%, transparent 72%),
    var(--hero-wall) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero::before {
    background:
      linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 38%, color-mix(in srgb, var(--bg) 10%, transparent) 60%, transparent 70%),
      var(--hero-wall) center / cover no-repeat;
  }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero-icon { width: 88px; height: 88px; margin: -8px 0 18px -8px; }

.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.hero h1:lang(zh) { letter-spacing: -0.01em; line-height: 1.15; }

.hero-sub {
  margin-top: 22px;
  max-width: 30em;
  color: var(--text-2);
  font-size: clamp(18px, 1rem + 0.35vw, 21px);
  line-height: 1.5;
}

.hero .btn-row { margin-top: 34px; }

/* The stage: a glass frame around the real capture, with a decorative
   macOS menu bar strip on top so the panel hangs from its icon. */
.stage {
  position: relative;
  margin: 0;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  border-radius: var(--radius-stage);
  padding: 8px;
}

.stage-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-stage) - 8px);
  background: var(--glass-solid);
  box-shadow: var(--shot-frame);
}

/* When the full-bleed composite (hero-*.png) is used, it fills the screen. */
.stage-screen > picture.composite img { width: 100%; height: auto; }

/* Decorative macOS menu bar strip (not app UI). */
.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  height: 30px;
  padding: 0 18px;
  color: var(--menubar-fg);
  font-size: 13px;
  font-weight: 500;
  background: var(--menubar-bg);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.menubar .glyph { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.menubar .glyph.line { fill: none; stroke: currentColor; stroke-width: 1.8; }
.menubar .is-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  margin-inline: -9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--menubar-fg) 14%, transparent);
}
.menubar time { font-variant-numeric: tabular-nums; }

.stage-shot { width: 416px; max-width: 100%; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { justify-self: center; }
}

@media (max-width: 480px) {
  .stage { padding: 6px; }
  .menubar { gap: 14px; padding: 0 12px; }
  .menubar .opt { display: none; }
}

/* ---------- Priority (settings window) ---------- */

.priority .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.window-shot { margin: 0; }
.window-shot img { width: 100%; max-width: 680px; border-radius: 20px; box-shadow: var(--shot-frame), var(--shot-shadow); }

.rules { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; }
.rules li { padding-left: 18px; border-left: 2px solid var(--line-strong); }
.rules h3 { font-size: 1.08rem; }
.rules p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.rules q { quotes: "\201C" "\201D"; color: var(--text); font-weight: 550; }
:lang(zh) .rules q { quotes: "\201C" "\201D"; }

@media (max-width: 960px) {
  .priority .wrap { grid-template-columns: minmax(0, 1fr); }
  .priority .window-shot { order: 2; }
}

/* ---------- Keyboard demo ---------- */

.keys-section .section-head { margin-inline: auto; text-align: center; }

.keys-stage {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.note { max-width: 300px; }
.note .keys { display: flex; gap: 6px; margin-bottom: 14px; font-size: 20px; }
.note .keys .key { min-width: 2.1em; height: 2.1em; font-size: 0.8em; border-radius: 9px; }
.note .keys .gap { align-self: center; color: var(--text-3); font-size: 15px; padding-inline: 2px; }
.note h3 { font-size: 1.08rem; }
.note p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.note-left { justify-self: end; text-align: right; }
.note-left .keys { justify-content: flex-end; }

.demo { margin: 0; display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 416px; }

.demo-frame {
  position: relative;
  width: 100%;
  max-width: 416px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shot-frame), var(--shot-shadow);
}
.demo-frame picture { display: block; }
.demo-frame .is-muted-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.demo[data-muted="true"] .is-muted-shot { opacity: 1; }
.demo[data-muted="true"] .is-live-shot { opacity: 0; }

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 1px var(--line-strong), 0 4px 14px -6px rgba(20, 32, 72, 0.25);
}
.demo-toggle[hidden] { display: none; }
.demo-toggle:hover { background: var(--glass-solid); }
.demo-toggle:active { transform: translateY(1px); }
.demo-toggle[aria-pressed="true"] .key { background: var(--accent); color: var(--on-accent); box-shadow: none; }

@media (max-width: 960px) {
  .keys-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .demo { order: -1; }
  .note, .note-left { justify-self: center; text-align: center; max-width: 420px; }
  .note .keys, .note-left .keys { justify-content: center; }
}

/* ---------- Pro bento ---------- */

.bento {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.tile p { margin-top: 8px; color: var(--text-2); font-size: 16px; max-width: 34em; }

.tile--shortcuts { grid-column: span 7; min-height: 480px; }
.tile--hud { grid-column: span 5; padding: 0; }
.tile--lock { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }

/* The top of the real settings window fills the bottom of the tile. */
.tile--shortcuts { padding-bottom: 0; }
.tile--shortcuts .crop {
  flex: 1;
  min-height: 260px;
  margin: 24px calc(-1 * clamp(24px, 3vw, 34px)) 0;
  overflow: hidden;
  border-top: 1px solid var(--glass-edge);
}
.tile--shortcuts .crop picture { display: block; height: 100%; }
.tile--shortcuts .crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.tile--hud .tile-copy {
  padding: clamp(24px, 3vw, 34px);
  background: var(--glass-strong);
}
.hud-scene {
  flex: 1;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px 0;
  /* The capture's own wallpaper continues behind it; its edges are feathered
     so the HUD never gets cropped at narrow widths. */
  background: var(--hero-wall) 60% 40% / cover no-repeat;
  border-bottom: 1px solid var(--glass-edge);
}
.hud-scene picture { display: block; max-width: 100%; }
.hud-scene img {
  width: auto;
  max-width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 82%, transparent 100%);
}

.tile--lock .lock-mark {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.tile--lock .lock-mark strong {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .tile--shortcuts, .tile--hud { grid-column: span 12; }
  .tile--shortcuts { min-height: 0; }
}
@media (max-width: 600px) {
  .tile--shortcuts .crop { min-height: 220px; }
  .tile--lock { flex-direction: column; align-items: flex-start; }
}

/* ---------- Compare table ---------- */

.table-shell { margin-top: clamp(36px, 5vw, 52px); padding: 8px 8px 12px; overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th,
.compare td { padding: 14px 18px; text-align: left; vertical-align: middle; }
.compare thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-strong);
}
.compare .col-plan { width: 96px; text-align: center; }
.compare td { text-align: center; }
.compare tbody th { font-weight: 500; }
.compare tbody tr + tr th,
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare .group th {
  padding-top: 26px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.compare tbody:first-of-type .group th { padding-top: 18px; }
.compare .group + tr th,
.compare .group + tr td { border-top: 0; }
.compare .feat-note { display: block; font-size: 14px; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.compare .yes { font-size: 20px; color: var(--link); stroke-width: 2.4; vertical-align: middle; }
.compare .no {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-3);
  vertical-align: middle;
}
.compare .col-pro { color: var(--link); }

@media (max-width: 600px) {
  .compare th, .compare td { padding: 12px 10px; }
  .compare .col-plan { width: 58px; }
  .compare { font-size: 15px; }
}

/* ---------- Pricing ---------- */

.pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.pricing .copy p { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 34em; }
.pricing .copy .btn-row { margin-top: 30px; }
.pricing .req { margin-top: 18px; font-size: 15px; color: var(--text-2); }

.price-card { padding: clamp(28px, 3.5vw, 40px); }
.price-card h3 { font-size: 1.05rem; color: var(--text-2); font-weight: 600; }
.price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price .amount {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price .per { color: var(--text-2); font-size: 15px; }
.price-card ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.price-card li .icon { font-size: 18px; margin-top: 4px; color: var(--link); stroke-width: 2.4; }
.price-card .btn { margin-top: 30px; width: 100%; }
.price-card .fine { margin-top: 14px; font-size: 14px; color: var(--text-2); text-align: center; }

/* A pool of brand light behind the price card, so its glass has something to refract. */
.pricing { overflow-x: clip; }
.pricing .wrap { position: relative; isolation: isolate; }
.pricing .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 50%;
  width: min(620px, 90%);
  aspect-ratio: 1;
  translate: 12% -50%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 40% 40%, rgba(84, 156, 255, 0.55), transparent),
    radial-gradient(closest-side at 62% 62%, rgba(61, 99, 245, 0.6), transparent);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 860px) {
  .pricing .wrap { grid-template-columns: minmax(0, 1fr); }
  .pricing .wrap::before { top: auto; bottom: 0; translate: 10% 10%; }
}

/* ---------- Privacy ---------- */

.facts {
  margin: clamp(36px, 5vw, 52px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.fact { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.fact dt { font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; }
.fact dd { margin: 8px 0 0; color: var(--text-2); font-size: 16px; }
.privacy .more { display: inline-block; margin-top: 20px; font-weight: 550; }

@media (max-width: 760px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */

.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq .lead { position: sticky; top: 96px; }
.faq .lead p { margin-top: 16px; color: var(--text-2); }

.qa { padding: 6px 22px; }
.qa details + details { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { font-size: 18px; color: var(--text-2); stroke-width: 2; }
.qa details[open] summary .icon { transform: rotate(45deg); }
.qa .answer { padding: 0 34px 20px 0; color: var(--text-2); font-size: 16px; }
.qa .answer p + p { margin-top: 10px; }

@media (max-width: 860px) {
  .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .faq .lead { position: static; }
  .qa { padding: 4px 18px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 32px;
}
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
}
.site-footer nav a { color: var(--text-2); }
.site-footer nav a:hover { color: var(--text); }
.site-footer nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-footer small { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); }

@media (max-width: 600px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav ul { justify-content: flex-start; }
}

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 112px); }
.legal .wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal .sheet { padding: clamp(28px, 5vw, 56px); background: var(--glass-strong); }
.legal h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.legal h1:lang(zh) { letter-spacing: 0; }
.legal .updated { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.legal .draft-note {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-inset);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--text);
  font-size: 15px;
}
.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-top: 44px;
}
.legal p, .legal li { color: var(--text-2); font-size: 17px; }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.25em; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .summary {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-inset);
  background: var(--glass-strong);
  border: 1px solid var(--line);
}
.legal .summary p:first-child { margin-top: 0; }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .btn-row .btn { flex: 1 1 auto; }
  .legal .sheet { padding: 24px 18px; border-radius: 18px; }
}

/* ---------- Motion (opt-in only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .demo-toggle, .demo-toggle .key {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  }
  .qa summary .icon { transition: transform 0.25s var(--ease-out); }
  .demo-frame picture { transition: opacity 0.18s ease; }

  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.15s; }
  .stage { animation: rise 1s 0.12s var(--ease-out) both; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
