/* ==========================================================================
   AltDora — Design System v2 "Aurora Ink"
   Dark ink chrome · aurora violet accent · editorial type
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink (dark chrome) */
  --ink-950: #060810;
  --ink-900: #0A0D18;
  --ink-850: #0E1120;
  --ink-800: #131728;
  --ink-700: #1B2036;
  --ink-600: #272D49;
  --ink-line: rgba(148, 163, 214, 0.14);

  /* Surface (light content) */
  --surface: #F5F5FA;
  --surface-2: #EDEDF5;
  --card: #FFFFFF;
  --line: #E4E4EE;
  --line-soft: #EEEEF5;

  /* Brand */
  --brand: #7C3AED;
  --brand-strong: #6D28D9;
  --brand-soft: #F1EBFE;
  --brand-softer: #F8F5FF;
  --fuchsia: #D946EF;
  --aurora: linear-gradient(120deg, #8B5CF6 0%, #C026D3 55%, #F0ABFC 100%);
  --aurora-text: linear-gradient(100deg, #A78BFA 0%, #E879F9 60%, #FDBA74 100%);

  /* Text */
  --text: #14152B;
  --text-2: #4E5165;
  --text-3: #898CA0;
  --text-inv: #FFFFFF;
  --text-inv-2: rgba(226, 229, 245, 0.72);
  --text-inv-3: rgba(226, 229, 245, 0.45);

  /* Semantic */
  --star: #FFB020;
  --good: #0FA97D;
  --good-soft: #E5F8F1;
  --bad: #F43F5E;
  --bad-soft: #FEEEF1;
  --info: #2E90FA;
  --info-soft: #EAF3FF;
  --warn: #F79009;
  --warn-soft: #FEF4E6;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-2xl: 1.625rem;
  --fs-3xl: 2.125rem;
  --fs-display: clamp(2.25rem, 4.5vw, 3.5rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-full: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(20, 21, 43, 0.05);
  --sh-sm: 0 2px 6px rgba(20, 21, 43, 0.06), 0 1px 2px rgba(20, 21, 43, 0.04);
  --sh-md: 0 6px 16px rgba(20, 21, 43, 0.07), 0 2px 5px rgba(20, 21, 43, 0.05);
  --sh-lg: 0 16px 40px rgba(20, 21, 43, 0.10), 0 4px 10px rgba(20, 21, 43, 0.05);
  --sh-xl: 0 28px 70px rgba(20, 21, 43, 0.16), 0 8px 20px rgba(20, 21, 43, 0.07);
  --sh-brand: 0 8px 24px rgba(124, 58, 237, 0.32);

  /* Motion */
  --t-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.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;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.72rem 1.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-md);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn i {
  font-size: 1.15em;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn--brand {
  background: linear-gradient(120deg, #8B5CF6, #A855F7 45%, #C026D3);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn--brand:hover {
  color: #fff;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink-800);
  color: #fff;
  border: 1px solid var(--ink-600);
}

.btn--dark:hover {
  background: var(--ink-700);
  color: #fff;
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--sh-md);
}

.btn--white:hover {
  color: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: var(--sh-lg);
}

.btn--line {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--line:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--soft {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.btn--soft:hover {
  background: #E7DBFD;
  color: var(--brand-strong);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
}

.btn--lg {
  padding: 0.95rem 1.9rem;
  font-size: var(--fs-base);
  border-radius: var(--r-lg);
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.66rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--r-full);
}

.badge i {
  font-size: 1em;
}

.badge--brand {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

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

.badge--warn {
  background: var(--warn-soft);
  color: #B85C00;
}

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

.badge--muted {
  background: var(--surface-2);
  color: var(--text-2);
}

.badge--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge--aurora {
  background: var(--aurora);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.pill i {
  color: var(--text-3);
  font-size: 1.05em;
}

/* Star rating */
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--star);
  font-size: var(--fs-sm);
}

.stars--lg {
  font-size: var(--fs-lg);
  gap: 2px;
}

.stars i.ph.ph-star {
  color: #D6D6E3;
}

.stars--on-dark i.ph.ph-star {
  color: rgba(255, 255, 255, 0.28);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(8, 10, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo__text em {
  font-style: normal;
  color: #C4B5FD;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-inv-2);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.main-nav__link i {
  font-size: 0.85em;
  transition: transform var(--t-fast);
}

.main-nav__link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  background: var(--ink-850);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 60;
}

.dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown--right {
  left: auto;
  right: 0;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

.dropdown__link i {
  font-size: 1.15rem;
  color: var(--text-inv-3);
  transition: color var(--t-fast);
}

.dropdown__link:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
}

.dropdown__link:hover i {
  color: #C4B5FD;
}

.dropdown__split {
  height: 1px;
  margin: var(--sp-2) 0;
  background: var(--ink-line);
}

.dropdown__head {
  padding: 0.55rem 0.8rem 0.65rem;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: var(--sp-2);
}

.dropdown__head-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}

.dropdown__head-mail {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.dropdown__link--danger,
.dropdown__link--danger i {
  color: #FB7185;
}

.dropdown__link--danger:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #FDA4AF;
}

.dropdown__link--danger:hover i {
  color: #FDA4AF;
}

/* Search */
.search {
  flex: 1;
  max-width: 400px;
}

.search__box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 42px;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.search__box:focus-within {
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.search__box i {
  color: var(--text-inv-3);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-sm);
  color: #fff;
}

.search__input::placeholder {
  color: var(--text-inv-3);
}

.search__kbd {
  font-family: var(--font-body);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  color: var(--text-inv-3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

/* User */
.user {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.user__btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.6rem 0.32rem 0.35rem;
  border-radius: var(--r-full);
  transition: background var(--t-fast);
}

.user__btn:hover,
.user__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--aurora);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-inv-2);
}

.user__btn i {
  font-size: 0.8rem;
  color: var(--text-inv-3);
  transition: transform var(--t-fast);
}

.user__btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Mobile header buttons */
.header-mob {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 1.3rem;
  color: var(--text-inv-2);
  transition: background var(--t-fast), color var(--t-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 220;
  width: min(340px, 88vw);
  height: 100dvh;
  background: var(--ink-900);
  border-left: 1px solid var(--ink-line);
  transform: translateX(105%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: none;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ink-line);
}

.drawer__body {
  padding: var(--sp-4) var(--sp-5) var(--sp-8);
  flex: 1;
}

.drawer__group {
  border-bottom: 1px solid var(--ink-line);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  font-size: var(--fs-base);
  font-weight: 500;
  color: #fff;
}

.drawer__link i {
  color: var(--text-inv-3);
  transition: transform var(--t-fast);
}

.drawer__link.is-open i {
  transform: rotate(180deg);
}

.drawer__sub {
  display: none;
  padding-bottom: var(--sp-3);
}

.drawer__sub.is-open {
  display: block;
}

.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  border-radius: var(--r-sm);
}

.drawer__sub a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.drawer__sub a i {
  color: var(--text-inv-3);
  font-size: 1.1rem;
}

.drawer__user {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
}

.drawer__user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-4);
}

.drawer__user-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}

