/* ==========================================================================
   CollectAlert — website
   Palette and type scale mirror the mobile app (src/theme/colors.ts and
   src/theme/tokens.ts). No external font, no external request.
   ========================================================================== */

:root {
  --bg: #09090f;
  --bg-2: #0c0c14;
  --surface: #12121b;
  --raised: #1a1a26;
  --highlight: #232333;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f4f8;
  --text-2: #b6b6c9;
  --text-3: #8a8aa1;
  --primary: #7b6cff;
  --primary-pressed: #6a5af2;
  --primary-soft: rgba(123, 108, 255, 0.15);
  --primary-text: #afa6ff;
  --deal: #3ecf8e;
  --deal-soft: rgba(62, 207, 142, 0.13);
  --warning: #f2b759;
  --warning-soft: rgba(242, 183, 89, 0.13);
  --danger: #ff5d6e;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

/* ---------- Language switching: only the active language is rendered ---- */
html[lang="en"] body [lang="fr"],
html[lang="fr"] body [lang="en"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(123, 108, 255, 0.4);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography --------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.muted {
  color: var(--text-3);
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-trail {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

/* #6A5AF2 (the app's primaryPressed) keeps white text above 4.5:1 (WCAG AA). */
.btn-primary {
  background: var(--primary-pressed);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(123, 108, 255, 0.7);
}

.btn-primary:hover {
  background: #5d4de8;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Status badges (same tones as the app's Badge component) ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live {
  background: var(--deal-soft);
  color: var(--deal);
}

.badge-dev {
  background: var(--primary-soft);
  color: var(--primary-text);
}

.badge-planned {
  background: var(--highlight);
  color: var(--text-2);
}

.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(9, 9, 15, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 15, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 6px 18px -6px rgba(123, 108, 255, 0.75);
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="true"],
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex: none;
}

.brand + .lang-switch {
  margin-left: auto;
}

.lang-switch button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-3);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--highlight);
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 12px;
  }

  .main-nav {
    margin-left: 0;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }

  .nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    padding: 14px 4px;
    font-size: 17px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a:hover,
  .nav-list a[aria-current="true"],
  .nav-list a[aria-current="page"] {
    background: transparent;
  }

  .lang-switch {
    margin-left: auto;
  }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -220px;
  background: radial-gradient(closest-side, rgba(123, 108, 255, 0.2), rgba(123, 108, 255, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--warning);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.03;
  font-weight: 680;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero h1 .accent {
  display: block;
  color: var(--primary-text);
}

.hero .lead {
  margin-top: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hero-note .icon {
  width: 16px;
  height: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-caption {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero::before {
    width: 620px;
    height: 620px;
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-note .icon {
    display: none;
  }
}

/* ---------- iPhone mockup ----------------------------------------------
   The screen is authored at the app's real size (390 x 844 pt, same font
   sizes as src/theme/tokens.ts) and scaled as a whole.                    */
.phone-wrap {
  --s: 0.8;
  width: calc(414px * var(--s));
  height: calc(868px * var(--s));
  position: relative;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 108, 255, 0.28), transparent);
  filter: blur(30px);
  z-index: -1;
}

.phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 414px;
  height: 868px;
  padding: 12px;
  border-radius: 64px;
  background: linear-gradient(145deg, #34343f, #17171e 45%, #26262f);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), inset 0 0 0 5px #0b0b10;
  transform: scale(var(--s));
  transform-origin: top left;
}

.ios {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 53px;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  user-select: none;
}

.ios-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

.ios-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 34px 0 46px;
  font-size: 16px;
  font-weight: 600;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ios-status-icons svg {
  height: 12px;
  width: auto;
  fill: var(--text);
}

.ios-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 18px 0;
}

.ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.t-footnote {
  font-size: 13px;
  line-height: 18px;
}

.t-display {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.t-subhead {
  font-size: 14px;
  line-height: 19px;
}

.t-headline {
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.t-title2 {
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}

.t-title3 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.t-caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.c2 {
  color: var(--text-2);
}

.c3 {
  color: var(--text-3);
}

.ios-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--raised);
  border: 0.5px solid var(--border);
}

.ios-bell .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.ios-bell b {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  border: 2px solid var(--bg);
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.ios-headline {
  margin-top: -8px;
}

.ios-search-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  background: var(--raised);
  border: 0.5px solid var(--border);
  color: var(--text-3);
  font-size: 16px;
}

.ios-search .icon {
  width: 17px;
  height: 17px;
}

.ios-search span {
  flex: 1;
}

.ios-search .ios-camera {
  width: 20px;
  height: 20px;
  color: var(--text-2);
}

.ios-demo {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
}

.ios-demo i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  flex: none;
}

