:root {
  --bg: #0e1216;
  --bg-2: #12171c;
  --surface: #171d24;
  --line: rgba(232, 237, 242, 0.09);
  --line-strong: rgba(232, 237, 242, 0.16);
  --ink: #e8edf2;
  --muted: #8b949e;
  --faint: #5d6670;
  --accent: #4f9088;
  --accent-hover: #5ca199;
  --accent-ink: #f4f8f7;
  --accent-soft: rgba(79, 144, 136, 0.16);
  --danger: #c46b6b;
  --paper: #e8ecf0;
  --paper-2: #f6f8fa;
  --paper-ink: #1c2329;
  --paper-muted: #6e7882;
  --paper-line: #d5dce2;
  --paper-accent: #3d7a73;
  --radius: 8px;
  --radius-lg: 16px;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  --display: "Instrument Serif", var(--serif);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Drawer itself must still scroll if links overflow */
body.nav-open .site-nav {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

::selection {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-hover);
}

p,
li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button,
.btn {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

/* Grain + ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  width: 50vw;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(79, 144, 136, 0.14), transparent 70%);
}

/* Scroll reveal (enabled only when JS adds .js to <html>) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

.wrap--narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

/* Pin the bar while the drawer is open so background scroll cannot drag it
   away; keep backdrop-filter off so the fixed drawer is not trapped. */
body.nav-open .site-header,
body.nav-open .site-header.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 70;
  background: var(--bg);
  border-bottom-color: var(--line);
  backdrop-filter: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 18px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 2px 5px 2px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 3px;
}

.brand__mark span {
  display: block;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.9;
}

.brand__mark span:nth-child(2) {
  width: 70%;
  opacity: 0.5;
}

.brand__name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1;
}

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

.site-nav a:not(.btn) {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn--paper {
  background: var(--paper-accent);
  color: #f4f8f7;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.btn.is-disabled {
  opacity: 0.45;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 48px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

/* Entrance stagger (JS-enabled browsers only) */
html.js .hero__grid > div > *,
html.js .stage {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

html.js .hero__grid > div > *:nth-child(1) { animation-delay: 0.05s; }
html.js .hero__grid > div > *:nth-child(2) { animation-delay: 0.14s; }
html.js .hero__grid > div > *:nth-child(3) { animation-delay: 0.23s; }
html.js .hero__grid > div > *:nth-child(4) { animation-delay: 0.32s; }
html.js .hero__grid > div > *:nth-child(5) { animation-delay: 0.41s; }
html.js .stage { animation-delay: 0.3s; }

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

.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 em {
  background: linear-gradient(120deg, var(--accent-hover), var(--accent) 55%, #7fb8ae);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 32em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 12px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Product stage */
.stage {
  position: relative;
  min-height: 420px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: -12% -20%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(79, 144, 136, 0.2), transparent 62%),
    radial-gradient(ellipse at 20% 85%, rgba(122, 96, 168, 0.12), transparent 58%);
  filter: blur(6px);
}

.meet {
  background: #151a20;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.meet__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.meet__dots {
  display: flex;
  gap: 6px;
}

.meet__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a424c;
}

.meet__dots i:nth-child(1) {
  background: #6d4a4a;
}

.meet__dots i:nth-child(2) {
  background: #6d5d3a;
}

.meet__dots i:nth-child(3) {
  background: #3e5a48;
}

.meet__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(79, 144, 136, 0.18), transparent 42%),
    linear-gradient(180deg, #1b222a, #10151a);
}

.meet__tile {
  position: absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    #1c242c;
  border: 1px solid var(--line);
  overflow: hidden;
}

.meet__avatar {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #6d8a86, #2c3c3a 62%, #1a2423);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.meet__name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  color: var(--ink);
  background: rgba(14, 18, 22, 0.55);
  padding: 4px 8px;
  border-radius: 6px;
}

.meet__tile--pip {
  inset: auto 18px 18px auto;
  width: 28%;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #262e36;
}

.meet__tile--pip .meet__avatar {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  top: 40%;
  background: radial-gradient(circle at 35% 30%, #8aa0b0, #2a333c 70%);
}

.demo-float {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(12, 16, 20, 0.42);
  overflow: visible;
  z-index: 2;
  margin-top: 12px;
}

.demo-float__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 10px 0;
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--paper-muted);
}

.demo-float__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f7d57;
  font-weight: 600;
}

.demo-float__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f7d57;
  box-shadow: 0 0 0 3px rgba(95, 125, 87, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

.demo-float__hint {
  margin-left: auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-float__end {
  border: 1px solid var(--paper-line);
  background: #eef2f4;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--paper-ink);
}

.demo-float__body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 8px;
  min-height: 0;
  padding: 10px;
}

.demo-live,
.demo-ans {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}

.demo-live {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-live__label,
.demo-q,
.demo-a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper-accent);
}

