/* Bear Mirror / 小熊化妆镜 — soft beauty legal & marketing pages */

:root {
  color-scheme: light;
  --bg: #fbf7f4;
  --bg-glow: #f7ebe6;
  --surface: rgba(255, 252, 250, 0.82);
  --ink: #3f3438;
  --ink-muted: #6d5e63;
  --ink-faint: #9a8a8f;
  --line: rgba(183, 110, 121, 0.18);
  --line-strong: rgba(183, 110, 121, 0.28);
  --blush: #e8b4b0;
  --rose: #b76e79;
  --rose-deep: #8f4f5a;
  --pearl: #f4ebe4;
  --champagne: #e8d5c4;
  --accent: #b76e79;
  --accent-hover: #8f4f5a;
  --accent-soft: rgba(232, 180, 176, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --max: 920px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Bear ears — match app kBearSwatch* / light-swatch selected state */
  --bear-swatch-face: 30;
  --bear-swatch-ear: 9; /* matches kBearSwatchEarSize (30 × 0.3) */
  --bear-swatch-slot-w: 48;
  --bear-swatch-slot-h: 46;
  --bear-swatch-circle-bottom: 2;
  --bear-swatch-ear-inset: 6; /* slotW/2 − spread×face − earR; spread 0.45 */
  --bear-swatch-ear-top: 13.26; /* circleTop 14 − ear×0.04 − 0.38 */
  --bear-ear-lean: 0.57596rad; /* 33° */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(232, 180, 176, 0.45), transparent 55%),
    radial-gradient(900px 480px at 92% 0%, rgba(232, 213, 196, 0.55), transparent 50%),
    linear-gradient(180deg, var(--bg-glow) 0%, var(--bg) 42%, #faf6f3 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 244, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(143, 79, 90, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rose-deep);
  line-height: 1.15;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 252, 250, 0.9);
}

.locale-switch a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.3;
}

.locale-switch a + a {
  border-left: 1px solid var(--line);
}

.locale-switch a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--rose-deep);
}

.locale-switch a:hover:not([aria-current="true"]) {
  background: rgba(244, 235, 228, 0.8);
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 250, 0.55);
}

.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.site-nav a {
  display: inline-block;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--rose-deep);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--rose-deep);
  border-bottom-color: var(--blush);
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.doc-lead {
  font-size: 16.5px;
  color: var(--ink-muted);
  margin: 0 0 8px;
  max-width: 40em;
}

.doc-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 28px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.2;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.35;
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 0.1em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  box-shadow: 0 0 0 3px rgba(232, 180, 176, 0.28);
}

.doc-section {
  margin-bottom: 28px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(143, 79, 90, 0.04);
}

.doc-section p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 14.75px;
  line-height: 1.75;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.doc-section li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  color: var(--ink-muted);
  font-size: 14.75px;
  line-height: 1.7;
}

.doc-section li:last-child {
  margin-bottom: 0;
}

.doc-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blush) 70%, var(--rose));
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(244, 235, 228, 0.75), rgba(255, 252, 250, 0.95));
  max-width: 28em;
}

.contact-box .label {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-box a,
.contact-box > span:not(.label) {
  font-size: 15px;
  font-weight: 600;
  color: var(--rose-deep);
}

/* Marketing hero — dark-environment makeup lighting visual */
.marketing-hero {
  position: relative;
  margin: -8px 0 36px;
  min-height: min(78vh, 720px);
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(40, 24, 20, 0.35);
  background: #1a100e;
  box-shadow: 0 28px 70px rgba(40, 22, 18, 0.28);
  display: grid;
  align-items: stretch;
}

.marketing-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.marketing-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform: scale(1.02);
  animation: heroDrift 14s var(--ease) both;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 8, 6, 0.55) 0%, rgba(12, 8, 6, 0.12) 38%, rgba(12, 8, 6, 0.2) 62%, rgba(12, 8, 6, 0.78) 100%),
    radial-gradient(900px 420px at 70% 18%, rgba(255, 220, 190, 0.12), transparent 55%);
}

.marketing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 4, 0.55));
}

/* Copy top-left; glass shape/light/brightness panel bottom-center */
.marketing-hero-foreground {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: min(78vh, 720px);
  padding: clamp(28px, 6vw, 52px) clamp(22px, 5vw, 40px) clamp(32px, 6vw, 48px);
  animation: softRise 700ms var(--ease) both;
}

.marketing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34em;
  text-align: left;
}

.marketing-kicker {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 200, 180, 0.88);
}

.marketing-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fbf6f2;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.marketing-lead {
  margin: 0 0 10px;
  max-width: 22em;
  font-size: 1.12rem;
  color: rgba(240, 220, 210, 0.88);
}

