/* Stavo landing. Hand written, dark first. */
:root {
  --violet: #7c5cff;
  --coral: #ff5c8a;
  --grad: linear-gradient(135deg, #7c5cff, #ff5c8a);
  --ink: #0a0a0f;
  --surface: #13131a;
  --surface-2: #1a1a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf2;
  --muted: #8a8a99;
  --good: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5c6c;
  --radius: 16px;
  --radius-lg: 24px;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: dark;
  /* Theme channels (dark). Light values live in the prefers-color-scheme block at the end. */
  --fg-rgb: 255, 255, 255;
  --surface-rgb: 19, 19, 26;
  --ink-rgb: 10, 10, 15;
  --shade-rgb: 0, 0, 0;
  --shade-k: 1;
  --shadow-k: 1;
  --violet-1: #b6a5ff;
  --violet-2: #cbbfff;
  --violet-3: #d8cfff;
  --text-2a: #d0d0da;
  --text-2b: #c9c9d6;
  --text-2c: #c4c4cf;
  --text-2d: #b9b9c6;
  --text-2e: #dcd6f2;
  --coral-text: #ffb3c8;
  --surface-hot: #15131f;
  --surface-hot2: #14121e;
  --kbd-top: #23232e;
  --kbd-bottom: #17171f;
  --orb-o: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Dark only: an explicit background so light-mode browsers never show white edges or overscroll. */
  background: var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p a,
.prose a,
.notice a,
.auth-alt a {
  color: var(--violet-1);
  text-decoration: underline;
  text-decoration-color: rgba(182, 165, 255, 0.35);
  text-underline-offset: 3px;
}
p a:hover,
.prose a:hover {
  text-decoration-color: currentColor;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
code,
kbd,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(124, 92, 255, 0.45);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--violet);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 780px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.tiny {
  font-size: 0.78rem;
}
.center {
  text-align: center;
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-1);
  margin-bottom: 14px;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-2d);
  max-width: 620px;
}
.center .lead,
.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--fg-rgb), 0.24);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 12px 38px -8px rgba(255, 92, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: transparent;
}
.btn-white {
  background: #fff;
  color: #0a0a0f;
  border-color: #fff;
}
.btn-ghost {
  background: transparent;
}
.btn-soft {
  background: rgba(var(--fg-rgb), 0.05);
}
.btn-danger {
  background: rgba(255, 92, 108, 0.12);
  border-color: rgba(255, 92, 108, 0.35);
  color: #ff8b97;
}
.btn-lg {
  padding: 15px 22px;
  font-size: 1.02rem;
  border-radius: 14px;
}
.btn-sm {
  padding: 8px 13px;
  font-size: 0.86rem;
  border-radius: 10px;
}
.btn-xs {
  padding: 5px 9px;
  font-size: 0.78rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn.loading {
  opacity: 0.65;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(var(--fg-rgb), 0.07);
  color: var(--text-2b);
  vertical-align: middle;
}
.badge-grad {
  background: var(--grad);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(var(--ink-rgb), 0.7);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  border-radius: 8px;
  box-shadow: 0 4px 18px -4px rgba(124, 92, 255, 0.7);
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(var(--fg-rgb), 0.05);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav {
  display: none;
  position: relative;
}
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  display: grid;
  place-content: center;
  gap: 5px;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}
.mobile-nav[open] summary span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-nav[open] summary span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 50px;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  box-shadow: 0 20px 60px rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
}
.mobile-nav-panel a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}
.mobile-nav-panel a:hover {
  background: rgba(var(--fg-rgb), 0.06);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 56px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.03));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-grid a:not(.logo) {
  display: block;
  text-decoration: none;
  color: var(--text-2c);
  padding: 4px 0;
  font-size: 0.94rem;
}
.footer-grid a:not(.logo):hover {
  color: #fff;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 300px;
  font-size: 0.94rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 96px 0;
}
.page-top {
  padding-top: 72px;
}
.section-head {
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
}
.section-head.center h1,
.section-head.center h2 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split-rev {
  grid-template-columns: 1.15fr 1fr;
}
.card {
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.035), rgba(var(--fg-rgb), 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-icon {
  color: var(--violet-1);
  margin-bottom: 18px;
  width: 26px;
  height: 26px;
}
.card p {
  margin: 0;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2a);
}
.checks .icon {
  color: var(--good);
  margin-top: 4px;
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-bg + .wrap,
.hero-inner {
  position: relative;
  z-index: 1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.orb-a {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #7c5cff, transparent 65%);
  top: -260px;
  left: -160px;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-b {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #ff5c8a, transparent 65%);
  top: -120px;
  right: -200px;
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.hero-bg.soft .orb {
  opacity: 0.25;
}
@keyframes drift {
  to {
    transform: translate(80px, 60px) scale(1.1);
  }
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 22px 0 22px;
}
.hero h1 .serif {
  font-size: 1.08em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: #d6d6e0;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.04);
}
.pill:hover {
  border-color: rgba(124, 92, 255, 0.6);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 18px;
}
.hero-ctas.center {
  justify-content: center;
}
.hero-note {
  font-size: 0.88rem;
}

/* ---------- Flow ---------- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 56px;
  max-width: 900px;
}
.flow-node {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  min-width: 150px;
}
.flow-node .muted {
  font-size: 0.86rem;
}
.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  margin-bottom: 8px;
  box-shadow: 0 10px 40px -10px rgba(124, 92, 255, 0.5);
}
.flow-line {
  flex: 1;
  height: 2px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
  min-width: 40px;
  margin-top: -40px;
  border-radius: 2px;
}
.flow-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--grad);
  animation: flow 2.4s ease-in-out infinite;
}
@keyframes flow {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

/* ---------- Tools ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tool {
  background: var(--ink);
  padding: 32px;
  transition: background 0.25s;
}
.tool:hover {
  background: #0f0f16;
}
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(255, 92, 138, 0.2));
  border: 1px solid rgba(var(--fg-rgb), 0.1);
}
.tool p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Annotate mock ---------- */
.annot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.45);
}
.annot-tools {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.annot-tools span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.annot-tools span.on {
  background: rgba(124, 92, 255, 0.2);
  color: #fff;
}
.annot-swatch {
  margin-left: auto;
  background: var(--grad);
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid #fff;
}
.annot-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 80% 10%, rgba(124, 92, 255, 0.25), transparent 50%), #0e0e15;
  container-type: inline-size;
}
.annot-ui {
  position: absolute;
  inset: 12% 30% 12% 8%;
  background: #181822;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 6%;
  display: grid;
  gap: 8%;
  align-content: start;
}
.au-title {
  height: 14px;
  width: 50%;
  background: rgba(var(--fg-rgb), 0.2);
  border-radius: 6px;
}
.au-line {
  height: 9px;
  background: rgba(var(--fg-rgb), 0.08);
  border-radius: 5px;
}
.w80 {
  width: 80%;
}
.w60 {
  width: 60%;
}
.au-secret {
  font: 3cqw var(--mono);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(var(--fg-rgb), 0.05);
  overflow: hidden;
}
.au-secret span {
  filter: blur(5px);
  display: block;
  user-select: none;
}
.au-btn {
  height: 28px;
  width: 38%;
  border-radius: 8px;
  background: var(--grad);
}
.annot-box {
  position: absolute;
  left: 7%;
  bottom: 13%;
  width: 34%;
  height: 20%;
  border: 3px solid var(--coral);
  border-radius: 10px;
}
.annot-arrow {
  position: absolute;
  left: 38%;
  top: 22%;
  width: 40%;
  height: 50%;
  overflow: visible;
}
.annot-note {
  position: absolute;
  right: 3%;
  top: 9%;
  font: italic 3.6cqw var(--serif);
  background: #fff;
  color: #111;
  padding: 0.25em 0.6em;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
.annot-step {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.3);
}
.annot-step.s1 {
  left: 5%;
  top: 9%;
}
.annot-step.s2 {
  left: 40%;
  bottom: 30%;
}

/* ---------- Share mock ---------- */
.section-share {
  overflow: hidden;
}
.share-mock {
  position: relative;
}
.share-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 30% 40%, #7c5cff, transparent 60%), radial-gradient(circle at 70% 60%, #ff5c8a, transparent 60%);
  filter: blur(60px) saturate(1.4);
  opacity: 0.55;
}
.share-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(var(--surface-rgb), 0.82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, calc(0.8 * var(--shadow-k)));
}
.share-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 0.82rem var(--mono);
  color: var(--muted);
  background: rgba(var(--fg-rgb), 0.04);
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.share-url b {
  color: var(--text);
  font-weight: 500;
}
.share-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.share-head > div:nth-child(2) {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}
.share-head .muted {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.share-views {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.share-media {
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c12;
  padding: 18px;
  background-image: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.25), transparent 70%);
}
.share-shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, calc(0.5 * var(--shadow-k)));
}
.shot-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  background: #1c1b26;
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.shot-bar i:nth-child(2) {
  background: #febc2e;
}
.shot-bar i:nth-child(3) {
  background: #28c840;
}
.shot-body {
  background: #f4f1ff;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.shot-hero {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(120deg, #7c5cff, #ff5c8a);
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shot-row span {
  height: 44px;
  border-radius: 6px;
  background: #e2dcff;
}
.share-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.share-meta {
  margin-left: auto;
  font-size: 0.8rem;
}

/* ---------- Destinations ---------- */
.dests {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.dest {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(var(--fg-rgb), 0.02);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.dest:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.dest p {
  margin: 0;
  font-size: 0.9rem;
}
.dest-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: #c7c7d4;
}
.dest-star {
  position: relative;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.55);
}
.dest-star .dest-top {
  color: #fff;
}

/* ---------- Migrate ---------- */
.migrate {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 92, 138, 0.12), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(124, 92, 255, 0.12), transparent 60%), var(--surface);
}
.migrate-demo {
  display: grid;
  gap: 14px;
}
.mig-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.mig-row code {
  font-size: 0.95rem;
}
.mig-row code b {
  color: var(--coral-text);
  font-weight: 500;
}
.mig-after {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.08);
}
.mig-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 50px;
}
.mig-where {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}
.mig-after .mig-where {
  color: var(--good);
}
.mig-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.mig-arrow .icon {
  transform: rotate(90deg);
  color: var(--violet-1);
}
.mig-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
}
.mig-foot .icon {
  color: var(--good);
}