.drawer__user-mail {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.drawer__user a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
}

.drawer__user a i {
  color: var(--text-inv-3);
  font-size: 1.1rem;
}

.drawer__user a:hover {
  color: #fff;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(4, 5, 12, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Hero (shared dark canvas)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  /* aurora glows */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 82% -10%, rgba(139, 92, 246, 0.34), transparent 65%),
    radial-gradient(480px 280px at 8% 110%, rgba(192, 38, 211, 0.16), transparent 60%),
    radial-gradient(700px 380px at 45% -30%, rgba(46, 144, 250, 0.10), transparent 65%);
  pointer-events: none;
}

.hero::after {
  /* dot grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(226, 229, 245, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb (on dark) */
.crumbs {
  padding: var(--sp-5) 0 0;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.crumbs__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.crumbs__item a {
  color: var(--text-inv-2);
}

.crumbs__item a:hover {
  color: #fff;
}

.crumbs__item[aria-current] {
  color: #fff;
  font-weight: 500;
}

.crumbs__sep {
  font-size: 0.65rem;
  color: var(--text-inv-3);
}

.hero__body {
  padding: var(--sp-10) 0 var(--sp-24);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #DDD6FE;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: var(--r-full);
}

.eyebrow i {
  font-size: 1.05em;
}

.hero__title {
  font-size: var(--fs-display);
  color: #fff;
  max-width: 800px;
  margin: var(--sp-5) 0 var(--sp-4);
}

.hero__title .grad {
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-inv-2);
  max-width: 640px;
  line-height: 1.65;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6);
}

.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
}

.hero__fact i {
  color: #A78BFA;
  font-size: 1.1rem;
}

.hero__fact strong {
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--sp-16) 0;
}

.section--tight {
  padding: var(--sp-12) 0;
}

.section--white {
  background: var(--card);
}

.section--tint {
  background: var(--card);
}

.section--line-b {
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sec-head {
  margin-bottom: var(--sp-8);
  max-width: 720px;
}

.sec-head__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.sec-head__title {
  font-size: var(--fs-3xl);
}

.sec-head__sub {
  margin-top: var(--sp-3);
  color: var(--text-2);
  font-size: var(--fs-base);
}

.sec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section--dark .sec-head__title {
  color: #fff;
}

.section--dark .sec-head__sub {
  color: var(--text-inv-2);
}

.section--dark .sec-head__kicker {
  color: #A78BFA;
}

/* --------------------------------------------------------------------------
   Float card — original product summary (overlaps hero)
   -------------------------------------------------------------------------- */
/* White backdrop behind the floating origin card — flow-root stops the negative
   margin collapsing through, so the white never paints over the dark hero. */
.float-zone-wrap {
  display: flow-root;
  background: var(--card);
}

.float-zone {
  margin-top: calc(-1 * var(--sp-12));
  position: relative;
  z-index: 5;
}

.origin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-8);
}

.origin-card__row {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.origin-card__logo {
  width: 62px;
  height: 62px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.origin-card__body {
  flex: 1;
  min-width: 0;
}

.origin-card__top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.origin-card__name {
  font-size: var(--fs-2xl);
}

.origin-card__desc {
  color: var(--text-2);
  font-size: var(--fs-md);
  max-width: 640px;
}

.origin-card__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-end;
  flex-shrink: 0;
}

.origin-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.origin-card__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
}

.origin-card__count {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.origin-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   Listing layout: filter rail + results
   -------------------------------------------------------------------------- */
.listing {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.rail__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.rail__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rail__title i {
  color: var(--brand);
}

.rail__clear {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--t-fast);
}

.rail__clear:hover {
  color: var(--brand);
}

.rail__group {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line-soft);
}

.rail__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}

.rail__opts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.f-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.f-opt:hover {
  background: var(--brand-softer);
  color: var(--text);
}

.f-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.f-opt__box {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1.5px solid #C9C9DA;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.f-opt__box i {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.f-opt input:checked+.f-opt__box {
  background: var(--brand);
  border-color: var(--brand);
}

.f-opt input:checked+.f-opt__box i {
  opacity: 1;
  transform: none;
}

