/* CODVIAN website — single canonical stylesheet.
   Palette: ink / paper / greys with a violet accent and restrained indigo, pink and sky tints. */
@font-face {
  font-family: 'Geist';
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #0a0a0c;
  --ink-2: #16161b;
  --ink-3: #24242c;
  --paper: #ffffff;
  --mist: #f6f6f8;
  --mist-2: #efeff3;
  --line: #e6e6ec;
  --line-2: #d9d9e1;
  --grey: #6b6b78;
  --grey-2: #9a9aa6;
  --violet: #5b3d8a;
  --violet-2: #b8a3d9;
  --violet-soft: #f4f1f9;
  --indigo: #1f1f24;
  --pink: #7d5ba6;
  --sky: #38bdf8;
  --green: #16a34a;
  --red: #dc2626;
  --grad: linear-gradient(100deg, #5b3d8a 0%, #1f1f24 45%, #3d2a5c 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(10, 10, 12, 0.04), 0 8px 28px rgba(10, 10, 12, 0.06);
  --shadow-lg: 0 2px 6px rgba(10, 10, 12, 0.05), 0 30px 80px -20px rgba(30, 24, 20, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --header-h: 68px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    'Geist',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p a,
li a,
.prose a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--violet) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
p a:hover,
li a:hover,
.prose a:hover {
  text-decoration-color: var(--violet);
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
}
code,
pre {
  font-family: var(--mono);
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--violet-soft);
  color: var(--ink);
}
/* The hidden attribute must always win over component display rules. */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
main:focus {
  outline: none;
}
.shell {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 48px);
}
.center-text {
  text-align: center;
}
.small {
  font-size: 0.85rem;
  color: var(--grey);
}
.body-lg {
  font-size: 1.12rem;
  color: var(--grey);
  line-height: 1.65;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: var(--grad);
  z-index: 60;
  pointer-events: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition:
    box-shadow 0.35s var(--ease),
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn:hover::after {
  left: 130%;
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(91, 61, 138, 0.55);
}
.btn .btn-arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-ghost {
  --bg: rgba(255, 255, 255, 0.7);
  --fg: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}
.btn-ghost::after,
.btn-light::after {
  background: linear-gradient(100deg, transparent, rgba(91, 61, 138, 0.12), transparent);
}
.btn-light {
  --bg: #fff;
  --fg: var(--ink);
}
.btn-light:hover {
  box-shadow: 0 10px 40px -10px rgba(184, 163, 217, 0.7);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  margin-top: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover {
  background-size: 100% 1px;
}
.text-link svg {
  transition: transform 0.3s var(--ease);
}
.text-link:hover svg {
  transform: translateX(3px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.actions.center {
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.01em;
}
.pill.accent {
  background: var(--violet-soft);
  border-color: #e4d8ff;
  color: var(--violet);
}
.pill.local {
  background: #eefaf4;
  border-color: #cdeedd;
  color: #11804a;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  z-index: -1;
}
.site-header.scrolled {
  border-bottom-color: rgba(10, 10, 12, 0.07);
  box-shadow: 0 6px 30px -18px rgba(10, 10, 12, 0.25);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}
.brand img {
  border-radius: 8px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}
.nav-link,
.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: #3b3b45;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-item.open .nav-trigger {
  color: var(--ink);
  background: rgba(10, 10, 12, 0.05);
}
.nav-link[aria-current='page'],
.nav-item.is-current .nav-trigger {
  color: var(--ink);
  font-weight: 500;
}
.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--violet);
}
.nav-trigger svg {
  transition: transform 0.25s var(--ease);
}
.nav-item.open .nav-trigger svg {
  transform: rotate(180deg);
}
.nav-item {
  position: relative;
}
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 520px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s;
}
.nav-item.open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-grid a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.mega-grid a:hover,
.mega-grid a[aria-current='page'] {
  background: var(--mist);
}
.mega-grid strong {
  font-weight: 550;
  font-size: 0.93rem;
}
.mega-grid span {
  font-size: 0.8rem;
  color: var(--grey);
}
.mega-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
}
.mega-cta span {
  color: #b9b9c6;
}
.mega-cta strong {
  font-weight: 500;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-actions .btn {
  height: 40px;
  padding: 0 16px 0 18px;
  font-size: 0.88rem;
}
.sign-in {
  font-size: 0.92rem;
  padding: 0 10px;
  color: #3b3b45;
}
.sign-in:hover {
  color: var(--ink);
}
.account-menu {
  position: relative;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  display: grid;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.account-dropdown a,
.account-dropdown button {
  padding: 9px 12px;
  border-radius: 9px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--mist);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}
.menu-toggle span:first-child {
  top: 16px;
}
.menu-toggle span:last-child {
  top: 24px;
}
.menu-toggle[aria-expanded='true'] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------------- Aurora / backgrounds ---------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 18s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) {
  width: 560px;
  height: 560px;
  left: -140px;
  top: -220px;
  background: radial-gradient(circle, rgba(184, 163, 217, 0.75), transparent 65%);
}
.aurora i:nth-child(2) {
  width: 520px;
  height: 520px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 65%);
  animation-delay: -6s;
}
.aurora i:nth-child(3) {
  width: 420px;
  height: 420px;
  left: 40%;
  top: 120px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 65%);
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate3d(40px, 30px, 0) scale(1.08);
  }
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 10, 12, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 12, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 40px;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 72px);
  overflow: hidden;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: #3b3b45;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.hero-badge:hover {
  border-color: #d8c9ff;
  box-shadow: 0 6px 24px -10px rgba(91, 61, 138, 0.5);
}
.badge-new {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
}
.display {
  font-size: clamp(2.8rem, 7.4vw, 6.1rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero-title {
  max-width: 14ch;
}
.lede {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: var(--grey);
  line-height: 1.6;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--grey-2);
  letter-spacing: 0.02em;
}
.hero-visual {
  position: relative;
  width: min(1040px, 100%);
  margin-top: 64px;
  perspective: 1600px;
}
.hero-visual .app-window {
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease);
}
.float {
  position: absolute;
  width: 280px;
  text-align: left;
  animation: bob 7s ease-in-out infinite;
}
.float.f1 {
  right: -36px;
  top: 90px;
}
.float.f2 {
  left: -44px;
  bottom: 60px;
  animation-delay: -3.5s;
}
@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------------- App window illustration ---------------- */
.app-window {
  margin: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.aw-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
  font-size: 0.78rem;
  color: var(--grey);
}
.aw-dots {
  display: flex;
  gap: 6px;
}
.aw-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e2e8;
}
.aw-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.aw-chip {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.aw-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}
.aw-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #fcfcfd;
  font-size: 0.8rem;
}
.aw-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  margin: 0 6px 12px;
}
.aw-search {
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--grey-2);
  margin-bottom: 10px;
}
.aw-side p {
  margin: 12px 8px 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-2);
}
.aw-side span {
  padding: 6px 10px;
  border-radius: 8px;
  color: #3b3b45;
}
.aw-side span.on {
  background: var(--mist-2);
  color: var(--ink);
  font-weight: 500;
}
.aw-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 48px);
  background: #fff;
}
.aw-msg {
  max-width: 480px;
  font-size: 0.88rem;
}
.aw-msg.user {
  align-self: flex-end;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--mist-2);
}
.aw-msg.agent ol {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #3b3b45;
}
.aw-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 500;
}
.aw-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: #3b3b45;
  max-width: 480px;
}
.aw-tool code {
  font-size: 0.78rem;
  color: var(--ink);
}
.aw-tool em {
  margin-left: auto;
  font-style: normal;
  color: var(--grey-2);
  font-size: 0.75rem;
}
.t-ok,
.t-run {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.t-run {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 61, 138, 0.15);
}
.aw-composer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  font-size: 0.85rem;
  color: var(--grey-2);
}
.aw-chips {
  display: flex;
  gap: 6px;
}
.aw-chips b {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.72rem;
  color: #3b3b45;
}
.aw-chips .send {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.app-window figcaption {
  padding: 10px 16px;
  font-size: 0.74rem;
  color: var(--grey-2);
  border-top: 1px solid var(--line);
  background: #fbfbfc;
}

/* Small UI cards (picker, permissions, terminal, diff) */
.ui-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.82rem;
  text-align: left;
}
.ui-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.ui-card-head strong {
  font-weight: 550;
}
.ui-card-head span {
  color: var(--grey-2);
  font-size: 0.74rem;
}
.ui-card pre {
  margin: 0;
  padding: 14px;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #2a2a33;
}
.ui-card .g {
  color: var(--green);
}
.ui-card .r {
  color: var(--red);
}
.ui-card .m {
  color: var(--grey-2);
}
.ui-card .c {
  color: var(--violet);
}
.ui-card .r,
.ui-card .g {
  display: inline-block;
  width: 100%;
}
.diff pre .g {
  background: #effbf3;
}
.diff pre .r {
  background: #fef1f1;
}
.effort {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 12px 14px;
  padding: 3px;
  border-radius: 10px;
  background: var(--mist-2);
}
.effort span {
  padding: 5px 2px;
  border-radius: 7px;
  text-align: center;
  font-size: 0.66rem;
  color: var(--grey);
  white-space: nowrap;
}
.effort span.on {
  background: #fff;
  color: var(--violet);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(10, 10, 12, 0.08);
}
.ui-list,
.ui-perm,
.ui-steps,
.ui-checks {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.ui-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
}
.ui-list li em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--grey-2);
}
.ui-list li.on {
  background: var(--violet-soft);
}
.ui-list li.on em {
  color: var(--violet);
}
.ui-perm li {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
}
.ui-perm li.on {
  background: var(--mist);
}
.ui-perm b {
  display: block;
  font-weight: 550;
}
.ui-perm small {
  color: var(--grey);
  font-size: 0.74rem;
  line-height: 1.4;
}
.radio {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
.on .radio {
  border: 5px solid var(--violet);
}
.ui-steps {
  counter-reset: s;
  padding: 10px 14px;
}
.ui-steps li {
  counter-increment: s;
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.ui-steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 600;
}
.ui-checks {
  padding: 10px 14px;
}
.ui-checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.ui-checks li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line-2);
}

/* ---------------- Logos marquee ---------------- */
.logos {
  padding: 40px 0 20px;
  text-align: center;
}
.logos > p {
  color: var(--grey);
  font-size: 0.95rem;
}
.marquee {
  overflow: hidden;
  margin: 18px 0 14px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  font-size: 1.05rem;
  color: #3b3b45;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter 0.3s,
    opacity 0.3s;
}
.marquee-item:hover {
  filter: none;
  opacity: 1;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 28px));
  }
}

/* ---------------- Sections ---------------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}
.section.shell {
  padding-inline: 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head > p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--grey);
}
.dark {
  background: var(--ink);
  color: #f2f2f5;
  border-radius: clamp(24px, 4vw, 44px);
  margin: 0 clamp(8px, 1.5vw, 20px);
  overflow: hidden;
  isolation: isolate;
}
.dark::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 80%;
  background:
    radial-gradient(40% 50% at 20% 40%, rgba(91, 61, 138, 0.35), transparent 70%),
    radial-gradient(35% 45% at 80% 30%, rgba(40, 40, 48, 0.25), transparent 70%);
  z-index: -1;
}
.dark .section-head > p,
.dark .body-lg,
.dark p {
  color: #a6a6b4;
}
.dark h2,
.dark h3 {
  color: #fff;
}
.dark .eyebrow {
  color: var(--violet-2);
}
.dark a:not(.btn) {
  color: #fff;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split h2 {
  margin-bottom: 22px;
}
.faq-split {
  align-items: start;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.paired {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 0;
}
.caveat {
  margin-top: 18px;
  max-width: 460px;
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.card,
.panel,
.path,
.provider,
.bento > article,
.price-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.3s,
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
[data-glow]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(91, 61, 138, 0.09),
    transparent 60%
  );
  transition: opacity 0.35s;
}
[data-glow]:hover::before {
  opacity: 1;
}
.card:hover,
.panel:hover,
.path:hover,
.provider:hover,
.price-card:hover {
  border-color: #dccfff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card h3,
.panel h3 {
  margin: 18px 0 10px;
}
.card p,
.panel p,
.path p,
.provider p {
  color: var(--grey);
  font-size: 0.95rem;
}
.card-icon,
.panel > svg,
.bento svg,
.feature-points svg,
.contact-tile > svg,
.input-note > svg {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: var(--violet-soft);
  color: var(--violet);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.dark .card,
.dark .panel,
.dark .bento > article {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}
.dark .card:hover,
.dark .panel:hover {
  border-color: rgba(184, 163, 217, 0.45);
  box-shadow: 0 30px 80px -30px rgba(91, 61, 138, 0.55);
}
.dark [data-glow]::before {
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(184, 163, 217, 0.16),
    transparent 60%
  );
}
.dark .card-icon,
.dark .panel > svg,
.dark .bento svg {
  background: rgba(184, 163, 217, 0.14);
  color: var(--violet-2);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento > article {
  min-height: 200px;
}
.bento h3 {
  margin: 16px 0 8px;
}
.bento-a,
.bento-b {
  grid-column: span 3;
}
.bento-a h3,
.bento-b h3 {
  margin-top: 0;
}
.bento-c,
.bento-d,
.bento-e {
  grid-column: span 2;
}
.bento .ui-card {
  margin-top: 22px;
  background: #fff;
  color: var(--ink);
}
.bento .ui-card p {
  color: inherit;
}
.dark .bento .ui-card .ui-card-head strong {
  color: var(--ink);
}

/* Steps (numbered rows) */
.steps {
  display: grid;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 80px minmax(180px, 1fr) 2fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.step:hover {
  background: linear-gradient(90deg, transparent, var(--mist) 30%, transparent);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--violet);
  padding-top: 4px;
}
.step h3 {
  font-size: 1.35rem;
}
.step p {
  color: var(--grey);
}