/* ---------- Code ---------- */
.code-window {
  border-radius: 18px;
  background: #0d0d14;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(255, 92, 138, 0.35);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.code-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.code-bar i:nth-child(2) {
  background: #febc2e;
}
.code-bar i:nth-child(3) {
  background: #28c840;
}
.code-bar span {
  margin-left: 10px;
  font: 0.8rem var(--mono);
  color: var(--muted);
}
.code-window pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.75;
}
.code-window .c {
  color: #6f6f86;
}
.code-window .p {
  color: #ff5c8a;
  user-select: none;
}
.code-window .ok {
  color: var(--good);
}
.code-block {
  margin: 18px 0;
  border-radius: 14px;
  background: #0d0d14;
  border: 1px solid var(--line);
  overflow: hidden;
}
.code-block-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font: 0.75rem var(--mono);
  color: var(--muted);
}
.copy-mini {
  font: 600 0.75rem var(--sans);
  color: var(--text);
  background: rgba(var(--fg-rgb), 0.06);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
}
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ---------- Shortcuts marquee ---------- */
.shortcuts {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.shortcuts-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.sc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
kbd {
  font-family: var(--sans);
}
.sc kbd {
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, calc(0.6 * var(--shadow-k))), inset 0 1px 0 rgba(var(--fg-rgb), 0.06);
  letter-spacing: 0.08em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Roadmap ---------- */
.feature-box {
  border-radius: 28px;
  padding: 64px 40px;
  border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%), var(--surface);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--fg-rgb), 0.02);
  padding: 0 20px;
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] {
  border-color: var(--line-2);
  background: rgba(var(--fg-rgb), 0.035);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  color: var(--text-2d);
  margin: 0 0 18px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  padding: 88px 24px;
  background: linear-gradient(135deg, #2b1d6e, #5a1a45);
  border: 1px solid rgba(var(--fg-rgb), 0.14);
}
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  position: relative;
}
.cta .lead {
  color: rgba(var(--fg-rgb), 0.78);
  position: relative;
  margin-left: auto;
  margin-right: auto;
}
.cta .hero-ctas {
  position: relative;
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #7c5cff, #ff5c8a, #7c5cff);
  filter: blur(80px);
  opacity: 0.35;
  animation: spin 20s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-glow {
    animation: none;
  }
}

/* ---------- Pricing ---------- */
.pricing-page {
  overflow: hidden;
}
.billing-toggle {
  position: relative;
  display: flex;
  width: max-content;
  margin: 0 auto 36px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.billing-toggle input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.billing-toggle label {
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.billing-toggle input:checked + label {
  background: rgba(var(--fg-rgb), 0.09);
  color: var(--text);
}
.billing-toggle input:focus-visible + label {
  outline: 2px solid var(--violet);
}
.save {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--good);
  background: rgba(61, 220, 151, 0.12);
  padding: 3px 7px;
  border-radius: 6px;
}
.only-year {
  display: none;
}
.pricing-page:has(#bill-year:checked) .only-year {
  display: flex;
}
.pricing-page:has(#bill-year:checked) form.only-year {
  display: block;
}
.pricing-page:has(#bill-year:checked) .only-month {
  display: none;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.plan > .muted {
  margin: 0;
  font-size: 0.94rem;
}
.plan-hot {
  background: linear-gradient(var(--surface-hot), var(--surface-hot)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.6);
}
.plan-flag {
  position: absolute;
  top: -12px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--grad);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.per {
  color: var(--muted);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-2a);
}
.plan-features .icon {
  color: var(--good);
  flex: none;
  margin-top: 3px;
}
.plan-features.small li {
  font-size: 0.88rem;
}
.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pricing-notes p {
  font-size: 0.92rem;
  margin: 4px 0 0;
}

/* ---------- Notices ---------- */
.notice {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.04);
  margin-bottom: 18px;
  font-size: 0.94rem;
}
.notice-error {
  border-color: rgba(255, 92, 108, 0.4);
  background: rgba(255, 92, 108, 0.1);
  color: #ffc2c8;
}
.notice-ok {
  border-color: rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.08);
  color: #b9f5da;
}
.notice-info {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.1);
  color: var(--violet-3);
}
.center-block {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.label-row {
  display: flex;
  justify-content: space-between;
}
.label-row a {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  font: 400 1rem var(--sans);
  color: var(--text);
  background: rgba(var(--shade-rgb), calc(0.35 * var(--shade-k)));
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
}
input[disabled] {
  opacity: 0.6;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* ---------- Auth ---------- */
.auth {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  overflow: hidden;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(var(--surface-rgb), 0.85);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, calc(0.8 * var(--shadow-k)));
}
.auth-card h1 {
  font-size: 1.9rem;
  margin: 18px 0 6px;
}
.auth-card > .muted {
  margin-bottom: 22px;
}
.auth-alt {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.92rem;
}

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1000px;
}
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.co-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 10px;
}
.co-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.co-amount span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.co-lines {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.co-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}
.co-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-weight: 700;
}
.co-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 26px;
}
.testmode {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: repeating-linear-gradient(-45deg, rgba(255, 181, 71, 0.1) 0 10px, rgba(255, 181, 71, 0.04) 10px 20px);
  border: 1px solid rgba(255, 181, 71, 0.45);
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.testmode b {
  display: block;
  color: var(--warn);
  font-size: 0.95rem;
}
.testmode span {
  color: #e8d6b8;
}
.testmode-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.2);
}
.card-fields legend {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.card-fields > input {
  border-radius: 11px 11px 0 0;
}
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-row input {
  border-top: 0;
  border-radius: 0 0 0 11px;
}
.card-row input + input {
  border-left: 0;
  border-radius: 0 0 11px 0;
}

/* ---------- Account ---------- */
.welcome {
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 28px;
  background: radial-gradient(100% 140% at 0% 0%, rgba(124, 92, 255, 0.3), transparent 60%),
    radial-gradient(100% 140% at 100% 100%, rgba(255, 92, 138, 0.25), transparent 60%), var(--surface);
  border: 1px solid var(--line-2);
}
.welcome h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.welcome p {
  margin: 0;
}
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.account-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4px;
}
.account-head p {
  margin: 0;
}
.account-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.panel-wide {
  grid-column: 1 / -1;
}
.panel-title {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.sub-title {
  font-size: 0.95rem;
  margin: 26px 0 12px;
  color: var(--text-2b);
}
.panel-danger {
  border-color: rgba(255, 92, 108, 0.25);
}
.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.plan-now {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.plan-badge {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.plan-pro,
.plan-lifetime {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-good {
  color: var(--good);
  background: rgba(61, 220, 151, 0.1);
}
.status-warn {
  color: var(--warn);
  background: rgba(255, 181, 71, 0.1);
}
.status-bad {
  color: var(--bad);
  background: rgba(255, 92, 108, 0.1);
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 0.94rem;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
}
.keys {
  display: grid;
  gap: 10px;
}
.key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
  border: 1px solid var(--line);
}
.license-key {
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  letter-spacing: 0.06em;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.key-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.row-dim td {
  opacity: 0.55;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ---------- Admin ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat .muted {
  font-size: 0.82rem;
}
.stat b {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  text-decoration: none;
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.tabs a.active {
  color: var(--text);
  border-color: var(--violet);
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.inline-form input {
  max-width: 280px;
}
.inline-form select {
  width: auto;
}

/* ---------- Docs / prose ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.docs-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 2px;
}
.docs-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.94rem;
}
.docs-nav a:hover {
  color: var(--text);
}
.docs-nav a.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.14);
}
.prose {
  min-width: 0;
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  color: #c6c6d1;
}
.prose li {
  margin-bottom: 8px;
}
.prose ol,
.prose ul {
  padding-left: 1.3em;
}
.prose :not(pre) > code {
  background: rgba(var(--fg-rgb), 0.07);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
.callout {
  padding: 14px 16px;
  border-left: 3px solid var(--warn);
  background: rgba(255, 181, 71, 0.07);
  border-radius: 0 10px 10px 0;
}
.doc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.doc-card {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s;
}
.doc-card:hover {
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}
.doc-card b {
  color: var(--text);
}
.doc-card .muted {
  font-size: 0.9rem;
}
.draft-banner {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 181, 71, 0.12);
  color: var(--warn);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ---------- Download ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  position: relative;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.dl-card h2 {
  font-size: 1.6rem;
  margin: 0;
}
.dl-card p {
  margin: 0;
}
.dl-card .btn {
  margin-top: auto;
}
.dl-main {
  background: linear-gradient(var(--surface-hot), var(--surface-hot)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.55);
}
.dl-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--fg-rgb), 0.06);
  border: 1px solid var(--line-2);
}
.dl-card .code-block {
  margin: 0;
}

/* ---------- 404 / center pages ---------- */
.center-page {
  text-align: center;
  padding: 120px 24px;
}
.center-page .lead {
  margin: 0 auto;
}
.nf-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 10px;
}
.big-emoji {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 28px;
  background: var(--grad);
  box-shadow: 0 20px 60px -15px rgba(255, 92, 138, 0.6);
}

/* ---------- Toast for copy ---------- */
.copied-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  pointer-events: none;
}
.copied-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .dests {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .split-rev,
  .migrate,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    gap: 48px;
  }
  .screen {
    transform: none;
  }
  .split-rev > :first-child {
    order: 2;
  }
  .plans,
  .dl-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .tools {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-3,
  .pricing-notes {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .migrate {
    padding: 32px;
  }
}
@media (max-width: 760px) {
  .main-nav,
  .hide-sm {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .section {
    padding: 64px 0;
  }
  .page-top {
    padding-top: 40px;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .acc-grid {
    grid-template-columns: 1fr;
  }
  .flow {
    flex-direction: column;
    gap: 0;
  }
  .flow-line {
    width: 2px;
    height: 32px;
    flex: none;
    min-width: 0;
    margin: 8px 0;
  }
  .flow-line span {
    width: 100%;
    height: 40%;
    animation-name: flow-v;
  }
  .doc-cards {
    grid-template-columns: 1fr;
  }
}
@keyframes flow-v {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .tools,
  .dests {
    grid-template-columns: 1fr;
  }
  .tool {
    padding: 24px;
  }
  .feature-box {
    padding: 40px 18px;
  }
  .migrate {
    padding: 22px;
  }
  .cta {
    padding: 64px 18px;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .co-form-wrap,
  .panel {
    padding: 18px;
  }
  .hide-xs {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 1.3rem;
  }
  .share-meta {
    margin-left: 0;
    width: 100%;
  }
  .mig-where {
    margin-left: 62px;
  }
  .billing-toggle label {
    padding: 8px 12px;
  }
  .header-inner {
    gap: 12px;
  }
}

/* ---------- One time license notes ---------- */
.plans-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}
.as-is {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 820px;
  margin: 28px auto 0;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: rgba(255, 181, 71, 0.06);
}
.as-is > .icon {
  color: var(--warn);
  flex: none;
  margin-top: 2px;
}
.as-is p {
  margin: 6px 0 0;
  color: #e6dcc8;
}
.as-is-sm {
  margin: 0 0 20px;
  padding: 14px;
  font-size: 0.9rem;
}
.as-is-sm p {
  margin: 0;
}
.today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--good);
  background: rgba(61, 220, 151, 0.12);
}
.drive-mock {
  position: relative;
}
.drive-card {
  position: relative;
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.85);
  border: 1px solid var(--line-2);
  padding: 16px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, calc(0.8 * var(--shadow-k)));
}
.drive-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.drive-top .mono {
  color: var(--muted);
  font-size: 0.8rem;
}
.drive-quota {
  margin-left: auto;
  display: grid;
  gap: 4px;
  width: 120px;
  font-size: 0.72rem;
  color: var(--muted);
}
.drive-quota span {
  height: 5px;
  border-radius: 3px;
  background: rgba(var(--fg-rgb), 0.08);
  overflow: hidden;
}
.drive-quota span i {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--grad);
}
.drive-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.drive-row:hover {
  background: rgba(var(--fg-rgb), 0.03);
}
.drive-row .icon {
  color: var(--violet-1);
  flex: none;
}
.drive-row .muted {
  margin-left: auto;
  font-size: 0.8rem;
  white-space: nowrap;
}
.friends {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.invite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.invite code b {
  color: var(--coral-text);
  font-weight: 500;
}
.invite .muted {
  margin-left: auto;
  font-size: 0.82rem;
}
@media (max-width: 960px) {
  .plans-2,
  .friends {
    grid-template-columns: 1fr;
  }
}
.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.type-chips span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cfcfdb;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.03);
}
.drive-tools {
  margin-top: 64px;
  grid-template-columns: repeat(4, 1fr);
}
.price-teaser .as-is {
  margin-bottom: 28px;
}
@media (max-width: 1080px) {
  .drive-tools {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .drive-tools {
    grid-template-columns: 1fr;
  }
}

/* ---------- v1: pillars, phone, vault ---------- */
.chip-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.03);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.2s;
}
.chip-group:hover {
  border-color: rgba(124, 92, 255, 0.6);
}
.chip-group .icon {
  color: var(--violet-1);
}
.section-tight {
  padding: 24px 0 40px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pillar {
  display: block;
  text-decoration: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.035), rgba(var(--fg-rgb), 0.01));
  transition: transform 0.2s, border-color 0.2s;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.5);
}
.pillar h3 {
  font-size: 1.3rem;
}
.pillar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--text-2c);
  font-size: 0.92rem;
}
.pillar li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
  margin: 0 9px 2px 0;
}
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tool-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.03);
  font-size: 0.88rem;
  font-weight: 500;
}
.tool-chips .icon {
  color: var(--violet-1);
}
.friends-top {
  margin-top: 56px;
}
.callout.small {
  margin-top: 22px;
  color: #e6dcc8;
}