.f-opt input:focus-visible+.f-opt__box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.f-opt__count {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Results toolbar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.results-bar__count {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.results-bar__count strong {
  color: var(--text);
  font-weight: 700;
}

.results-bar__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.results-bar__sort label {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.select {
  appearance: none;
  padding: 0.5rem 2.1rem 0.5rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234E5165' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   Ranked alternative cards
   -------------------------------------------------------------------------- */
.alt-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.alt {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.alt:hover {
  transform: translateY(-2px);
  border-color: #D8CBFA;
  box-shadow: var(--sh-lg);
}

.alt.is-flash {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18), var(--sh-lg);
}

.alt--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--aurora) border-box;
}

.alt__flag {
  position: absolute;
  top: -11px;
  left: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--aurora);
  border-radius: var(--r-full);
  box-shadow: var(--sh-brand);
}

.alt__grid {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: var(--sp-5);
  align-items: start;
}

.alt__rank {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #D3D3E2;
  line-height: 1;
  padding-top: 0.4rem;
  min-width: 2ch;
  text-align: center;
}

.alt--featured .alt__rank {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.alt__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.alt__main {
  min-width: 0;
}

.alt__name-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.alt__name {
  font-size: var(--fs-xl);
}

.alt__name a {
  color: var(--text);
}

.alt__name a:hover {
  color: var(--brand);
}

.alt__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.alt__rating-num {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.alt__rating-count {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.alt__desc {
  margin-top: 0.55rem;
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 60ch;
}

.alt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.alt__side {
  display: flex;
  align-items: flex-start;
}

.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}

.vote__btn {
  width: 100%;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
}

.vote__btn--up:hover {
  background: var(--brand-softer);
  color: var(--brand);
}

.vote__btn--down:hover {
  background: var(--bad-soft);
  color: var(--bad);
}

.vote__btn--up.is-on {
  background: var(--brand);
  color: #fff;
}

.vote__btn--down.is-on {
  background: var(--bad);
  color: #fff;
}

.vote__count {
  padding: 0.25rem 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.alt__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}

.alt__platforms {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.alt__platforms i {
  font-size: 1.2rem;
  color: var(--text-3);
  transition: color var(--t-fast);
}

.alt__platforms i:hover {
  color: var(--brand);
}

.alt__cta {
  display: flex;
  gap: var(--sp-2);
}

.no-results {
  display: none;
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--r-xl);
  color: var(--text-3);
}

.no-results.is-visible {
  display: block;
}

.no-results i {
  font-size: 2rem;
  color: #C9C9DA;
  display: block;
  margin-bottom: var(--sp-3);
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.pager__btn {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.pager__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pager__btn.is-now {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.pager__btn.is-off {
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   At-a-glance table
   -------------------------------------------------------------------------- */
.table-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 760px;
}

.cmp th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 0.9rem;
  background: var(--ink-900);
  color: var(--text-inv-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cmp td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 0.86rem;
}

.cmp tr:last-child td {
  border-bottom: none;
}

.cmp tbody tr {
  transition: background var(--t-fast);
}

.cmp tbody tr:nth-child(even) {
  background: var(--surface);
}

/* Origin product row — pinned first on alternatives pages for comparison.
   Blue = informational/reference; green stays reserved for pros semantics. */
.cmp tbody tr.cmp-origin,
.cmp tbody tr.cmp-origin:hover {
  background: var(--info-soft);
}

.cmp tr.cmp-origin td {
  border-bottom: 1px solid var(--line);
}

.cmp tr.cmp-origin td:first-child {
  box-shadow: inset 3px 0 0 var(--info);
}

/* The badge's soft-blue bg vanishes on the soft-blue row — go solid */
.cmp tr.cmp-origin .badge--info {
  background: var(--info);
  color: #fff;
}

.cmp tr.cmp-origin em {
  color: var(--text-3);
  font-style: normal;
}

.cmp tbody tr:hover {
  background: var(--brand-softer);
}

/* Merged price + pricing-model cell — crisp contained chip */
.cmp__price {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  padding: 0.22rem 0.26rem 0.22rem 0.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.cmp__price .badge {
  border-radius: calc(var(--r-sm) - 2px);
}

.cmp__price-num {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--text);
}

.cmp__price-num i {
  color: var(--brand);
  font-size: 0.95em;
}

/* Built-for chips inside the table — same full-radius as the product page badges */
.cmp td .pill {
  border-radius: var(--r-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.73rem;
  margin: 1px 2px 1px 0;
}

.cmp__app {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 172px;
}

.cmp__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

a.cmp__name:hover {
  color: var(--brand);
}

.cmp tr.is-link {
  cursor: pointer;
}

.cmp-card__head a {
  color: var(--text);
}

.cmp-card__head a:hover {
  color: var(--brand);
}

.cmp__score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.cmp__score i {
  color: var(--star);
  font-size: 0.95rem;
}

/* Mobile table stack */
.cmp-stack {
  display: none;
}

.cmp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.cmp-card__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
  font-family: var(--font-display);
}

.cmp-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.cmp-card__row:last-child {
  border-bottom: none;
}

.cmp-card__k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 0.2rem;
}

.cmp-card__v {
  font-size: var(--fs-sm);
  text-align: right;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Methodology ("How we rank")
   -------------------------------------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.method__item {
  position: relative;
  background: var(--ink-850);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  overflow: hidden;
}

.method__item::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
}

.method__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #A78BFA;
  margin-bottom: var(--sp-3);
}

.method__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #C4B5FD;
  margin-bottom: var(--sp-4);
}

.method__title {
  font-size: var(--fs-lg);
  color: #fff;
  margin-bottom: var(--sp-2);
}

.method__text {
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Category cloud
   -------------------------------------------------------------------------- */
.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.cloud__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.cloud__tag i {
  color: var(--brand);
  font-size: 1.05rem;
}

.cloud__tag:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--sh-sm);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink-900);
  border-radius: 0;
  padding: var(--sp-20) 0;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 50% 120%, rgba(139, 92, 246, 0.4), transparent 65%),
    radial-gradient(400px 220px at 15% -20%, rgba(192, 38, 211, 0.18), transparent 60%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--fs-3xl);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.cta__text {
  color: var(--text-inv-2);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-8);
}

.cta__row {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter {
  display: flex;
  gap: var(--sp-2);
  max-width: 440px;
  margin: var(--sp-8) auto 0;
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  color: #fff;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.newsletter__input::placeholder {
  color: var(--text-inv-3);
}

.newsletter__input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

/* --------------------------------------------------------------------------
   Pre-footer directory strip
   -------------------------------------------------------------------------- */
.prefooter {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--sp-12) 0;
}

.prefooter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.prefooter__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-lg);
}

.prefooter__title i {
  color: var(--brand);
  font-size: 1.3rem;
}

.prefooter__all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
}

.prefooter__all:hover {
  color: var(--brand-strong);
}

.prefooter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem var(--sp-8);
}

.prefooter__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color var(--t-fast);
}

.prefooter__link i {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--t-fast), transform var(--t-fast);
}

.prefooter__link:hover {
  color: var(--brand);
}

.prefooter__link:hover i {
  color: var(--brand);
  transform: translateX(2px);
}

@media (max-width: 1024px) {
  .prefooter__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-950);
  border-top: 1px solid var(--ink-line);
  color: var(--text-inv-2);
  padding: var(--sp-16) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

.footer__about {
  font-size: var(--fs-sm);
  color: var(--text-inv-3);
  line-height: 1.7;
  margin: var(--sp-4) 0 var(--sp-6);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inv-3);
  font-size: 1.15rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.footer__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer__col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-5);
}

.footer__col li {
  margin-bottom: 0.7rem;
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--text-inv-3);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bar {
  border-top: 1px solid var(--ink-line);
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.footer__bar a {
  color: var(--text-inv-3);
  margin-left: var(--sp-5);
}

.footer__bar a:hover {
  color: #fff;
}

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */

/* Hero */
.d-hero {
  padding-bottom: var(--sp-16);
}

.d-hero__grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: var(--sp-10);
  align-items: start;
  padding-top: var(--sp-8);
}

.d-hero__head {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.d-hero__logo {
  width: 84px;
  height: 84px;
  border-radius: var(--r-xl);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.d-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.d-hero__name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-display);
  color: #fff;
}

.d-hero__verified {
  font-size: 1.6rem;
  color: #60A5FA;
  display: inline-flex;
}

.d-hero__tag {
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  color: var(--text-inv-2);
  max-width: 560px;
  line-height: 1.6;
}

.d-hero__score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--sp-4);
}

.d-hero__score-num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
}

.d-hero__score-link {
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.d-hero__score-link:hover {
  color: #fff;
}

.d-hero__plats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.d-hero__plats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.d-hero__plats-label {
  min-width: 108px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-inv-3);
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
  margin-top: 0.2rem;
}

/* Glass fact card */
.fact-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--sp-6);
}

.fact-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inv-3);
  margin-bottom: var(--sp-2);
}

.fact-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-card__row:last-of-type {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.fact-card .btn {
  margin-top: var(--sp-5);
}

.fact-card__k {
  font-size: var(--fs-sm);
  color: var(--text-inv-3);
}

.fact-card__v {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  text-align: right;
  min-width: 0;
  /* let long values (website URLs) shrink and wrap inside the card */
  overflow-wrap: anywhere;
}

.fact-card__link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  color: #C4B5FD;
  overflow-wrap: anywhere;
}

.fact-card__link:hover {
  color: #fff;
}

.fact-card__link i {
  font-size: 0.9rem;
}

/* Sticky subnav */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.subnav__list {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-block;
  padding: 0.95rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.subnav__link:hover {
  color: var(--text);
}

.subnav__link.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Detail sections */
.d-section {
  padding: var(--sp-16) 0;
}

.d-section--white {
  background: var(--card);
}

/* Overview split */
.overview {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-12);
  align-items: start;
}

.prose h3 {
  font-size: var(--fs-xl);
  margin: var(--sp-8) 0 var(--sp-3);
}