/* Workflow tabs */
.flow {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--mist));
  padding: 14px;
  box-shadow: var(--shadow);
}
.flow-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px;
  border-radius: 18px;
  background: var(--mist-2);
}
.flow-tabs button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 0;
  background: none;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.25s;
}
.flow-tabs button span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--grey-2);
}
.flow-tabs button[aria-selected='true'] {
  color: var(--ink);
  font-weight: 550;
}
.flow-tabs button[aria-selected='true'] span {
  color: var(--violet);
}
.flow-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 5);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(10, 10, 12, 0.08);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.45s var(--ease);
}
.flow-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  min-height: 330px;
}
.flow-panel:not([hidden]) {
  animation: rise 0.5s var(--ease);
}
.flow-panel:focus {
  outline: none;
}
.flow-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.flow-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.flow-panel p {
  color: var(--grey);
  font-size: 1.05rem;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Feature points */
.feature-points {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  display: grid;
  gap: 14px;
}
.feature-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.feature-points li span {
  font-weight: 400;
  color: var(--grey);
}
.feature-points li b {
  color: var(--ink);
  font-weight: 550;
}
.feature-points svg {
  flex: none;
  width: 40px;
  height: 40px;
}
.stack-visual .ui-card {
  max-width: 460px;
  margin-left: auto;
  box-shadow: var(--shadow-lg);
}

/* Model paths & pricing */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.path h3 {
  font-size: 1.5rem;
  margin: 18px 0 10px;
}
.path.planned {
  background: linear-gradient(160deg, #fff 40%, var(--violet-soft));
  border-color: #e4d8ff;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}
.ticks li {
  display: flex;
  gap: 10px;
  color: #3b3b45;
}
.ticks li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%237c3aed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center/12px no-repeat,
    var(--violet-soft);
}
.ticks.muted li::before {
  background: var(--mist-2);
}
.effort-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--mist);
  border: 1px solid var(--line);
}
.effort-showcase h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.effort-showcase p {
  color: var(--grey);
}
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: -40px;
  position: relative;
}
.price-card {
  padding: 40px;
}
.price-card h2 {
  font-size: 2rem;
  margin: 18px 0 8px;
}
.price {
  font-size: 2.6rem;
  font-weight: 620;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.price span {
  font-size: 1rem;
  color: var(--grey);
  font-weight: 400;
  letter-spacing: 0;
}
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.price-card.featured p,
.price-card.featured .small {
  color: #a6a6b4;
}
.price-card.featured .price {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.6);
}
.featured-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
}
.price-card.featured .btn-ghost {
  --bg: rgba(255, 255, 255, 0.06);
  --fg: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.price-card .btn {
  margin: 10px 0 14px;
}
.spec {
  margin: 20px 0;
  display: grid;
}
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.spec dt {
  color: #a6a6b4;
}
.spec dd {
  margin: 0;
  text-align: right;
}

/* Providers */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.provider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.provider-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--mist);
}
.provider h3 {
  font-size: 1.4rem;
}
.provider-kind {
  margin: 4px 0 2px;
  font-size: 0.85rem !important;
}
.provider-family {
  color: var(--ink) !important;
  font-weight: 500;
}
.small-ticks {
  font-size: 0.85rem;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8a98;
  font-weight: 500;
}
.table tbody th {
  font-weight: 550;
  color: #fff;
}
.table td {
  color: #b9b9c6;
}

/* Feature groups */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -20px;
}
.chip-nav a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.chip-nav a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.feature-group {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.feature-group-head {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.group-num {
  font-family: var(--mono);
  color: var(--violet);
  font-size: 0.9rem;
}
.feature-group-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.feature-group-head p {
  margin: 0;
  color: var(--grey);
  font-size: 1.05rem;
}
.input-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #fff, var(--violet-soft));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.input-note h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.input-note p {
  color: var(--grey);
  margin: 0;
}

/* Product shot */
.product-shot {
  margin-top: -20px;
}

/* Chain */
.chain {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.chain li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
  position: relative;
}
.chain li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--grey-2);
}
.chain li:last-child {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Notice */
.notice {
  display: flex;
  gap: 14px;
  margin: 36px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid #e4d8ff;
  background: var(--violet-soft);
}
.notice strong {
  font-weight: 550;
}
.notice p {
  margin: 4px 0 0;
  color: #4b4b57;
  font-size: 0.92rem;
}
.notice-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(91, 61, 138, 0.15);
}
.notice.on-dark {
  background: rgba(184, 163, 217, 0.08);
  border-color: rgba(184, 163, 217, 0.25);
}
.notice.on-dark strong {
  color: #fff;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--violet);
}
.faq-plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    border-color 0.25s;
}
.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: currentColor;
}
.faq-plus::after {
  transform: rotate(90deg);
  transition: transform 0.35s var(--ease);
}
.faq details[open] .faq-plus {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.faq details[open] .faq-plus::after {
  transform: rotate(0deg);
}
.faq-body {
  padding: 0 50px 22px 0;
  color: var(--grey);
}
.faq details[open] .faq-body {
  animation: rise 0.35s var(--ease);
}

/* CTA band */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-block: clamp(48px, 8vw, 96px);
  padding: clamp(36px, 6vw, 72px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.cta-band p {
  margin-top: 16px;
  color: #a6a6b4;
  font-size: 1.05rem;
}
.cta-band .actions {
  justify-content: flex-end;
  margin: 0;
}
.cta-glow {
  position: absolute;
  inset: -50% -10% auto auto;
  width: 70%;
  height: 200%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(91, 61, 138, 0.55), transparent),
    radial-gradient(closest-side at 70% 70%, rgba(236, 72, 153, 0.25), transparent);
  filter: blur(30px);
  animation: drift 14s var(--ease) infinite alternate;
}
.footer-ghost {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
.footer-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(64px, 9vw, 110px);
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.page-hero .aurora i {
  opacity: 0.38;
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .display {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 16ch;
}
.page-hero .eyebrow span {
  display: none;
}
.page-hero .eyebrow {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e4d8ff;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  letter-spacing: 0.1em;
}
.notfound .big-404 {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Docs & legal layout ---------------- */
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding: 56px 0 40px;
}
.doc-side-inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.doc-side-title {
  margin: 22px 0 8px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.doc-side nav a {
  position: relative;
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #4b4b57;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.doc-side nav a:hover {
  background: var(--mist);
  color: var(--ink);
}
.doc-side nav a.active {
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 550;
}
.doc-side nav a[hidden] {
  display: none;
}
.doc-side-meta {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--grey-2);
}
.doc-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")
      12px center/16px no-repeat,
    var(--mist);
  font: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.doc-search input:focus {
  outline: none;
  border-color: var(--violet-2);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(91, 61, 138, 0.1);
}
.prose {
  min-width: 0;
  max-width: 760px;
  font-size: 1.02rem;
  color: #2f2f38;
}
.prose p,
.prose li {
  line-height: 1.75;
}
.prose ol,
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.prose h2 span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--violet);
  letter-spacing: 0;
}
.prose h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}
.prose-section {
  padding: 22px 0;
}
.legal .prose-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.prose pre {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #e7e7ee;
  font-size: 0.86rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
}
.prose code {
  font-size: 0.88em;
}
.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--mist-2);
}
.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.copy-code:hover {
  background: rgba(255, 255, 255, 0.14);
}
.prompt .copy-code {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.doc-chapter {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
}
.doc-chapter:first-child {
  padding-top: 0;
}
.doc-crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 12px;
}
.doc-crumb span {
  font-family: var(--mono);
  color: var(--violet);
}
.doc-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem) !important;
  margin-bottom: 12px !important;
}
.doc-summary {
  font-size: 1.12rem;
  color: var(--grey);
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}
.doc-toc a {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: #4b4b57;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.doc-toc a:hover {
  border-color: var(--violet-2);
  color: var(--violet);
}
.doc-end {
  padding: 10px 0 30px;
}
.prose .faq summary {
  font-size: 1rem;
}
.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 30px;
}
.legal-related a {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
}
.legal-related a:hover {
  border-color: var(--ink);
}

/* ---------------- Developers ---------------- */
.prompt {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--violet-soft), #fff 60%);
  border: 1px solid #e4d8ff;
  font-size: 1.12rem;
  line-height: 1.65;
}
.prompt-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.prompt p {
  margin: 0;
}