.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0;
}
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 14px 12px;
  background: #0d0d14;
  border: 6px solid #2a2a36;
  box-shadow: 0 40px 100px -30px rgba(124, 92, 255, 0.6), inset 0 0 0 1px rgba(var(--fg-rgb), 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone-notch {
  width: 34%;
  height: 22px;
  border-radius: 12px;
  background: #000;
  margin: 0 auto 4px;
  flex: none;
}
.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.phone-head b {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.2);
  color: var(--violet-3);
  white-space: nowrap;
}
.phone-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}
.phone-month {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 4px;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  flex: 1;
  align-content: start;
}
.phone-grid span {
  aspect-ratio: 1;
  border-radius: 3px;
  position: relative;
}
.phone-grid span.live::after {
  content: 'LIVE';
  position: absolute;
  left: 4px;
  top: 4px;
  font: 700 0.5rem/1 var(--sans);
  color: #fff;
  background: rgba(var(--shade-rgb), calc(0.4 * var(--shade-k)));
  padding: 2px 4px;
  border-radius: 4px;
}
.phone-grid span.dupe {
  outline: 2px solid var(--warn);
  outline-offset: -2px;
}
.phone-grid span.dupe::after {
  content: '2';
  position: absolute;
  right: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.55rem/1 var(--sans);
  background: var(--warn);
  color: #111;
}
.phone-free {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
}
.phone-free b {
  display: block;
  font-size: 0.82rem;
}
.phone-free small {
  font-size: 0.64rem;
  color: #a9eccd;
}
.phone-free > span {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--good);
  white-space: nowrap;
}
.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.phone-tabs .on {
  color: #fff;
}

