@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --bg: #111015;
  --float: #1c1a21;
  --float-2: #26242c;
  --fill-1: rgba(255, 255, 255, 0.035);
  --fill-2: rgba(255, 255, 255, 0.07);
  --fill-3: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.07);
  --media: #0b0a0e;
  --ink: #f4f4f4;
  --ink-2: rgba(255, 255, 255, 0.64);
  --ink-3: rgba(255, 255, 255, 0.5);
  --accent: #a970ff;
  --lilac: #c9a8fc;
  --accent-solid: #7c3aed;
  --accent-soft: rgba(169, 112, 255, 0.14);
  --green: #2bd48f;
  --amber: #f2c063;
  --danger: #ff8f8f;
  --radius: 15px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 50px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; background: var(--bg); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 560px at 74% -120px, rgba(124, 58, 237, 0.17), transparent 72%),
    linear-gradient(180deg, #16141d 0, var(--bg) 640px);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--sans);
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Fine film grain over the whole page, so the dark surfaces don't look flat. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 25;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(124, 58, 237, 0.6); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 8px 12px; background: var(--float); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* Type */
h1 { font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h2, .h2 { font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.875rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.lead { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.lead a { color: var(--accent); }
.accent { color: var(--accent); }
/* Taken from the logo's gradient. The right padding stops the last letter being clipped. */
.gradient-text { display: inline-block; padding-right: 0.08em; background: linear-gradient(100deg, #ecdcff 0%, #bd8efc 45%, #8b4cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 700; color: var(--lilac); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon-move { display: inline-flex; transition: transform 200ms var(--ease-out); }
.btn:hover .icon-move { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #121116; }
.btn-primary:hover { background: #fff; }
.btn-primary:disabled { opacity: 0.55; cursor: progress; }
.btn-accent { background: var(--accent-solid); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-accent:hover { background: #6d28d9; }
.btn-ghost { background: var(--fill-2); color: var(--ink); }
.btn-ghost:hover { background: var(--fill-3); }
.btn-danger { background: var(--fill-2); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 143, 143, 0.14); }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; text-decoration: none; transition: color 150ms ease; }
.text-link:hover { color: var(--ink); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-latest { background: var(--accent-soft); color: var(--lilac); }
.pill-soon { background: rgba(242, 192, 99, 0.14); color: var(--amber); }
.pill-free { background: rgba(43, 212, 143, 0.14); color: var(--green); }
.pill-role { background: var(--accent-soft); color: var(--lilac); }

/* Illustrations */
.art { display: block; width: 100%; height: auto; }
.art text { font-family: var(--sans); }
.a-panel { fill: var(--float); stroke: rgba(255, 255, 255, 0.1); }
.a-panel-2 { fill: var(--float-2); stroke: rgba(255, 255, 255, 0.1); }
.a-selected { stroke: var(--accent); stroke-width: 1.5; }
.a-bar { fill: rgba(255, 255, 255, 0.2); }
.a-bar-soft { fill: rgba(255, 255, 255, 0.09); }
.a-white { fill: #f4f4f4; }
.a-dark { fill: #121116; }
.a-dark-soft { fill: rgba(12, 8, 24, 0.28); }
.a-accent { fill: var(--accent); }
.a-accent-solid { fill: var(--accent-solid); }
.a-lilac { fill: var(--lilac); }
.a-green { fill: var(--green); }
.a-ring { fill: none; stroke: rgba(201, 168, 252, 0.2); }
.a-ring-dash { stroke-dasharray: 2 7; stroke-linecap: round; }
.a-link { stroke: rgba(201, 168, 252, 0.45); stroke-dasharray: 3 4; }
.a-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.a-progress { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 68 100; animation: progress 4s var(--ease) infinite; }
.a-cursor { stroke: #121116; stroke-width: 1.2; stroke-linejoin: round; }
.a-mark { font-size: 28px; font-weight: 800; fill: var(--lilac); }
.c-white { color: #fff; }
.c-ink { color: var(--ink-2); }
.c-faint { color: var(--ink-3); }
.c-green { color: var(--green); }
.c-dark { color: #06291b; }
.c-violet { color: var(--accent-solid); }

.spin-slow, .spin-mid, .spin-slow-rev { transform-origin: 300px 300px; }
.spin-slow { animation: spin 60s linear infinite; }
.spin-mid { animation: spin 38s linear infinite; }
.spin-slow-rev { animation: spin 80s linear infinite reverse; }
.spin-support { transform-origin: 240px 160px; }
.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 8s ease-in-out -2s infinite; }
.float-c { animation: float 6s ease-in-out -4s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes progress {
  0% { stroke-dasharray: 8 100; }
  70%, 100% { stroke-dasharray: 80 100; }
}

/* Scrolling header: wide and transparent at the top of the page, a floating island once scrolled.
   site.js works out the widths, because CSS can't animate to a width that depends on the content. */
.site-header { position: sticky; top: 0; z-index: 30; pointer-events: none; }
.header-shell { display: flex; align-items: center; justify-content: center; height: 90px; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.header-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 24px;
  transition: width 300ms var(--ease), height 300ms var(--ease), padding 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.header-nav[data-island] {
  height: 60px;
  padding: 0 9px 0 12px;
  background: var(--float);
  box-shadow: 0 0 0 1px var(--hairline), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.header-side { display: flex; align-items: center; min-width: var(--side-width, 0); transition: min-width 300ms var(--ease); }
.header-side-end { justify-content: flex-end; }
.header-nav[data-island] .header-side { min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; width: 36px; height: 36px; }
.brand-text { display: grid; line-height: 1.25; }
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; }
.brand-tag { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }

.nav-links { position: relative; display: flex; gap: 4px; }
.nav-pill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-sm); background: var(--fill-2); opacity: 0; pointer-events: none; }
.pill-ready .nav-pill { transition: transform 280ms var(--ease-out), width 280ms var(--ease-out), opacity 180ms ease; }
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current='page'] { color: var(--ink); background: var(--fill-2); }
.nav-links.has-pill a[aria-current='page'] { background: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Account menu */
.account-menu, .mobile-menu { position: relative; }
.account-menu summary, .mobile-menu summary { cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px 0 6px;
  background: var(--fill-2);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 150ms ease;
}
.account-menu summary:hover, .account-menu[open] summary { background: var(--fill-3); }
.account-menu summary > .icon { color: var(--ink-3); transition: transform 180ms var(--ease-out); }
.account-menu[open] summary > .icon { transform: rotate(180deg); }
.avatar-wrap { position: relative; display: block; flex: none; width: 32px; height: 32px; }
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.presence { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--float); }
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mobile-menu { display: none; }
.mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; background: var(--fill-2); border-radius: var(--radius); }
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 240px;
  padding: 6px;
  background: var(--float);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 60px rgba(0, 0, 0, 0.6);
  transform-origin: top right;
  animation: menu-in 200ms var(--ease-out);
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.account-card { width: min(320px, calc(100vw - 32px)); padding: 0 0 6px; overflow: hidden; }
.account-banner { height: 76px; background: linear-gradient(115deg, #4c1d95 0%, #7c3aed 62%, #a970ff 100%); }
.account-banner svg { display: block; width: 100%; height: 100%; }
.account-banner circle { fill: none; stroke: rgba(255, 255, 255, 0.24); }
.account-banner .banner-dot { fill: #fff; stroke: none; opacity: 0.85; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: -34px; padding: 0 16px; }
.avatar-wrap-lg { width: 68px; height: 68px; }
.avatar-wrap-lg img { box-shadow: 0 0 0 5px var(--float); }
.avatar-wrap-lg .presence { right: 1px; bottom: 1px; width: 18px; height: 18px; border-width: 4px; }
.account-who { display: grid; padding: 10px 16px 0; line-height: 1.35; }
.account-who strong { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.account-who span { font-size: 0.875rem; color: var(--ink-3); overflow-wrap: anywhere; }
.account-connected { display: flex; align-items: center; gap: 9px; margin: 12px 12px 0; padding: 9px 12px; background: var(--fill-1); border-radius: 12px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.account-connected > .icon { color: var(--lilac); }
.account-connected-check { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: rgba(43, 212, 143, 0.16); color: var(--green); }
.account-roles { padding: 12px 16px 0; }
.account-roles p { margin-bottom: 7px; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.account-roles ul { display: flex; flex-wrap: wrap; gap: 5px; }
.account-roles small { font-size: 0.8125rem; color: var(--ink-2); }
.account-roles small a { color: var(--lilac); }
.role-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px; background: var(--fill-2); border-radius: 7px; font-size: 0.75rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--role-color, var(--ink-3)); }
.role-chip-more { color: var(--ink-2); }
.role-chip-more::before { display: none; }
.menu-group { display: grid; gap: 1px; margin: 10px 6px 0; padding-top: 6px; border-top: 1px solid var(--hairline); }
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.menu-item .icon { color: var(--ink-3); }
.menu-item:hover { background: var(--fill-2); }
.menu-item:hover .icon { color: var(--ink); }
.menu-item[aria-current='page'] { color: var(--accent); }
.menu-item-danger, .menu-item-danger .icon, .menu-item-danger:hover .icon { color: var(--danger); }
.menu-item-danger:hover { background: rgba(255, 143, 143, 0.12); }

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  background: var(--float-2);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hairline), 0 20px 50px rgba(0, 0, 0, 0.55);
  font-size: 0.9375rem;
  font-weight: 600;
  animation: rise 260ms var(--ease-out);
}
.toast[data-toast] { padding-right: 12px; }
.toast-text { display: flex; align-items: center; gap: 10px; }
.toast-success .icon-status { color: var(--green); }
.toast-error .icon-status { color: var(--danger); }
.toast-close { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; }
.toast-close:hover { background: var(--fill-2); color: var(--ink); }

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

/* Hero */
.hero { padding: 48px 0 112px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.hero-copy > * { animation: rise 560ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero h1 { font-size: clamp(3.25rem, 1.6rem + 5vw, 5.75rem); line-height: 1; letter-spacing: -0.05em; }
.hero .lead { margin-top: 24px; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; animation: rise 700ms var(--ease-out) 100ms both; }
.orbit { position: absolute; top: 50%; left: 50%; width: 118%; height: auto; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
.hero-stats li { display: flex; align-items: baseline; gap: 7px; }
.hero-stats li + li { position: relative; }
.hero-stats li + li::before { content: ''; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 1px; background: var(--fill-3); }
.hero-stats strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.hero-stage { position: relative; aspect-ratio: 16 / 9; }
.hero-slide { position: absolute; inset: 0; transform-origin: top right; transition: transform 800ms var(--ease-out), opacity 500ms ease; }
.hero-slide[data-state='front'] { z-index: 2; opacity: 1; transform: none; }
.hero-slide[data-state='back'] { z-index: 1; opacity: 0.5; transform: translate(28px, -40px) scale(0.58); }
.hero-slide[data-state='back']:hover { opacity: 0.85; }
.hero-slide[data-state='hidden'] { z-index: 0; opacity: 0; transform: translate(28px, -40px) scale(0.5); pointer-events: none; }
.hero-slide:not([data-state='front']) .hero-chip { opacity: 0; pointer-events: none; }

.hero-dots { position: absolute; right: 0; bottom: -36px; z-index: 3; display: flex; gap: 6px; }
.hero-dot { display: grid; align-items: center; width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot span { position: relative; display: block; height: 4px; border-radius: 999px; background: var(--fill-3); overflow: hidden; transition: background-color 150ms ease; }
.hero-dot:hover span { background: rgba(255, 255, 255, 0.28); }
.hero-dot.is-active span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; animation: hero-timer 5s linear both; }
@keyframes hero-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
html:has(dialog[open]) .hero-dot.is-active span::after,
.hero-visual:has(:focus-visible) .hero-dot.is-active span::after { animation-play-state: paused; }
@media (hover: hover) {
  .hero-visual:hover .hero-dot.is-active span::after { animation-play-state: paused; }
}

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--media);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 70px rgba(0, 0, 0, 0.5);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 600ms var(--ease); }
.shot:hover img { transform: scale(1.03); }
.hero-chip {
  position: absolute;
  left: -22px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 20px);
  padding: 10px 14px 10px 10px;
  background: var(--float);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 44px rgba(0, 0, 0, 0.55);
  text-align: left;
  cursor: pointer;
  transition: transform 240ms var(--ease-out), opacity 300ms ease;
}
.hero-chip:hover { transform: translateY(-3px); }
.hero-chip-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--lilac); }
.hero-chip-text { display: grid; min-width: 0; line-height: 1.3; }
.hero-chip-text strong { font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-chip-text small { font-size: 0.8125rem; color: var(--ink-3); }

/* Feature row */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--hairline); }
.feature { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 26px 24px; }
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature + .feature { box-shadow: -1px 0 0 var(--hairline); }
.feature-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--lilac); }
.feature-icon { transition: transform 260ms var(--ease-out), background-color 200ms ease; }
.feature:hover .feature-icon { transform: translateY(-2px); background: rgba(169, 112, 255, 0.24); }
.feature h3 { font-size: 1rem; }
.feature p { margin-top: 3px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 12px 0 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.section-head .kicker { margin-bottom: 8px; }


.check-list { display: grid; gap: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.check-mark { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--lilac); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; padding: 10px; background: var(--fill-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color 200ms ease; }
.step:hover { background: var(--fill-2); }
.step-art { padding: 8px; background: var(--media); border-radius: 15px; overflow: hidden; }
.step-art .art { transition: transform 500ms var(--ease-out); }
.step:hover .step-art .art { transform: scale(1.04); }
.step-text { display: flex; gap: 14px; padding: 18px 12px 12px; }
.step-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); font-size: 0.875rem; font-weight: 800; color: var(--lilac); }
.step p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 22%; }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Support block */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 28px 28px 28px 56px; background: linear-gradient(115deg, #241152 0%, #43209a 55%, #6d33d8 100%); border-radius: 28px; overflow: hidden; }
.support h2 { margin-top: 12px; color: #fff; }
.support .kicker { color: rgba(255, 255, 255, 0.82); }
.support-copy > p:not(.kicker) { margin-top: 12px; max-width: 44ch; color: rgba(255, 255, 255, 0.8); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.support .btn-primary { background: #fff; }
.support .btn-primary:hover { background: #ece4fb; }
.support .btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.support .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.support-art { max-width: 480px; justify-self: end; }
.support .a-ring { stroke: rgba(255, 255, 255, 0.24); }
.support .a-lilac, .support .a-accent { fill: #fff; }

.empty { display: grid; justify-items: center; gap: 4px; padding: 48px 24px; background: var(--fill-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-2); text-align: center; }
.empty h3 { color: var(--ink); }
.lost-art { width: 220px; margin-bottom: 12px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid:has(> :only-child) { grid-template-columns: minmax(0, 620px); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--fill-1);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-align: left;
  cursor: pointer;
  transition: transform 280ms var(--ease-out), background-color 200ms ease;
}
/* A thin edge highlight that follows the cursor (position set in site.js). */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0), rgba(201, 168, 252, 0.85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.product-card:hover { transform: translateY(-4px); background: var(--fill-2); }
.product-card:hover::before { opacity: 1; }
.product-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--media); border-radius: 14px; overflow: hidden; }
.product-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 600ms var(--ease); }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 10px 8px; }
.product-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-title { min-width: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.9em;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.product-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.product-go { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--fill-2); transition: background-color 180ms ease, color 180ms ease; }
.product-go-label { max-width: 0; overflow: hidden; font-size: 0.875rem; font-weight: 700; white-space: nowrap; opacity: 0; transition: max-width 260ms var(--ease-out), margin 260ms var(--ease-out), opacity 180ms ease; }
.product-card:hover .product-go, a.link-card:hover .product-go { background: var(--ink); color: #121116; }
.product-card:hover .product-go-label { max-width: 48px; margin-right: 6px; opacity: 1; }

/* Page heroes */
.page-hero { padding: 40px 0 44px; overflow-x: clip; }
.page-hero-inner { position: relative; isolation: isolate; }
.page-hero-copy { max-width: 640px; }
.page-hero h1 { margin-top: 12px; font-size: clamp(2.5rem, 1.7rem + 3vw, 4.25rem); line-height: 1.04; letter-spacing: -0.045em; }
.page-hero .lead { margin-top: 16px; }
.page-hero .orbit { left: auto; right: -60px; width: 560px; transform: translateY(-50%); }

/* Product toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.segment { display: inline-flex; max-width: 100%; gap: 2px; padding: 4px; background: var(--fill-1); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--hairline); overflow-x: auto; scrollbar-width: none; }
.segment button { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: none; font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.segment button:hover { color: var(--ink); }
.segment button span { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.segment button[aria-pressed='true'] { background: var(--ink); color: #121116; }
.segment button[aria-pressed='true'] span { color: rgba(18, 17, 22, 0.6); }
.search { position: relative; flex: 0 1 300px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input[type='search'] { padding-left: 40px; border-radius: var(--radius); }

/* Product popup */
.product-dialog, .confirm-dialog {
  background: var(--float);
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 40px 100px rgba(0, 0, 0, 0.6);
  padding: 0;
}
.product-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin; }
dialog::backdrop { background: rgba(7, 6, 10, 0.76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: dialog-in 280ms var(--ease-out); }
dialog[open]::backdrop { animation: fade-in 200ms ease; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }
.dialog-inner { position: relative; padding: 10px; }
.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(17, 16, 21, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 150ms ease, transform 200ms var(--ease-out);
}
.dialog-close:hover { background: var(--float-2); transform: rotate(90deg); }
.dialog-media { background: var(--media); border-radius: 15px; overflow: hidden; }
.dialog-media img { width: 100%; max-height: 480px; object-fit: contain; }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 26px 16px 16px 18px; }
.dialog-main { min-width: 0; }
.dialog-main h2 { font-size: 2rem; }
.dialog-description { display: grid; gap: 12px; margin-top: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.dialog-description h3 { margin-top: 6px; font-size: 1rem; color: var(--ink); }
.dialog-side { display: grid; gap: 14px; align-self: start; padding: 16px; background: var(--fill-1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.access { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.access strong { display: block; font-weight: 700; letter-spacing: -0.015em; }
.access small { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.access-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--lilac); }
.access-ok .access-icon { background: rgba(43, 212, 143, 0.14); color: var(--green); }
.access-soon .access-icon, .access-locked .access-icon { background: rgba(242, 192, 99, 0.14); color: var(--amber); }
.dialog-note { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.dialog-note strong { color: var(--ink); font-weight: 700; }
.dialog-note a { color: var(--lilac); text-decoration: none; }
.dialog-note a:hover { color: var(--ink); }
.facts { display: grid; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 0.875rem; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { flex: none; color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.copy-link { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px; border: 0; border-radius: 9px; background: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color 150ms ease; }
.copy-link:hover { color: var(--ink); }

/* FAQ */
.section-faq { padding: 28px 0 56px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-intro h1 { margin-top: 12px; font-size: clamp(2.5rem, 1.7rem + 3vw, 4.25rem); line-height: 1.04; letter-spacing: -0.045em; }
.faq-intro .lead { margin-top: 12px; }
.faq-help { display: flex; gap: 14px; margin-top: 28px; padding: 18px; background: var(--fill-1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.faq-help p { margin: 2px 0 6px; font-size: 0.9375rem; color: var(--ink-2); }
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--fill-1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color 150ms ease; interpolate-size: allow-keywords; }
.faq-item:hover, .faq-item[open] { background: var(--fill-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 20px; font-weight: 700; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); transition: transform 260ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--ink); color: #121116; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease), content-visibility 260ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { padding: 0 64px 20px 20px; color: var(--ink-2); }

/* Links */
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-feature-item { grid-column: 1 / -1; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  height: 100%;
  padding: 18px;
  background: var(--fill-1);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-decoration: none;
  transition: background-color 150ms ease, transform 240ms var(--ease-out);
}
a.link-card:hover { background: var(--fill-2); transform: translateY(-2px); }
.link-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--accent-soft); color: var(--lilac); }
.link-text { display: grid; flex: 1; min-width: 0; }
.link-label { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.link-desc { font-size: 0.9375rem; color: var(--ink-2); }
.link-host { font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-feature { padding: 26px; }
.link-feature .link-icon { width: 62px; height: 62px; border-radius: 18px; background: var(--accent-solid); color: #fff; }
.link-feature .link-label { font-size: 1.5rem; letter-spacing: -0.03em; }

/* Message pages */
.message-page { display: grid; justify-items: center; gap: 10px; padding-top: 48px; padding-bottom: 48px; text-align: center; }
.message-code { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.message-page .lead { max-width: 48ch; }
.message-page .btn { margin-top: 16px; }

/* Footer */
.site-footer { margin-top: 32px; padding-top: 48px; color: var(--ink-2); font-size: 0.9375rem; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin-top: 12px; }
.footer-brand .footer-motto { margin-top: 16px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.footer-brand .footer-motto + p { margin-top: 4px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 88px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h3 { margin-bottom: 4px; font-size: 1rem; color: var(--ink); }
.site-footer a { text-decoration: none; transition: color 150ms ease; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 0.8125rem; color: var(--ink-3); }
.footer-wordmark {
  margin: 20px 0 -0.24em;
  font-size: clamp(3.5rem, 15.6vw, 15rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(169, 112, 255, 0.2) 0%, rgba(169, 112, 255, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* Management portal */
.manage-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; padding-top: 24px; padding-bottom: 72px; align-items: start; }
.manage-side { position: sticky; top: 100px; display: grid; gap: 12px; }
.manage-side-label { padding: 0 12px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 700; text-decoration: none; transition: color 150ms ease, background-color 150ms ease; }
.side-nav a:hover { color: var(--ink); background: var(--fill-1); }
.side-nav a[aria-current='page'] { color: var(--ink); background: var(--fill-2); }
.side-nav a[aria-current='page'] .icon { color: var(--accent); }

.manage-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.manage-title-row h1 { font-size: 1.875rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 16px; background: var(--fill-1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.stat-icon { display: grid; place-items: center; grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--lilac); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.8125rem; color: var(--ink-2); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 14px 18px; background: rgba(242, 192, 99, 0.09); border-radius: var(--radius); font-size: 0.9375rem; color: var(--amber); }
.callout a { color: inherit; font-weight: 700; }

.manage-list { display: grid; gap: 8px; }
.manage-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 10px 14px 10px 10px; background: var(--fill-1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.manage-row img { width: 112px; height: 63px; flex: none; object-fit: cover; object-position: left center; background: var(--media); border-radius: var(--radius-sm); }
.manage-main { display: grid; flex: 1 1 220px; min-width: 0; }
.manage-title { font-weight: 700; letter-spacing: -0.02em; }
.manage-sub { font-size: 0.875rem; color: var(--ink-3); overflow-wrap: anywhere; }
.manage-actions { display: flex; gap: 8px; }

/* Forms */
.product-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.form-col { display: grid; gap: 16px; min-width: 0; }
.form-side { position: sticky; top: 100px; display: grid; gap: 14px; min-width: 0; }
.panel { display: grid; gap: 18px; min-width: 0; padding: 22px; background: var(--fill-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); }
.panel-title { font-size: 1.0625rem; }
.upload-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-size: 0.875rem; font-weight: 700; }
.field-hint { font-size: 0.8125rem; color: var(--ink-3); }
.field-error { margin: 0; font-size: 0.875rem; color: var(--danger); }
input[type='text'], input[type='url'], input[type='search'], select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--fill-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 150ms ease, background-color 150ms ease;
}
input[type='text'], input[type='url'], input[type='search'], select { min-height: 46px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select option { background: var(--float-2); }
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { background: var(--fill-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--fill-1);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.choice:hover { background: var(--fill-2); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(169, 112, 255, 0.12); }
.choice input { margin: 4px 0 0; accent-color: var(--accent-solid); }
.choice strong { display: block; font-size: 0.9375rem; font-weight: 700; }
.choice small { display: block; font-size: 0.8125rem; color: var(--ink-2); }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--fill-1);
  border: 1px dashed var(--fill-3);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(169, 112, 255, 0.08); }
.drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; z-index: 1; opacity: 0; cursor: pointer; }
.drop img { width: 100%; height: 100%; object-fit: contain; background: var(--media); }
.drop-text { display: grid; justify-items: center; gap: 2px; padding: 14px; font-size: 0.9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
.drop-text .icon { margin-bottom: 6px; color: var(--accent); }
.drop-text strong { color: var(--ink); font-weight: 700; }
.drop-text small { font-size: 0.8125rem; color: var(--ink-3); }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--accent-solid); }

.preview-label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }
.preview-card { cursor: default; }
.preview-card:hover { transform: none; background: var(--fill-1); }
.preview-card::before { display: none; }
.preview-card:hover .product-media img { transform: none; }
.preview-card .product-title { font-size: 1.0625rem; }
.preview-card .product-snippet { min-height: 0; font-size: 0.875rem; }
.preview-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 0.875rem; }
.form-actions { display: grid; gap: 8px; }
.upload-progress { display: grid; gap: 6px; }
.upload-bar { height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.upload-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 120ms linear; }

.link-editor { display: grid; gap: 10px; }
.link-form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 160px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--fill-1);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.link-form-new { margin-top: 10px; background: transparent; border: 1px dashed var(--fill-3); box-shadow: none; }
.link-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-bottom: 2px; }

.confirm-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* Below this width the links move into the menu button. */
@media (max-width: 1040px) {
  :root { --gutter: 32px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  /* Menus line up with the header's right edge, so they can't run off a narrow screen. */
  .header-nav { position: relative; }
  .account-menu, .mobile-menu { position: static; }
  .header-shell { height: 72px; }
  .header-nav[data-island] { height: 58px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 32px 0 88px; }
  .hero-chip { left: 12px; }
  .hero-slide[data-state='back'] { transform: translate(12px, -28px) scale(0.58); }
  .hero-slide[data-state='hidden'] { transform: translate(12px, -28px) scale(0.5); }
  /* Stacked layouts leave no room around the image, so the rings would cross the buttons. */
  .hero-visual .orbit { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(odd) { padding-left: 0; }
  .feature:nth-child(even) { padding-right: 0; }
  .feature:nth-child(3) { box-shadow: 0 -1px 0 var(--hairline); }
  .feature:nth-child(4) { box-shadow: -1px 0 0 var(--hairline), 0 -1px 0 var(--hairline); }
  .product-grid:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: center; gap: 8px; }
  .step-art { flex: 0 0 42%; }
  .support { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .support-art { justify-self: center; max-width: 420px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-intro { position: static; }
  .page-hero .orbit { right: -220px; }
  .dialog-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .product-form { grid-template-columns: minmax(0, 1fr); }
  .form-side { position: static; }
  .link-form { grid-template-columns: minmax(0, 1fr); }
  .link-form-actions { justify-content: flex-start; }
  .manage-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 12px; }
  .manage-side { position: static; }
  .manage-side-label { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header-actions { gap: 6px; }
  .brand-tag, .hide-sm, .account-name { display: none; }
  .account-menu summary { padding-right: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-dots { left: 0; justify-content: center; bottom: -62px; }
  .hero-stats li + li::before { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 20px 0; }
  .feature + .feature, .feature:nth-child(3), .feature:nth-child(4) { box-shadow: 0 -1px 0 var(--hairline); }
  .section { padding: 44px 0; }
  .product-grid, .product-grid:has(> :nth-child(3)), .product-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: column; align-items: stretch; }
  .step-art { flex: none; }
  .support { padding: 26px 22px; }
  .support-actions .btn { flex: 1 1 auto; }
  .page-hero { padding: 24px 0 32px; }
  .page-hero .orbit { width: 420px; right: -240px; opacity: 0.6; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .segment { flex-wrap: wrap; }
  .search { flex: 1 1 auto; }
  .dialog-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 10px 10px; }
  .dialog-main h2 { font-size: 1.625rem; }
  .link-grid { grid-template-columns: minmax(0, 1fr); }
  .link-feature { padding: 18px; }
  .link-feature .link-icon { width: 50px; height: 50px; }
  .link-feature .link-label { font-size: 1.25rem; }
  .link-card .pill { display: none; }
  .choice-group, .upload-row { grid-template-columns: minmax(0, 1fr); }
  .manage-actions { width: 100%; }
  .manage-actions .btn, .manage-actions form { flex: 1; }
  .manage-actions form .btn { width: 100%; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; justify-content: space-between; }
}

/* Product link field and move buttons in the portal */
.product-card { text-decoration: none; }
.slug-input { display: flex; align-items: center; min-width: 0; background: var(--fill-2); border-radius: var(--radius-sm); border: 1px solid transparent; transition: border-color 150ms ease; }
.slug-input:focus-within { border-color: var(--accent); }
.slug-input > span { flex: none; padding-left: 14px; font-size: 0.875rem; color: var(--ink-3); white-space: nowrap; }
.slug-input input[type='text'] { flex: 1; min-width: 60px; padding-left: 1px; background: none; border: 0; }
.slug-input input[type='text']:hover { background: none; }
.move-buttons { display: flex; gap: 2px; }
.move-buttons button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.move-buttons button:hover { background: var(--fill-2); color: var(--ink); }

/* Themed dropdowns (built in site.js) */
.select { position: relative; min-width: 0; }
.select select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.select-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px 8px 14px; background: var(--fill-2); border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 500; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.select-button:hover { background: var(--fill-3); }
.select-button:focus { outline: none; border-color: var(--accent); }
.select.is-open .select-button { border-color: var(--accent); background: var(--fill-3); }
.select.is-invalid .select-button { border-color: var(--danger); }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-placeholder .select-value { color: var(--ink-3); }
.select-chevron { color: var(--ink-3); transition: transform 180ms var(--ease-out); }
.select.is-open .select-chevron { transform: rotate(180deg); color: var(--ink); }
.select-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 1px; max-height: 280px; overflow-y: auto; padding: 6px; background: var(--float); border-radius: 18px; box-shadow: 0 0 0 1px var(--hairline), 0 24px 60px rgba(0, 0, 0, 0.6); transform-origin: top; animation: menu-in 200ms var(--ease-out); scrollbar-width: thin; scrollbar-color: var(--fill-3) transparent; }
.select-up .select-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom; }
.select-menu li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.select-menu li > span:not(.select-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-menu li.is-active { background: var(--fill-2); }
.select-menu .select-empty { color: var(--ink-2); }
.select-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.select-check { display: none; color: var(--accent); }
.select-menu li[aria-selected='true'] { color: var(--lilac); }
.select-menu li[aria-selected='true'] .select-check { display: block; }

/* Docs manager in the portal */
.docs-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; background: var(--fill-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); }
.docs-guide li { display: flex; gap: 12px; padding: 16px 18px; }
.docs-guide li + li { box-shadow: -1px 0 0 var(--hairline); }
.docs-guide .feature-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 11px; background: var(--accent-soft); color: var(--lilac); }
.docs-guide strong { font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.015em; }
.docs-guide p { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.docs-cards { display: grid; gap: 12px; }
.docs-card { background: var(--fill-1); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); scroll-margin-top: 100px; }
.docs-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 14px 14px 20px; }
.docs-card-title { flex: 1 1 220px; min-width: 0; margin-right: 8px; }
.docs-card-title h2 { font-size: 1.125rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.docs-card-title p { font-size: 0.875rem; color: var(--ink-3); }
.docs-card-pages { display: grid; gap: 2px; padding: 6px; border-top: 1px solid var(--hairline); }
.docs-page-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 14px; border-radius: 14px; transition: background-color 120ms ease; }
.docs-page-row:hover { background: var(--fill-1); }
.docs-page-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--fill-2); color: var(--ink-2); }
.docs-card-empty { padding: 16px 20px; border-top: 1px solid var(--hairline); font-size: 0.9375rem; color: var(--ink-3); }
.docs-home-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 12px; padding: 16px 16px 16px 20px; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--hairline); }
.docs-home-row > div { flex: 1 1 280px; min-width: 0; display: grid; gap: 1px; }
.docs-home-row strong { font-weight: 700; letter-spacing: -0.015em; }
.docs-home-row p { font-size: 0.875rem; color: var(--ink-2); }
.docs-home-row .docs-home-row-label { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }

.form-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--float); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline), 0 30px 80px rgba(0, 0, 0, 0.6); }
.form-dialog form { display: grid; gap: 16px; padding: 24px; }
.form-dialog h2 { font-size: 1.375rem; letter-spacing: -0.025em; }
.form-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.form-dialog-actions > span { flex: 1; }

.docs-back { margin-bottom: 8px; font-size: 0.875rem; }
.docs-section-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.doc-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 22px; }
.doc-tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; position: relative; padding-top: 20px; }
.doc-tool-group > span { position: absolute; left: 2px; top: 0; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.doc-toolbar button, .doc-tool-upload { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 0; border-radius: 9px; background: var(--fill-2); color: var(--ink); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease; }
.doc-toolbar button:hover, .doc-tool-upload:hover { background: var(--fill-3); }
.doc-toolbar .doc-tool-accent { background: var(--accent-solid); color: #fff; }
.doc-toolbar .doc-tool-accent:hover { background: #6d28d9; }
.doc-tool-upload { position: relative; }
.doc-tool-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.doc-tool-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.doc-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.doc-editor textarea { min-height: 520px; font: 500 0.875rem/1.65 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: 0; }
.doc-editor > .field { grid-template-rows: auto 1fr; }
.doc-preview { min-height: 520px; max-height: 760px; overflow-y: auto; padding: 16px 18px; background: var(--fill-1); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--hairline); }
.doc-preview-empty { color: var(--ink-3); }
.doc-help { font-size: 0.875rem; color: var(--ink-2); }
.doc-help summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.doc-help summary::-webkit-details-marker { display: none; }
.doc-help summary:hover { color: var(--ink); }
.doc-help summary .icon { transition: transform 180ms var(--ease-out); }
.doc-help[open] summary .icon { transform: rotate(180deg); }
.doc-help p { margin: 10px 0; }
.doc-help code { padding: 2px 6px; border-radius: 6px; background: var(--fill-2); color: var(--ink); font: 500 0.8125rem ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: 0; }
.docs-form-actions { position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px; background: var(--float); border-radius: 18px; box-shadow: 0 0 0 1px var(--hairline), 0 16px 40px rgba(0, 0, 0, 0.45); }
.docs-form-actions .field-error { flex: 1 1 100%; padding: 2px 6px; }

.docs-home-title { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.docs-home-title small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }

/* Docs site */
.docs-hero .page-hero-copy { position: relative; z-index: 2; }
.docs-search { position: relative; }
.docs-search .search { display: block; }
.docs-hero .docs-search { max-width: 480px; margin-top: 24px; }
.docs-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 2px; min-width: min(360px, calc(100vw - 32px)); max-height: 420px; overflow-y: auto; padding: 6px; background: var(--float); border-radius: 16px; box-shadow: 0 0 0 1px var(--hairline), 0 24px 60px rgba(0, 0, 0, 0.6); animation: menu-in 180ms var(--ease-out); }
.docs-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 9px 11px; border-radius: var(--radius-sm); text-decoration: none; transition: background-color 120ms ease; }
.docs-results a:hover, .docs-results a:focus-visible { background: var(--fill-2); }
.docs-results strong { font-size: 0.9375rem; font-weight: 700; }
.docs-results small { font-size: 0.75rem; font-weight: 600; color: var(--lilac); align-self: center; }
.docs-results span { grid-column: 1 / -1; overflow: hidden; font-size: 0.8125rem; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.docs-results p { padding: 12px; font-size: 0.875rem; color: var(--ink-2); }

.docs-home-list { display: grid; gap: 10px; max-width: 880px; }
.docs-home-section summary { padding: 18px 18px 18px 22px; }
.docs-home-title strong { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.docs-count { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.docs-home-pages { display: grid; gap: 2px; padding: 0 12px 12px; }
.docs-home-pages a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
.docs-home-pages a span { flex: 1; min-width: 0; }
.docs-home-pages a .icon { color: var(--ink-3); }
.docs-home-pages a .icon:last-child { opacity: 0; transform: translateX(-4px); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.docs-home-pages a:hover { background: var(--fill-2); color: var(--ink); }
.docs-home-pages a:hover .icon:last-child { opacity: 1; transform: none; }

.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 200px; gap: 56px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.docs-side { position: sticky; top: 100px; display: grid; gap: 12px; max-height: calc(100vh - 116px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.docs-overview { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 0.9375rem; font-weight: 700; text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
.docs-overview:hover { background: var(--fill-1); color: var(--ink); }
.docs-side nav { display: grid; gap: 2px; }
.docs-group { interpolate-size: allow-keywords; }
.docs-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 700; cursor: pointer; list-style: none; transition: background-color 120ms ease; }
.docs-group summary::-webkit-details-marker { display: none; }
.docs-group summary:hover { background: var(--fill-1); }
.docs-group summary .icon { color: var(--ink-3); transition: transform 220ms var(--ease-out); }
.docs-group[open] summary .icon { transform: rotate(180deg); }
.docs-group::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease), content-visibility 240ms allow-discrete; }
.docs-group[open]::details-content { block-size: auto; }
.docs-group ul { display: grid; gap: 1px; margin: 2px 0 8px 18px; padding-left: 8px; border-left: 1px solid var(--hairline); }
.docs-group li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
.docs-group li a:hover { background: var(--fill-1); color: var(--ink); }
.docs-group li a[aria-current='page'] { background: var(--accent-soft); color: var(--lilac); }

.docs-article { min-width: 0; max-width: 780px; }
.docs-article h1 { margin-bottom: 18px; font-size: clamp(2rem, 1.7rem + 1.3vw, 2.75rem); }
.docs-crumbs { margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; color: var(--lilac); }
.docs-crumbs a { color: var(--ink-3); text-decoration: none; }
.docs-crumbs a:hover { color: var(--ink); }
.docs-crumbs span { margin: 0 4px; color: var(--ink-3); }
.docs-updated { margin-top: 32px; font-size: 0.8125rem; color: var(--ink-3); }
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.docs-pager a { display: grid; gap: 3px; padding: 14px 18px; border-radius: var(--radius); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--hairline); text-decoration: none; transition: background-color 150ms ease, transform 200ms var(--ease-out); }
.docs-pager a:hover { background: var(--fill-2); transform: translateY(-2px); }
.docs-pager small { display: flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.docs-pager strong { font-weight: 700; letter-spacing: -0.015em; }
.docs-pager-next { grid-column: 2; text-align: right; }
.docs-pager-next small { justify-content: flex-end; }

.docs-toc { position: sticky; top: 100px; font-size: 0.875rem; }
.docs-toc p { margin-bottom: 8px; font-size: 0.8125rem; font-weight: 700; }
.docs-toc nav { display: grid; border-left: 1px solid var(--hairline); }
.docs-toc a { margin-left: -1px; padding: 5px 0 5px 13px; border-left: 1px solid transparent; color: var(--ink-3); font-weight: 600; line-height: 1.35; text-decoration: none; transition: color 120ms ease, border-color 120ms ease; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.is-current { border-left-color: var(--accent); color: var(--lilac); }
.docs-toc .docs-toc-3 { padding-left: 25px; }

/* A docs page's content, also used by the portal's preview */
.doc-body { color: rgba(255, 255, 255, 0.78); overflow-wrap: anywhere; }
.doc-body > * + * { margin-top: 16px; }
.doc-body h2, .doc-body h3, .doc-body h4 { color: var(--ink); scroll-margin-top: 100px; }
.doc-body h2 { margin-top: 36px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.03em; }
.doc-body h3 { margin-top: 28px; font-size: 1.1875rem; }
.doc-body h4 { margin-top: 22px; font-size: 1rem; font-weight: 700; }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body a { color: var(--lilac); text-underline-offset: 3px; }
.doc-body a:hover { color: var(--ink); }
.doc-body ul, .doc-body ol { display: grid; gap: 6px; padding-left: 1.4em; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li::marker { color: var(--accent); font-weight: 700; }
.doc-body hr { margin-block: 28px; border: 0; border-top: 1px solid var(--hairline); }
.doc-body code { padding: 2px 6px; border-radius: 6px; background: var(--fill-2); color: var(--ink); font: 500 0.875em ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: 0; }
.doc-code { border-radius: var(--radius); background: var(--media); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.doc-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px 5px 14px; border-bottom: 1px solid var(--hairline); font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.doc-code-bar button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.doc-code-bar button:hover { background: var(--fill-2); color: var(--ink); }
.doc-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.doc-code code { padding: 0; background: none; font-size: 0.8125rem; line-height: 1.7; overflow-wrap: normal; }
.doc-note { display: flex; gap: 12px; padding: 13px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); }
.doc-note > .icon { margin-top: 3px; color: var(--lilac); }
.doc-note-warn { background: rgba(242, 192, 99, 0.1); }
.doc-note-warn > .icon { color: var(--amber); }
.doc-dropdown { border-radius: var(--radius); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color 150ms ease; interpolate-size: allow-keywords; }
.doc-dropdown:hover, .doc-dropdown[open] { background: var(--fill-2); }
.doc-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 16px; color: var(--ink); font-weight: 700; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.doc-dropdown summary::-webkit-details-marker { display: none; }
.doc-dropdown[open] .faq-toggle { transform: rotate(45deg); background: var(--ink); color: #121116; }
.doc-dropdown::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease), content-visibility 260ms allow-discrete; }
.doc-dropdown[open]::details-content { block-size: auto; }
.doc-dropdown-body { padding: 2px 16px 16px; }
.doc-dropdown-body > * + * { margin-top: 12px; }
.doc-table { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--hairline); overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc-table th { background: var(--fill-1); color: var(--ink); font-weight: 700; text-align: left; white-space: nowrap; }
.doc-table th, .doc-table td { padding: 10px 14px; }
.doc-table td { border-top: 1px solid var(--hairline); }
.doc-image { margin-inline: 0; }
.doc-image img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--hairline); }
.doc-image figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); text-align: center; }

@media (max-width: 1240px) {
  .docs-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .docs-toc { display: none; }
  .doc-editor { grid-template-columns: minmax(0, 1fr); }
  .doc-editor textarea, .doc-preview { min-height: 340px; }
}

@media (max-width: 1040px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 12px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-home-list { max-width: none; }
}

@media (max-width: 720px) {
  .docs-section-fields { grid-template-columns: minmax(0, 1fr); }
  .docs-guide { grid-template-columns: minmax(0, 1fr); }
  .docs-guide li + li { box-shadow: 0 -1px 0 var(--hairline); }
  .docs-card-title { flex-basis: 100%; }
  .docs-card-head .btn { flex: 1 1 auto; }
  .docs-page-row .manage-main { flex-basis: calc(100% - 44px); }
  .docs-page-row .move-buttons { order: 3; }
  .docs-page-row .manage-actions { flex: 1 1 auto; width: auto; }
  .docs-form-actions .btn { flex: 1; }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager-next { grid-column: 1; }
  .docs-count { display: none; }
}
/* Terms of Service and Privacy Policy */
.legal-hero { padding-bottom: 28px; }
.legal-updated { margin-top: 12px; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
.legal-tabs { margin-top: 22px; }
.segment a { display: inline-flex; align-items: center; flex: none; min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.segment a:hover { color: var(--ink); }
.segment a[aria-current='page'] { background: var(--ink); color: #121116; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 16px; padding-bottom: 72px; }
.legal-toc { max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.legal-article { min-width: 0; max-width: 800px; }
.legal-article .doc-body > :first-child { margin-top: 0; }
.legal-article .doc-body h2 { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 1.375rem; }
.legal-toc-mobile { display: none; margin-bottom: 24px; }
.legal-toc-mobile nav { display: grid; gap: 2px; }
.legal-toc-mobile nav a { padding: 6px 0; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.legal-toc-mobile nav > * + * { margin-top: 0; }

@media (max-width: 1040px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-toc { display: none; }
  .legal-toc-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