/* ---------------- Download ---------------- */
.download {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: -40px;
  margin-bottom: 60px;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.download-brand {
  display: flex;
  gap: 22px;
  align-items: center;
}
.download-brand h2 {
  font-size: 1.9rem;
}
.download-brand p {
  margin: 6px 0 0;
  color: var(--grey);
}
.logo-tile {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.download-action {
  max-width: 320px;
}
.download-action .small {
  margin-top: 12px;
}

/* ---------------- About ---------------- */
.manifesto > p:first-child {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 28px;
}
.manifesto em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto .body-lg {
  max-width: 640px;
}

/* ---------------- Contact ---------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  margin-top: -36px;
  padding-bottom: 80px;
  position: relative;
}
.contact-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.contact-mail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.35s var(--ease);
}
.contact-mail:hover {
  box-shadow: 0 24px 60px -24px rgba(91, 61, 138, 0.7);
}
.contact-mail svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(184, 163, 217, 0.16);
  color: var(--violet-2);
}
.contact-mail small {
  display: block;
  color: #a6a6b4;
  font-size: 0.8rem;
}
.contact-mail strong {
  font-weight: 550;
  font-size: 1.05rem;
}
.contact-tile {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.contact-tile > svg {
  flex: none;
}
.contact-tile h2 {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.contact-tile p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
}
.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.topic {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}
.topic legend {
  font-weight: 550;
  margin-bottom: 12px;
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.topic-chips span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.topic-chips span:hover {
  border-color: var(--grey-2);
}
.topic-chips input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.topic-chips input:focus-visible + span {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field[hidden] {
  display: none;
}
.field label {
  font-size: 0.88rem;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--mist);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 61, 138, 0.1);
}
.field [aria-invalid='true'] {
  border-color: var(--red);
  background: #fff8f8;
}
.field-help {
  font-size: 0.8rem;
  color: var(--grey-2);
}
.field-error {
  font-size: 0.82rem;
  color: var(--red);
  min-height: 0;
}
.field-error:empty {
  display: none;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.form-foot .small {
  margin: 0;
  max-width: 380px;
}
.form-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 13px;
  background: #eefaf4;
  border: 1px solid #cdeedd;
  color: #11603a;
  font-size: 0.92rem;
}
.form-status.error {
  background: #fff4f4;
  border-color: #f6d0d0;
  color: #9b1c1c;
}
.email-draft {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.email-draft h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.email-draft pre {
  padding: 18px;
  border-radius: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
}

/* ---------------- Account & auth ---------------- */
.account {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: -36px;
  padding-bottom: 80px;
  position: relative;
}
.account-card {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.account-card img {
  margin: 0 auto 20px;
  border-radius: 16px;
}
.account-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.account-card p {
  color: var(--grey);
}
.account-card .btn {
  margin-top: 12px;
}
.account-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.account-controls[hidden] {
  display: none;
}
.account-side {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--mist);
  border: 1px solid var(--line);
}
.account-side h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.account-side p {
  color: var(--grey);
}
.numbered {
  margin: 24px 0;
  padding-left: 20px;
  color: #3b3b45;
}
.numbered li {
  margin: 8px 0;
}
.auth-status:empty {
  display: none;
}
.auth-status {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--grey);
}
.loader {
  width: 36px;
  height: 36px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--violet-soft);
  border-top-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-dialog {
  padding: 0;
  border: 0;
  background: none;
  max-width: min(420px, 100% - 32px);
  width: 100%;
  overflow: visible;
}
.auth-dialog::backdrop {
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(8px);
}
.auth-dialog[open] .auth-card {
  animation: pop 0.32s var(--ease);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.auth-card {
  position: relative;
  padding: 44px 36px 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 120px -30px rgba(30, 24, 20, 0.5);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.auth-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(184, 163, 217, 0.4), transparent);
}
.auth-logo {
  margin: 0 auto 22px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.auth-card > p {
  color: var(--grey);
  font-size: 0.95rem;
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--grey);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.auth-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.3s var(--ease);
}
.google-signin:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 30px -14px rgba(10, 10, 12, 0.35);
}
.google-signin[disabled] {
  opacity: 0.6;
}
.auth-legal {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--grey-2);
}
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px -36px 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.78rem;
  color: var(--grey);
}
.auth-foot svg {
  width: 15px;
  height: 15px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 60px;
  padding: 0 0 28px;
  background: var(--ink);
  color: #c9c9d4;
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: -30% 20% auto;
  height: 60%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.3), transparent);
  filter: blur(20px);
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: #fff;
}
.footer-cta .grad {
  filter: brightness(1.5);
}
.footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand img {
  background: #fff;
  padding: 2px;
}
.footer-brand p {
  margin: 18px 0;
  max-width: 300px;
  font-size: 0.92rem;
  color: #8f8f9d;
}
.footer-mail {
  color: #fff;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  text-decoration: none;
}
.footer-col h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6f7d;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 0.92rem;
  color: #c9c9d4;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-word {
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin: 10px 0 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #6f6f7d;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* ---------------- Reveal animations ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .card.reveal.in:hover,
.js .panel.reveal.in:hover,
.js .path.reveal.in:hover,
.js .provider.reveal.in:hover,
.js .price-card.reveal.in:hover {
  transform: translateY(-3px);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .float {
    display: none;
  }
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }
  .nav-actions .sign-in {
    display: none;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-link,
  .nav-trigger {
    height: 48px;
    width: 100%;
    justify-content: space-between;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  .nav-link[aria-current='page']::after {
    left: auto;
    right: 16px;
    bottom: auto;
    top: 50%;
    margin-top: -2px;
  }
  .mega {
    position: static;
    width: auto;
    padding: 0 0 8px;
    border: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.open .mega {
    display: block;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .split,
  .two-col,
  .paired,
  .paths,
  .pricing,
  .contact,
  .account,
  .effort-showcase,
  .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band .actions {
    justify-content: flex-start;
  }
  .card-grid,
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento > article {
    grid-column: span 6 !important;
  }
  .flow-panel {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .doc-side-inner {
    position: static;
    max-height: none;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--mist);
  }
  .doc-side nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .doc-group {
    display: contents;
  }
  .doc-group .doc-side-title {
    grid-column: 1 / -1;
  }
  .feature-group-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .input-note {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 50px 1fr;
  }
  .step > div {
    grid-column: 2;
  }
  .stack-visual .ui-card {
    margin: 0;
  }
  .download {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }
  .nav-actions > .btn {
    display: none;
  }
  .aw-body {
    grid-template-columns: 1fr;
  }
  .aw-side {
    display: none;
  }
  .aw-composer {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-visual {
    margin-top: 44px;
  }
  .hero-visual .app-window {
    transform: none;
  }
  .flow-tabs {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    overflow-x: auto;
  }
  .flow-tabs button span {
    display: none;
  }
  .card-grid,
  .card-grid.four,
  .provider-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .price-card,
  .account-card,
  .download {
    padding: 28px;
  }
  .doc-side nav {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion: keep everything static and immediately visible. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .marquee-item[aria-hidden='true'] {
    display: none;
  }
}

/* =====================================================================
   v2 additions: glossy buttons, new hero, interactive app replica,
   providers catalogue, security matrix, auth dialog.
   ===================================================================== */

/* Glossy buttons: soft top highlight + inner edge */
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%), var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 6px 18px -8px rgba(10, 10, 12, 0.6);
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 32px -10px rgba(91, 61, 138, 0.7);
}
.btn-ghost {
  background: linear-gradient(180deg, #fff, #f6f6f9);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(10, 10, 12, 0.06);
}
.btn-light {
  background: linear-gradient(180deg, #fff, #eeeaf9);
  box-shadow: inset 0 1px 0 #fff;
}
.btn {
  height: 48px;
}

/* Hero v2 */
.hero {
  padding-bottom: 0;
}
.hero-beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 150deg,
    rgba(91, 61, 138, 0.16) 175deg,
    rgba(40, 40, 48, 0.12) 185deg,
    transparent 210deg
  );
  z-index: -1;
  pointer-events: none;
}
.hero-title {
  max-width: none;
  display: flex;
  flex-direction: column;
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
}
.ht-line {
  display: block;
}
.ht-line.grad {
  padding-bottom: 0.08em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  font-size: 0.85rem;
  color: var(--grey);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
}
.hero-stage {
  position: relative;
  margin-top: 72px;
  perspective: 1800px;
}
.hero-stage .app {
  transform: rotateX(var(--rx, 8deg));
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease);
}
.stage-glow {
  position: absolute;
  inset: 8% 6% -6%;
  border-radius: 40px;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.28;
  z-index: -1;
}
.stage-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--grey);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 61, 138, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(91, 61, 138, 0);
  }
}

/* Interactive app replica (matches CODVIAN Desktop) */
.app {
  position: relative;
  border-radius: 16px;
  background: #f4f4f4;
  border: 1px solid #e3e3e8;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  color: #1c1c22;
}
.app button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.app-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  color: #6b6b75;
}
.app-tb-r {
  display: flex;
  gap: 22px;
}
.app-tb-r i {
  width: 10px;
  height: 1.5px;
  background: #8a8a94;
}
.app-tb-r i:nth-child(2) {
  height: 9px;
  border: 1.5px solid #8a8a94;
  background: none;
}
.app-tb-r i:nth-child(3) {
  height: 10px;
  background:
    linear-gradient(45deg, transparent 45%, #8a8a94 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #8a8a94 45% 55%, transparent 55%);
}
.app-body {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  height: 520px;
}
.app-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px 10px;
  overflow: hidden;
}
.app-logo {
  padding: 6px 8px 10px;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s;
}
.app-nav:hover {
  background: #eaeaec;
}
.app-nav.new {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-weight: 500;
  margin-bottom: 4px;
}
.app-nav.new svg {
  color: var(--violet);
}
.app-nav.on,
.app-nav.is-active {
  background: #fff;
}
.app-nav.rec {
  display: block;
  font-size: 12.5px;
  color: #3a3a42;
}
.app-sec {
  margin: 12px 9px 4px;
  font-size: 12px;
  color: #6b6b75;
}
.app-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  font-weight: 500;
}
.app-user span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6f8796;
  color: #fff;
  font-size: 11px;
}
.app-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 14px 0 0 0;
  border: 1px solid #ececf0;
  border-width: 1px 0 0 1px;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 12px 0 16px;
}
.app-path {
  font-size: 12.5px;
  color: #3a3a42;
}
.app-top-r {
  display: flex;
  gap: 4px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #55555f;
}
button.app-icon:hover {
  background: #f1f1f3;
}
.app-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.app-view[data-v='home'] {
  position: relative;
}
.app-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 40px;
  transition: opacity 0.3s;
}
.app.has-thread .app-empty {
  opacity: 0;
  pointer-events: none;
}
.app-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 20px 20px;
}
.at-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 14px;
  background: #f1f1f4;
}
.at-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b6b75;
  font-size: 12.5px;
}
.at-reason::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #9a9aa6;
}
.at-text {
  line-height: 1.55;
}
.at-text code,
.at-run code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1f1f4;
}
.at-run {
  border-left: 0;
}
.at-run-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 6px;
}
.at-run-h em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: #9a9aa6;
}
.at-run pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ececf0;
  background: #fafafb;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.at-run pre .ok {
  color: var(--green);
}
.at-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ececf0;
  font-size: 12.5px;
}
.at-edit b {
  font-weight: 500;
}
.at-edit em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
}
.at-edit .p {
  color: var(--green);
}
.at-edit .m {
  color: var(--red);
}
.at-in {
  animation: rise 0.4s var(--ease) both;
}
.typing::after {
  content: '▍';
  animation: blink 1s steps(1) infinite;
  color: var(--violet);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.app-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 22px;
}
.app-page h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-page > p {
  margin: 0 0 14px;
  color: #6b6b75;
  font-size: 12.5px;
}
.app-page-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ececf0;
  border-radius: 12px;
}
.app-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f3;
}
.app-rows li:last-child {
  border-bottom: 0;
}
.app-rows li > div {
  flex: 1;
  min-width: 0;
}
.app-rows b {
  display: block;
  font-weight: 500;
}
.app-rows small {
  color: #8a8a94;
  font-size: 11.5px;
}
.app-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #e3e3e8;
  font-size: 11.5px;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.dot.bad {
  background: var(--red);
}
.tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: #f1f1f4;
}
.tag.bad {
  background: #fdecec;
  color: var(--red);
}
.app-composer-wrap {
  position: relative;
  padding: 8px 20px 16px;
}
.app-composer {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 10px 16px;
  border-radius: 24px;
  border: 1px solid #dcdce2;
  background: #fff;
  transition: border-color 0.2s;
}
.app-composer:focus-within {
  border-color: #c7c7d1;
}
.app-composer textarea {
  width: 100%;
  border: 0;
  resize: none;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  background: none;
  min-height: 34px;
}
.app-cbar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-flex {
  flex: 1;
}
.app-perm,
.app-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.15s;
}
.app-perm:hover,
.app-model:hover {
  background: #f3f3f5;
}
.app-perm[data-perm='full'] {
  color: #e8590c;
}
.app-perm[data-perm='auto'] {
  color: #2f6fdb;
}
.app-perm[data-perm='ask'] {
  color: #3a3a42;
}
.app-model {
  color: #55555f;
  font-weight: 400;
}
.app-model b {
  font-weight: 500;
}
.app-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #a7a7b0;
  color: #fff;
  transition: background-color 0.2s;
}
.app.can-send .app-send {
  background: var(--ink);
}
.app-pop {
  position: absolute;
  bottom: 74px;
  z-index: 5;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e6ec;
  box-shadow: 0 18px 50px -12px rgba(10, 10, 12, 0.28);
  padding: 6px;
}
.app-pop-h {
  margin: 6px 10px 6px;
  font-size: 11.5px;
  color: #8a8a94;
}
.app-pop-f {
  margin: 4px 0 0;
  padding: 8px 10px 4px;
  border-top: 1px solid #f0f0f3;
  font-size: 11.5px;
  color: #8a8a94;
}
.perm-pop {
  left: calc(50% - 300px);
  width: 300px;
}
.perm-opt {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
}
.perm-opt:hover {
  background: #f6f6f8;
}
.perm-opt > svg {
  flex: none;
  margin-top: 2px;
}
.perm-opt b {
  display: block;
  font-weight: 500;
}
.perm-opt small {
  font-size: 11.5px;
  color: #8a8a94;
  line-height: 1.4;
}
.perm-opt .tick {
  margin-left: auto;
  align-self: center;
  opacity: 0;
}
.perm-opt.on .tick {
  opacity: 1;
}
.perm-opt[data-set-perm='full'].on {
  background: #fff4ec;
  color: #e8590c;
}
.perm-opt[data-set-perm='full'].on small {
  color: #e8590c;
}
.model-pop {
  right: max(20px, calc(50% - 320px));
  width: 360px;
  padding: 8px;
}
.mp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 34px;
  border-radius: 9px;
  background: #f4f4f6;
  color: #8a8a94;
}
.mp-search input {
  flex: 1;
  border: 0;
  background: none;
  font: inherit;
  outline: none;
}
.mp-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 4px;
}
.mp-tabs span {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  color: #55555f;
}
.mp-tabs .on {
  background: #f1f1f4;
  color: #1c1c22;
  font-weight: 500;
}
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 170px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mp-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}
.mp-list button:hover,
.mp-list button.on {
  background: #f4f0ff;
}
.mp-list b {
  display: block;
  font-weight: 500;
}
.mp-list small {
  font-size: 11px;
  color: #8a8a94;
}
.mp-effort {
  margin-top: 6px;
  padding: 10px 6px 4px;
  border-top: 1px solid #f0f0f3;
}
.mp-effort-h,
.ed-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mp-effort-h span,
.ed-head span {
  color: #8a8a94;
  font-size: 11.5px;
}
input[type='range'][data-effort],
input[type='range'][data-ed-range] {
  width: 100%;
  height: 22px;
  appearance: none;
  background: none;
  cursor: pointer;
}
input[type='range'][data-effort]::-webkit-slider-runnable-track,
input[type='range'][data-ed-range]::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b3d8a var(--fill, 75%), #ece8f7 var(--fill, 75%));
}
input[type='range'][data-effort]::-webkit-slider-thumb,
input[type='range'][data-ed-range]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
input[type='range'][data-effort]::-moz-range-track,
input[type='range'][data-ed-range]::-moz-range-track {
  height: 20px;
  border-radius: 999px;
  background: #ece8f7;
}
input[type='range'][data-effort]::-moz-range-progress,
input[type='range'][data-ed-range]::-moz-range-progress {
  height: 20px;
  border-radius: 999px;
  background: #5b3d8a;
}
.mp-ticks,
.ed-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: #8a8a94;
}
.app-right {
  width: 300px;
  border-left: 1px solid #ececf0;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.35s var(--ease);
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}
.ar-tabs {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-bottom: 1px solid #f0f0f3;
}
.ar-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 12px;
}
.ar-tabs .on {
  background: #f1f1f4;
  font-weight: 500;
}
.ar-pane {
  flex: 1;
  padding: 10px;
  overflow: auto;
}
.ar-files {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ar-files li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12.5px;
}
.ar-files li.in {
  padding-left: 30px;
  color: #3a3a42;
}
.ar-files li:hover {
  background: #f6f6f8;
}
.ar-url {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f4f4f6;
  font-size: 11.5px;
  color: #6b6b75;
}
.ar-page {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #ececf0;
  border-radius: 10px;
}
.ar-page span {
  height: 8px;
  border-radius: 4px;
  background: #ececf0;
}
.ar-page .short {
  width: 60%;
}
.ar-pane.term pre {
  margin: 0;
  padding: 12px;
  height: 100%;
  border-radius: 10px;
  border: 1px solid #ececf0;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #1c1c22;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.app-palette {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: start center;
  padding-top: 40px;
  background: rgba(240, 240, 243, 0.55);
  backdrop-filter: blur(3px);
}
.pal-card {
  width: min(520px, 90%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(10, 10, 12, 0.35);
  overflow: hidden;
}
.pal-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f3;
  color: #8a8a94;
}
.pal-search input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
}
.pal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
}
.pal-row:hover {
  background: #f6f6f8;
}
.pal-row b {
  display: block;
  font-weight: 500;
}
.pal-row small {
  color: #8a8a94;
  font-size: 11.5px;
}
.pal-row kbd {
  margin-left: auto;
}
.pal-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #ececf0;
}
.app kbd {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #e3e3e8;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #6b6b75;
}
.pal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 10px 16px;
  border-top: 1px solid #f0f0f3;
  font-size: 11.5px;
  color: #8a8a94;
}