.vault-mock {
  display: grid;
  gap: 14px;
}
.vault-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: radial-gradient(80% 100% at 50% 0%, rgba(124, 92, 255, 0.22), transparent 70%), var(--surface);
  box-shadow: 0 40px 100px -40px rgba(124, 92, 255, 0.6);
}
.vault-lock {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--grad);
  margin-bottom: 8px;
  box-shadow: 0 16px 40px -10px rgba(255, 92, 138, 0.6);
}
.vault-card b {
  font-size: 1.2rem;
}
.vault-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.vault-nas {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--line-2);
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
}
.vault-nas .eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
}
.vault-nas code {
  display: block;
  font-size: 0.78rem;
  color: #6f6f86;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.app-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0f;
  text-decoration: none;
  font-weight: 700;
}
.app-store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #555;
}
@media (min-width: 961px) {
  .dl-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
}
@media (max-width: 1080px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Plugins ---------- */
.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.pl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.5);
}
.pl-card h3 {
  margin: 8px 0 0;
}
.pl-card p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}
.pl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pl-icon {
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  flex: none;
}
.pl-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-top: 6px;
}
.pl-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--good);
  font-size: 0.8rem;
}
.badge-free {
  background: rgba(61, 220, 151, 0.14);
  color: var(--good);
}
.pl-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pl-how p {
  font-size: 0.92rem;
  margin: 4px 0 0;
}
.pl-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.pl-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0 24px;
}
.pl-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 4px;
}
.pl-head .lead {
  margin: 0;
}
.pl-side {
  position: sticky;
  top: 88px;
}
.pl-price {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.pl-price b {
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.pl-owned {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(61, 220, 151, 0.1);
  color: #b9f5da;
  font-size: 0.9rem;
}
.pl-perms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}
.pl-perms span {
  display: block;
}
.pl-ext {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(var(--fg-rgb), 0.07);
}
.pl-side .kv {
  margin-top: 18px;
}
.pl-sha {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.pl-row {
  text-decoration: none;
}

/* ---------- Changelog ---------- */
.releases {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.release-side {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}
.release-side b {
  font-size: 1.3rem;
}
.release .prose h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0;
}
.prose th,
.prose td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.prose blockquote {
  margin: 12px 0;
  padding: 4px 14px;
  border-left: 3px solid var(--violet);
  color: var(--muted);
}
.prose pre {
  background: #0d0d14;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
}
@media (max-width: 960px) {
  .pl-grid,
  .pl-how {
    grid-template-columns: 1fr;
  }
  .pl-detail {
    grid-template-columns: 1fr;
  }
  .pl-side {
    position: static;
  }
  .release {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .release-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}
@media (min-width: 561px) and (max-width: 960px) {
  .pl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================== Home v3: centered hero, product shot, bento, bands =================== */
.section {
  padding: 120px 0;
}
.band {
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.025), rgba(var(--fg-rgb), 0.01));
  border-block: 1px solid var(--line);
}
.wrap-wide {
  max-width: 1280px;
}
.hero-centered {
  padding: 88px 0 40px;
  text-align: center;
}
.hero-head {
  display: grid;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.hero-centered h1 {
  margin: 26px 0 22px;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
}
.hero-centered .lead {
  margin: 0 auto;
  max-width: 660px;
}
.hero-centered .hero-ctas {
  margin: 32px 0 56px;
}

/* --- product shot --- */
.hp {
  position: relative;
  container-type: inline-size;
  z-index: 1;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 2% 6%;
  text-align: left;
}
.hp-glow {
  position: absolute;
  inset: 12% 8% 4%;
  background: var(--grad);
  filter: blur(90px);
  opacity: 0.32;
  border-radius: 50%;
}
.hp-browser {
  position: relative;
  font-size: clamp(5px, 1.08cqw, 13px);
  border-radius: 1.3em;
  overflow: hidden;
  background: #101017;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, calc(0.85 * var(--shadow-k))), inset 0 1px 0 rgba(var(--fg-rgb), 0.06);
}
.hp-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 3em;
  padding: 0 1.1em;
  background: #16161f;
  border-bottom: 1px solid var(--line);
}
.hp-bar > i {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: #ff5f57;
}
.hp-bar > i:nth-child(2) {
  background: #febc2e;
}
.hp-bar > i:nth-child(3) {
  background: #28c840;
}
.hp-url {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 1.4em;
  border-radius: 0.6em;
  background: rgba(var(--fg-rgb), 0.05);
  color: var(--muted);
  font: 0.95em var(--mono);
}
.hp-url .icon,
.hp .icon {
  width: 1.1em;
  height: 1.1em;
}
.hp-app {
  display: grid;
  grid-template-columns: 15em 1fr 21em;
  min-height: 34em;
}
.hp-side {
  padding: 1.2em 0.9em;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.hp-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1.15em;
  margin: 0 0.4em 1em;
}
.hp-logo .logo-mark {
  width: 1.4em;
  height: 1.4em;
  border-radius: 0.35em;
  box-shadow: none;
}
.hp-nav {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 0.7em;
  border-radius: 0.6em;
  color: var(--muted);
}
.hp-nav.on {
  background: rgba(124, 92, 255, 0.16);
  color: #fff;
}
.hp-quota {
  margin-top: auto;
  display: grid;
  gap: 0.5em;
  padding: 0.7em;
  font-size: 0.85em;
  color: var(--muted);
}
.hp-quota span {
  height: 0.4em;
  border-radius: 1em;
  background: rgba(var(--fg-rgb), 0.08);
  overflow: hidden;
}
.hp-quota span i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--grad);
}
.hp-main {
  padding: 1.2em 1.4em;
  min-width: 0;
}
.hp-toolbar {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.3em;
}
.hp-crumbs {
  color: var(--muted);
  white-space: nowrap;
}
.hp-crumbs em {
  font-style: normal;
  opacity: 0.5;
  margin: 0 0.2em;
}
.hp-crumbs b {
  color: var(--text);
}
.hp-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.9em;
  border-radius: 0.7em;
  background: rgba(var(--fg-rgb), 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.hp-avatars {
  display: flex;
}
.hp-avatars i {
  width: 2em;
  height: 2em;
  margin-left: -0.5em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.85em/1 var(--sans);
  font-style: normal;
  border: 2px solid #101017;
  background: var(--grad);
}
.hp-avatars i:nth-child(2) {
  background: linear-gradient(135deg, #3ddc97, #1b7f5b);
}
.hp-avatars i:nth-child(3) {
  background: linear-gradient(135deg, #ffb547, #ff5c8a);
}
.hp-folders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
  margin-bottom: 1.2em;
}
.hp-folders span {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1em;
  border-radius: 0.8em;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.hp-folders .icon {
  color: var(--violet-1);
}
.hp-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9em;
}
.hp-file {
  border-radius: 0.8em;
  border: 1px solid var(--line);
  background: rgba(var(--fg-rgb), 0.025);
  overflow: hidden;
}
.hp-file > span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.8em;
  font-size: 0.95em;
  white-space: nowrap;
}
.th {
  height: 7.2em;
  margin: 0.5em 0.5em 0;
  border-radius: 0.5em;
  overflow: hidden;
}
.th-doc {
  background: #f4f2fb;
  padding: 0.9em;
  display: grid;
  gap: 0.45em;
  align-content: start;
}
.th-doc b {
  height: 0.8em;
  width: 55%;
  border-radius: 0.2em;
  background: #2a2340;
}
.th-doc i {
  height: 0.45em;
  border-radius: 0.2em;
  background: #cfc8e6;
}
.th-doc i.s {
  width: 60%;
}
.th-sheet {
  background: #f3faf6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
}
.th-sheet i {
  background: #fff;
  border-bottom: 1px solid #d6efe1;
}
.th-sheet i:nth-child(-n + 4) {
  background: #d7f2e3;
}
.th-sheet i.hl {
  outline: 2px solid #3ddc97;
  outline-offset: -2px;
}
.th-slides {
  background: linear-gradient(135deg, #7c5cff, #ff5c8a);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5em;
}
.th-slides b {
  width: 50%;
  height: 0.9em;
  border-radius: 0.2em;
  background: rgba(255, 255, 255, 0.92);
}
.th-slides i {
  width: 32%;
  height: 0.5em;
  border-radius: 0.2em;
  background: rgba(255, 255, 255, 0.55);
}
.th-code {
  background: #0b0b12;
  padding: 0.9em;
  display: grid;
  gap: 0.5em;
  align-content: start;
}
.th-code i {
  height: 0.5em;
  border-radius: 0.2em;
  background: #7c5cff;
  opacity: 0.8;
}
.th-code i.c2 {
  background: #3ddc97;
}
.th-code i.c3 {
  background: #ffb547;
}
/* Real photos in the mockups (src/thumbs.ts). Neutral fill while they load, never a fake gradient. */
.thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(var(--fg-rgb), 0.08);
}
.th-photo {
  position: relative;
}
.th-photo picture {
  display: block;
  height: 100%;
}
.th-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 10, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.th-play svg {
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.12em;
}
.hp-doc {
  border-left: 1px solid var(--line);
  background: #f7f6fb;
  color: #1c1a26;
  padding: 1.1em 1.4em;
}
.hp-doc-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
  color: #6b6880;
  margin-bottom: 1.4em;
}
.hp-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9em;
  color: #1b7f5b;
}
.hp-live i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #3ddc97;
}
.hp-doc h4 {
  font-size: 1.7em;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
.hp-doc p {
  display: grid;
  gap: 0.6em;
  margin: 0 0 1.2em;
}
.hp-doc p span {
  display: block;
  height: 0.55em;
  border-radius: 0.2em;
  background: #dcd8ea;
}
.hp-doc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6em;
}
.hp-doc li {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.hp-doc li::before {
  content: '';
  width: 1em;
  height: 1em;
  border-radius: 0.25em;
  border: 1.5px solid #b9b4cf;
  flex: none;
}
.hp-doc li.done {
  color: #8d89a3;
  text-decoration: line-through;
}
.hp-doc li.done::before {
  background: #7c5cff;
  border-color: #7c5cff;
}
.hp-caret {
  position: relative;
  margin-left: 0.15em;
  padding-left: 0.2em;
  border-left: 2px solid #3ddc97;
  font-size: 0;
  height: 1.2em;
}
.hp-caret::after {
  content: 'Sam';
  position: absolute;
  left: -2px;
  top: -1.5em;
  font: 600 0.75rem/1 var(--sans);
  font-size: max(6px, 0.8em);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  background: #3ddc97;
  color: #06261a;
}
.hp-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14%;
  font-size: clamp(4px, 0.95cqw, 11px);
  aspect-ratio: 9 / 18.5;
  border-radius: 2.4em;
  padding: 0.9em 0.7em;
  background: #0b0b10;
  border: 0.45em solid #2a2a36;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, calc(0.9 * var(--shadow-k))), 0 0 0 1px rgba(var(--fg-rgb), 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  overflow: hidden;
}
.hp-phone-notch {
  width: 36%;
  height: 1.4em;
  border-radius: 1em;
  background: #000;
  margin: 0 auto;
  flex: none;
}
.hp-phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.3em;
  padding: 0 0.2em;
}
.hp-phone-head span {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--good);
  background: rgba(61, 220, 151, 0.14);
  padding: 0.3em 0.6em;
  border-radius: 1em;
}
.hp-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25em;
}
.hp-phone-grid picture {
  display: block;
  aspect-ratio: 1;
  border-radius: 0.25em;
  overflow: hidden;
}
.hp-toast {
  position: absolute;
  left: 4%;
  bottom: 1%;
  font-size: clamp(5px, 1.05cqw, 13px);
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em 1.2em 0.8em 0.9em;
  border-radius: 1em;
  background: rgba(28, 26, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--fg-rgb), 0.16);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, calc(0.7 * var(--shadow-k))), 0 0 0 1px rgba(124, 92, 255, 0.3);
}
.hp-toast div {
  display: grid;
  gap: 0.2em;
}
.hp-toast span {
  font: 0.9em var(--mono);
  color: rgba(var(--fg-rgb), 0.7);
}
.hp-toast em {
  font-style: normal;
  color: var(--coral-text);
}
.hp-toast-check {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--good);
  color: #062;
}
@media (prefers-reduced-motion: no-preference) {
  .hp-toast {
    animation: hp-toast 9s ease-in-out infinite;
  }
  .hp-phone {
    animation: hp-float 7s ease-in-out infinite;
  }
  .hp-caret {
    animation: hp-blink 1.2s steps(2) infinite;
  }
}
@keyframes hp-toast {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(0.97); }
  14%, 70% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2%); }
}
@keyframes hp-blink {
  50% { border-color: transparent; }
}

/* --- bento --- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bc {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 90px;
}
.bc h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
  margin: 14px 0 8px;
  max-width: 22ch;
}
.bc .muted {
  margin: 0;
  max-width: 46ch;
}
.bc-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.bc-drive {
  grid-column: span 4;
  background: radial-gradient(90% 120% at 100% 0%, rgba(124, 92, 255, 0.2), transparent 60%), var(--surface);
}
.bc-photos {
  grid-column: span 2;
  background: radial-gradient(120% 90% at 50% 120%, rgba(255, 92, 138, 0.22), transparent 60%), var(--surface);
}
.bc-capture {
  grid-column: span 3;
}
.bc-private {
  grid-column: span 3;
  background: radial-gradient(90% 120% at 0% 100%, rgba(61, 220, 151, 0.1), transparent 60%), var(--surface);
}
.bc-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
}
.bc-types div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(var(--shade-rgb), calc(0.25 * var(--shade-k)));
  border: 1px solid var(--line);
}
.bc-types .icon {
  color: var(--violet-1);
  margin-bottom: 8px;
}
.bc-types span {
  font-size: 0.82rem;
  color: var(--muted);
}
.bc-free {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.3);
}
.bc-free div {
  display: grid;
}
.bc-free span {
  font-size: 0.8rem;
  color: #a9eccd;
}
.bc-free strong {
  font-size: 1.3rem;
  color: var(--good);
  white-space: nowrap;
}
.bc-keys {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bc-keys span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.bc-keys kbd {
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, calc(0.6 * var(--shadow-k)));
  letter-spacing: 0.06em;
}
.bc-cipher {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(var(--shade-rgb), calc(0.35 * var(--shade-k)));
  border: 1px dashed var(--line-2);
}
.bc-cipher code {
  font-size: 0.78rem;
  color: #6f6f86;
  overflow-wrap: anywhere;
}
.bc-lock {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--grad);
}
.bc-honest {
  margin: -8px 0 0;
  font-size: 0.82rem;
  color: #e6dcc8;
}

/* --- duo band --- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duo-card {
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--ink);
  scroll-margin-top: 90px;
}
.duo-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.duo-card .invite {
  margin-top: 24px;
}
.redirect {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
}
.redirect b {
  color: var(--coral-text);
  font-weight: 500;
}
.redirect .icon {
  color: var(--violet-1);
}

/* --- ship --- */
.ship {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.ship-steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.ship-steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
}
.ship-steps li::before {
  content: counter(s);
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(124, 92, 255, 0.16);
  color: var(--violet-2);
}
.ship-steps b {
  font-family: var(--mono);
  font-weight: 500;
}
.ship-steps span {
  font-size: 0.92rem;
}
.ship-link {
  margin: 40px 0 0;
}