.marketing-pitch {
  margin: 0 0 26px;
  max-width: 26em;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(248, 236, 228, 0.92);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.marketing-hero .btn-primary {
  background: linear-gradient(135deg, #d4a39a, #b0767a);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.marketing-hero .btn-ghost {
  color: #f7ebe4;
  background: rgba(255, 252, 250, 0.1);
  border-color: rgba(255, 236, 224, 0.32);
  backdrop-filter: blur(8px);
}

.marketing-hero .btn-ghost:hover {
  color: #fff8f4;
  background: rgba(255, 252, 250, 0.18);
}

/* Decorative glass panel — shapes + light + vanity ring + brightness */
.hero-ui {
  position: absolute;
  z-index: 1;
  left: 80%;
  bottom: clamp(24px, 4.5vw, 40px);
  transform: translateX(-50%);
  width: min(300px, calc(100% - 2.75rem));
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 12, 14, 0.42);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.hero-ui-block {
  display: grid;
  gap: 8px;
}

.hero-ui-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-shape-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-shape-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
}

.hero-shape-chip.is-selected {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-shape-glyph {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
}

/* Bear-ear source of truth = app light swatch / kBearSwatch* in lib/main.dart.
   App: slot 48×46, face 30, ear 9 (=0.3×face), inset 6, peek 0.04, lean-lift 0.38,
   lean 33° (≈0.57596rad), spread 0.45.
   Shape-chip SVGs match _MirrorShapeGlyphPainter (viewBox 32, inset 1.5);
   hollow + web swatches use the same fractions (swatches scale 28/30). */
.hero-light-swatches {
  --swatch-scale: calc(28 / var(--bear-swatch-face));
  --swatch-slot-w: calc(var(--bear-swatch-slot-w) * 1px * var(--swatch-scale));
  --swatch-slot-h: calc(var(--bear-swatch-slot-h) * 1px * var(--swatch-scale));
  --swatch-circle: calc(var(--bear-swatch-face) * 1px * var(--swatch-scale));
  --swatch-ear: calc(var(--bear-swatch-ear) * 1px * var(--swatch-scale));
  --swatch-ear-inset: calc(var(--bear-swatch-ear-inset) * 1px * var(--swatch-scale));
  --swatch-circle-bottom: calc(var(--bear-swatch-circle-bottom) * 1px * var(--swatch-scale));
  --swatch-ear-top: calc(var(--bear-swatch-ear-top) * 1px * var(--swatch-scale));
  --swatch-ear-lean: var(--bear-ear-lean);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  min-height: var(--swatch-slot-h);
  overflow: visible;
}

.hero-light-swatch {
  position: relative;
  flex: 0 0 auto;
  width: var(--swatch-slot-w);
  height: var(--swatch-slot-h);
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

/* Face circle — fixed slot coords whether selected or not (no jump). */
.hero-light-swatch-face {
  position: absolute;
  left: 50%;
  bottom: var(--swatch-circle-bottom);
  width: var(--swatch-circle);
  height: var(--swatch-circle);
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--swatch, #e3eeff);
  border: 1.25px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.hero-light-swatch.is-selected .hero-light-swatch-face {
  border-width: 1.75px;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

/* Solid ear disks behind the face; only tips peek (app: no inner dots).
   z-index:-1 + isolation on the slot matches Flutter Stack (ears then face). */
.hero-light-swatch.is-selected::before,
.hero-light-swatch.is-selected::after {
  content: "";
  position: absolute;
  top: var(--swatch-ear-top);
  width: var(--swatch-ear);
  height: var(--swatch-ear);
  border-radius: 50%;
  background: var(--swatch, #e3eeff);
  border: 1.25px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  z-index: -1;
  transform-origin: bottom center;
}

.hero-light-swatch.is-selected::before {
  left: var(--swatch-ear-inset);
  transform: rotate(var(--swatch-ear-lean));
}

.hero-light-swatch.is-selected::after {
  right: var(--swatch-ear-inset);
  transform: rotate(calc(-1 * var(--swatch-ear-lean)));
}

/* Hollow vanity ring (光圈) swatches — match app _RingColorSwatch / kVanityRingColors.
   Pro marketing look: full set unlocked, no yellow Pro corner badges. */
.hero-ring-swatches {
  --swatch-scale: calc(28 / var(--bear-swatch-face));
  --swatch-slot-w: calc(var(--bear-swatch-slot-w) * 1px * var(--swatch-scale));
  --swatch-slot-h: calc(var(--bear-swatch-slot-h) * 1px * var(--swatch-scale));
  --swatch-circle: calc(var(--bear-swatch-face) * 1px * var(--swatch-scale));
  --swatch-ear: calc(var(--bear-swatch-ear) * 1px * var(--swatch-scale));
  --swatch-ear-inset: calc(var(--bear-swatch-ear-inset) * 1px * var(--swatch-scale));
  --swatch-circle-bottom: calc(var(--bear-swatch-circle-bottom) * 1px * var(--swatch-scale));
  --swatch-ear-top: calc(var(--bear-swatch-ear-top) * 1px * var(--swatch-scale));
  --swatch-ear-lean: var(--bear-ear-lean);
  --ring-stroke: calc(3.25px * var(--swatch-scale));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  min-height: var(--swatch-slot-h);
  overflow: visible;
}

.hero-ring-swatch {
  position: relative;
  flex: 0 0 auto;
  width: var(--swatch-slot-w);
  height: var(--swatch-slot-h);
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

.hero-ring-swatch-face {
  position: absolute;
  left: 50%;
  bottom: var(--swatch-circle-bottom);
  width: var(--swatch-circle);
  height: var(--swatch-circle);
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--swatch, #ffe4b8) 8%, transparent);
  border: var(--ring-stroke) solid var(--swatch, #ffe4b8);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.hero-ring-swatch.is-selected .hero-ring-swatch-face {
  background: color-mix(in srgb, var(--swatch, #ffe4b8) 14%, transparent);
  border-width: calc(var(--ring-stroke) + 0.5px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

/* Ears behind hollow ring stroke/fill (same Stack order as _RingColorSwatch). */
.hero-ring-swatch.is-selected::before,
.hero-ring-swatch.is-selected::after {
  content: "";
  position: absolute;
  top: var(--swatch-ear-top);
  width: var(--swatch-ear);
  height: var(--swatch-ear);
  border-radius: 50%;
  background: var(--swatch, #ffe4b8);
  border: 1.25px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  z-index: -1;
  transform-origin: bottom center;
}

.hero-ring-swatch.is-selected::before {
  left: var(--swatch-ear-inset);
  transform: rotate(var(--swatch-ear-lean));
}

.hero-ring-swatch.is-selected::after {
  right: var(--swatch-ear-inset);
  transform: rotate(calc(-1 * var(--swatch-ear-lean)));
}

.hero-brightness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-brightness-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.hero-sun-glyph {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hero-brightness-track {
  position: relative;
  height: 3px;
  margin: 6px 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-brightness-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 85%;
  border-radius: inherit;
  background: #fff;
}

.hero-brightness-thumb {
  position: absolute;
  top: 50%;
  left: 85%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.btn-primary {
  color: #fffaf8;
  background: linear-gradient(135deg, #c8848d, #a45d69);
  box-shadow: 0 12px 28px rgba(164, 93, 105, 0.28);
}

.btn-primary:hover {
  color: #fffaf8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(164, 93, 105, 0.34);
}

.btn-ghost {
  color: var(--rose-deep);
  background: rgba(255, 252, 250, 0.72);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  color: var(--rose-deep);
  text-decoration: none;
  background: #fff;
}

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

.feature-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 252, 250, 0.78);
  box-shadow: 0 10px 28px rgba(143, 79, 90, 0.04);
}

.feature-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-card h2::before {
  display: none;
}

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

.hero-card {
  margin-bottom: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 180, 176, 0.28) 0%, rgba(255, 252, 250, 0.92) 55%);
}

.hero-card .tagline {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rose-deep);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(247, 235, 230, 0.65);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
}

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

.site-footer a {
  color: var(--ink-muted);
  font-weight: 550;
}

.site-footer .beian {
  margin: 6px 0 0;
  font-size: 12px;
}

.site-footer .beian a {
  color: var(--ink-faint);
  font-weight: 400;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .main,
  .site-nav-inner,
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main {
    padding-top: 28px;
    padding-bottom: 52px;
  }

  .doc-section {
    padding: 18px 16px 16px;
  }

  .marketing-hero {
    min-height: min(72vh, 560px);
    border-radius: 16px;
  }

  .marketing-hero-media img {
    object-position: center 22%;
  }

  .marketing-hero-foreground {
    min-height: min(72vh, 560px);
    padding: 24px 16px 22px;
  }

  .marketing-hero-copy {
    max-width: 34em;
  }

  .hero-ui {
    left: 80%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(260px, calc(100% - 32px));
    padding: 12px 12px 10px;
    gap: 10px;
    border-radius: 14px;
  }

  .hero-shape-chip {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-hero-media img,
  .marketing-hero-foreground,
  .feature-card,
  .doc-section {
    animation: none;
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    opacity: 0.86;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

.feature-card,
.doc-section {
  animation: softRise 560ms var(--ease) both;
}

.feature-card:nth-child(2) {
  animation-delay: 80ms;
}

.feature-card:nth-child(3) {
  animation-delay: 140ms;
}