/* Provider tile */
.ptile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s, 34px);
  height: var(--s, 34px);
  border-radius: calc(var(--s, 34px) * 0.28);
  background: var(--c);
  color: #fff;
  font-size: calc(var(--s, 34px) * 0.34);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ptile[data-light],
.ptile.svg {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ptile[style*='#eeeef3'] {
  color: #55555f;
}

/* Marquee spacing */
.marquee-track {
  gap: 72px;
}
.marquee-item {
  gap: 12px;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 36px));
  }
}
.logos {
  padding-top: 72px;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--mist));
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s;
}
.js .pillar.reveal.in:hover,
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #dccfff;
}
.pillar-n {
  position: absolute;
  right: 20px;
  top: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--grey-2);
}
.pillar h3 {
  margin: 20px 0 10px;
}
.pillar p {
  color: var(--grey);
  font-size: 0.95rem;
  margin: 0;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), rgba(184, 163, 217, 0.1));
}
.tl-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  align-items: start;
}
.tl-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--violet);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px rgba(91, 61, 138, 0.15);
}
.tl-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tl-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.tl-body {
  color: #b9b9c6;
  font-size: 0.95rem;
  display: grid;
  gap: 4px;
}
.tl-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: #fff;
}
.d-g,
.d-r {
  font-family: var(--mono);
  font-size: 0.84rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.d-g {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
}
.d-r {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.12);
}

/* Effort demo */
.effort-demo {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.ed-head b {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ed-head {
  align-items: baseline;
  flex-direction: row-reverse;
}
.ed-desc {
  margin: 16px 0 0;
  color: var(--grey);
}
.ed-ticks span {
  font-size: 0.75rem;
}

/* Models page */
.models {
  margin-top: -36px;
  position: relative;
}
.model-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.model-stats div {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.model-stats div:last-child {
  border-right: 0;
}
.model-stats b {
  display: block;
  font-size: 2.2rem;
  font-weight: 620;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.model-stats span {
  font-size: 0.85rem;
  color: var(--grey);
}
.model-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 36px 0 18px;
}
.model-tools input {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--mist);
  font: inherit;
}
.model-tools input:focus {
  outline: none;
  border-color: var(--violet-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 61, 138, 0.1);
}
.seg {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--mist-2);
}
.seg button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--grey);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(10, 10, 12, 0.08);
}
.provider-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.provider-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.provider-list li:hover {
  border-color: #dccfff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pl-text {
  min-width: 0;
}
.pl-text b {
  display: block;
  font-weight: 550;
  font-size: 0.93rem;
}
.pl-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.how-connect,
.setup,
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-connect article,
.setup article {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--mist);
  border: 1px solid var(--line);
}
.how-connect svg,
.setup svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: #fff;
  color: var(--violet);
  border: 1px solid var(--line);
}
.how-connect h3,
.setup h3 {
  margin: 18px 0 8px;
}
.how-connect p,
.setup p {
  color: var(--grey);
  margin: 0;
}
.setup-n {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--line-2);
}
.on-dark-ticks li {
  color: #d4d4de;
}
.on-dark-ticks li::before {
  background-color: rgba(184, 163, 217, 0.18);
}

/* Security */
.mode {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.mode:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.mode-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--mist);
}
.mode-ic svg {
  width: 20px;
  height: 20px;
}
.mode-auto .mode-ic {
  color: #2f6fdb;
  background: #eef4ff;
}
.mode-full .mode-ic {
  color: #e8590c;
  background: #fff4ec;
}
.mode h3 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}
.mode p {
  color: var(--grey);
  margin: 0;
}
.perm-matrix {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.pm-row:last-child {
  border-bottom: 0;
}
.pm-row b {
  display: block;
  font-weight: 550;
  font-size: 0.93rem;
}
.pm-row small {
  color: var(--grey);
  font-size: 0.8rem;
}
.pm-seg {
  display: flex;
  flex: none;
  padding: 3px;
  border-radius: 10px;
  background: var(--mist-2);
}
.pm-seg button {
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--grey);
  cursor: pointer;
}
.pm-seg button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(10, 10, 12, 0.1);
}
.data-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.data-col {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.data-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dc-dot.g {
  background: #22c55e;
}
.dc-dot.v {
  background: var(--violet-2);
}
.dc-dot.w {
  background: #a6a6b4;
}
.data-col ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.data-col li {
  color: #d4d4de;
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
}
.data-col li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #6f6f7d;
}
.report {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff, var(--violet-soft));
  border: 1px solid #e4d8ff;
}
.report h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.report p {
  margin: 0;
  color: var(--grey);
}

/* Auth dialog v2: split card */
.auth-dialog {
  max-width: min(820px, 100% - 32px);
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  padding: 0;
  text-align: left;
}
.auth-art {
  position: relative;
  padding: 44px 36px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.auth-art img {
  border-radius: 15px;
  background: #fff;
  padding: 4px;
}
.auth-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -160px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.65;
  z-index: -1;
  animation: drift 10s var(--ease) infinite alternate;
}
.auth-tag {
  margin: 28px 0 22px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.auth-tag span {
  color: var(--violet-2);
}
.auth-art ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: #c9c9d4;
}
.auth-art li::before {
  content: '✓';
  margin-right: 10px;
  color: var(--violet-2);
}
.auth-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 0;
}
.auth-form h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}
.auth-form > p {
  color: var(--grey);
  font-size: 0.95rem;
}
.auth-foot {
  margin: 28px -40px 0;
}
@media (max-width: 1080px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 6;
    box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.2);
  }
}
@media (max-width: 960px) {
  .how-connect,
  .setup,
  .modes,
  .data-cols {
    grid-template-columns: 1fr;
  }
  .model-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-stats div:nth-child(2) {
    border-right: 0;
  }
  .report {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
}
@media (max-width: 640px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .app-body {
    grid-template-columns: 1fr;
    height: 480px;
  }
  .app-side {
    display: none;
  }
  .app-main {
    border-radius: 0;
    border-left: 0;
  }
  .hero-stage .app {
    transform: none;
  }
  .perm-pop,
  .model-pop {
    left: 10px;
    right: 10px;
    width: auto;
  }
  .pm-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-model span {
    display: none;
  }
}

/* =====================================================================
   Retone: ink + warm paper + a single ember accent (replaces the purple)
   ===================================================================== */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/instrument-serif-italic.woff2') format('woff2');
}
:root {
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mist: #f7f6f3;
  --mist-2: #efede8;
  --line: #e8e6e1;
  --line-2: #dad7d0;
  --grey: #6a6863;
  --grey-2: #9b9891;
  --ember: #5b3d8a;
  --grad: linear-gradient(100deg, #17171b 0%, #4a443f 100%);
}
.grad {
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.serif,
h2 em,
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.progress {
  background: var(--ink);
}

/* Calm backgrounds: no colored aurora, just paper + a faint grain */
.aurora i {
  background: radial-gradient(closest-side, rgba(30, 24, 20, 0.07), transparent) !important;
}
.hero-beam {
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 61, 138, 0.08), transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* Hero headline: grotesk line + serif italic line */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.8rem);
}
.ht-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 1.08em;
  line-height: 1;
  color: var(--ink);
}
.ht-serif em {
  position: relative;
  font-style: italic;
}
.ht-serif em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 4%;
  bottom: 0.16em;
  height: 0.05em;
  border-radius: 99px;
  background: var(--ember);
  transform-origin: 0 50%;
  animation: underline 1.1s 0.5s var(--ease) both;
}
@keyframes underline {
  from {
    transform: scaleX(0);
  }
}
.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px auto 0;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  color: var(--grey);
  box-shadow: 0 1px 2px rgba(10, 10, 12, 0.04);
}
.tk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.14);
}
.tk-track {
  position: relative;
  display: inline-grid;
  height: 1.4em;
  overflow: hidden;
  min-width: 15em;
  text-align: left;
}
.tk-track > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: tick 12.5s infinite;
}
.tk-track > span:nth-child(2) {
  animation-delay: 2.5s;
}
.tk-track > span:nth-child(3) {
  animation-delay: 5s;
}
.tk-track > span:nth-child(4) {
  animation-delay: 7.5s;
}
.tk-track > span:nth-child(5) {
  animation-delay: 10s;
}
.tk-track code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--ink);
}
@keyframes tick {
  0% {
    opacity: 0;
    transform: translateY(70%);
  }
  4%,
  18% {
    opacity: 1;
    transform: none;
  }
  22%,
  100% {
    opacity: 0;
    transform: translateY(-70%);
  }
}
.hero-meta li::before,
.pulse {
  background: var(--ember);
}
.hero-inner .hero-meta {
  margin-top: 18px;
}

/* Buttons: ink, with a quiet gloss instead of a colored gradient */
.btn-primary {
  background: linear-gradient(180deg, #2a2a30 0%, #0c0c0f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(10, 10, 12, 0.2),
    0 6px 18px -8px rgba(10, 10, 12, 0.45);
}

/* Workspace: fixed frame, composer pinned, black logo, honest note */
.stage-glow {
  background: radial-gradient(closest-side, rgba(30, 24, 20, 0.35), transparent);
  opacity: 0.35;
}
.app-main,
.app-side,
.app-right {
  min-height: 0;
  overflow: hidden;
}
.app-composer-wrap {
  flex: none;
}
.app-view {
  flex: 1 1 0;
}
.app-logo img,
.app-empty img,
.app-thread img {
  filter: grayscale(1) brightness(0);
}
.stage-note {
  max-width: 560px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--grey-2);
}
.ar-pane.term {
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
}
.term-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #222228;
  font-size: 11.5px;
  color: #d6d6dc;
}
.term-head small {
  color: #7d7d88;
}
.ar-pane.term pre {
  flex: 1;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e7e7ea;
  font-family: var(--mono);
  font-size: 11px;
}
.t-dim {
  color: #7d7d88;
}
.t-p {
  color: #8fb8ff;
}
.ar-pane.term .t-ok {
  color: #4ade80;
  background: none;
  padding: 0;
}
.ar-pane.term .caret {
  background: #e7e7ea;
}

/* A little more air between sections */
.section {
  padding: clamp(84px, 11vw, 144px) 0;
}
.logos {
  padding-bottom: clamp(24px, 4vw, 48px);
}