/* --- price + faq --- */
.price-faq {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.price-card {
  position: sticky;
  top: 90px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(var(--surface-hot2), var(--surface-hot2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 100px -40px rgba(124, 92, 255, 0.7);
}
.price-big {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 4px 0 16px;
}
.price-big .serif {
  font-size: 0.6em;
  margin-left: 10px;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card .checks {
  margin: 18px 0;
}
.as-is-line {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: #e6dcc8;
  margin: 0 0 20px;
}
.as-is-line .icon {
  flex: none;
  margin-top: 3px;
  color: var(--warn);
}
.faq-title {
  margin-bottom: 24px;
}

@media (max-width: 1080px) {
  .hp-app {
    grid-template-columns: 13em 1fr;
  }
  .hp-doc {
    display: none;
  }
  .bc-keys {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .section {
    padding: 88px 0;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bc-drive {
    grid-column: span 2;
  }
  .bc-photos,
  .bc-capture,
  .bc-private {
    grid-column: span 1;
  }
  .bc-photos {
    grid-column: span 2;
  }
  .duo,
  .ship,
  .price-faq {
    grid-template-columns: 1fr;
  }
  .price-card {
    position: static;
  }
}
@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }
  .hero-centered {
    padding: 48px 0 24px;
  }
  .hp-app {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hp-side {
    display: none;
  }
  .hp-browser {
    font-size: clamp(6px, 1.9cqw, 13px);
  }
  .hp-files {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-file:nth-child(n + 5) {
    display: none;
  }
  .hp-phone {
    width: 26%;
    font-size: clamp(4px, 1.3cqw, 11px);
  }
  .hp-toast {
    font-size: clamp(6px, 1.9cqw, 13px);
    top: auto;
    bottom: 2%;
    left: 2%;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bc-drive,
  .bc-photos,
  .bc-capture,
  .bc-private {
    grid-column: span 1;
  }
  .bc,
  .duo-card {
    padding: 24px;
    border-radius: 22px;
  }
  .bc-types {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-big {
    font-size: 3.4rem;
  }
}
@media (max-width: 420px) {
  .bc-keys {
    grid-template-columns: 1fr 1fr;
  }
  .hp-search {
    display: none;
  }
}
.section.page-top {
  padding-top: 72px;
}
@media (max-width: 760px) {
  .section.page-top {
    padding-top: 40px;
  }
}

.bc-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 64px));
  gap: 4px;
  margin-top: auto;
}
.bc-strip picture {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}
.bc-strip + .bc-free {
  margin-top: 0;
}
.bc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-k)));
  border: 1px solid var(--line-2);
  font-size: 0.88rem;
}
.bc-link code b {
  color: var(--coral-text);
  font-weight: 500;
}
.bc-link .muted {
  margin-left: auto;
  font-size: 0.8rem;
}
.bc-link .hp-toast-check {
  font-size: 13px;
  flex: none;
}
.bc-link + .bc-keys {
  margin-top: 0;
}
.duo-card,
.bc {
  min-width: 0;
}
.duo-card code,
.invite code {
  overflow-wrap: anywhere;
  min-width: 0;
}
.tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  white-space: nowrap;
}

/* ---------- Licensing v3: free server, paid apps ---------- */
.was {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.55em;
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 92, 138, 0.8);
  margin-right: 4px;
  align-self: center;
}
.price .was {
  font-size: 1.5rem;
}
.price-big .was {
  font-size: 0.45em;
  margin-right: 12px;
  vertical-align: middle;
}
.co-amount .was {
  font-size: 0.5em;
  margin-right: 10px;
  vertical-align: middle;
}
.co-discount {
  color: var(--good);
}
.early {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e9e3ff;
  margin: -10px 0 20px;
}
.early-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.18);
}
.early .muted {
  font-weight: 500;
}
.early-calm {
  color: var(--muted);
  font-weight: 500;
}
.not-cloud {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.07);
  font-size: 0.95rem;
  color: #d6f5e7;
}
.not-cloud .icon {
  color: var(--good);
}
.not-cloud span {
  color: #a9d9c3;
}
.not-cloud.center {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero-head .not-cloud {
  margin-top: 22px;
  margin-bottom: 0;
}
.early-left {
  flex-basis: 100%;
  padding-left: 16px;
  font-size: 0.82rem;
}
.hero-sub {
  margin: 16px 0 0;
  text-align: center;
}

/* how it works */
.how-section {
  padding-top: 40px;
}
.how-head {
  margin-top: 88px;
}
.how-steps {
  list-style: none;
  counter-reset: how;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-steps li {
  counter-increment: how;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
}
.how-steps li::after {
  content: counter(how);
  position: absolute;
  top: 20px;
  right: 22px;
  font: 600 0.8rem/1 var(--mono);
  color: var(--muted);
}
.how-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.16);
  color: var(--violet-2);
  margin-bottom: 6px;
}
.how-steps b {
  font-size: 1.05rem;
}
.how-steps .muted {
  font-size: 0.92rem;
}
.does {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 18px auto 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.does-col {
  padding: 22px 24px;
}
.does-col + .does-col {
  border-left: 1px solid var(--line);
  background: rgba(var(--fg-rgb), 0.015);
}
.does-h {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.does-yes {
  color: var(--violet-2);
}
.does-no {
  color: var(--good);
}
.does ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  color: var(--text-2a);
}

/* fair upgrade promise */
.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(255, 92, 138, 0.05));
}
.promise > .icon {
  color: var(--violet-1);
  flex: none;
  margin-top: 2px;
}
.promise b {
  font-size: 1.05rem;
}
.promise ul {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: var(--text-2e);
}
.promise p {
  margin: 6px 0 0;
  color: var(--text-2e);
}
.promise-sm {
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 0.9rem;
}
.promise-sm p {
  margin: 0;
}
.promise-sm b {
  font-size: inherit;
}
.panel .promise-sm {
  margin: 18px 0 0;
}
.pricing-promise {
  max-width: 900px;
  margin: 28px auto 0;
}
.promise-line {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-2e);
  margin: 0 0 20px;
}
.promise-line .icon {
  flex: none;
  margin-top: 3px;
  color: var(--violet-1);
}

/* pricing cards */
.pricing-page .plans-2 {
  max-width: 900px;
}
.plan-cta-note {
  margin: 10px 0 0;
}
.plan-groups {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pg > b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.pg ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 7px;
}
.pg li {
  display: flex;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-2a);
}
.pg li .icon {
  color: var(--good);
  flex: none;
  margin-top: 3px;
}
.plan-facts {
  list-style: none;
  padding: 16px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.plan-facts li {
  display: flex;
  gap: 9px;
}
.plan-facts .icon {
  flex: none;
  margin-top: 3px;
  color: var(--violet-1);
}

/* home price card */
.price-free {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.22);
  margin: 8px 0 20px;
  font-size: 0.92rem;
}
.price-free span {
  color: var(--good);
  font-weight: 700;
}
.price-name {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

/* docs + download */
.trial-box {
  margin: 28px 0 36px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.05);
}
.trial-box h2 {
  margin-top: 0;
}
.trial-box ol {
  margin-bottom: 0;
}
.dl-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

@media (max-width: 960px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .does {
    grid-template-columns: 1fr;
  }
  .does-col + .does-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .not-cloud {
    border-radius: 16px;
  }
}

.pricing-page .pricing-notes {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Licensing v4: three app licenses + portability ---------- */
.plans-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.plans-4 .plan {
  padding: 26px 22px;
}
.plans-4 .price {
  margin: 16px 0 18px;
}
.plans-4 .amount {
  font-size: 2.5rem;
}
.plans-4 .price .was {
  font-size: 1.2rem;
}
.plan-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-2);
  margin-bottom: 6px;
}
.plan-free .plan-kicker {
  color: var(--good);
}
.plan-covers {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-2a);
  min-height: 2.8em;
}
.plan-blurb {
  margin: 14px 0 0;
}
.plans-4 .plan-features {
  margin-top: 16px;
}
.plan-free {
  background: linear-gradient(rgba(61, 220, 151, 0.05), rgba(var(--surface-rgb), 0.7));
  border-color: rgba(61, 220, 151, 0.22);
}
.plans-foot {
  margin: 22px auto 0;
  max-width: 640px;
}
.early-center {
  justify-content: center;
  margin: -6px auto 26px;
}
.early-center .early-left,
.price-card .early-left {
  flex-basis: auto;
  padding-left: 0;
}
.early-center .early-left::before,
.price-card .early-left::before {
  content: '· ';
}
.apps-include {
  max-width: 900px;
  margin: 56px auto 0;
}
.apps-include h2 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 20px;
}
.apps-include-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.apps-include-groups .pg {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
}