.ios-stats {
  display: flex;
  gap: 8px;
}

.ios-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 9px 10px 11px;
  border-radius: 12px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}

/* The app shrinks these labels to fit (adjustsFontSizeToFit). */
.ios-stat .t-caption {
  font-size: 10px;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accent-c {
  color: var(--primary-text);
}

.deal-c {
  color: var(--deal);
}

.ios-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ios-section-head .t-subhead {
  color: var(--primary-text);
  font-weight: 500;
}

.ios-carousel {
  display: flex;
  gap: 12px;
  margin-right: -18px;
  overflow: hidden;
}

.ios-find {
  flex: none;
  width: 176px;
  border-radius: 16px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.ios-find-img {
  position: relative;
  height: 109px;
  background: var(--skeleton, #1c1c29);
}

.ios-find-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-find-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.ios-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.ios-badge.solid {
  background: rgba(9, 9, 15, 0.85);
}

.ios-badge.deal {
  color: var(--deal);
}

.ios-badge.accent {
  color: var(--primary-text);
}

.ios-badge.deal-soft {
  background: var(--deal-soft);
  color: var(--deal);
}

.ios-find-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}

.ios-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ios-score {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ios-score.strong {
  background: var(--deal-soft);
  color: var(--deal);
}

.ios-score.good {
  background: var(--primary-soft);
  color: var(--primary-text);
}

.ios-find-title {
  min-height: 36px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ios-find-meta {
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-hunt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 0.5px solid var(--border);
  background: var(--surface);
}

.ios-hunt img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.ios-hunt-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-hunt-body > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-hunt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.ios-matches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-text);
}

.ios-matches .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.ios-hunt > .icon {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  color: var(--text-3);
  stroke-width: 2.4;
}

.ios-tabbar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 26px;
  display: flex;
  justify-content: space-around;
  padding: 7px 6px;
  border-radius: 32px;
  background: rgba(30, 30, 42, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.ios-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 74px;
  padding: 5px 0 4px;
  border-radius: 24px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
}

.ios-tab .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.ios-tab.is-active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
}

.ios-tab.is-active .icon {
  fill: currentColor;
  stroke: none;
}

.ios-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 3;
}

@media (max-width: 960px) {
  .phone-wrap {
    --s: 0.66;
  }
}

@media (max-width: 360px) {
  .phone-wrap {
    --s: 0.6;
  }
}

/* ---------- Sections ----------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* ---------- How it works ------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 60%), var(--surface);
  overflow: hidden;
}

.step-visual {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 0%, rgba(123, 108, 255, 0.1), transparent 60%), var(--bg-2);
  overflow: hidden;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
}

.step-num {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary-text);
  letter-spacing: 0.04em;
}

.step-body p {
  color: var(--text-2);
  font-size: 15px;
}

/* Step 1: hunt editor vignette */
.vg-card {
  width: 100%;
  max-width: 270px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vg-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.vg-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--raised);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
}

.vg-caret {
  width: 1.5px;
  height: 16px;
  background: var(--primary);
  animation: caret 1.1s steps(1) infinite;
}

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

.vg-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vg-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.vg-chip.on {
  background: var(--primary-soft);
  border-color: rgba(123, 108, 255, 0.45);
  color: var(--primary-text);
}

.vg-photo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vg-photo img,
.vg-photo span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.vg-photo span {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  color: var(--text-3);
}

.vg-photo span .icon {
  width: 15px;
  height: 15px;
}