.demo-live p,
.demo-q-text,
.demo-a-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.demo-qs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-qs li {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #eef2f4;
  color: var(--paper-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-qs li.is-on {
  background: #dceae8;
  color: var(--paper-ink);
}

.demo-ans {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-a-text {
  color: var(--paper-ink);
  min-height: 4.5em;
  overflow-wrap: anywhere;
}

.demo-a-text:not(.is-done)::after {
  content: "▍";
  color: var(--paper-accent);
  animation: blink 1s step-end infinite;
}

.stage__caption {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--faint);
}

.stage__caption strong {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 721px) {
  .demo-float {
    position: absolute;
    right: -12px;
    top: 54px;
    width: min(420px, 78%);
    height: min(320px, 68%);
    margin-top: 0;
    transform: rotate(-1.2deg);
    overflow: hidden;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section .deck {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 36em;
  overflow-wrap: anywhere;
}

/* Capabilities */
.caps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.caps__list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.caps__list li > div {
  min-width: 0;
}

.caps__list b {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 0.9;
  background: linear-gradient(160deg, #7fb8ae, var(--accent) 60%, #35635d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}

.caps__list li {
  transition: opacity 0.2s;
}

.caps__list li:hover h3 {
  color: var(--accent-hover);
}

.caps__list h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.caps__list p {
  margin: 0;
  color: var(--muted);
  max-width: 46em;
  overflow-wrap: anywhere;
}

/* Privacy pair */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pair__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.pair__col .meet {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pair__col .meet__stage {
  aspect-ratio: 16 / 11;
}

.pair__col .demo-float {
  position: absolute;
  right: 10px;
  top: 36px;
  width: 58%;
  height: 64%;
  transform: none;
}

.pair__col .demo-float__body {
  grid-template-columns: 1fr;
}

.pair__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.pair__label strong {
  color: var(--ink);
  font-size: 13px;
}

.pair__col--blind .meet__stage {
  filter: saturate(0.85);
}

/* Feature mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card--tall {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.steps article {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  transition: border-color 0.25s;
}

.steps article:hover {
  border-top-color: var(--accent);
}

.steps article::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Pricing: trial card + early-bird rate table (stack on small screens) */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.plan:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.plan--featured {
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 42%),
    var(--surface);
}

.plan--featured:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
}

.plan__badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan__name {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.plan__price {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
}

.plan__price.is-contact {
  font-size: 22px;
}

.plan__lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.plan ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}

.plan li + li {
  margin-top: 8px;
}

.plan li::before {
  content: "— ";
  color: var(--accent);
}

.plan__foot {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
}

.rate-table th,
.rate-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.rate-table th {
  color: var(--faint);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.rate-table td:last-child,
.rate-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
  border-bottom: 0;
}

.rate-table [data-price] {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rate-table .is-featured th,
.rate-table .is-featured td {
  color: var(--ink);
  font-weight: 600;
}

.rate-table .is-featured [data-price] {
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* FAQ */
.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  font-size: 15px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  color: var(--accent);
  font-weight: 500;
}

.faq details {
  position: relative;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Inner pages */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.prose {
  position: relative;
  z-index: 1;
  padding-bottom: 88px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.prose p,
.prose li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose a {
  color: var(--accent-hover);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

.guide {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 88px;
  position: relative;
  z-index: 1;
}

.guide .page-hero {
  padding-top: 56px;
  padding-bottom: 12px;
}

.guide__toc {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 72px;
}

.guide__toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.guide__toc a:hover,
.guide__toc a:focus {
  color: var(--ink);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 18px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  min-width: 0;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.dl-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.dl-card.is-recommended {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.dl-card h2 {
  margin: 0;
  font-size: 18px;
  font-family: var(--sans);
  letter-spacing: 0;
}

.dl-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.note--warn {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
}

.banner {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}

.banner .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.banner a {
  color: var(--accent-hover);
  text-decoration: none;
}

.lost {
  min-height: calc(100svh - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.lost h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.lost p {
  color: var(--muted);
  margin: 0 0 24px;
}

@media (max-width: 960px) {
  .hero__grid,
  .pair,
  .mosaic,
  .steps,
  .dl-grid,
  .guide {
    grid-template-columns: 1fr;
  }

  .caps__list li {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .caps__list b {
    font-size: 36px;
  }

  .demo-float {
    right: 8px;
    width: min(380px, 86%);
  }

  .guide__toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 28px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 20px 40px;
    gap: 4px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    display: block;
    width: 100%;
    font-size: 18px;
    line-height: 1.4;
    padding: 12px 0;
    color: var(--ink);
    writing-mode: horizontal-tb;
  }

  .site-nav .btn {
    margin-top: 16px;
    width: 100%;
    height: 44px;
  }

  .hero {
    padding-top: 28px;
    overflow: hidden;
  }

  .hero__grid {
    gap: 28px;
  }

  .stage {
    min-height: 0;
  }

  .demo-float__hint {
    display: none;
  }

  .demo-float__body {
    grid-template-columns: 1fr;
    flex: none;
    min-height: 0;
  }

  .demo-live {
    display: none;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section {
    padding: 64px 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .demo-float__status i,
  .demo-a-text:not(.is-done)::after {
    animation: none;
  }

  html.js [data-reveal],
  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .hero__grid > div > *,
  html.js .stage {
    opacity: 1;
    animation: none;
  }
}