/* FAQ: text reveal */
.faq-help {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--grey);
}
.faq-help a,
.faq-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.blur-word {
  display: inline-block;
  white-space: nowrap;
}
.blur-ch {
  display: inline-block;
  animation: blurIn 0.35s var(--ease) both;
}
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(8px);
  }
}

/* Social links */
.social-row {
  display: grid;
  gap: 10px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.social-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.social-card span {
  display: grid;
  flex: 1;
}
.social-card small {
  color: var(--grey);
}
.social-card i {
  font-style: normal;
  color: var(--grey-2);
}

/* Developers: animated explainer card */
.flow-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--mist));
}
.flow-copy p {
  color: var(--grey);
  line-height: 1.65;
}
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--grey);
}
.flow-legend i {
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.lg-a {
  background: var(--ink);
}
.lg-b {
  background: var(--grey-2);
}
.lg-c {
  background: var(--ember);
}
.flow-svg {
  width: 100%;
  height: auto;
}
.fl {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  animation: flow 1.6s linear infinite;
}
.fl-a {
  stroke: var(--ink);
}
.fl-b {
  stroke: var(--grey-2);
}
.fl-c {
  stroke: var(--ember);
  animation-direction: reverse;
}
@keyframes flow {
  to {
    stroke-dashoffset: -22;
  }
}
.fn rect {
  fill: #fff;
  stroke: var(--line-2);
}
.fn text {
  font-size: 13px;
  font-weight: 560;
  text-anchor: middle;
  fill: var(--ink);
}
.fn .sub {
  font-size: 11px;
  font-weight: 400;
  fill: var(--grey);
}
.fn.core rect {
  fill: var(--ink);
  stroke: var(--ink);
}
.fn.core text {
  fill: #fff;
}
.fn.core .sub {
  fill: #a3a3ad;
}
.fn.out rect {
  stroke: var(--ember);
}
@media (max-width: 860px) {
  .flow-card {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl,
  .tk-track > span,
  .ht-serif em::after {
    animation: none;
  }
  .tk-track > span:first-child {
    opacity: 1;
  }
}

/* ===================== Premium aubergine accent ===================== */
:root {
  --ember: #5b3d8a;
  --plum: #3d2a5c;
  --lavender: #b8a3d9;
}

/* ===================== Hero: split layout ===================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}
.hero-copy .hero-title {
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  align-items: flex-start;
}
.hero-copy .lede {
  margin-left: 0;
}
.hero-copy .actions.center,
.hero-copy .hero-meta {
  justify-content: flex-start;
}
.hero-copy .hero-ticker {
  margin-left: 0;
}
.hero-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 1px 2px rgba(10, 10, 12, 0.04),
    0 30px 60px -30px rgba(61, 42, 92, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(91, 61, 138, 0.45), transparent 45%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hc-head b {
  margin-right: auto;
}
.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d55;
}
.hc-chip {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.74rem;
  color: var(--grey);
}
.hc-ask {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
}
.hc-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  animation: hcIn 0.5s var(--d) var(--ease) both;
}
.hc-steps i {
  width: 34px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ember);
  font-weight: 600;
}
.hc-steps code {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.hc-add,
.hc-ok {
  color: #1f9d55;
  font-size: 0.78rem;
}
.hc-del {
  color: var(--red);
  font-size: 0.78rem;
}
.hc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--grey);
}
.hc-review {
  color: var(--ember);
  font-weight: 560;
}
@keyframes hcIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.ht-serif {
  color: var(--plum);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Footer social links ===================== */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===================== Docs: own hero ===================== */
.docs-hero {
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: radial-gradient(ellipse at 85% 0%, rgba(91, 61, 138, 0.22), transparent 55%), #0d0c11;
  color: #f3f2f6;
}
.docs-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.docs-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lavender);
}
.docs-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1;
}
.docs-hero h1 em {
  color: var(--lavender);
}
.docs-hero-copy > p:not(.docs-kicker) {
  max-width: 560px;
  color: #a9a7b3;
  line-height: 1.65;
}
.docs-jump {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 28px;
}
.docs-jump a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.docs-jump a:hover {
  border-color: rgba(184, 163, 217, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.docs-jump span {
  font-size: 0.72rem;
  color: #8f8c9a;
}
.docs-jump b {
  font-size: 0.9rem;
  font-weight: 540;
}
.docs-console {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #16151c;
  overflow: hidden;
}
.dc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #8f8c9a;
}
.dc-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3842;
}
.dc-bar span {
  margin-left: 8px;
}
.docs-console ol {
  margin: 0;
  padding: 8px;
  list-style: none;
}
.docs-console li {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
}
.docs-console li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}
.dc-n {
  font-family: var(--mono);
  color: var(--lavender);
}
.docs-console div {
  display: grid;
}
.docs-console small {
  color: #8f8c9a;
  font-family: var(--mono);
  font-size: 0.76rem;
}
.page-docs .doc-side a[aria-current],
.page-docs .doc-side a.active {
  color: var(--plum);
}
@media (max-width: 900px) {
  .docs-hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ===================== Models: sidebar + dense grid ===================== */
.page-models .models {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-items: start;
}
.page-models .model-stats {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 14px;
}
.page-models .model-stats b {
  color: var(--plum);
}
.page-models .model-tools {
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.page-models .model-tools .seg {
  flex-direction: column;
  border-radius: 14px;
}
.page-models .model-tools .seg button {
  text-align: left;
  border-radius: 10px;
}
.page-models .provider-list,
.page-models [data-provider-empty] {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.page-models .provider-list {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-top: 0;
}
.page-models .provider-list small {
  display: none;
}
.page-models .provider-list li[data-kind='custom'] {
  opacity: 0.82;
}
@media (max-width: 860px) {
  .page-models .models {
    grid-template-columns: 1fr;
  }
  .page-models .model-stats,
  .page-models .model-tools,
  .page-models .provider-list {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

.hero-copy .hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
}
.tk-track {
  height: 1.6em;
  align-items: center;
}
.dc-bar {
  flex-direction: row;
}
.dc-bar i {
  flex: none;
  display: block;
}

/* =====================================================================
   REV 3 (2026-10-05): hero illustration, consistent spacing, flow section,
   features mini-visuals, centered models grid, docs cards.
   Last-loaded layer; overrides earlier rules by order.
   ===================================================================== */
:root {
  --sec: clamp(64px, 7.5vw, 104px);
  --page-top: clamp(40px, 5vw, 64px);
}
/* One section rhythm everywhere */
.section,
.section.shell {
  padding: var(--sec) 0;
}
.section + .section {
  padding-top: calc(var(--sec) * 0.6);
}
/* Inner page heroes: modest gap under the fixed navbar */
.page-hero {
  padding: calc(var(--header-h) + var(--page-top)) 0 calc(var(--page-top) * 0.9);
}
.page-hero + .section,
.page-hero + section {
  padding-top: calc(var(--sec) * 0.6);
}
.docs-hero {
  padding-top: calc(var(--header-h) + var(--page-top));
}

/* ---------- Home hero v3 ---------- */
.hero.hero-v3 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f2f7 0%, #f6f5f9 62%, var(--paper) 100%);
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 72px));
}
.hero-v3::after,
.hero-v3 .hero-beam {
  display: none;
}
.hv3-glow {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -12%;
  width: 70vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(184, 163, 217, 0.32), rgba(184, 163, 217, 0) 72%);
  pointer-events: none;
}
.hero-v3 .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  text-align: left;
}
.hero-v3 .hero-copy {
  max-width: 640px;
}
.hero-v3 .hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  max-width: none;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: left;
}
.hero-v3 .ht-line {
  display: block;
  white-space: nowrap;
}
.hero-v3 .ht-serif,
.hero-v3 .ht-serif em {
  color: var(--violet);
}
.hero-v3 .hv3-lede {
  max-width: 44ch;
  margin: 0 0 30px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 380;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--grey);
  text-align: left;
}
.hero-v3 .actions.center {
  justify-content: flex-start;
}
.hero-art {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.ha-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ha-gd {
  fill: #c9c5d6;
}
.ha-dots {
  fill: #2a2a33;
}
.ha-line {
  fill: none;
  stroke: #a59bc0;
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  animation: ha-dash 6s linear infinite;
}
.ha-end {
  fill: var(--violet);
}
@keyframes ha-dash {
  to {
    stroke-dashoffset: -64;
  }
}
.ha-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(20, 16, 40, 0.28);
  font-size: 0.82rem;
  font-weight: 500;
  color: #2e2e38;
  white-space: nowrap;
  animation: ha-float 6s ease-in-out infinite;
}
.ha-tag svg {
  color: #4b4b57;
}
.t-proj {
  top: 13%;
  left: 2%;
  transform: rotate(-4deg);
}
.t-model {
  top: 4%;
  right: 0;
  transform: rotate(5deg);
  animation-delay: -2s;
}
.t-tools {
  bottom: 14%;
  right: -2%;
  transform: rotate(-3deg);
  animation-delay: -4s;
}
@keyframes ha-float {
  50% {
    translate: 0 -6px;
  }
}
.ha-side {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--grey-2);
}
.ha-cap {
  position: absolute;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--grey);
  white-space: nowrap;
}
.ha-cap i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.hero-v3 .hero-stage {
  margin-top: clamp(64px, 8vw, 104px);
}
.stage-hint,
.stage-note {
  display: none;
}
.stage-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-pill svg {
  flex: none;
  color: var(--violet);
}
.stage-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-pill b {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 900px) {
  .hero-v3 .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    width: min(100%, 380px);
  }
  .stage-pill {
    white-space: normal;
    border-radius: 16px;
  }
}

/* ---------- Logo marquee: slightly larger, genuine logos ---------- */
.logos {
  padding: calc(var(--sec) * 0.7) 0 0;
}
.marquee-item {
  gap: 12px;
  padding: 12px 22px;
  font-size: 1.02rem;
}
.plogo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.3);
  border: 1px solid var(--line);
  background: var(--paper);
}
.plogo img {
  display: block;
  object-fit: contain;
}

/* ---------- How it works (flow) ---------- */
.flowx {
  display: grid;
  gap: 28px;
}
.fx-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.fx-step {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s var(--ease, ease);
}
.fx-step:hover,
.fx-step.on {
  border-color: rgba(91, 61, 138, 0.35);
  box-shadow: 0 16px 34px -22px rgba(61, 42, 92, 0.45);
  transform: translateY(-2px);
}
.fx-ic {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--mist);
  color: var(--grey);
  transition:
    background 0.3s,
    color 0.3s;
}
.fx-step.on .fx-ic,
.fx-step.done .fx-ic {
  background: var(--violet-soft);
  color: var(--violet);
}
.fx-ic svg {
  width: 19px;
  height: 19px;
}
.fx-n {
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--grey-2);
}
.fx-step b {
  font-size: 1rem;
  font-weight: 600;
}
.fx-step small {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.45;
}
.fx-link {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
}
.fx-link i {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #b9b3c9 0 4px, transparent 4px 8px);
  background-size: 16px 1px;
  animation: fx-run 1.2s linear infinite;
}
@keyframes fx-run {
  to {
    background-position: 16px 0;
  }
}
.fx-stage {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 1px 1px, #dcd9e5 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--mist);
  overflow: hidden;
}
.fx-panel {
  position: absolute;
  inset: 28px;
  margin: auto;
  max-width: 520px;
  height: fit-content;
  padding: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 24px 50px -30px rgba(20, 16, 40, 0.35);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.45s,
    transform 0.45s var(--ease, ease);
  pointer-events: none;
}
.fx-panel.on {
  opacity: 1;
  transform: none;
}
.fx-win {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--grey);
}
.fx-dots {
  display: flex;
  gap: 5px;
}
.fx-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}
.fx-panel > div:not(.fx-win) {
  margin: 18px 20px 0;
}
.fx-chat span {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 14px 14px 14px 4px;
  background: var(--mist);
  font-size: 0.92rem;
}
.fx-tree {
  margin: 18px 20px 0;
  padding: 0;
  list-style: none;
  font: 0.84rem/1.9 var(--mono);
  color: var(--grey);
}
.fx-tree .in {
  padding-left: 18px;
}
.fx-tree .hit {
  color: var(--violet);
  font-weight: 600;
}
.fx-diff span {
  display: block;
  padding: 3px 10px;
  border-radius: 6px;
  font: 0.82rem/1.7 var(--mono);
}
.fx-diff .r {
  background: #fdecec;
  color: #a23b3b;
}
.fx-diff .g {
  background: #e8f6ee;
  color: #1f7a45;
}
.fx-test {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fx-test i {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green) var(--w), var(--line) 0);
}
.fx-test b {
  font-size: 0.8rem;
  color: var(--green);
}
.fx-review {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.fx-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mist);
  font: 0.78rem var(--mono);
}
.fx-ok {
  margin-left: auto;
  color: var(--green);
  font-weight: 600;
}
@media (max-width: 860px) {
  .fx-steps {
    flex-direction: column;
    gap: 10px;
  }
  .fx-link {
    display: none;
  }
  .fx-stage {
    min-height: 240px;
  }
}