.prose p {
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.prose ul {
  padding-left: 1.3rem;
  margin-bottom: var(--sp-4);
  list-style: none;
}

.prose ul li {
  position: relative;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0.55rem;
  padding-left: 0.4rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--aurora);
  transform: rotate(45deg);
}

.prose ol {
  list-style: decimal;
  /* global reset strips list-style — restore it for prose */
  padding-left: 1.5rem;
  margin-bottom: var(--sp-4);
}

.prose ol li {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.prose ol li::marker {
  color: var(--brand);
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.prose table th {
  text-align: left;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2, rgba(0, 0, 0, 0.03));
}

.prose table td {
  color: var(--text-2);
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.prose table tr:last-child td {
  border-bottom: none;
}

.glance {
  position: sticky;
  top: calc(var(--header-h) + 70px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: var(--sp-6);
}

.glance__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}

.glance__title i {
  color: var(--brand);
}

.glance__sub {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}

.glance__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.glance__item:last-of-type {
  border-bottom: none;
}

.glance__item-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--t-fast);
}

.glance__item:hover .glance__item-logo {
  transform: scale(1.06);
}

.glance__item-name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast);
}

.glance__item:hover .glance__item-name {
  color: var(--brand);
}

.glance__item-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.glance__item-rating i {
  color: var(--star);
  font-size: 0.8rem;
}

.glance__item>i {
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.9rem;
  transition: color var(--t-fast), transform var(--t-fast);
}

.glance__item:hover>i {
  color: var(--brand);
  transform: translateX(3px);
}

.glance .btn {
  margin-top: var(--sp-4);
}

/* Screens gallery (CSS mockups) */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.screen {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  background: var(--card);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.screen:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.screen__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--ink-800);
}

.screen__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.screen__dot--r {
  background: #FB7185;
}

.screen__dot--y {
  background: #FBBF24;
}

.screen__dot--g {
  background: #34D399;
}

.screen__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--surface-2);
}

/* Feature cards — uniform, dynamic-data friendly (heading + sub-text only) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  counter-reset: feat;
}

.feat {
  counter-increment: feat;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.feat::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--surface-2);
  transition: color var(--t-base);
}

.feat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--aurora);
  transition: width var(--t-slow);
}

.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #D8CBFA;
}

.feat:hover::before {
  color: #E7DBFD;
}

.feat:hover::after {
  width: 100%;
}

.feat__title {
  font-size: var(--fs-base);
  margin-bottom: 0.45rem;
  padding-right: 3.2rem;
}

.feat__text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}

/* Bento features */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.bento__cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.bento__cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #D8CBFA;
}

.bento__cell--wide {
  grid-column: span 2;
}

.bento__cell--hero {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink-850);
  border-color: var(--ink-600);
  position: relative;
  overflow: hidden;
}

.bento__cell--hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.bento__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--sp-4);
}

.bento__cell--hero .bento__icon {
  background: rgba(139, 92, 246, 0.18);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bento__title {
  font-size: var(--fs-base);
  margin-bottom: 0.4rem;
}

.bento__cell--hero .bento__title {
  color: #fff;
  font-size: var(--fs-xl);
}

.bento__text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}

.bento__cell--hero .bento__text {
  color: var(--text-inv-2);
  position: relative;
  z-index: 1;
}

.bento__list {
  margin-top: var(--sp-4);
  position: relative;
  z-index: 1;
}

.bento__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  padding: 0.32rem 0;
}

.bento__list li i {
  color: #A78BFA;
}

/* Pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.tier--hot {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--aurora) border-box;
  box-shadow: var(--sh-lg);
}

.tier__flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--aurora);
  border-radius: var(--r-full);
  white-space: nowrap;
}

.tier__name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
}

.tier__price {
  margin: var(--sp-3) 0 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.tier__amount {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tier__per {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.tier__note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}

.tier__list {
  flex: 1;
  margin: var(--sp-2) 0 var(--sp-5);
}

.tier__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  padding: 0.34rem 0;
}

.tier__list li i {
  color: var(--good);
  font-size: 1rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
}

/* Pros & cons — enhancements */
.pc__head {
  align-items: center;
}

.pc__head-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pc__col--pro .pc__head-icon {
  background: var(--good-soft);
  color: var(--good);
}

.pc__col--con .pc__head-icon {
  background: var(--bad-soft);
  color: var(--bad);
}

.pc__count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
}

.pc__col--pro .pc__count {
  background: var(--good-soft);
  color: var(--good);
}

.pc__col--con .pc__count {
  background: var(--bad-soft);
  color: var(--bad);
}

/* Pros & cons */
.pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.pc__col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  position: relative;
  overflow: hidden;
}

.pc__col::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}

.pc__col--pro::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.pc__col--con::before {
  background: linear-gradient(90deg, #F43F5E, #FB7185);
}

.pc__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.pc__head i {
  font-size: 1.35rem;
}

.pc__col--pro .pc__head {
  color: var(--good);
}

.pc__col--con .pc__head {
  color: var(--bad);
}

.pc__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}

.pc__list li+li {
  border-top: 1px solid var(--line-soft);
}

.pc__col--pro .pc__list li:hover {
  background: var(--good-soft);
  transform: translateX(4px);
  color: var(--text);
}

.pc__col--con .pc__list li:hover {
  background: var(--bad-soft);
  transform: translateX(4px);
  color: var(--text);
}

.pc__list li i {
  font-size: 1.05rem;
  margin-top: 0.16rem;
  flex-shrink: 0;
}

.pc__col--pro .pc__list i {
  color: var(--good);
}

.pc__col--con .pc__list i {
  color: var(--bad);
}

/* Reviews */
.rev-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-8);
  align-items: start;
}

.rev-summary {
  display: flex;
  gap: var(--sp-10);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.rev-summary__score {
  text-align: center;
  flex-shrink: 0;
}

.rev-summary__big {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rev-summary__stars {
  margin: var(--sp-2) 0;
  justify-content: center;
  display: flex;
}

.rev-summary__count {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.rev-summary__bars {
  flex: 1;
}

.rbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: 0.6rem;
}

.rbar:last-child {
  margin-bottom: 0;
}

.rbar__k {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  min-width: 44px;
}

.rbar__track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
}

.rbar__fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--aurora);
}

.rbar__fill--58 {
  width: 58%;
}

.rbar__fill--25 {
  width: 25%;
}

.rbar__fill--10 {
  width: 10%;
}

.rbar__fill--4 {
  width: 4%;
}

.rbar__fill--3 {
  width: 3%;
}

.rbar__v {
  font-size: var(--fs-xs);
  color: var(--text-3);
  min-width: 34px;
  text-align: right;
}

.rev-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.rev {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
}