/* home price card rows */
.price-card .early {
  margin: 0 0 14px;
}
.price-rows {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--fg-rgb), 0.02);
}
.price-row.on {
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.1);
}
.price-row > span:first-child {
  display: grid;
}
.price-row small {
  color: var(--muted);
  font-size: 0.78rem;
}
.price-row-amt {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.price-row-amt .was {
  font-size: 0.8rem;
  margin-right: 6px;
}

/* never locked in */
.locked {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.locked-copy h2 {
  margin: 8px 0 12px;
}
.locked-cards {
  display: grid;
  gap: 12px;
}
.locked-cards > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
}
.locked-cards .icon {
  grid-row: span 2;
  color: var(--good);
  margin-top: 2px;
}
.locked-cards .muted {
  font-size: 0.92rem;
}
.pricing-page .locked {
  max-width: 900px;
}

@media (max-width: 1080px) {
  .plans-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 760px) {
  .locked,
  .apps-include-groups {
    grid-template-columns: 1fr;
  }
  .locked {
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .plans-4 {
    grid-template-columns: 1fr;
  }
  .plan-covers {
    min-height: 0;
  }
}
.plan > .plan-blurb {
  margin: 14px 0 0;
}

/* ---------- Light mode ----------
   Same layout, calm paper colors. Product mockups (.hp hero, phone), code windows and the CTA band stay dark on
   purpose, like screenshots, by re-declaring the dark tokens on those islands. */
:root {
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #f7f7fa;
    --surface: #ffffff;
    --surface-2: #f1f0f6;
    --line: rgba(20, 18, 40, 0.1);
    --line-2: rgba(20, 18, 40, 0.16);
    --text: #16151f;
    --muted: #5d5c6e;
    --good: #12805a;
    --warn: #a35c00;
    --bad: #c4283a;
    --fg-rgb: 20, 18, 40;
    --surface-rgb: 255, 255, 255;
    --ink-rgb: 247, 247, 250;
    --shade-rgb: 20, 18, 40;
    --shade-k: 0.12;
    --shadow-k: 0.25;
    --violet-1: #5b3fd6;
    --violet-2: #5236c4;
    --violet-3: #4a30b0;
    --text-2a: #34333f;
    --text-2b: #3a3946;
    --text-2c: #3f3e4c;
    --text-2d: #4a495a;
    --text-2e: #34303f;
    --coral-text: #c2185b;
    --surface-hot: #ffffff;
    --surface-hot2: #ffffff;
    --kbd-top: #ffffff;
    --kbd-bottom: #efeef4;
    --orb-o: 0.35;
  }
  ::selection {
    background: rgba(124, 92, 255, 0.22);
  }
  p a,
  .prose a,
  .notice a,
  .auth-alt a {
    text-decoration-color: rgba(91, 63, 214, 0.35);
  }
  .orb,
  .cta-glow,
  .hp-glow {
    opacity: calc(0.5 * var(--orb-o));
  }
  .grid-fade {
    opacity: 0.5;
  }

  /* Text colors that were tuned for dark backgrounds. */
  .prose p,
  .prose li {
    color: #34333f;
  }
  .pill,
  .dest-top,
  .type-chips span {
    color: #3a3946;
  }
  .btn-danger {
    color: #b4232f;
  }
  .notice-error {
    color: #8f1d2a;
  }
  .notice-ok,
  .pl-owned,
  .not-cloud {
    color: #0b5e40;
  }
  .not-cloud span,
  .bc-free span {
    color: #2c5b48;
  }
  .testmode span,
  .as-is p,
  .callout.small,
  .bc-honest,
  .as-is-line {
    color: #6b4a12;
  }
  .early {
    color: #2e2550;
  }
  .footer-grid a:not(.logo):hover {
    color: var(--text);
  }
  .app-store {
    border: 1px solid var(--line-2);
  }

  input,
  select,
  textarea {
    background: var(--surface);
  }
  .faq details {
    background: var(--surface);
  }

  /* Dark islands: mockups, code and the CTA band keep the dark tokens. */
  .hp,
  .code-window,
  .code-block,
  .prose pre,
  .phone,
  .cta {
    color-scheme: dark;
    --ink: #0a0a0f;
    --surface: #13131a;
    --surface-2: #1a1a23;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #ededf2;
    --muted: #8a8a99;
    --good: #3ddc97;
    --warn: #ffb547;
    --bad: #ff5c6c;
    --fg-rgb: 255, 255, 255;
    --surface-rgb: 19, 19, 26;
    --ink-rgb: 10, 10, 15;
    --shade-rgb: 0, 0, 0;
    --shade-k: 1;
    --shadow-k: 1;
    --violet-1: #b6a5ff;
    --violet-2: #cbbfff;
    --violet-3: #d8cfff;
    --text-2a: #d0d0da;
    --text-2b: #c9c9d6;
    --text-2c: #c4c4cf;
    --text-2d: #b9b9c6;
    --text-2e: #dcd6f2;
    --coral-text: #ffb3c8;
    --kbd-top: #23232e;
    --kbd-bottom: #17171f;
    color: var(--text);
  }
}

/* No endless motion for people who asked for less. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Added for launch: test mode bar, features page, FAQ page, licensing explainer, upgrades ---------- */
.testbar {
  position: relative;
  z-index: 60;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
  background: repeating-linear-gradient(-45deg, rgba(255, 181, 71, 0.16) 0 12px, rgba(255, 181, 71, 0.08) 12px 24px);
  border-bottom: 1px solid rgba(255, 181, 71, 0.45);
}
.testbar b {
  color: var(--warn);
}

.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--violet-1);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
  vertical-align: middle;
}
.feat-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.feat-jump a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.feat-jump a:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.features-top {
  padding-bottom: 24px;
}
.feat-section {
  padding-top: 48px;
  padding-bottom: 48px;
  scroll-margin-top: 72px;
}
.feat-head {
  max-width: 680px;
  margin-bottom: 24px;
}
.feat-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feat {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
}
.feat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.feat-title h3 {
  margin: 0;
  flex: 1;
}
.feat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(124, 92, 255, 0.14);
  color: var(--violet-2);
}
.feat p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.feat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}
.feat li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.feat li svg {
  color: var(--good);
  margin-top: 4px;
  flex: none;
}

.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 28px;
  font-size: 0.92rem;
}
.also a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.also a:hover {
  border-color: var(--line-2);
}
.also a.also-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: transparent;
  color: var(--violet-1);
}

.faq-more {
  margin-top: 16px;
}
.faq-group {
  margin-bottom: 40px;
}
.faq-group-title {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.lic-explain {
  margin: 56px auto 0;
  max-width: 1000px;
}
.lic-explain h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 22px;
}
.lic-steps {
  list-style: none;
  counter-reset: lic;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lic-steps li {
  counter-increment: lic;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
  font-size: 0.92rem;
}
.lic-steps li::before {
  content: counter(lic);
  font: 600 0.8rem/1 var(--mono);
  color: var(--muted);
}

.key-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.key-upgrades {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.key-upgrades .btn {
  white-space: normal;
  text-align: left;
}
.app-store-text {
  cursor: default;
  margin: 0;
}
.plan-badge.plan-none {
  color: var(--muted);
}

@media (max-width: 900px) {
  .lic-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .lic-steps {
    grid-template-columns: 1fr;
  }
  .testbar {
    font-size: 0.8rem;
  }
}
@media (prefers-color-scheme: light) {
  .testbar b {
    color: #8a5300;
  }
}

/* ---------- Coming soon (PAYMENTS_MODE=off) ---------- */
.soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  color: var(--violet-1);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  vertical-align: middle;
  white-space: nowrap;
}
h2 .soon-badge,
h3 .soon-badge,
b .soon-badge {
  margin-left: 6px;
  position: relative;
  top: -2px;
}
.btn.btn-soon,
.btn.btn-soon:hover {
  cursor: default;
  transform: none;
  box-shadow: none;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-2);
}
.soon-panel {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: 24px 40px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: rgba(var(--surface-rgb), 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.soon-panel-dl {
  margin-top: 32px;
}
.soon-copy b {
  font-size: 1.08rem;
}
.soon-copy p {
  margin: 6px 0 0;
}
.notify-form {
  display: flex;
  gap: 8px;
}
.notify-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), 0.04);
  color: var(--text);
  font: 500 0.95rem/1.2 var(--sans);
}
.notify-form input[type='email']:focus {
  outline: 2px solid rgba(124, 92, 255, 0.6);
  outline-offset: 1px;
}
.notify-msg {
  margin: 8px 2px 0;
  font-size: 0.82rem;
}
.notify-err {
  color: var(--bad);
}
.notify-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--good);
  font-weight: 600;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .soon-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
@media (max-width: 420px) {
  .notify-form {
    flex-direction: column;
  }
}

/* ---------- Photo backdrops (CC0 nature photos, see /credits) ----------
   The photo sits behind the page head under a scrim made from the page color, so it fades into the page in both
   themes: darkened in dark mode, washed out in light mode. Text never sits on a bare photo. */
.photo-head {
  position: relative;
  overflow: hidden;
  --scrim-top: 0.5;
  --scrim-mid: 0.6;
  --scrim-low: 0.86;
}
.photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 720px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.photo-bg-tall {
  height: min(100%, 860px);
}
.photo-bg picture,
.photo-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-bg-img {
  object-fit: cover;
  display: block;
}
.photo-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(var(--ink-rgb), 0.28), transparent 70%),
    linear-gradient(
      180deg,
      rgba(var(--ink-rgb), var(--scrim-top)) 0%,
      rgba(var(--ink-rgb), var(--scrim-mid)) 50%,
      rgba(var(--ink-rgb), var(--scrim-low)) 80%,
      rgb(var(--ink-rgb)) 100%
    );
}
.photo-head > .wrap,
.photo-head > .wrap-wide {
  position: relative;
  z-index: 1;
}
.photo-head h1,
.photo-head .lead {
  text-shadow: 0 1px 28px rgba(var(--ink-rgb), 0.55);
}
.photo-head .lead {
  color: var(--text-2a);
}
.photo-hero .pill {
  background: rgba(var(--ink-rgb), 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-head .not-cloud {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-color-scheme: light) {
  .photo-head {
    --scrim-top: 0.62;
    --scrim-mid: 0.74;
    --scrim-low: 0.92;
  }
}

/* The closing CTA band: a still lake under a dark, faintly violet scrim. Always dark, in both themes. */
.cta.cta-photo {
  background: #0b0b12;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(255, 92, 138, 0.14)),
    linear-gradient(180deg, rgba(10, 10, 15, 0.5), rgba(10, 10, 15, 0.72));
}
.cta-photo h2,
.cta-photo .lead {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}
.cta-photo .lead {
  color: rgba(255, 255, 255, 0.86);
}
@media (max-width: 640px) {
  .photo-bg {
    height: min(100%, 620px);
  }
  .photo-bg-tall {
    height: min(100%, 760px);
  }
}

/* ---------- Extensions marketplace ----------
   Calm and dense, like a resource index: rows instead of big cards, quiet badges, no glows. Built on the same tokens,
   so light mode follows the rest of the site. */
.mk {
  --mk-seal: var(--violet-1);
  --mk-seal-ink: var(--surface);
  --mk-star: #f3b54a;
  --mk-star-off: rgba(var(--fg-rgb), 0.14);
  --mk-row-hover: rgba(var(--fg-rgb), 0.025);
}
.mk h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.035em;
}
.mk h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.mk-page-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem) !important;
  margin: 6px 0 8px;
}
.mk-narrow {
  max-width: 980px;
}
.mk-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.mk-crumbs a {
  text-decoration: none;
}
.mk-crumbs a:hover {
  color: var(--text);
}
.mk-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  display: inline-block;
  flex: none;
}