/* Step 2: radar vignette */
.radar {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(123, 108, 255, 0.35);
  background: radial-gradient(circle, transparent 32%, rgba(123, 108, 255, 0.06) 33%, transparent 34%, transparent 65%, rgba(123, 108, 255, 0.08) 66%, transparent 67%);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(123, 108, 255, 0.42), rgba(123, 108, 255, 0) 70deg, transparent 360deg);
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-core {
  position: absolute;
  inset: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px -6px rgba(123, 108, 255, 0.8);
}

.radar-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-3);
}

.radar-dot.hit {
  background: var(--deal);
  box-shadow: 0 0 0 5px var(--deal-soft);
}

.radar-dot:nth-child(3) {
  top: 18%;
  left: 62%;
}

.radar-dot:nth-child(4) {
  top: 70%;
  left: 20%;
}

.radar-dot:nth-child(5) {
  top: 64%;
  left: 78%;
}

.radar-dot:nth-child(6) {
  top: 30%;
  left: 16%;
}

.radar-tag {
  position: absolute;
  right: 14px;
  bottom: 22px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--deal);
  font-variant-numeric: tabular-nums;
}

/* Step 3: listing vignette */
.vg-listing {
  width: 100%;
  max-width: 270px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.vg-listing img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.vg-listing-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vg-listing-body strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.vg-listing-body span {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.35;
}

.vg-open {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(123, 108, 255, 0.9);
}

.vg-open .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.step-visual-listing {
  padding-bottom: 64px;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ---------- Features ----------------------------------------------------- */
.feature-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--border);
  overflow: hidden;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg);
  transition: background-color 0.3s var(--ease);
}

.feature:hover {
  background: #0d0d15;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid rgba(123, 108, 255, 0.22);
}

.feature-icon.dim {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border-color: var(--border);
}

.feature p {
  font-size: 15px;
  color: var(--text-2);
}

.features-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-3);
}

@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    padding: 24px 22px;
  }
}

/* ---------- Categories --------------------------------------------------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.category {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  isolation: isolate;
}

.category.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}

.category::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 9, 15, 0) 35%, rgba(9, 9, 15, 0.88) 100%);
}

.category:hover img {
  transform: scale(1.04);
}

.category-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.category-more {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(123, 108, 255, 0.16), transparent 60%), var(--surface);
}

.category-more::after {
  display: none;
}

.category-more p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
}

.photo-credit {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}

@media (max-width: 1000px) {
  .categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category.wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-label {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 14.5px;
  }

  .category-more {
    grid-column: span 2;
    aspect-ratio: auto;
    min-height: 120px;
  }
}

/* ---------- Marketplaces ------------------------------------------------- */
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.market-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
  list-style: none;
}

.market-points li {
  display: flex;
  gap: 14px;
  color: var(--text-2);
  font-size: 15.5px;
}

.market-points .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary-text);
}

.market-points strong {
  color: var(--text);
  font-weight: 600;
}

.flow {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: radial-gradient(80% 60% at 50% 0%, rgba(123, 108, 255, 0.1), transparent 70%), var(--surface);
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
}

.flow-node .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.flow-node .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.flow-node > div {
  min-width: 0;
}

.flow-node strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.flow-node span {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}

.flow-link {
  display: flex;
  justify-content: center;
  height: 40px;
}

.flow-link i {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), rgba(123, 108, 255, 0.15));
  background-size: 100% 200%;
  animation: flow 2.4s linear infinite;
}

@keyframes flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -200%;
  }
}

.flow-markets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.flow-market {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

.flow-market .icon {
  color: var(--text-2);
}

.flow-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 960px) {
  .market-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-grid .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.faq summary .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--primary-text);
}

.faq-answer {
  padding: 0 40px 24px 0;
  color: var(--text-2);
  font-size: 15.5px;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(175, 166, 255, 0.4);
}

@media (max-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-grid .section-head {
    position: static;
  }

  .faq-answer {
    padding-right: 0;
  }
}