.rev__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.rev__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.rev__avatar--1 {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.rev__avatar--2 {
  background: linear-gradient(135deg, #F472B6, #DB2777);
}

.rev__avatar--3 {
  background: linear-gradient(135deg, #FBBF24, #EA580C);
}

.rev__avatar--4 {
  background: linear-gradient(135deg, #38BDF8, #2563EB);
}

.rev__who {
  flex: 1;
  min-width: 0;
}

.rev__name {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.rev__meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rev__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-softer);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.rev__stars {
  margin-bottom: var(--sp-2);
}

.rev__title {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}

.rev__body {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.7;
}

.rev-more {
  text-align: center;
  margin-top: var(--sp-6);
}

.rev-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: sticky;
  top: calc(var(--header-h) + 70px);
}

.write-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: var(--sp-6);
}

.write-box__title {
  font-size: var(--fs-lg);
  margin-bottom: 0.4rem;
}

.write-box__sub {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}

.write-box__stars {
  display: flex;
  gap: 0.45rem;
  margin-bottom: var(--sp-4);
}

.write-star {
  font-size: 1.7rem;
  color: #D6D6E3;
  transition: color var(--t-fast), transform var(--t-fast);
}

.write-star:hover {
  transform: scale(1.15);
}

.write-star.is-on {
  color: var(--star);
}

.write-box__area {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.6;
  outline: none;
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.write-box__area:focus {
  border-color: var(--brand);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.write-box__area::placeholder {
  color: var(--text-3);
}

.trust-box {
  background: linear-gradient(150deg, #FFF9EC, #FEF4E6);
  border: 1px solid #F6E1BE;
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
}

.trust-box__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-3);
}

.trust-box__title i {
  color: var(--warn);
}

.trust-box li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  padding: 0.32rem 0;
}

.trust-box li i {
  color: var(--good);
  font-size: 1rem;
}

/* Related cards */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.rel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
}

.rel:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: #D8CBFA;
}

.rel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.rel__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.rel__name {
  font-size: var(--fs-base);
}

.rel__name a {
  color: var(--text);
}

.rel__name a:hover {
  color: var(--brand);
}

.rel__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.rel__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex: 1;
}

.rel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.rel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}

.rel__plats {
  display: flex;
  gap: 0.5rem;
}

.rel__plats i {
  font-size: 1.1rem;
  color: var(--text-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__cell--hero {
    grid-column: span 2;
    grid-row: auto;
  }

  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens .screen:last-child {
    grid-column: span 2;
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .main-nav,
  .search,
  .user {
    display: none;
  }

  .header-mob {
    display: flex;
  }

  .listing {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }

  .rail__card {
    padding: var(--sp-4) var(--sp-5);
  }

  .rail__group {
    padding: var(--sp-3) 0;
  }

  .rail__opts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .f-opt {
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    padding: 0.35rem 0.75rem;
  }

  .f-opt__count {
    margin-left: 0.2rem;
  }

  .d-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .overview {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .glance {
    position: static;
  }

  .rev-layout {
    grid-template-columns: 1fr;
  }

  .rev-side {
    position: static;
  }

  .method {
    grid-template-columns: 1fr;
  }

  .related {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .d-section {
    padding: var(--sp-10) 0;
  }

  .sec-head__title {
    font-size: var(--fs-2xl);
  }

  .origin-card {
    padding: var(--sp-5);
  }

  .origin-card__row {
    flex-direction: column;
  }

  .origin-card__aside {
    align-items: flex-start;
  }

  .alt {
    padding: var(--sp-5);
  }

  .alt__grid {
    grid-template-columns: auto 1fr;
  }

  .alt__rank {
    grid-row: 1;
    padding-top: 0.9rem;
  }

  .alt__logo {
    grid-row: 1;
    width: 48px;
    height: 48px;
  }

  .alt__main {
    grid-column: 1 / -1;
  }

  .alt__side {
    grid-column: 1 / -1;
  }

  .vote {
    flex-direction: row;
    min-width: 0;
  }

  .vote__btn {
    width: auto;
    padding: 0.4rem 0.7rem;
  }

  .alt__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .alt__cta {
    width: 100%;
  }

  .alt__cta .btn {
    flex: 1;
  }

  /* The at-a-glance table stays visible on mobile — .table-shell scrolls horizontally.
     (The .cmp-stack card fallback is deprecated: it truncated to 4 rows and duplicated content.) */

  .results-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }

  .results-bar__sort {
    justify-content: space-between;
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .screens .screen:last-child {
    grid-column: auto;
  }

  .feat-grid {
    grid-template-columns: 1fr;
  }

  .pc {
    grid-template-columns: 1fr;
  }

  .rev-summary {
    flex-direction: column;
    gap: var(--sp-6);
    padding: var(--sp-6);
  }

  .d-hero__head {
    flex-direction: column;
  }

  .d-hero__logo {
    width: 68px;
    height: 68px;
  }

  .related {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: var(--sp-16) 0;
  }

  .cta__title {
    font-size: var(--fs-2xl);
  }

  .newsletter {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }

  .footer__bar {
    flex-direction: column;
    text-align: center;
  }

  .footer__bar a {
    margin: 0 var(--sp-2);
  }
}

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

  .hero__facts {
    gap: var(--sp-2) var(--sp-4);
  }
}

/* ==========================================================================
   HOME / ABOUT / CATEGORIES
   ========================================================================== */

/* Centered hero variant */
.hero--center .hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-16) 0 var(--sp-20);
}

.hero--center .hero__title {
  max-width: 880px;
}

.hero--center .hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.hero--center .hero__facts {
  justify-content: center;
}

/* Compact hero (author archive etc.) */
.hero--compact .hero__body {
  padding: var(--sp-8) 0 var(--sp-10);
}

.hero--compact .hero__title {
  font-size: var(--fs-3xl);
  margin: var(--sp-3) 0;
}

.hero--compact .hero__lead {
  font-size: var(--fs-base);
  max-width: 580px;
}

.hero--compact .author-avatar {
  width: 72px;
  height: 72px;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}

.hero--compact .author-social {
  margin-top: var(--sp-4);
}

.hero--compact .crumbs {
  padding-top: 0;
  margin-bottom: var(--sp-8);
}

/* Balanced left-aligned hero (archive headers) */
.hero--flush .hero__body {
  padding: var(--sp-6) 0 var(--sp-10);
}

.hero--flush .hero__body:first-child {
  padding-top: var(--sp-10);
}

.author-head {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: var(--sp-4) 0;
}

.author-head .author-avatar {
  width: 64px;
  height: 64px;
  font-size: var(--fs-lg);
  margin-bottom: 0;
}

.author-head .hero__title {
  margin: 0;
}

.hero--flush .author-social {
  justify-content: flex-start;
  margin-top: var(--sp-5);
}

.hero--flush .hero__lead {
  margin-bottom: var(--sp-5);
}

/* Big hero search */
.hero-search {
  width: 100%;
  max-width: 660px;
  margin-top: var(--sp-8);
}

.hero-search__box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.45rem 0.45rem 1.3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.hero-search__box:focus-within {
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22);
}

.hero-search__box>i {
  font-size: 1.3rem;
  color: var(--text-inv-3);
  flex-shrink: 0;
}

.hero-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-base);
  color: #fff;
  padding: 0.55rem 0;
}

.hero-search__input::placeholder {
  color: var(--text-inv-3);
}

.hero-search__btn {
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-5);
}