/* hero + search */
.mk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.mk-hero-plain {
  grid-template-columns: 1fr;
}
.mk-hero .lead {
  margin: 0;
  font-size: 1.05rem;
}
.mk-hero h1 {
  margin-bottom: 10px;
}
.mk-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.mk-search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}
.mk-search input {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  box-shadow: none !important;
  min-width: 0;
}
.mk-search .btn-primary {
  box-shadow: none;
}

/* suites strip */
.mk-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mk-section-head h2 {
  margin: 0;
}
.mk-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}
.mk-more:hover {
  color: var(--text);
}
.mk-suites {
  margin-bottom: 32px;
}
.mk-suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mk-suite-grid-lg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mk-suite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mk-suite:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.mk-suite b {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.mk-suite-icons {
  display: flex;
  gap: 4px;
  height: 28px;
  margin-bottom: 8px;
}
.mk-suite-icons .mk-icon {
  border-radius: 8px;
}
.mk-suite-empty {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px dashed var(--line-2);
}
.mk-suite-count {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* layout */
.mk-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.mk-layout-suite {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.mk-aside {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 22px;
}
.mk-cats {
  display: grid;
  gap: 1px;
}
.mk-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-2c);
}
.mk-cats a:hover {
  background: rgba(var(--fg-rgb), 0.04);
  color: var(--text);
}
.mk-cats a.active {
  background: rgba(var(--fg-rgb), 0.07);
  color: var(--text);
  font-weight: 600;
}
.mk-cats a.mk-empty {
  color: var(--muted);
}
.mk-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.mk-filters {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mk-filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mk-filters legend {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mk-filters select {
  padding: 8px 10px;
  font-size: 0.88rem;
  border-radius: 9px;
}
.mk-radio,
.mk-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400 !important;
  cursor: pointer;
}
.mk-radio input,
.mk-check input {
  width: auto;
  margin: 0;
  accent-color: var(--violet);
}
.js .mk-apply {
  display: none;
}
.mk-publish {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  justify-items: start;
}
.mk-publish b {
  font-size: 0.9rem;
}
.mk-publish p {
  margin: 0;
}

/* toolbar */
.mk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mk-toolbar p {
  margin: 0;
}
.mk-clear {
  color: var(--violet-1);
}
.mk-sort {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mk-sort a {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
}
.mk-sort a:hover {
  color: var(--text);
}
.mk-sort a.active {
  background: rgba(var(--fg-rgb), 0.08);
  color: var(--text);
  font-weight: 600;
}

/* rows */
.mk-list {
  border-top: 1px solid var(--line);
}
.mk-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}
.mk-row:hover {
  background: var(--mk-row-hover);
}
.mk-row h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 1rem;
}
.mk-row-link {
  text-decoration: none;
}
.mk-row-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.mk-row-meta a,
.mk-row-meta .mk-author {
  position: relative;
  z-index: 1;
}
.mk-row-summary {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-2c);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.mk-row-meta a {
  text-decoration: none;
}
.mk-row-meta a:hover {
  color: var(--text);
}
.mk-row-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.mk-installs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.mk-icon {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: none;
  object-fit: cover;
}
.mk-icon-blank {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
}
.mk-tag {
  display: inline-flex;
  align-items: center;
  font: 600 0.66rem/1 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--violet-1);
  background: rgba(124, 92, 255, 0.1);
}
.mk-price {
  font-weight: 600;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.mk-price-free {
  color: var(--good);
}
.mk-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.mk-verified {
  color: var(--mk-seal);
  display: inline-block;
  flex: none;
  vertical-align: -2px;
}
.mk-avatar {
  border-radius: 50%;
  background: var(--surface-2);
  flex: none;
}
.mk-avatar-lg {
  border: 1px solid var(--line);
}

/* stars */
.mk-stars {
  position: relative;
  display: inline-flex;
  vertical-align: -1px;
  line-height: 0;
}
.mk-stars-bg,
.mk-stars-fg > span {
  display: inline-flex;
  gap: 1px;
}
.mk-stars-bg {
  color: var(--mk-star-off);
}
.mk-stars-fg {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--mk-star);
}
.mk-stars-fg > span {
  width: max-content;
}
.mk-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}
.mk-rating b {
  font-weight: 600;
}

/* review states: quiet on purpose */
.mk-checked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--good);
}
.mk-unchecked {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.mk-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(var(--fg-rgb), 0.025);
  color: var(--muted);
}
.mk-disclaimer .icon {
  flex: none;
  margin-top: 2px;
}
.mk-disclaimer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.mk-disclaimer b {
  color: var(--text-2b);
}
.mk-disclaimer-sm {
  margin-top: 16px;
}
.mk-disclaimer-sm p {
  font-size: 0.78rem;
}

.mk-empty-state {
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.mk-empty-state b {
  display: block;
  margin-bottom: 4px;
}
.mk-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 0;
  font-size: 0.9rem;
}
.mk-pages a {
  color: var(--violet-1);
  text-decoration: none;
}

/* extension page */
.mk-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.mk-head .mk-icon {
  border-radius: 18px;
}
.mk-head-main {
  flex: 1;
  min-width: 0;
}
.mk-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 4px;
}
.mk-tagline {
  margin: 0 0 8px;
  font-size: 1.06rem;
  color: var(--text-2d);
}
.mk-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.mk-byline .mk-author {
  color: var(--text);
  font-weight: 500;
}
.mk-byline-rating {
  text-decoration: none;
}
.mk-manage {
  align-self: flex-start;
}
.mk-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
}
.mk-tabs a {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.mk-tabs a:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.mk-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.mk-detail-side {
  display: grid;
  gap: 14px;
}
.mk-section {
  margin-top: 44px;
  scroll-margin-top: 80px;
}
#overview {
  scroll-margin-top: 80px;
}
.mk-desc {
  max-width: 72ch;
}
.mk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.mk-panel-title {
  font-size: 0.95rem !important;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.mk-panel p:last-child {
  margin-bottom: 0;
}
.mk-install-price {
  margin-bottom: 12px;
}
.mk-install-price b {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.mk-install .btn-soon {
  margin-bottom: 6px;
}
.mk-owned {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(61, 220, 151, 0.1);
  color: var(--good);
  font-size: 0.86rem;
}
.mk-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 0.86rem;
  display: grid;
  gap: 4px;
  color: var(--text-2c);
}
.mk-steps li::marker {
  color: var(--muted);
}
.mk-sideload {
  margin: 12px 0 0;
}
.mk-sideload a {
  color: var(--violet-1);
}
.mk-caps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
}
.mk-caps li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-left: 12px;
  position: relative;
  color: var(--text-2c);
}
.mk-caps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}
.mk-cap-sensitive::before {
  background: var(--warn) !important;
}
.mk-cap-flag {
  flex: none;
  font-size: 0.68rem;
  color: var(--warn);
  white-space: nowrap;
  padding-top: 1px;
}
.mk-hosts code,
.mk-panel .tiny code {
  margin-right: 4px;
  font-size: 0.74rem;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(var(--fg-rgb), 0.06);
}
.mk-hosts {
  margin-top: 10px;
  line-height: 1.9;
}
.mk-deps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-deps li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mk-dep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  text-decoration: none;
}
.mk-dep .mk-icon {
  border-radius: 6px;
}
a.mk-dep:hover {
  color: var(--violet-1);
}
.mk-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 0.84rem;
}
.mk-kv dt {
  color: var(--muted);
}
.mk-kv dd {
  margin: 0;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mk-kv a {
  color: var(--violet-1);
}
.mk-review-state {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mk-sha {
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  opacity: 0.8;
}
.mk-author-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.mk-author-card-head b {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mk-author-card-head span {
  display: grid;
}
.mk-bio {
  margin: 10px 0 0;
}
.mk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.mk-chip {
  display: inline-flex;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2c);
  text-decoration: none;
  margin: 0 4px 4px 0;
}
a.mk-chip:hover {
  color: var(--text);
  border-color: rgba(var(--fg-rgb), 0.3);
}

/* gallery + lightbox */
.mk-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}
.mk-shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.mk-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.mk-shot:hover img {
  transform: scale(1.015);
}
.mk-shot-main {
  grid-column: 1 / -1;
  border-radius: 14px;
}
.mk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.mk-lightbox[hidden] {
  display: none;
}
.mk-lightbox figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  max-height: 100vh;
  padding: 32px 0;
}
.mk-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: 10px;
  object-fit: contain;
}
.mk-lightbox figcaption {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}
.mk-lightbox button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2.2rem;
  cursor: pointer;
  height: 100%;
}
.mk-lightbox button:hover {
  color: #fff;
}
.mk-lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  height: auto !important;
  padding: 8px;
}