/* ---------- Call to action ---------------------------------------------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: radial-gradient(90% 140% at 100% 0%, rgba(123, 108, 255, 0.2), transparent 60%), var(--surface);
  overflow: hidden;
}

.cta .h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.cta p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 560px;
}

@media (max-width: 800px) {
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.footer-grid p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.55;
}

.footer-grid .footer-mail {
  margin-top: 12px;
}

.footer-mail a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(182, 182, 201, 0.35);
  overflow-wrap: anywhere;
}

.footer-mail a:hover {
  color: var(--text);
}

.page-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  font-weight: 600;
  max-width: 100%;
}

.page-mail .icon {
  width: 18px;
  height: 18px;
  color: var(--primary-text);
}

.page-mail a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.page-mail a:hover {
  color: var(--primary-text);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Document pages (privacy, terms, legal) --------------------- */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  font-weight: 660;
  letter-spacing: -0.035em;
}

.page-hero .lead {
  margin-top: 16px;
  max-width: 680px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-3);
}

.notice {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(242, 183, 89, 0.25);
  background: var(--warning-soft);
  color: #f6d7a2;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 820px;
}

.notice .icon {
  margin-top: 2px;
  color: var(--warning);
}

.notice strong {
  color: var(--warning);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 40px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  font-size: 14px;
}

.toc-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  color: var(--text-3);
  line-height: 1.4;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a:hover,
.toc a[aria-current="true"] {
  color: var(--text);
  border-left-color: var(--primary);
}

.doc {
  max-width: 760px;
  font-size: 16px;
  color: var(--text-2);
}

.doc section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.doc h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--text);
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.doc p + p,
.doc p + ul,
.doc ul + p,
.doc table + p,
.doc p + table,
.doc p + .status-row,
.doc .status-row + p {
  margin-top: 14px;
}

.doc ul {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc ul li {
  position: relative;
  padding-left: 22px;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.8;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(175, 166, 255, 0.4);
}

.doc a:hover {
  text-decoration-color: currentColor;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc th,
.doc td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.doc th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}

.doc tr:last-child td {
  border-bottom: 0;
}

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

/* Information that must be completed before publication. */
.todo {
  display: inline;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 93, 110, 0.12);
  border: 1px dashed rgba(255, 93, 110, 0.55);
  color: #ff9aa5;
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: normal;
  overflow-wrap: anywhere;
}

dl.legal-list {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

dl.legal-list dt,
dl.legal-list dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

dl.legal-list dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

dl.legal-list dt:last-of-type,
dl.legal-list dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
  }
}

@media (max-width: 560px) {
  dl.legal-list {
    grid-template-columns: minmax(0, 1fr);
  }

  dl.legal-list dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  dl.legal-list dd {
    padding-top: 0;
    background: rgba(255, 255, 255, 0.02);
  }
}

/* ---------- Contact ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-card p {
  flex: 1;
  font-size: 15px;
  color: var(--text-2);
}

.contact-card .feature-icon {
  margin-bottom: 6px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-text);
  overflow-wrap: anywhere;
}

.contact-link .icon {
  width: 16px;
  height: 16px;
}

a.contact-link:hover {
  color: var(--text);
}

.contact-card.wide {
  grid-column: span 2;
}

.contact-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.contact-aside > div {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-2);
}

.contact-aside .h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.contact-aside ul {
  margin-top: 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .contact-grid,
  .contact-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card.wide {
    grid-column: span 1;
  }
}

/* ---------- 404 ---------------------------------------------------------- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-block: 80px;
  text-align: center;
}

.not-found .code {
  font-family: var(--mono);
  color: var(--primary-text);
}

/* ---------- Motion ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-copy > * {
    animation: rise 0.9s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero-visual {
    animation: rise 1.1s 0.15s var(--ease) both;
  }
}

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

.reveal-d1 {
  --delay: 0.08s;
}

.reveal-d2 {
  --delay: 0.16s;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .radar-sweep,
  .pulse::after,
  .vg-caret,
  .flow-link i {
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

.vg-score {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
}

a[aria-disabled="true"] {
  cursor: default;
}

.contact-aside a,
.lead a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(175, 166, 255, 0.4);
}