.hero-chips__label {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
  align-self: center;
  margin-right: 0.3rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-inv-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero-chips--left {
  justify-content: flex-start;
  margin-top: var(--sp-6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-6) var(--sp-16);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 760px;
}

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.cat {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: #D8CBFA;
}

.cat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.cat__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  aspect-ratio: 1/1;
}

.cat__icon--violet {
  background: #F1EBFE;
  color: #7C3AED;
}

.cat__icon--blue {
  background: #EAF3FF;
  color: #2E90FA;
}

.cat__icon--pink {
  background: #FDEFF8;
  color: #DB2777;
}

.cat__icon--amber {
  background: #FEF4E6;
  color: #E17A00;
}

.cat__icon--rose {
  background: #FEEEF1;
  color: #F43F5E;
}

.cat__icon--indigo {
  background: #EBEEFE;
  color: #4F46E5;
}

.cat__icon--cyan {
  background: #E7F8FB;
  color: #0E90A8;
}

.cat__icon--slate {
  background: #EEF1F6;
  color: #47566B;
}

.cat__count {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}

.cat__name {
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: 0.35rem;
}

.cat__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}

.cat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}

.cat__logos {
  display: flex;
}

.cat__logos span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--card);
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-xs);
}

.cat__logos span:first-child {
  margin-left: 0;
}

.cat__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
}

.cat:hover .cat__more {
  color: var(--brand-strong);
}

/* Guide cards (comparison guides) */
.guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.guide {
  display: block;
  background: var(--ink-850);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.guide:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.guide__art {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  background:
    radial-gradient(220px 120px at 20% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(200px 110px at 85% 110%, rgba(192, 38, 211, 0.22), transparent 70%),
    var(--ink-800);
  border-bottom: 1px solid var(--ink-line);
}

.guide__tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.guide__arrow {
  font-size: 1.15rem;
  color: #A78BFA;
}

.guide__alts {
  display: flex;
}

.guide__alts .guide__tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink-800);
  margin-left: -10px;
}

.guide__alts .guide__tile:first-child {
  margin-left: 0;
}

.guide__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.guide__body {
  padding: var(--sp-5);
}

.guide__title {
  font-size: var(--fs-base);
  color: #fff;
  margin-bottom: 0.45rem;
}

.guide:hover .guide__title {
  color: #DDD6FE;
}

.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.guide__meta i {
  margin-right: 0.25rem;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.quote {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
}

.quote__stars {
  margin-bottom: var(--sp-3);
}

.quote__text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.75;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--sp-5);
}

.quote__name {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.quote__role {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* About: story + timeline */
.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-12);
  align-items: center;
}

.story__panel {
  position: relative;
  background: var(--ink-850);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  overflow: hidden;
}

.story__panel::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
}

.story__panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inv-3);
  margin-bottom: var(--sp-5);
}

.tl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.tl__item {
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
}

.tl__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #A78BFA;
  min-width: 3.2rem;
  flex-shrink: 0;
}

.tl__text {
  font-size: var(--fs-sm);
  color: var(--text-inv-2);
  line-height: 1.6;
}

.tl__text strong {
  color: #fff;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.person {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #D8CBFA;
}

.person__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  box-shadow: var(--sh-md);
}

.person__avatar--1 {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.person__avatar--2 {
  background: linear-gradient(135deg, #F472B6, #DB2777);
}

.person__avatar--3 {
  background: linear-gradient(135deg, #38BDF8, #2563EB);
}

.person__avatar--4 {
  background: linear-gradient(135deg, #FBBF24, #EA580C);
}

.person__name {
  font-size: var(--fs-base);
}

.person__role {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  margin: 0.2rem 0 var(--sp-3);
}

.person__bio {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}

.person__social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-4);
}

.person__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.person__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Responsive for new components */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides {
    grid-template-columns: repeat(2, 1fr);
  }

  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .story {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  .hero--center .hero__body {
    padding: var(--sp-12) 0 var(--sp-16);
  }

  .hero-search__btn {
    display: none;
  }

  .hero-stats {
    gap: var(--sp-5) var(--sp-8);
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .guides {
    grid-template-columns: 1fr;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .team {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FORMS (shared: auth, contact, submit)
   ========================================================================== */
.field {
  margin-bottom: var(--sp-4);
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.field__label a {
  font-size: var(--fs-xs);
  font-weight: 600;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

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

.field__input:focus {
  border-color: var(--brand);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

textarea.field__input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234E5165' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.field__eye {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 1.15rem;
  transition: color var(--t-fast), background var(--t-fast);
}

.field__eye:hover {
  color: var(--text);
  background: var(--surface-2);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.check a {
  font-weight: 600;
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.auth__side {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-10);
}

.auth__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 300px at 85% 0%, rgba(139, 92, 246, 0.32), transparent 65%),
    radial-gradient(420px 260px at 0% 100%, rgba(192, 38, 211, 0.18), transparent 60%);
  pointer-events: none;
}

.auth__side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(226, 229, 245, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 80%);
  pointer-events: none;
}

.auth__side>* {
  position: relative;
  z-index: 1;
}

.auth__quote {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 420px;
}

.auth__quote .grad {
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth__attrib {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--sp-6);
}

.auth__attrib-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}

.auth__attrib-role {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.auth__side-stats {
  display: flex;
  gap: var(--sp-10);
}

.auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: var(--sp-8) var(--sp-6);
}

.auth__card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
  padding: var(--sp-10);
}

.auth__logo-mobile {
  display: none;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.auth__title {
  font-size: var(--fs-2xl);
  margin-bottom: 0.45rem;
}

.auth__sub {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-5);
}

.auth__row a {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth__oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.auth__foot {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-top: var(--sp-6);
}

.auth__foot a {
  font-weight: 700;
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}

.auth__back:hover {
  color: var(--brand);
}

.auth__notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--brand-softer);
  border: 1px solid #E5DAFB;
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}

.auth__notice i {
  color: var(--brand);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rules {
  margin: var(--sp-4) 0 var(--sp-5);
}

.rules li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding: 0.22rem 0;
}

.rules li i {
  font-size: 0.9rem;
  color: #C9C9DA;
}

.rules li.is-met {
  color: var(--good);
}

.rules li.is-met i {
  color: var(--good);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.sidenav {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sidenav__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
}

.sidenav__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}

.sidenav__link {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.sidenav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.sidenav__link.is-active {
  color: var(--brand);
  background: var(--brand-softer);
  border-left-color: var(--brand);
  font-weight: 600;
}

.sidenav__doc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-radius: var(--r-sm);
}

.sidenav__doc i {
  color: var(--text-3);
  font-size: 1.05rem;
}

.sidenav__doc:hover {
  background: var(--surface);
  color: var(--text);
}

.sidenav__doc[aria-current] {
  background: var(--brand-softer);
  color: var(--brand);
  font-weight: 600;
}

.sidenav__doc[aria-current] i {
  color: var(--brand);
}

.legal-doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xs);
  padding: var(--sp-10);
}

.legal-doc .prose h2 {
  font-size: var(--fs-xl);
  margin: var(--sp-10) 0 var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
}

.legal-doc .prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.job:hover {
  transform: translateX(4px);
  border-color: #D8CBFA;
  box-shadow: var(--sh-sm);
}

.job__title {
  font-size: var(--fs-base);
  color: var(--text);
  margin-bottom: 0.4rem;
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.job__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.job__cta>i {
  font-size: 1.1rem;
  color: var(--text-3);
  transition: color var(--t-fast), transform var(--t-fast);
}

.job:hover .job__cta>i {
  color: var(--brand);
  transform: translateX(3px);
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: #D8CBFA;
}

.post__cover {
  position: relative;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

.post__cover i {
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
}

.post__cover--1 {
  background: linear-gradient(135deg, #8B5CF6, #D946EF);
}

.post__cover--2 {
  background: linear-gradient(135deg, #2563EB, #38BDF8);
}

.post__cover--3 {
  background: linear-gradient(135deg, #DB2777, #F472B6);
}

.post__cover--4 {
  background: linear-gradient(135deg, #EA580C, #FBBF24);
}

.post__cover--5 {
  background: linear-gradient(135deg, #0E7490, #22D3EE);
}

.post__cover--6 {
  background: linear-gradient(135deg, #4338CA, #818CF8);
}

.post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

.post__cat {
  margin-bottom: var(--sp-3);
  align-self: flex-start;
}

.post__title {
  font-size: var(--fs-lg);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.post__title a {
  color: var(--text);
}

.post__title a:hover {
  color: var(--brand);
}

.post__excerpt {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.65;
}

.post__foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}

.post__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}

.post__by {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}

.post__by a {
  color: var(--text);
}

.post__by a:hover {
  color: var(--brand);
}

.post__date {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-left: auto;
}

.post--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.post--wide .post__cover {
  height: 100%;
  min-height: 280px;
}

.post--wide .post__cover i {
  font-size: 3.6rem;
}

.post--wide .post__body {
  padding: var(--sp-8);
  justify-content: center;
}

.post--wide .post__title {
  font-size: var(--fs-2xl);
}

.post--wide .post__excerpt {
  flex: 0 1 auto;
  font-size: var(--fs-md);
}

/* Author archive hero */
.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.14);
  margin-bottom: var(--sp-5);
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-5);
}

.author-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-inv-2);
  font-size: 1.1rem;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.author-social a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.article-hero .crumbs {
  padding-top: var(--sp-5);
}

.article-hero__body {
  max-width: 780px;
  padding: var(--sp-6) 0 var(--sp-10);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.article-hero__title {
  font-size: var(--fs-display);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.article-hero__excerpt {
  font-size: var(--fs-lg);
  color: var(--text-inv-2);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.byline__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}

.byline__name a {
  color: #fff;
}

.byline__name a:hover {
  color: #DDD6FE;
}

.byline__role {
  font-size: var(--fs-xs);
  color: var(--text-inv-3);
}

.article-wrap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--sp-10);
  max-width: 880px;
  margin: 0 auto;
}

.share-rail {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-8));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: start;
}

.share-rail__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 0.2rem;
}

.share-rail a,
.share-rail button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1.15rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.share-rail a:hover,
.share-rail button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-8);
}