/* ---------- FAQ: no extra links ---------- */
.faq-help {
  display: none;
}

/* ---------- Features: curved cards with mini-visuals ---------- */
.fcard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease, ease),
    box-shadow 0.35s,
    border-color 0.35s;
}
.fcard:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 61, 138, 0.3);
  box-shadow: 0 22px 40px -28px rgba(61, 42, 92, 0.45);
}
.fcard-body {
  padding: 18px 20px 22px;
}
.fcard-body .card-icon {
  margin-bottom: 12px;
}
.fcard h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.fcard p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--grey);
}
.fv {
  position: relative;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 1px 1px, #e1dee9 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--mist);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.fv i,
.fv b {
  display: block;
  font-style: normal;
  transition:
    transform 0.5s var(--ease, ease),
    opacity 0.5s,
    background 0.5s,
    width 0.6s var(--ease, ease),
    height 0.6s var(--ease, ease);
}
/* chips (folders, files, skills) */
.fv-folders i,
.fv-files i,
.fv-fan i {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: 500 0.74rem var(--mono);
  color: #4b4b57;
  box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.25);
}
.fcard:hover .fv-folders i:nth-child(1) {
  transform: translateY(-6px);
  border-color: var(--violet-2);
  color: var(--violet);
}
.fv-files i {
  transform: translateX(var(--x, 0));
}
.fv-files i:nth-child(1) {
  --x: 14px;
}
.fv-files i:nth-child(3) {
  --x: -14px;
}
.fcard:hover .fv-files i {
  --x: 0;
  transform: translateY(-4px);
}
.fv-fan i {
  position: absolute;
}
.fv-fan i:nth-child(1) {
  transform: rotate(-8deg) translateX(-10px);
}
.fv-fan i:nth-child(3) {
  transform: rotate(8deg) translateX(10px);
}
.fcard:hover .fv-fan i:nth-child(1) {
  transform: rotate(-14deg) translateX(-58px);
}
.fcard:hover .fv-fan i:nth-child(3) {
  transform: rotate(14deg) translateX(58px);
}
.fcard:hover .fv-fan i:nth-child(2) {
  transform: translateY(-6px);
  color: var(--violet);
}
/* rows / progress / palette / split */
.fv-rows,
.fv-progress {
  flex-direction: column;
  align-items: stretch;
  padding: 0 34px;
}
.fv-rows i {
  height: 12px;
  border-radius: 6px;
  background: var(--line);
}
.fv-rows i:nth-child(2) {
  width: 78%;
}
.fv-rows i:nth-child(3) {
  width: 56%;
}
.fcard:hover .fv-rows i:first-child {
  background: var(--violet-2);
}
.fv-progress i {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--violet) var(--w), var(--line) 0);
  background-size: 100% 100%;
}
.fcard:hover .fv-progress i {
  --w: 100%;
}
.fv-palette {
  flex-direction: column;
  align-items: stretch;
  padding: 0 30px;
  gap: 6px;
}
.fv-palette span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.75rem;
  color: var(--grey-2);
}
.fv-palette i {
  height: 9px;
  margin: 0 6px;
  border-radius: 5px;
  background: var(--line);
}
.fcard:hover .fv-palette i:nth-of-type(1) {
  background: var(--violet-2);
}
.fv-split i {
  width: 60px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.fcard:hover .fv-split i:last-child {
  width: 96px;
}
/* diff / term / browser / git */
.fv-diff {
  flex-direction: column;
  align-items: stretch;
  padding: 0 30px;
  gap: 6px;
}
.fv-diff i {
  height: 12px;
  border-radius: 5px;
}
.fv-diff .r {
  background: #f8d9d9;
  width: 70%;
}
.fv-diff .g {
  background: #cfeedd;
  width: 0;
}
.fcard:hover .fv-diff .g {
  width: 88%;
}
.fcard:hover .fv-diff .g + .g {
  width: 62%;
}
.fv-term {
  flex-direction: column;
  align-items: flex-start;
  margin: 18px 26px;
  height: 82px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #15151b;
  font: 0.76rem/1.7 var(--mono);
  color: #d4d4dc;
}
.fv-term .ok {
  color: #6ee7a8;
  opacity: 0;
  transition: opacity 0.4s 0.15s;
}
.fcard:hover .fv-term .ok {
  opacity: 1;
}
.fv-browser {
  flex-direction: column;
  gap: 0;
}
.fv-browser span {
  width: 150px;
  height: 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
}
.fv-browser i {
  width: 150px;
  height: 22px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper);
}
.fv-browser i:last-child {
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--violet-soft) 0 40%, var(--paper) 0);
}
.fcard:hover .fv-browser i:last-child {
  background: linear-gradient(90deg, var(--violet-soft) 0 100%, var(--paper) 0);
}
.fv-git {
  gap: 0;
}
.fv-git i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--violet-2);
  border-radius: 50%;
  background: var(--paper);
}
.fv-git i + i {
  margin-left: 30px;
  position: relative;
}
.fv-git i + i::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 32px;
  height: 2px;
  background: var(--violet-2);
}
.fcard:hover .fv-git i:last-child {
  background: var(--violet);
  border-color: var(--violet);
  transform: scale(1.2);
}
/* steps / bars / nodes / plug / wave */
.fv-steps i {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.fv-steps b {
  width: 24px;
  height: 2px;
  background: var(--line-2);
}
.fcard:hover .fv-steps i {
  border-color: var(--violet-2);
  background: var(--violet-soft);
}
.fcard:hover .fv-steps i:nth-of-type(2) {
  transition-delay: 0.12s;
}
.fcard:hover .fv-steps i:nth-of-type(3) {
  transition-delay: 0.24s;
}
.fv-bars {
  align-items: flex-end;
  padding-bottom: 22px;
  gap: 10px;
}
.fv-bars i {
  width: 16px;
  height: calc(var(--h) * 0.6);
  border-radius: 5px 5px 2px 2px;
  background: var(--violet-2);
}
.fcard:hover .fv-bars i {
  height: var(--h);
}
.fv-nodes i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 0 5px rgba(184, 163, 217, 0.18);
}
.fv-nodes i:nth-child(1) {
  transform: translate(-46px, -20px);
}
.fv-nodes i:nth-child(2) {
  transform: translate(40px, -26px);
}
.fv-nodes i:nth-child(3) {
  transform: translate(-20px, 26px);
}
.fv-nodes i:nth-child(4) {
  transform: translate(48px, 20px);
}
.fcard:hover .fv-nodes i {
  transform: translate(0, 0) scale(1.4);
  background: var(--violet);
}
.fv-plug i {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.fv-plug b {
  width: 50px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px);
}
.fcard:hover .fv-plug b {
  background: var(--violet);
}
.fcard:hover .fv-plug i {
  border-color: var(--violet-2);
}
.fv-wave {
  gap: 5px;
}
.fv-wave i {
  width: 4px;
  height: 14px;
  border-radius: 3px;
  background: var(--violet-2);
}
.fcard:hover .fv-wave i {
  animation: fv-wave 0.9s ease-in-out infinite;
}
.fv-wave i:nth-child(2n) {
  animation-delay: -0.3s !important;
}
.fv-wave i:nth-child(3n) {
  animation-delay: -0.6s !important;
}
@keyframes fv-wave {
  50% {
    height: 44px;
    background: var(--violet);
  }
}
@media (max-width: 1080px) {
  .fcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .fcard-grid {
    grid-template-columns: 1fr;
  }
}
.chip-nav {
  margin-top: 0;
}

/* ---------- Models: centered grid ---------- */
.models-v3 {
  padding-top: 36px;
}
.mv3-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.mv3-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mv3-stat b {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}
.mv3-stat span {
  color: var(--grey);
}
.mv3-search {
  position: relative;
  width: min(100%, 440px);
}
.mv3-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-2);
}
.mv3-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.25);
}
.mv3-search input:focus {
  outline: none;
  border-color: var(--violet-2);
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.mv3-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mv3-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
  transition:
    transform 0.3s var(--ease, ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.mv3-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 61, 138, 0.28);
  box-shadow: 0 16px 30px -22px rgba(61, 42, 92, 0.45);
}
.mv3-grid li[hidden] {
  display: none;
}
.mv3-grid b {
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.3;
}
.mv3-grid .plogo {
  border-radius: 12px;
}
@media (max-width: 1100px) {
  .mv3-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mv3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Docs: sidebar + content as cards ---------- */
.doc-layout {
  gap: 24px;
  padding: 32px 0 var(--sec);
  align-items: start;
}
.doc-side-inner {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 34px -28px rgba(20, 16, 40, 0.35);
}
.doc-side-title:first-of-type {
  margin-top: 14px;
}
.prose.docs {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 34px -28px rgba(20, 16, 40, 0.3);
  min-width: 0;
}
.prose.docs > section + section,
.prose.docs > div + div {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.prose.docs h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.prose.docs h3 {
  margin: 30px 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose.docs p,
.prose.docs li {
  max-width: 70ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #3b3b46;
}
.prose.docs kbd {
  padding: 1px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--mist);
  font: 0.8em var(--mono);
}
.prose.docs pre {
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .ha-line,
  .ha-tag,
  .fx-link i,
  .fcard:hover .fv-wave i {
    animation: none;
  }
}

/* =====================================================================
   REV 4 (2026-10-05): exact logo halftone, models rows, bento, privacy,
   about additions, fixed docs/legal reader, Google button.
   ===================================================================== */
/* Hero art: real mark as halftone, lighter backdrop grid, larger tags */
.ha-gd {
  fill: #d6d2e0;
}
.ha-px {
  fill: #2b2b33;
}
.ha-mark {
  animation: ha-breathe 7s ease-in-out infinite;
  transform-origin: 200px 230px;
}
@keyframes ha-breathe {
  50% {
    transform: translateY(-4px);
  }
}
.hero-art {
  width: min(100%, 540px);
}
.ha-tag {
  padding: 11px 18px;
  gap: 10px;
  font-size: 0.98rem;
  border-radius: 14px;
}
.ha-tag svg {
  width: 17px;
  height: 17px;
}
.t-proj {
  top: 16%;
  left: -2%;
}
.t-model {
  top: 2%;
  right: -4%;
}
.t-tools {
  bottom: 7%;
  right: -4%;
}
.ha-side {
  font-size: 0.74rem;
}
.ha-cap {
  font-size: 0.9rem;
  bottom: -4%;
}
/* "built to build." in a distinct typeface treatment */
.hero-v3 .ht-serif,
.hero-v3 .ht-serif em {
  font-family: 'Geist', system-ui, sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.05em;
  background: linear-gradient(100deg, #3d2a5c 0%, #5b3d8a 45%, #9b82c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v3 .ht-serif em {
  font-weight: 600;
}
.hero-v3 .ht-serif em::after {
  display: none;
}

/* Divider between workspace preview and models (not a flat rule) */
.logos,
.logos-v3 {
  border: 0;
}
.hero-v3 + .sec-divider,
.sec-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, 86%);
  margin: clamp(56px, 7vw, 96px) auto 0;
}
.sec-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfc8dd 40%, #b8a3d9);
}
.sec-divider i:last-child {
  transform: scaleX(-1);
}
.sec-divider span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow:
    0 10px 24px -16px rgba(61, 42, 92, 0.5),
    0 0 0 6px rgba(244, 241, 249, 0.8);
}

/* Models: 6 colourful moving rows */
.logos-v3 {
  padding: clamp(48px, 6vw, 80px) 0 calc(var(--sec) * 0.6);
  overflow: hidden;
}
.logos-v3 .section-head {
  margin-bottom: 40px;
}
.lv3-rows {
  display: grid;
  gap: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lv3-row {
  overflow: hidden;
}
.lv3-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: lv3 var(--dur, 40s) linear infinite;
}
.lv3-row.rev .lv3-track {
  animation-direction: reverse;
}
.lv3-rows:hover .lv3-track {
  animation-play-state: paused;
}
.lv3-dup {
  display: flex;
  gap: 14px;
}
@keyframes lv3 {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}
.lv3-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 550;
  color: #2e2e38;
  white-space: nowrap;
  box-shadow: 0 6px 16px -14px rgba(20, 16, 40, 0.4);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s;
}
.lv3-item:hover {
  transform: translateY(-2px);
  border-color: var(--violet-2);
}
.lv3-item .plogo,
.lv3-item .ptile {
  border-radius: 50%;
}
.plogo-mask {
  display: block;
  background: var(--c);
  -webkit-mask: var(--u) center / contain no-repeat;
  mask: var(--u) center / contain no-repeat;
}
.lv3-more {
  margin-top: 28px;
}
@media (prefers-reduced-motion: reduce) {
  .lv3-track {
    animation: none;
  }
}