/* versions */
.mk-versions {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.mk-versions li {
  border-bottom: 1px solid var(--line);
}
.mk-versions summary,
.mk-release summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}
.mk-versions summary::-webkit-details-marker,
.mk-release summary::-webkit-details-marker {
  display: none;
}
.mk-ver {
  font-weight: 600;
  min-width: 56px;
}
.mk-versions details > :not(summary) {
  margin-left: 4px;
}
.mk-versions .prose {
  margin-bottom: 8px;
}

/* reviews */
.mk-review-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 320px);
  gap: 32px;
  align-items: center;
  margin-bottom: 22px;
}
.mk-review-score {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.mk-review-score b {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.mk-bars {
  display: grid;
  gap: 4px;
}
.mk-bar {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
}
.mk-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.07);
  overflow: hidden;
}
.mk-bar-track span {
  display: block;
  height: 100%;
  background: var(--mk-star);
  border-radius: inherit;
}
.mk-review-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  gap: 10px !important;
}
.mk-review-form textarea,
.mk-pop textarea {
  resize: vertical;
}
.mk-star-input {
  border: 0;
  margin: 0;
  padding: 0;
}
.mk-star-radios {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}
.mk-star-radios input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.mk-star-radios label {
  color: var(--mk-star-off);
  cursor: pointer;
  display: block !important;
}
.mk-star-radios label:hover,
.mk-star-radios label:hover ~ label,
.mk-star-radios input:checked ~ label {
  color: var(--mk-star);
}
.mk-star-radios input:focus-visible + label {
  outline: 2px solid var(--violet);
  border-radius: 4px;
}
.mk-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mk-reviews {
  border-top: 1px solid var(--line);
}
.mk-review {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.mk-review header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.mk-review-body {
  font-size: 0.92rem;
  color: var(--text-2a);
}
.mk-review-body p {
  margin: 0 0 6px;
}
.mk-review > p.tiny {
  margin: 6px 0 0;
}
.mk-review a {
  color: inherit;
}
.mk-reply {
  margin: 12px 0 0 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--line-2);
}
.mk-reply p.tiny {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}
.mk-reply b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mk-review-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.mk-pop summary {
  list-style: none;
}
.mk-pop summary::-webkit-details-marker {
  display: none;
}
.mk-linkish {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}
.mk-linkish:hover {
  color: var(--text);
}
.mk-pop[open] form {
  margin-top: 8px;
  gap: 8px;
  min-width: min(420px, 80vw);
}
.mk-pop select,
.mk-pop input,
.mk-pop textarea {
  font-size: 0.88rem;
  padding: 8px 10px;
}

/* suites page */
.mk-suite-desc {
  margin-bottom: 18px;
}
.mk-side-block h3 {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.mk-plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}
.mk-plain a {
  text-decoration: none;
}
.mk-plain a:hover {
  color: var(--violet-1);
}

/* author profile */
.mk-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding-bottom: 28px;
  margin-bottom: 8px;
}
.mk-profile h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
}
.mk-profile p {
  margin: 0 0 8px;
}
.mk-profile .mk-bio {
  max-width: 62ch;
  color: var(--text-2c);
}
.mk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
}
.mk-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
}
.mk-links a:hover {
  color: var(--text);
}
.mk-profile-stats {
  display: flex;
  gap: 26px;
  margin: 0;
}
.mk-profile-stats div {
  display: grid;
  gap: 2px;
}
.mk-profile-stats dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-profile-stats dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* publishing side */
.mk-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.mk-two-wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.mk-stack {
  display: grid;
  gap: 16px;
}
.mk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mk .form label .tiny {
  font-weight: 400;
}
.mk input[type='file'] {
  padding: 8px;
  font-size: 0.86rem;
}
.mk-guidelines .mk-steps {
  margin-top: 0;
}
.mk-guidelines p {
  margin-top: 12px;
}
.mk-author-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mk-author-preview p {
  margin: 0;
}
.mk-author-preview .mk-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mk-links-edit {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mk-mine {
  display: grid;
  border-top: 1px solid var(--line);
}
.mk-mine-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mk-mine-row:hover {
  background: var(--mk-row-hover);
}
.mk-mine-row > span {
  display: grid;
}
.mk-mine-row .mk-icon {
  border-radius: 8px;
}
.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mk-pill-good {
  color: var(--good);
  background: rgba(61, 220, 151, 0.1);
}
.mk-pill-warn {
  color: var(--warn);
  background: rgba(255, 181, 71, 0.12);
}
.mk-pill-bad {
  color: var(--bad);
  background: rgba(255, 92, 108, 0.1);
}
.mk-pill-muted {
  color: var(--muted);
  background: rgba(var(--fg-rgb), 0.06);
}
.mk-upload {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.mk-releases {
  display: grid;
}
.mk-release {
  border-bottom: 1px solid var(--line);
}
.mk-release > :not(summary) {
  margin: 0 4px 12px;
}
.mk-media-edit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mk-media-edit figure {
  margin: 0;
  display: grid;
  gap: 4px;
}
.mk-media-edit img {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.mk-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-events li {
  display: grid;
  gap: 1px;
}

/* checks report */
.mk-report {
  display: grid;
  gap: 12px;
}
.mk-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mk-checks li {
  display: grid;
  grid-template-columns: 16px 130px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 0.88rem;
}
.mk-checks .icon {
  align-self: center;
}
.mk-check-pass .icon {
  color: var(--good);
}
.mk-check-warn .icon {
  color: var(--warn);
}
.mk-check-fail .icon {
  color: var(--bad);
}
.mk-check-skip .icon {
  color: var(--muted);
}
.mk-diff {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.mk-diff p {
  margin: 6px 0 0;
}
.mk-diff code {
  margin-right: 4px;
  font-size: 0.76rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(var(--fg-rgb), 0.06);
}
.mk-diff-add,
.mk-diff-del {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mk-diff-add {
  color: var(--warn);
}
.mk-diff-del {
  color: var(--muted);
}
.mk-findings-wrap summary {
  cursor: pointer;
  color: var(--text-2c);
}
.mk-findings {
  margin-top: 8px;
}
.mk-findings td {
  vertical-align: top;
  font-size: 0.82rem;
  padding: 8px;
}
.mk-excerpt {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mk-sev {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mk-sev-high {
  color: var(--bad);
}
.mk-sev-medium {
  color: var(--warn);
}
.mk-sev-low {
  color: var(--muted);
}

/* staff queue */
.mk-queue-item {
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}
.mk-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.mk-queue-head p {
  margin: 4px 0 0;
}
.mk-decide {
  display: flex !important;
  gap: 8px;
  align-items: center;
}
.mk-decide input {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.88rem;
}
.mk-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.mk-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 2px solid var(--line-2);
  color: var(--text-2c);
}
.mk-pre {
  white-space: pre-wrap;
  font-size: 0.8rem;
  color: var(--text-2c);
}
.mk-listings {
  display: grid;
  gap: 8px;
}
.mk-listing-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
}
.mk-listing-form select {
  width: auto;
  padding: 6px 8px;
  font-size: 0.84rem;
}
.mk-suite-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

@media (max-width: 960px) {
  .mk-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mk-layout,
  .mk-layout-suite,
  .mk-detail,
  .mk-two,
  .mk-two-wide {
    grid-template-columns: 1fr;
  }
  .mk-aside {
    position: static;
  }
  .mk-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .mk-cats a {
    border: 1px solid var(--line);
    padding: 5px 10px;
  }
  .mk-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mk-suite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mk-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mk-profile-stats {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .mk-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }
  .mk-row .mk-icon {
    width: 40px;
    height: 40px;
  }
  .mk-row-side {
    grid-column: 2;
    display: flex;
    justify-items: start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .mk-filters {
    grid-template-columns: 1fr;
  }
  .mk-suite-grid,
  .mk-suite-grid-lg,
  .mk-form-grid {
    grid-template-columns: 1fr;
  }
  .mk-head {
    flex-wrap: wrap;
  }
  .mk-review-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mk-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mk-checks li {
    grid-template-columns: 16px minmax(0, 1fr);
  }
  .mk-checks li .muted {
    grid-column: 2;
  }
  .mk-lightbox {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}
@media (prefers-color-scheme: light) {
  .mk {
    --mk-star: #e09b1d;
    --mk-row-hover: rgba(20, 18, 40, 0.025);
  }
  .mk-lightbox {
    background: rgba(12, 12, 18, 0.88);
  }
}
.mk-hosts code,
.mk-panel .tiny code,
.mk-diff code {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-bottom: 3px;
}
.mk-row-meta a,
.mk-byline a,
.mk-review p.tiny a {
  color: inherit;
  text-decoration: none;
}
.mk-row-meta .mk-author {
  color: var(--text-2c);
}
.mk-row-meta a:hover,
.mk-byline a:hover {
  color: var(--text);
}
@media (max-width: 960px) {
  .mk-layout:not(.mk-layout-suite) {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .mk-layout:not(.mk-layout-suite) > .mk-aside {
    display: contents;
  }
  .mk-cats {
    order: 0;
  }
  .mk-filters {
    order: 1;
  }
  .mk-main {
    order: 2;
    width: 100%;
  }
  .mk-publish {
    order: 3;
  }
}
@media (max-width: 640px) {
  .mk-filters {
    grid-template-columns: 1fr 1fr;
  }
  .mk-filters fieldset:last-of-type {
    grid-column: 1 / -1;
  }
  .mk-row {
    align-items: start;
  }
}
.mk .form label > .muted:not(.tiny) {
  margin-top: -4px;
  font-size: 0.78rem;
  font-weight: 400;
}

/* ---------- Pricing v5: Passwords stays free, free for personal and community use ---------- */
.apps-include-note {
  margin: 16px 0 0;
}
.free-passwords {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 900px;
  margin: 32px auto 0;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
}
.free-passwords .icon {
  flex: none;
  margin-top: 2px;
  color: var(--good);
}
.free-passwords p {
  margin: 0;
}
.commercial-note {
  margin-top: 14px;
}
.commercial-note .icon {
  color: var(--lp-accent);
}