.toc__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-3);
}

.toc__title i {
  color: var(--brand);
}

.toc ol {
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.4rem 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
}

.toc a:hover {
  color: var(--brand);
}

.article-body .prose h2 {
  font-size: var(--fs-2xl);
  margin: var(--sp-12) 0 var(--sp-4);
  scroll-margin-top: calc(var(--header-h) + var(--sp-6));
}

.article-body .prose h2:first-of-type {
  margin-top: 0;
}

.article-body .prose h3 {
  margin-top: var(--sp-8);
}

.article-body .prose p {
  font-size: var(--fs-md);
}

.prose blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

.prose blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-lg) !important;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: var(--sp-3);
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.callout {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--info-soft);
  border: 1px solid #C7DFFC;
}

.callout>i {
  font-size: 1.4rem;
  color: var(--info);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.callout--warn {
  background: var(--warn-soft);
  border-color: #F6E1BE;
}

.callout--warn>i {
  color: var(--warn);
}

.callout__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.callout p {
  font-size: var(--fs-sm) !important;
  color: var(--text-2);
  margin-bottom: 0 !important;
  line-height: 1.6;
}

.embed-tool {
  margin: var(--sp-8) 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-10) 0 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.author-box {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
  margin-top: var(--sp-8);
}

.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.author-box__kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.author-box__name {
  font-size: var(--fs-base);
}

.author-box__name a {
  color: var(--text);
}

.author-box__name a:hover {
  color: var(--brand);
}

.author-box__bio {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-top: 0.4rem;
  line-height: 1.6;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.article-nav__link {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.article-nav__link:hover {
  border-color: #D8CBFA;
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.article-nav__link--next {
  text-align: right;
}

.article-nav__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.article-nav__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.article-nav__link:hover .article-nav__title {
  color: var(--brand);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-xs);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.contact-card:hover {
  border-color: #D8CBFA;
  box-shadow: var(--sh-sm);
}

.contact-card__title {
  font-size: var(--fs-base);
  margin-bottom: 0.25rem;
}

.contact-card__text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.contact-card__link {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
  padding: var(--sp-8);
}

.form-card__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.4rem;
}

.form-card__sub {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-6);
}

/* ==========================================================================
   ARTICLE DISCUSSION (comments)
   ========================================================================== */
.discussion {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}

/* Standalone discussion section (alternatives pages) — not appended to an article column */
.discussion--page {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
}

.discussion--page>.sec-head__sub {
  margin-bottom: var(--sp-6);
}

.discussion__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-6);
}

.discussion__count {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-full);
}

.disc-form {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.disc-form__avatar {
  flex-shrink: 0;
}

.disc-form__main {
  flex: 1;
}

.disc-form textarea.field__input {
  min-height: 90px;
  margin-bottom: var(--sp-3);
}

.disc-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.disc-form__hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.comment {
  display: flex;
  gap: var(--sp-4);
}

.comment--reply {
  margin-left: 3.4rem;
}

.comment__main {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
}

.comment__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.comment__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.comment__badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-softer);
  padding: 0.12rem 0.5rem;
  border-radius: var(--r-full);
}

.comment__date {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.comment__body {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.65;
}

.comment__reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  transition: color var(--t-fast);
}

.comment__reply-btn:hover {
  color: var(--brand);
}

/* Blog cover image (posts.cover_image) — gradient variants remain the no-image fallback */
.post__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Responsive — new page templates
   ========================================================================== */