/* Bento: workspace surfaces */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bt {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s,
    border-color 0.35s;
}
.bt:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 61, 138, 0.28);
  box-shadow: 0 24px 44px -30px rgba(61, 42, 92, 0.5);
}
.bt-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}
.bt-wide .bt-copy {
  flex: 0 0 38%;
}
.bt-wide .bt-viz {
  flex: 1;
}
.bt-k {
  font: 600 0.7rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.bt h3 {
  margin: 10px 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.bt p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.55;
}
.bt-viz {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 1px 1px, #e1dee9 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--mist);
}
.bt-files {
  display: grid;
  gap: 8px;
}
.bt-files div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 0.86rem;
  transform: translateX(calc(var(--i) * 10px));
  transition: transform 0.45s var(--ease);
}
.bt:hover .bt-files div {
  transform: none;
}
.bt-ext {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet);
  font: 600 0.66rem var(--mono);
  text-transform: uppercase;
}
.bt-files em {
  margin-left: auto;
  font: normal 0.76rem var(--mono);
  color: #1f7a45;
}
.bt-tasks {
  display: grid;
  gap: 12px;
}
.bt-tasks div {
  display: grid;
  gap: 6px;
}
.bt-tasks span {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}
.bt-tasks small {
  color: var(--grey);
}
.bt-tasks i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--violet) calc(var(--w) * 0.85), var(--line) 0);
  transition: background 0.8s;
}
.bt:hover .bt-tasks i {
  background: linear-gradient(90deg, var(--violet) var(--w), var(--line) 0);
}
.bt-perm {
  display: grid;
  gap: 8px;
}
.bt-perm div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.bt-perm b {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
}
.v-allow {
  background: #e8f6ee;
  color: #1f7a45;
}
.v-ask {
  background: #fdf2e2;
  color: #a2600f;
}
.v-deny {
  background: #fdeaea;
  color: #b42323;
}
.bt-term {
  background: #15151b;
}
.bt-term pre {
  margin: 0;
  font: 0.8rem/1.75 var(--mono);
  color: #d4d4dc;
  white-space: pre;
}
.bt-term .t-p {
  color: #b8a3d9;
}
.bt-term .t-ok {
  color: #6ee7a8;
}
.bt-mem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bt-mem span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
.bt:hover .bt-mem span:nth-child(odd) {
  transform: translateY(-3px);
  border-color: var(--violet-2);
}
@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bt-wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 620px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bt-wide {
    grid-column: auto;
  }
}

/* Privacy band */
.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(160deg, #faf9fc 0%, #f3f0f8 100%);
}
.pb-copy h2 {
  margin: 12px 0 22px;
}
.pb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pb-list li {
  display: grid;
  gap: 2px;
  padding-left: 22px;
  position: relative;
}
.pb-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.pb-list span {
  color: var(--grey);
  font-size: 0.92rem;
}
.pb-viz {
  display: flex;
  align-items: center;
  gap: 0;
}
.pb-device {
  position: relative;
  flex: 0 0 62%;
  aspect-ratio: 1.15;
  border: 1.5px dashed #b8a3d9;
  border-radius: 26px;
  background:
    radial-gradient(circle at 1px 1px, #dcd6e8 1px, transparent 1.2px) 0 0 / 16px 16px,
    rgba(255, 255, 255, 0.7);
}
.pb-label {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 0 8px;
  background: #f6f4fa;
  font: 600 0.68rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.pb-chip {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 18px 30px -18px rgba(61, 42, 92, 0.5);
}
.pb-chip::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  border: 1px solid rgba(184, 163, 217, 0.5);
  animation: pb-pulse 3s ease-out infinite;
}
@keyframes pb-pulse {
  from {
    opacity: 1;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
.pb-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 550;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.4);
  animation: ha-float 6s ease-in-out infinite;
}
.pb-item svg {
  color: var(--violet);
}
.pb-item.a {
  top: 14%;
  left: 8%;
}
.pb-item.b {
  bottom: 14%;
  left: 12%;
  animation-delay: -2s;
}
.pb-item.c {
  top: 22%;
  right: 8%;
  animation-delay: -4s;
}
.pb-wire {
  flex: 1;
  height: 2px;
  position: relative;
  background: repeating-linear-gradient(90deg, #b8a3d9 0 5px, transparent 5px 10px);
}
.pb-wire i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  animation: pb-go 2.6s var(--ease) infinite;
}
@keyframes pb-go {
  to {
    left: calc(100% - 8px);
  }
}
.pb-cloud {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--grey);
}
.pb-cloud svg {
  width: 26px;
  height: 26px;
}
.pb-cloud .pb-label {
  top: auto;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: none;
}
@media (max-width: 900px) {
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

/* About additions */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.about-stats div {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.about-stats b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, #0a0a0c, #5b3d8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stats span {
  color: var(--grey);
}
.about-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ac-col {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--mist);
}
.ac-col.on {
  background: var(--paper);
  border-color: rgba(91, 61, 138, 0.35);
  box-shadow:
    0 0 0 4px var(--violet-soft),
    0 24px 40px -30px rgba(61, 42, 92, 0.5);
}
.ac-h {
  display: block;
  margin-bottom: 12px;
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.ac-col.on .ac-h {
  color: var(--violet);
}
.ac-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ac-col li {
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
}
.ac-col li::before {
  content: '–';
  position: absolute;
  left: 4px;
  color: var(--grey-2);
}
.ac-col.on li::before {
  content: '✓';
  color: var(--green);
}
.about-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: ap;
}
.about-path li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.about-path li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 38px;
  right: -15px;
  width: 16px;
  height: 1px;
  background: var(--violet-2);
}
.ap-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet);
  font: 600 0.78rem var(--mono);
}
.about-path h3 {
  margin: 14px 0 6px;
  font-size: 1.05rem;
}
.about-path p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grey);
}
@media (max-width: 980px) {
  .about-stats,
  .about-path {
    grid-template-columns: 1fr 1fr;
  }
  .about-path li::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .about-compare,
  .about-stats,
  .about-path {
    grid-template-columns: 1fr;
  }
}

/* Docs & legal reader: fixed sidebar, only the document scrolls */
.doc-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - var(--header-h) - 32px);
  min-height: 520px;
  padding: 0;
  margin-top: 16px;
  margin-bottom: var(--sec);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.doc-side {
  height: 100%;
  min-height: 0;
}
.doc-side-inner {
  position: static;
  height: 100%;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doc-side nav a {
  padding: 6px 12px;
  font-size: 0.9rem;
}
.doc-side-title {
  margin: 14px 0 4px;
}
.doc-layout > article {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-width: thin;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 34px -28px rgba(20, 16, 40, 0.3);
}
.legal .prose-section + .prose-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .doc-layout {
    height: auto;
    grid-template-columns: 1fr;
  }
  .doc-layout > article {
    height: auto;
    overflow: visible;
  }
}

/* Google sign-in: colourful, raised */
.google-signin {
  border: 1px solid #dadce0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 8px 18px -10px rgba(10, 10, 12, 0.35);
  font-weight: 560;
  color: #3c4043;
  transition:
    transform 0.15s,
    box-shadow 0.25s,
    border-color 0.2s;
}
.google-signin:hover {
  transform: translateY(-1px);
  border-color: #c6c9ce;
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 26px -12px rgba(10, 10, 12, 0.4);
}
.google-signin:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.g-word i {
  font-style: normal;
  font-weight: 650;
}
@media (max-height: 760px) {
  .doc-side-inner {
    overflow-y: auto;
  }
}
.plogo-mask {
  width: calc(var(--s) * 0.62);
  height: calc(var(--s) * 0.62);
}
.g-word .gb {
  color: #4285f4;
}
.g-word .gr {
  color: #ea4335;
}
.g-word .gy {
  color: #fbbc05;
}
.g-word .gg {
  color: #34a853;
}
.doc-layout > article {
  max-width: none;
  width: 100%;
}
/* Hero trust row (left column) */
.hv3-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 0.84rem;
}
.hv3-trust b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.hv3-trust small {
  color: var(--grey);
}
.hv3-stack {
  display: flex;
}
.hv3-stack .plogo {
  margin-left: -9px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #f4f3f8;
}
.hv3-stack .plogo:first-child {
  margin-left: 0;
}
.hv3-sep {
  width: 1px;
  height: 30px;
  margin: 0 8px;
  background: var(--line-2);
}
.hv3-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
}
.t-model {
  top: 4%;
  right: -6%;
}
.t-tools {
  bottom: 10%;
  right: -6%;
}
@media (max-width: 560px) {
  .hv3-trust {
    flex-wrap: wrap;
  }
  .hv3-sep {
    display: none;
  }
}

/* ============================================================
   master-15 additions: consent, footer, models featured card,
   pricing v2 + models popover, custom-plan form, about art, Trustpilot
   ============================================================ */

/* Nav sign-in: ghost button matching the primary CTA shape */
.nav-signin {
  color: var(--ink);
}

/* Footer: two aligned contact items (icon + small label + address) */
.footer-contacts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c9c9d4;
  text-decoration: none;
}
.footer-contact svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #a9a9b8;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.fc-text {
  display: grid;
  line-height: 1.25;
}
.fc-label {
  font-size: 0.72rem;
  color: #6f6f7d;
}
.fc-mail {
  font-size: 0.9rem;
  color: #fff;
}
.footer-contact:hover svg,
.footer-contact:focus-visible svg {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.footer-contact:hover .fc-mail {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Footer grid: brand/contact column + one balanced 4-column nav grid.
   The four columns share one track size; Legal's track is wide enough for
   "Acceptable Use Policy" so labels never spill. Product is offset from the
   brand column by the column gap rather than ad-hoc margins. */
.site-footer {
  margin-top: clamp(72px, 9vw, 112px);
}
.footer-main {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr);
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(64px, 7vw, 84px) 0 36px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(11.5rem, 1.15fr);
  gap: 32px;
  align-items: start;
}
.footer-col a {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.footer-col ul {
  gap: 11px;
}
.footer-word {
  font-size: clamp(4rem, 15vw, 12.5rem);
  margin: 28px 0 22px;
}
@media (max-width: 1080px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: auto;
  }
}
@media (max-width: 720px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

/* Cookie consent: compact centered bottom bar */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(880px, calc(100% - 32px));
}
.consent[hidden] {
  display: none;
}
.consent-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.consent-msg {
  flex: 1 1 auto;
  margin: 0;
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.45;
}
.consent-msg b {
  color: var(--ink);
  font-weight: 600;
}
.consent-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.consent-actions .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.consent-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 12px;
  height: 36px;
  color: var(--violet);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
}
.consent-link:hover,
.consent-link:focus-visible {
  background: var(--violet-soft);
}
@media (max-width: 760px) {
  .consent-bar {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 14px 16px;
    gap: 12px;
  }
  .consent-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .consent-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .consent-link {
    flex: 1 1 100%;
  }
}

/* Cookie preferences: small centered dialog */
.consent-prefs {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 14, 0.32);
}
.consent-prefs[hidden] {
  display: none;
}
.consent-prefs-card {
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}
.consent-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.consent-prefs-title {
  margin: 0;
  font-weight: 600;
}
.consent-x {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--grey);
  cursor: pointer;
}
.consent-x:hover {
  background: var(--mist);
  color: var(--ink);
}
.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.consent-row b {
  display: block;
  font-size: 0.9rem;
}
.consent-row small {
  color: var(--grey-2);
  font-size: 0.8rem;
}
.consent-switch {
  appearance: none;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.consent-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s var(--ease);
}
.consent-switch:checked {
  background: var(--violet);
}
.consent-switch:checked::after {
  transform: translateX(16px);
}
.consent-switch:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.consent-note {
  margin: 0;
  color: var(--grey-2);
  font-size: 0.8rem;
}
.consent-prefs-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.consent-prefs-foot .btn {
  height: 36px;
  font-size: 0.84rem;
}
@media (prefers-reduced-motion: reduce) {
  .consent-switch,
  .consent-switch::after {
    transition: none;
  }
}

/* Models page: the head keeps its original centered column layout (base .mv3-head rules).
   Featured Codvian card = exactly a 2x2 block of ordinary slots; ordinary cards are untouched. */