@media (max-width: 1024px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth__side {
    display: none;
  }

  .auth__logo-mobile {
    display: flex;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .sidenav {
    position: static;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post--wide {
    grid-template-columns: 1fr;
  }

  .post--wide .post__cover {
    min-height: 200px;
  }

  .article-wrap {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .share-rail {
    position: static;
    flex-direction: row;
    align-items: center;
  }

  .share-rail__label {
    margin: 0 0.4rem 0 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .comment--reply {
    margin-left: 1.5rem;
  }

  .auth__card {
    padding: var(--sp-6);
  }

  .auth__oauth {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .legal-doc {
    padding: var(--sp-6);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .job {
    flex-direction: column;
    align-items: stretch;
  }

  .job__cta {
    justify-content: space-between;
  }

  .article-hero__title {
    font-size: var(--fs-2xl);
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__link--next {
    text-align: left;
  }

  .author-box {
    flex-direction: column;
  }
}

/* ==========================================================================
   A11y
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==================== DASHBOARD SETTINGS ==================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.settings-grid .form-card {
  min-width: 0;
}

.settings-grid textarea.field__input {
  min-height: 120px;
  resize: vertical;
}

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

/* ==================== FIXES: avatars with photos + search focus ring ==================== */
/* Uploaded profile pictures: clip to the round avatar shape everywhere */
.user__avatar,
.rev__avatar,
.post__avatar,
.byline__avatar,
.author-avatar,
.author-box__avatar {
  overflow: hidden;
}

.user__avatar img,
.rev__avatar img,
.post__avatar img,
.byline__avatar img,
.author-avatar img,
.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Search inputs: the pill container shows its own focus ring (:focus-within) —
   suppress the global :focus-visible outline that doubled it */
.search__input:focus-visible,
.hero-search__input:focus-visible,
.newsletter__input:focus-visible {
  outline: none;
}

/* ==================== ARTICLE PREV/NEXT — polished ==================== */
.article-nav__dir {
  display: flex;
}

.article-nav__link--next .article-nav__dir {
  justify-content: flex-end;
}

.article-nav__title {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-nav__link:hover .article-nav__dir {
  color: var(--brand);
}

/* when only "next" exists, keep it on the right side */
.article-nav__link--next:first-child {
  grid-column: 2;
}

@media (max-width: 640px) {
  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__link--next:first-child {
    grid-column: auto;
  }
}

/* Author page: designation under the name */
.author-head__role {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #C4B5FD;
  margin-top: 0.35rem;
}

/* ==================== ABOUT PAGE (revamp) ==================== */
/* Hero stats: one row of four */
.hero-stats--row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  max-width: 940px;
}

@media (max-width: 760px) {
  .hero-stats--row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "Old way / Our way" duo panel */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
}

.duo__col {
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
}

.duo__col--old {
  background: var(--card);
  border: 1px dashed var(--line);
}

.duo__col--new {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.duo__col--new::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: var(--aurora);
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.duo__tag {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.duo__col--old .duo__tag {
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--line);
}

.duo__col--new .duo__tag {
  background: rgba(139, 92, 246, 0.25);
  color: #C4B5FD;
}

.duo__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0 0 var(--sp-4);
  position: relative;
  z-index: 1;
}

.duo__col--old .duo__title {
  color: var(--text);
}

.duo__col--new .duo__title {
  color: #fff;
}

.duo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.duo__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.duo__list i {
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.duo__col--old .duo__list li {
  color: var(--text-2);
}

.duo__col--old .duo__list i {
  color: #FB7185;
}

.duo__col--new .duo__list li {
  color: rgba(255, 255, 255, 0.87);
}

.duo__col--new .duo__list i {
  color: #4ADE80;
}

/* Signal flow (dark section) */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
}

.flow__item {
  position: relative;
}

.flow__num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-3);
}

.flow__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--sp-2);
}

.flow__text {
  color: var(--text-inv-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin: 0;
}

.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: calc(100% + var(--sp-2));
  width: calc(var(--sp-10) - var(--sp-4));
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0));
}

/* Manifesto + mission/vision */
.manifesto {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.manifesto__mark {
  display: block;
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: var(--sp-4);
}

.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--sp-10);
}

.manifesto__text .grad {
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  text-align: left;
}

.mv-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.mv-card::after {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: var(--aurora);
  filter: blur(70px);
  opacity: 0.12;
  pointer-events: none;
}

.mv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #D8CBFA;
}

.mv-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.mv-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aurora);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--sh-brand);
}

.mv-card__kicker {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mv-card__kicker small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.mv-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Promise cards */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.promise {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.promise:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #D8CBFA;
}

.promise__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aurora);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: var(--sp-4);
}

.promise__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.promise__text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {

  .duo,
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .flow__item:not(:last-child)::after {
    display: none;
  }

  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Quick Facts header: compact save-tool bookmark */
.fact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.fact-card__head .fact-card__title {
  margin-bottom: 0;
}

.fact-card__save {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-inv-3);
  transition: color var(--t-fast);
}

.fact-card__save i {
  font-size: 1.05rem;
}

.fact-card__save:hover,
.fact-card__save.is-saved {
  color: #C4B5FD;
}

/* --------------------------------------------------------------------------
   Sponsorship — 3-up pricing + example placement demo
   -------------------------------------------------------------------------- */
.tiers--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1060px;
  margin-inline: auto;
}

@media (max-width: 1100px) {
  .tiers--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tiers--three {
    grid-template-columns: 1fr;
  }
}

.spon-demo {
  max-width: 720px;
  margin: 0 auto;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
}

.spon-demo__slot {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  background: linear-gradient(120deg, var(--brand-softer), #FDF6FF);
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
}

.spon-demo__slot::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--aurora);
}

.spon-demo__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--aurora);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}

.spon-demo__slot-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.spon-demo__slot-text {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.spon-demo__note {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.spon-demo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: spon-rank;
}

.spon-demo__list li {
  counter-increment: spon-rank;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.8rem 0.25rem;
  border-top: 1px solid var(--line-soft);
}

.spon-demo__list li::before {
  content: counter(spon-rank);
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}

.spon-demo__thumb {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.spon-demo__bar {
  height: 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
}

.spon-demo__list li:nth-child(1) .spon-demo__bar {
  width: 46%;
}

.spon-demo__list li:nth-child(2) .spon-demo__bar {
  width: 34%;
}

.spon-demo__list li:nth-child(3) .spon-demo__bar {
  width: 40%;
}

/* --------------------------------------------------------------------------
   Sponsored slots (category + alternatives pages)
   -------------------------------------------------------------------------- */
.sponsor-strip {
  padding: var(--sp-16) 0;
  background: linear-gradient(var(--card), var(--surface-2));
}

.rel--sponsored {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--aurora) border-box;
}

/* All 3-column product cards (sponsored + regular rel cards): clamp text to 3 lines */
.rel__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Whole-card click: the card's main anchor (.stretch-link) stretches over the card.
   Secondary links inside a stretched card need position:relative + z-index 2. */
.rel,
.post {
  position: relative;
}

.stretch-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post__cat,
.post__by a {
  position: relative;
  z-index: 2;
}

/* Share rail: copied-state feedback on the copy-link button */
.share-rail button.is-copied {
  color: var(--good);
  border-color: var(--good);
}

/* Auth checkboxes (.check reuses .f-opt__box — these give it the checked/focus states) */
.check input:checked + .f-opt__box {
  background: var(--brand);
  border-color: var(--brand);
}

.check input:checked + .f-opt__box i {
  opacity: 1;
  transform: none;
}

.check input:focus-visible + .f-opt__box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