.mv3-search-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.mv3-grid > li.mv3-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  border-color: var(--line-2);
  background: var(--mist);
  min-width: 0;
  overflow: hidden;
}
/* The whole featured card is one link to Pricing; ordinary cards are untouched. */
.mv3-featured-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 18px 22px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.mv3-featured-link:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -3px;
}
.mv3-featured-logo {
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.mv3-featured-k {
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 500;
}
.mv3-featured-name {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.mv3-featured-desc {
  max-width: 32ch;
  color: var(--grey);
  font-size: 0.84rem;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .mv3-grid > li.mv3-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Pricing v2 */
.pricing-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-v2 .price-card {
  display: flex;
  flex-direction: column;
}
.pricing-v2 .price-card .btn,
.pricing-v2 .price-card > a:last-child {
  margin-top: auto;
}
.pc-ic {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
  margin-bottom: 12px;
}
.pricing-v2 .price-card.featured .pc-ic {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.price-card .price b {
  font-size: 1.9rem;
}
.pc-note {
  color: var(--grey-2);
  font-size: 0.8rem;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .pricing-v2 {
    grid-template-columns: 1fr;
  }
}

/* "12+ models" interactive popover */
.models-pop-wrap {
  position: relative;
  display: inline-flex;
}
.models-pop-trigger {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.models-word {
  color: var(--violet);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-weight: 600;
}
.on-dark-ticks .models-word {
  color: var(--violet-2);
}
.models-pop[hidden] {
  display: none;
}
.models-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 260px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  animation: models-pop-in 0.16s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .models-pop {
    animation: none;
  }
}
@keyframes models-pop-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.models-pop-h {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 8px;
}
.models-pop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.models-pop-item {
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* Pricing card head: centered icon, plan name directly below (no pills) */
.pricing-v2 .pc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 6px;
}
.pricing-v2 .pc-head .pc-ic {
  margin-bottom: 0;
}
.pricing-v2 .pc-head h2 {
  margin: 0;
  text-transform: none;
}
.pricing-v2 .price-card .price {
  text-align: center;
}
.pricing-v2 .price-card .price b {
  font-size: 2.4rem;
}
/* Pro price: solid high-contrast white on the dark card instead of the faded gradient */
.pricing-v2 .price-card.featured .price {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  filter: none;
}
.pricing-v2 .price-card.featured .price span {
  color: rgba(255, 255, 255, 0.72);
}
.pricing-v2 .ticks li + li {
  margin-top: 2px;
}

/* Slim custom-credits CTA under the plan group */
/* Plan purchase buttons: label centred in the full-width button (the price lives on the card, not the button). */
.pricing-v2 .price-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.custom-plan {
  margin-top: 28px;
}
.cp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--mist);
}
.cp-cta-text h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.cp-cta-text p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
}
.cp-cta .btn {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .cp-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Custom-credits modal */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 14, 0.36);
  overflow-y: auto;
}
.cp-modal[hidden] {
  display: none;
}
.cp-modal-card {
  /* The card clips to its rounded corners; only the form scrolls (and only if it must), so the
     scrollbar never cuts through a corner. */
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.cp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 18px 22px 10px;
}
.cp-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
:root.cp-modal-open {
  overflow: hidden;
}
.cp-form {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 22px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.cp-form::-webkit-scrollbar {
  width: 8px;
}
.cp-form::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 8px;
  border: 2px solid var(--paper);
}
.cp-form::-webkit-scrollbar-track {
  background: transparent;
}
.cp-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}
.cp-form .field {
  margin: 0;
}
.cp-form .field-help {
  display: block;
  margin-top: 4px;
}
.cp-form .form-foot {
  margin-top: 4px;
}
@media (max-width: 640px) {
  .cp-form .form-grid {
    grid-template-columns: 1fr;
  }
  .cp-modal {
    place-items: stretch;
    padding: 10px;
  }
  .cp-modal-card {
    max-height: calc(100vh - 20px);
  }
}
.field-opt {
  color: var(--grey-2);
  font-weight: 400;
  font-size: 0.8rem;
}
.cp-noscript {
  margin-top: 10px;
  text-align: center;
}
.pricing-v2 + .custom-plan + .section {
  padding-top: 32px;
}

/* About illustration */
.manifesto-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.about-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.about-art .ab-frame {
  fill: var(--mist);
  stroke: var(--line-2);
  stroke-width: 1.5;
}
.about-art .ab-dot {
  fill: #d6d3e0;
}
.about-art .ab-wire {
  fill: none;
  stroke: var(--violet-2);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
}
.about-art .ab-node rect {
  fill: #fff;
  stroke: var(--line-2);
  stroke-width: 1.4;
}
.about-art .ab-ic {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-art .ab-core circle {
  fill: #fff;
  stroke: var(--violet);
  stroke-width: 1.8;
}
.about-art-cap {
  text-align: center;
  color: var(--grey-2);
  font-size: 0.82rem;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .manifesto-split {
    grid-template-columns: 1fr;
  }
}

/* Trustpilot review band */
.trustpilot-band {
  padding: 10px 0 6px;
}
.tp-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.tp-stars {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 182, 122, 0.1);
}
.tp-text {
  margin: 0;
  color: var(--grey);
}
.tp-text strong {
  color: var(--ink);
}
.tp-cta {
  background: #00b67a;
  color: #fff;
  border-color: #00b67a;
}
.tp-cta::after {
  background: #019e6b;
}
.tp-cta:hover {
  color: #fff;
}
@media (max-width: 560px) {
  .tp-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact page: modest compactness (no scaling; type sizes unchanged) */
.page-contact .page-hero {
  padding-bottom: calc(var(--page-top) * 0.6);
}
.page-contact .contact {
  gap: 22px;
  padding-bottom: 56px;
}
.page-contact .contact-side {
  gap: 10px;
}
.page-contact .contact-tile {
  padding: 16px 18px;
}
.page-contact .form-card {
  padding: clamp(20px, 3vw, 30px);
}
.page-contact .form-card form {
  gap: 14px;
}
.page-contact #message {
  min-height: 7.5em;
}

.pricing-v2 .price-card.featured > p {
  color: rgba(255, 255, 255, 0.82);
}
.pricing-v2 .price-card.featured > p b {
  color: #fff;
}

/* ---------- Models page: Codvian-managed models first, BYO providers below ---------- */
.sub-models {
  margin: 8px auto 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.sub-models .sm-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.sub-models .sm-head p {
  margin: 0;
  color: var(--grey);
  max-width: 70ch;
}
.sm-status {
  margin: 18px 0 10px;
  color: var(--grey);
}
.sm-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.sm-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  color: var(--ink);
  min-width: 0;
}
.sm-grid li b {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.sm-mult {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sm-avail {
  font-size: 0.75rem;
  color: var(--green);
  white-space: nowrap;
}
.sm-notes {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.6;
}
.sm-notes p {
  margin: 0;
}
.sm-notes b {
  color: var(--ink);
}
.byo-head {
  margin: 0 0 18px;
}
.byo-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}
.byo-head p {
  margin: 0;
  color: var(--grey);
  max-width: 78ch;
  line-height: 1.6;
}
.byo-pending {
  margin: 26px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.byo-pending summary {
  cursor: pointer;
  font-weight: 600;
}
.byo-pending p {
  color: var(--grey);
}
.byo-pending-list {
  line-height: 1.9;
}
@media (max-width: 640px) {
  .sub-models {
    padding: 20px;
    border-radius: var(--radius);
  }
  .sm-grid {
    grid-template-columns: 1fr;
  }
}
.download-soon {
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--mist);
  color: var(--grey);
  text-align: center;
}
.download-soon b {
  color: var(--ink);
}

/* Business registration (About) - existing tokens only */
.reg-card {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.reg-text h2 {
  margin: 4px 0 16px;
}
.reg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0 0 16px;
}
.reg-list dt {
  font-size: 12px;
  color: var(--muted, #6b6b78);
}
.reg-list dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.reg-note {
  font-size: 14px;
  color: var(--muted, #6b6b78);
  margin: 0;
  max-width: 52ch;
}
.reg-qr {
  flex: none;
  width: 168px;
  height: 168px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  image-rendering: pixelated;
}
@media (max-width: 640px) {
  .reg-card {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .reg-list {
    grid-template-columns: 1fr;
  }
}

/* Models page: availability note + BYOK custom-endpoint tag (existing tokens) */
.sm-avail {
  margin: 16px 0 0;
  color: var(--muted, #6b6b78);
}
.mv3-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted, #6b6b78);
}
.mv3-legend {
  margin-top: 16px;
}

/* Downloads: macOS card mirrors the Microsoft Store card; status is plain text, not a control */
.download-mac {
  margin-top: 16px;
}
.dl-soon {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

/* ---- Models page refinement: centred subscription heading + compact, uniform BYOK provider tiles ---- */
.sub-models .sm-head-center {
  display: block;
  text-align: center;
}
.sub-models .sm-head-center p {
  margin: 0 auto;
}
.sub-models .sm-status,
.sub-models .sm-avail {
  text-align: center;
}
.models-v3 .mv3-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 8px;
}
.models-v3 .mv3-grid li {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
}
.models-v3 .mv3-grid li:hover {
  transform: none;
  box-shadow: none;
}
.models-v3 .mv3-grid b {
  min-width: 0;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.models-v3 .mv3-grid .plogo {
  flex: none;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .models-v3 .mv3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   Phase 2 — announcement bar, Diwali offer popup, pricing offer, blog
   Uses the existing design tokens only. No new fonts or dependencies.
   ============================================================================ */

/* Announcement bar */
.announce {
  background: var(--grad);
  color: #fff;
  font-size: 0.9rem;
}
.announce[hidden] {
  display: none;
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
}
.announce-text {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.announce-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  font-weight: 600;
}
.announce-link[hidden] {
  display: none;
}
.announce-x {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  padding: 4px;
  display: inline-flex;
  border-radius: 8px;
}
.announce-x:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) {
  .announce {
    font-size: 0.82rem;
  }
}

/* Pricing offer badge + strikethrough */
.price-card {
  position: relative;
}
.pc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card.featured .pc-badge {
  background: #fff;
  color: var(--ink);
}
.pc-was {
  color: var(--grey-2);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 2px;
}

/* Diwali / offer popup */
.offer-pop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(4px);
}
.offer-pop[hidden] {
  display: none;
}
.offer-pop-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 26px;
  text-align: center;
  overflow: hidden;
}
.offer-pop.is-open .offer-pop-card {
  animation: offerIn 0.32s var(--ease);
}
@keyframes offerIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.offer-pop-glow {
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(91, 61, 138, 0.22), transparent 70%);
  pointer-events: none;
}
.offer-pop-x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mist);
  border: 0;
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
}
.offer-pop-x:hover {
  background: var(--mist-2);
}
.offer-pop-badge {
  display: inline-block;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.offer-pop-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.offer-pop-msg {
  margin: 0 0 20px;
  color: var(--grey);
}
.offer-pop-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.offer-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.offer-plan.featured {
  border-color: var(--violet-2);
  background: var(--violet-soft);
}
.offer-plan-name {
  font-weight: 600;
}
.offer-plan-credits {
  font-size: 0.86rem;
  color: var(--grey);
}
.offer-plan-price {
  font-size: 1.15rem;
  font-weight: 700;
}
.offer-pop-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .offer-pop-card {
    padding: 26px 18px 20px;
  }
  .offer-pop-plans {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .offer-pop.is-open .offer-pop-card {
    animation: none;
  }
}

/* Blog index */
.blog-index {
  padding: 8px 0 72px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--mist);
  overflow: hidden;
}
.blog-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
}
.blog-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.78rem;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.blog-card-title {
  font-size: 1.1rem;
  line-height: 1.3;
}
.blog-card-excerpt {
  color: var(--grey);
  font-size: 0.92rem;
}
.blog-card-author {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--grey-2);
}
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.blog-empty img {
  margin: 0 auto 14px;
}
.blog-empty h2 {
  margin: 0 0 6px;
}
.blog-empty p {
  color: var(--grey);
  margin: 0;
}

/* Blog post */
.blog-post {
  padding-bottom: 60px;
}
.blog-breadcrumbs {
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--grey);
}
.blog-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.blog-breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--grey-2);
}
.blog-breadcrumbs a:hover {
  color: var(--ink);
}
.blog-post-head {
  padding-top: 18px;
  padding-bottom: 8px;
  max-width: 760px;
}
.blog-post-cat {
  display: inline-block;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-post-meta {
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 10px;
}
.blog-post-cover-wrap {
  margin: 18px auto 10px;
}
.blog-post-cover {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--line);
}
.blog-post-cover-fallback {
  display: grid;
  place-items: center;
  background: var(--violet-soft);
}
.blog-post-body {
  max-width: 760px;
  margin: 24px auto 0;
}
.blog-post-tags {
  max-width: 760px;
  margin: 24px auto 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-post-tags li {
  font-size: 0.8rem;
  color: var(--grey);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}
.blog-related {
  padding: 40px 0 0;
}
.blog-related h2 {
  margin-bottom: 18px;
}
