/* ==========================================================================
   HoneyGF — honeygfai.com
   Single shared stylesheet for every page.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & chips
   6.  Header & navigation
   7.  Hero
   8.  Character cards & galleries
   9.  Chat interface
   10. Feature demos (photos / video / voice)
   11. Builder
   12. Steps, benefits & bento
   13. Testimonials
   14. Accordion
   15. Pricing
   16. Blog
   17. Auth
   18. Prose & legal
   19. CTA bands
   20. Footer
   21. Utilities
   22. Motion & reveal
   23. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Surfaces — dark navy, never pure black */
  --bg-0: #0d1421;
  --bg-1: #111b2b;
  --bg-2: #172235;

  /* Accents */
  --pink: #ff3f91;
  --pink-2: #ff5da8;
  --purple: #a855f7;
  --gold: #f3c669;

  /* Text */
  --text: #ffffff;
  --muted: #aeb7c7;
  --muted-dim: #7f8a9d;

  /* Lines & fills */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fill: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);

  /* Gradients */
  --grad-brand: linear-gradient(100deg, var(--pink) 0%, var(--pink-2) 45%, var(--purple) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(255, 63, 145, 0.22), rgba(168, 85, 247, 0.18));
  --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));

  /* Glow */
  --glow-pink: 0 12px 34px -12px rgba(255, 63, 145, 0.75);
  --glow-soft: 0 24px 70px -30px rgba(255, 63, 145, 0.55);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 44px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.95);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Rhythm */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 88px;

  /* Type */
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --speed: 0.28s;

  /* Header height, used for scroll-margin and sticky offsets */
  --header-h: 72px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

/* An author `display` declaration outranks the UA stylesheet's `[hidden]` rule
   (origin beats specificity), so `element.hidden = true` silently does nothing on
   any component we set to flex/grid — the character and blog filters both rely on
   it. This keeps `hidden` meaning hidden everywhere, whatever the component. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background-color: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient page glow — one element, no per-section cost */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 63, 145, 0.14), transparent 62%),
    radial-gradient(820px 520px at 92% 4%, rgba(168, 85, 247, 0.13), transparent 64%);
}

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

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

::selection {
  background: rgba(255, 63, 145, 0.35);
  color: #fff;
}

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

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 63, 145, 0.45) transparent;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 63, 145, 0.4);
  border-radius: var(--r-pill);
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--text);
}

h1 {
  font-size: clamp(2.05rem, 5.1vw, 3.6rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.026em;
}
h3 {
  font-size: clamp(1.16rem, 1.9vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.018em;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.05em;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  color: var(--text);
  font-weight: 700;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-2);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grad-brand);
}

.eyebrow--plain::before {
  display: none;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  line-height: 1.72;
}

.small {
  font-size: 0.86rem;
  color: var(--muted-dim);
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

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

.container--narrow {
  max-width: 820px;
}

.container--wide {
  max-width: 1340px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: 56px;
}

.section--flush-top {
  padding-top: 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 22%, transparent);
}

.section__head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--center .eyebrow::before {
  display: none;
}

.section__title {
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 62ch;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--gap-lg {
  gap: 30px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 60px;
  align-items: center;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split--wide-right {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.stack > * + * {
  margin-top: 16px;
}

/* ==========================================================================
   5. Buttons & chips
   ========================================================================== */

.btn {
  --btn-py: 13px;
  --btn-px: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.006em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
  border: 1px solid transparent;
  text-align: center;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow-pink);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(255, 63, 145, 0.85);
}

.btn--secondary {
  background: var(--fill-2);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 93, 168, 0.55);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--muted);
  padding-inline: 14px;
}

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

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--pink-2);
  color: var(--pink-2);
  transform: translateY(-2px);
}

.btn--sm {
  --btn-py: 10px;
  --btn-px: 18px;
  font-size: 0.86rem;
}

.btn--lg {
  --btn-py: 16px;
  --btn-px: 32px;
  font-size: 1rem;
}

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

.btn--quiet {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 6px;
}

.btn--quiet:hover {
  color: var(--pink-2);
}

.btn--quiet::after {
  content: "→";
  transition: transform var(--speed) var(--ease);
}

.btn--quiet:hover::after {
  transform: translateX(3px);
}

/* Button row */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.btn-row--stack-mobile {
  flex-wrap: wrap;
}

/* Small trust strip under CTAs */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--muted-dim);
  font-size: 0.85rem;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip svg {
  color: var(--pink-2);
  flex: none;
}

/* Chips (filter tabs, builder options) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--fill);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--speed) var(--ease);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 93, 168, 0.5);
  background: rgba(255, 63, 145, 0.08);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(255, 63, 145, 0.9);
}

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 20, 33, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.site-header.is-stuck {
  background: rgba(11, 17, 28, 0.93);
  border-bottom-color: var(--line);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  flex: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -6px rgba(255, 63, 145, 0.9);
  color: #fff;
}

.logo__mark svg {
  width: 16px;
  height: 16px;
}

.logo__gf {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Nav wrapper: inline on desktop, drawer on mobile */
.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--fill-2);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 63, 145, 0.13);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Mobile-only compact CTA in the bar */
.header__cta-compact {
  display: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--fill-2);
  place-items: center;
  flex: none;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}
.nav-toggle__bars span:nth-child(2) {
  top: 5px;
}
.nav-toggle__bars span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease), visibility var(--speed);
  z-index: 80;
}

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

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  padding-top: 62px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--fill);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero__badge b {
  color: var(--text);
  font-weight: 700;
}

.hero__badge-pill {
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 22px;
}

.hero__lead {
  max-width: 62ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  color: var(--muted);
}

.hero__actions {
  margin-top: 32px;
}

.hero__note {
  justify-content: center;
}

/* Feature ticker under hero copy */
.hero__keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hero__keyword {
  font-size: 0.8rem;
  color: var(--muted-dim);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

/* Character composition */
.hero__cast {
  margin-top: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  perspective: 1400px;
}

.hero-card {
  position: relative;
  flex: none;
  width: 262px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  box-shadow: var(--shadow-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 13, 22, 0.82));
  pointer-events: none;
}

.hero-card__meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-card__tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-card--center {
  width: 320px;
  z-index: 3;
  transform: translateY(-34px);
  border-color: rgba(255, 93, 168, 0.42);
}

.hero-card--center img {
  aspect-ratio: 4 / 5.3;
}

/* Overlap is deliberately small — the layer effect comes from rotation and lift,
   and a deeper overlap would clip the side cards' name labels. */
.hero-card--left {
  transform: translateX(20px) rotate(-5deg) scale(0.94);
  z-index: 2;
}

.hero-card--right {
  transform: translateX(-20px) rotate(5deg) scale(0.94);
  z-index: 2;
}

.hero__cast:hover .hero-card--left {
  transform: translateX(4px) rotate(-6.5deg) scale(0.96);
}

.hero__cast:hover .hero-card--right {
  transform: translateX(-4px) rotate(6.5deg) scale(0.96);
}

.hero__cast:hover .hero-card--center {
  transform: translateY(-42px) scale(1.015);
}

.hero-card--center::after {
  background: linear-gradient(180deg, transparent 40%, rgba(8, 13, 22, 0.88));
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  width: min(1000px, 130%);
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 63, 145, 0.3), transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

/* Live "online" dot */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.16);
  flex: none;
  display: inline-block;
}

.dot--pulse {
  animation: dotPulse 2.4s var(--ease) infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.16);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(53, 208, 127, 0.05);
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: 54px;
  padding-bottom: 30px;
}

.page-hero__inner {
  max-width: 780px;
}

.page-hero__inner--center {
  margin-inline: auto;
  text-align: center;
}

.page-hero__inner--center .btn-row {
  justify-content: center;
}

.page-hero--split {
  padding-bottom: 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted-dim);
  margin-bottom: 20px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs a:hover {
  color: var(--pink-2);
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

/* ==========================================================================
   8. Character cards & galleries
   ========================================================================== */

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.char-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.char-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-md);
  transition: transform 0.34s var(--ease), border-color 0.34s var(--ease),
    box-shadow 0.34s var(--ease);
  display: flex;
  flex-direction: column;
}

.char-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 93, 168, 0.42);
  box-shadow: 0 34px 70px -34px rgba(255, 63, 145, 0.6);
}

.char-card__media {
  position: relative;
  overflow: hidden;
}

.char-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease);
}

.char-card:hover .char-card__media img {
  transform: scale(1.055);
}

.char-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.1) 0%, transparent 34%, rgba(11, 17, 28, 0.9) 100%);
  pointer-events: none;
}

.char-card__status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(9, 14, 24, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted);
}

.char-card__age {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(9, 14, 24, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 198, 105, 0.34);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.char-card__style {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 63, 145, 0.16);
  border: 1px solid rgba(255, 93, 168, 0.34);
  color: var(--pink-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.char-card__body {
  padding: 16px 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.char-card__name {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.char-card__name span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-dim);
}

.char-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

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

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag--accent {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b8fb;
}

.char-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--speed) var(--ease);
}

.char-card:hover .char-card__cta {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--glow-pink);
}

/* Filter tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-count {
  font-size: 0.84rem;
  color: var(--muted-dim);
}

.char-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}

/* Horizontal swipe strip (used on mobile for galleries) */
.swipe-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Feature "spotlight" character panel */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.spotlight__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.spotlight__media img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center 18%;
}

.spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 63, 145, 0.16), transparent 46%);
  pointer-events: none;
}

.spotlight__float {
  position: absolute;
  z-index: 3;
  background: rgba(12, 18, 30, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
}

.spotlight__float--tl {
  top: 18px;
  left: 18px;
}

.spotlight__float--br {
  bottom: 18px;
  right: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--muted);
}

.feature-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--pink-2);
}

.feature-list b {
  color: var(--text);
}

/* ==========================================================================
   9. Chat interface
   ========================================================================== */

.chat {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.94), rgba(13, 20, 33, 0.96));
  box-shadow: var(--shadow-lg), var(--glow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}

.chat__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1.5px solid rgba(255, 93, 168, 0.5);
}

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

.chat__name {
  font-size: 0.94rem;
  font-weight: 700;
  display: block;
  line-height: 1.3;
}

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted-dim);
}

.chat__icons {
  display: flex;
  gap: 4px;
  color: var(--muted-dim);
}

.chat__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: all var(--speed) var(--ease);
}

.chat__icon:hover {
  background: var(--fill-2);
  color: var(--text);
}

.chat__body {
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  max-width: 84%;
  animation: msgIn 0.34s var(--ease) both;
}

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

.msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
}

.bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: var(--fill-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 6px;
  word-break: break-word;
}

/* Direction marker. `.msg` already carries the neutral "her" styling, so --them
   intentionally adds nothing; it exists so authors can name both directions
   symmetrically against --me, and so the pair is greppable. */
.msg--them {
  margin-right: auto;
}

.msg--me {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg--me .bubble {
  background: var(--grad-brand);
  border-color: transparent;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 26px -14px rgba(255, 63, 145, 0.9);
}

.msg__time {
  font-size: 0.68rem;
  color: var(--muted-dim);
  align-self: flex-end;
  padding-bottom: 3px;
  flex: none;
}

/* Typing indicator */
.typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: var(--fill-2);
  border: 1px solid var(--line);
  width: fit-content;
  margin-left: 37px;
}

.typing.is-on {
  display: flex;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.25s var(--ease) infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.chat__input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.chat__input::placeholder {
  color: var(--muted-dim);
}

.chat__input:focus {
  outline: none;
  border-color: rgba(255, 93, 168, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.chat__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  flex: none;
  box-shadow: var(--glow-pink);
  transition: transform var(--speed) var(--ease);
}

.chat__send:hover {
  transform: scale(1.07);
}

.chat__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.chat__suggest button {
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--muted);
  transition: all var(--speed) var(--ease);
}

.chat__suggest button:hover {
  color: var(--pink-2);
  border-color: rgba(255, 93, 168, 0.45);
}

/* Compact chat transcript (no input) */
.chat--static .chat__body {
  min-height: 0;
  max-height: none;
}

/* ==========================================================================
   10. Feature demos
   ========================================================================== */

.demo-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.7), rgba(13, 20, 33, 0.85));
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.demo-card:hover {
  border-color: rgba(255, 93, 168, 0.34);
  transform: translateY(-4px);
}

.demo-card__head h3 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-card__head p {
  font-size: 0.9rem;
  margin: 0;
}

.demo-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 63, 145, 0.15);
  color: var(--pink-2);
  flex: none;
}

/* Photo gallery UI */
.gallery-ui {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(9, 14, 24, 0.6);
  padding: 10px;
  display: grid;
  gap: 9px;
}

.gallery-ui__main {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.gallery-ui__main img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 20%;
  transition: opacity 0.25s var(--ease);
}

.gallery-ui__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(9, 14, 24, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  backdrop-filter: blur(6px);
}

.gallery-ui__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.gallery-ui__thumbs button {
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.62;
  transition: all var(--speed) var(--ease);
}

.gallery-ui__thumbs button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

.gallery-ui__thumbs button:hover {
  opacity: 0.9;
}

.gallery-ui__thumbs button[aria-selected="true"] {
  border-color: var(--pink);
  opacity: 1;
}

.gallery-ui__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted-dim);
  padding: 0 3px;
}

/* Video UI */
.video-ui {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #070b13;
}

.video-ui img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.86;
}

.video-ui.is-playing img {
  animation: slowZoom 9s var(--ease) infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.video-ui__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, 0.35), transparent 40%, rgba(7, 11, 19, 0.9));
  pointer-events: none;
}

.video-ui__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: all var(--speed) var(--ease);
}

.video-ui__play::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 93, 168, 0.4);
  animation: ringPulse 2.6s var(--ease) infinite;
}

@keyframes ringPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

.video-ui__play:hover {
  background: var(--grad-brand);
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.07);
}

.video-ui__play svg {
  margin-left: 3px;
  position: relative;
  z-index: 2;
}

.video-ui__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
}

.video-ui__timeline {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 9px;
}

.video-ui__progress {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 3px;
  background: var(--grad-brand);
}

.video-ui.is-playing .video-ui__progress {
  animation: videoFill 9s linear infinite;
}

@keyframes videoFill {
  from {
    width: 4%;
  }
  to {
    width: 100%;
  }
}

.video-ui__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
}

.video-ui__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Voice call UI */
.call {
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 63, 145, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(23, 34, 53, 0.9), rgba(11, 17, 28, 0.96));
  padding: 26px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call__avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
}

.call__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  border: 2px solid rgba(255, 93, 168, 0.55);
  position: relative;
  z-index: 2;
}

.call__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 93, 168, 0.5);
  animation: ringPulse 3s var(--ease) infinite;
}

.call__ring:nth-child(2) {
  animation-delay: 1.5s;
}

.call__name {
  font-size: 1.14rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.call__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.call__time {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 4px;
  color: var(--text);
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 44px;
  margin: 14px 0 20px;
}

.waveform span {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pink-2), var(--purple));
  animation: wave 1.15s var(--ease) infinite;
}

@keyframes wave {
  0%,
  100% {
    height: 7px;
    opacity: 0.5;
  }
  50% {
    height: 30px;
    opacity: 1;
  }
}

.call__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.call-btn {
  min-width: 74px;
  padding: 12px 14px 10px;
  border-radius: var(--r-md);
  background: var(--fill-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--speed) var(--ease);
}

.call-btn svg {
  color: var(--text);
}

.call-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.call-btn--heart svg {
  color: var(--pink-2);
}

.call-btn--heart:hover {
  border-color: rgba(255, 93, 168, 0.5);
  background: rgba(255, 63, 145, 0.14);
}

.call-btn--end {
  background: linear-gradient(180deg, #ff4d6d, #e01e46);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(224, 30, 70, 0.95);
}

.call-btn--end svg {
  color: #fff;
}

.call-btn--end:hover {
  background: linear-gradient(180deg, #ff5c79, #ee2249);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   11. Builder
   ========================================================================== */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: start;
  padding: 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 63, 145, 0.07), rgba(168, 85, 247, 0.05) 42%, rgba(23, 34, 53, 0.6));
  box-shadow: var(--shadow-lg);
}

.builder__controls {
  display: grid;
  gap: 24px;
}

.builder__group legend,
.builder__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 11px;
}

.builder__group .chips {
  gap: 8px;
}

.builder__preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 93, 168, 0.34);
  background: var(--bg-1);
  box-shadow: var(--shadow-lg), var(--glow-soft);
}

.builder__preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  transition: opacity 0.3s var(--ease);
}

.builder__preview img.is-swapping {
  opacity: 0;
}

.builder__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(8, 13, 22, 0.92));
  pointer-events: none;
}

.builder__preview-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.builder__preview-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.builder__preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.builder__summary {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: rgba(9, 14, 24, 0.6);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.builder__summary b {
  color: var(--pink-2);
  font-weight: 700;
}

/* Numbered build steps (create page) */
.build-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.build-step:last-of-type {
  border-bottom: 0;
}

.build-step__num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.96rem;
  background: rgba(255, 63, 145, 0.13);
  border: 1px solid rgba(255, 93, 168, 0.32);
  color: var(--pink-2);
}

.build-step h3 {
  margin-bottom: 6px;
}

.build-step p {
  font-size: 0.92rem;
  margin: 0;
}

/* Voice option cards */
.voice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.voice-option {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--fill);
  transition: all var(--speed) var(--ease);
  display: flex;
  align-items: center;
  gap: 13px;
}

.voice-option:hover {
  border-color: rgba(255, 93, 168, 0.5);
  background: rgba(255, 63, 145, 0.07);
}

.voice-option[aria-pressed="true"] {
  border-color: var(--pink);
  background: rgba(255, 63, 145, 0.13);
  box-shadow: 0 12px 30px -18px rgba(255, 63, 145, 0.9);
}

.voice-option__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  flex: none;
}

.voice-option__wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--muted);
  height: 8px;
}

.voice-option[aria-pressed="true"] .voice-option__wave i {
  background: var(--pink-2);
}

.voice-option__label {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
}

.voice-option__desc {
  font-size: 0.76rem;
  color: var(--muted-dim);
  display: block;
}

/* ==========================================================================
   12. Steps, benefits & bento
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.6), rgba(13, 20, 33, 0.72));
  overflow: hidden;
  padding: 22px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 93, 168, 0.36);
}

.step__num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pink-2);
  display: block;
  margin-bottom: 14px;
}

.step__media {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  background: var(--bg-1);
}

.step__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 20%;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 10px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.timeline__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-2);
  padding-top: 5px;
}

.timeline__body h3 {
  margin-bottom: 8px;
}

.timeline__body p {
  margin: 0;
  font-size: 0.95rem;
}

/* Bento benefits */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.bento__cell {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(23, 34, 53, 0.68), rgba(13, 20, 33, 0.8));
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.bento__cell:hover {
  border-color: rgba(255, 93, 168, 0.34);
  transform: translateY(-4px);
}

.bento__cell h3 {
  margin: 0;
  font-size: 1.14rem;
}

.bento__cell p {
  margin: 0;
  font-size: 0.9rem;
}

.bento__icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 63, 145, 0.14);
  border: 1px solid rgba(255, 93, 168, 0.26);
  color: var(--pink-2);
  flex: none;
}

.bento__icon--purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c99bfa;
}

.bento__icon--gold {
  background: rgba(243, 198, 105, 0.13);
  border-color: rgba(243, 198, 105, 0.3);
  color: var(--gold);
}

/* Cell spans */
.bento__cell--wide {
  grid-column: span 4;
}

.bento__cell--half {
  grid-column: span 3;
}

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

.bento__cell--tall {
  grid-row: span 2;
}

/* The portrait sits in the right half and fades into the card, so the copy keeps
   a dark, readable column instead of sitting on top of a zoomed-in face. */
.bento__cell--media {
  padding: 30px 47% 30px 26px;
  justify-content: center;
  min-height: 236px;
}

.bento__cell--media img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}

.bento__cell--media > * {
  position: relative;
  z-index: 2;
  margin: 0;
}

.bento__cell--accent {
  background: linear-gradient(150deg, rgba(255, 63, 145, 0.16), rgba(168, 85, 247, 0.13));
  border-color: rgba(255, 93, 168, 0.28);
}

/* Mini stat / meter inside bento */
.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.meter__track {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}

/* ==========================================================================
   13. Testimonials
   ========================================================================== */

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

.testimonial {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(23, 34, 53, 0.66), rgba(13, 20, 33, 0.78));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 93, 168, 0.3);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.testimonial__quote {
  font-size: 0.94rem;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
  flex: 1;
}

.testimonial__who {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.testimonial__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(255, 93, 168, 0.32);
  color: #fff;
  flex: none;
}

.testimonial__name {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
  line-height: 1.35;
}

.testimonial__meta {
  font-size: 0.76rem;
  color: var(--muted-dim);
  display: block;
}

.disclaimer-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--muted-dim);
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
}

/* ==========================================================================
   14. Accordion
   ========================================================================== */

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.accordion__item.is-open {
  border-color: rgba(255, 93, 168, 0.34);
  background: rgba(255, 63, 145, 0.055);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--text);
  transition: color var(--speed) var(--ease);
}

.accordion__trigger:hover {
  color: var(--pink-2);
}

.accordion__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: transform 0.32s var(--ease), background-color var(--speed) var(--ease),
    color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.accordion__icon {
  position: relative;
}

.accordion__icon::before {
  width: 10px;
  height: 1.5px;
}

.accordion__icon::after {
  width: 1.5px;
  height: 10px;
  transition: transform 0.32s var(--ease);
}

.accordion__item.is-open .accordion__icon {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  transform: rotate(180deg);
}

.accordion__item.is-open .accordion__icon::after {
  transform: scaleY(0);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  padding: 0 22px 21px;
  margin: 0;
  font-size: 0.94rem;
  max-width: 74ch;
}

.accordion__panel p + p {
  padding-top: 0;
}

/* ==========================================================================
   15. Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.plan {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.68), rgba(13, 20, 33, 0.82));
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 93, 168, 0.32);
}

.plan--featured {
  border-color: rgba(255, 93, 168, 0.5);
  background: linear-gradient(180deg, rgba(255, 63, 145, 0.11), rgba(23, 34, 53, 0.78) 45%, rgba(13, 20, 33, 0.88));
  box-shadow: var(--shadow-lg), var(--glow-soft);
  transform: translateY(-10px);
}

.plan--featured:hover {
  transform: translateY(-14px);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 15px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--glow-pink);
}

.plan__name {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
}

.plan__desc {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
  min-height: 44px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 4px;
}

.plan__amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__period {
  font-size: 0.86rem;
  color: var(--muted-dim);
}

.plan__list {
  display: grid;
  gap: 11px;
  font-size: 0.9rem;
  flex: 1;
}

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.plan__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--pink-2);
}

.plan__list li.is-muted {
  color: var(--muted-dim);
}

.plan__list li.is-muted svg {
  color: var(--muted-dim);
  opacity: 0.6;
}

/* Comparison table */
.table-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.02);
  -webkit-overflow-scrolling: touch;
}

table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.compare th,
table.compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.compare thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
}

table.compare tbody th {
  font-weight: 600;
  color: var(--text);
}

table.compare td {
  color: var(--muted);
}

table.compare thead th:not(:first-child),
table.compare td:not(:first-child) {
  text-align: center;
  width: 19%;
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: 0;
}

table.compare tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

table.compare .col-featured {
  background: rgba(255, 63, 145, 0.055);
}

.tick {
  color: var(--pink-2);
  font-weight: 700;
}

.dash {
  color: var(--muted-dim);
}

/* Billing note */
.price-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.84rem;
  color: var(--muted-dim);
  text-align: center;
}

/* ==========================================================================
   16. Blog
   ========================================================================== */

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

.post-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.62), rgba(13, 20, 33, 0.78));
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 93, 168, 0.35);
}

.post-card__media {
  position: relative;
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(9, 14, 24, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 93, 168, 0.3);
  color: var(--pink-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.post-card__excerpt {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--muted-dim);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.post-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Featured post */
.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(255, 63, 145, 0.09), rgba(23, 34, 53, 0.7) 55%, rgba(13, 20, 33, 0.85));
  margin-bottom: 44px;
}

.post-featured__media {
  position: relative;
  min-height: 320px;
}

.post-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.post-featured__body {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.post-featured__body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0;
}

/* ==========================================================================
   17. Auth
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}

/* Login sits below a breadcrumb row, so the split starts 14px (mt-sm) + ~23px
   (breadcrumb line) + 20px (its margin-bottom) further down the page; without
   this the page would always be ~57px taller than the viewport. */
.auth--crumbed {
  min-height: calc(100vh - var(--header-h) - 57px);
}

/* The form column holds the page's only <h1>, and it is authored first in the DOM so
   the heading order reads h1 → h2 for assistive tech and search engines. `order`
   pulls the visual back to the left-hand column. */
.auth__visual {
  position: relative;
  overflow: hidden;
  order: -1;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 44px;
}

.auth__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.auth__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(13, 20, 33, 0.45), rgba(13, 20, 33, 0.94) 78%);
}

.auth__visual-body {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.auth__visual-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

.auth__visual-body p {
  font-size: 0.95rem;
  margin: 0;
}

.auth__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px var(--gutter);
}

.auth__form {
  width: 100%;
  max-width: 410px;
}

/* The global h1 clamp is sized for full-width marketing headers; inside this
   narrow column it would wrap a four-word title over three lines. */
.auth__form h1 {
  font-size: clamp(1.7rem, 2.9vw, 2.25rem);
  letter-spacing: -0.018em;
  margin-bottom: 0.4em;
}

.auth__tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 26px;
}

.auth__tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  transition: all var(--speed) var(--ease);
}

.auth__tab[aria-selected="true"] {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(255, 63, 145, 0.95);
}

/* .auth__panel[hidden] is covered by the global [hidden] rule in section 2. */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-size: 0.92rem;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.field input::placeholder {
  color: var(--muted-dim);
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 93, 168, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--pink);
  flex: none;
}

.link-quiet {
  color: var(--muted);
  font-size: 0.84rem;
}

.link-quiet:hover {
  color: var(--pink-2);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

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

.notice {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 93, 168, 0.28);
  background: rgba(255, 63, 145, 0.08);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.notice b {
  color: var(--pink-2);
}

/* ==========================================================================
   18. Prose & legal
   ========================================================================== */

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 46px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.97rem;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 4px;
  display: grid;
  gap: 10px;
}

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.prose ol {
  counter-reset: li;
  padding-left: 0;
}

.prose ol li {
  counter-increment: li;
  padding-left: 34px;
  position: relative;
}

.prose ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pink-2);
  background: rgba(255, 63, 145, 0.13);
  border: 1px solid rgba(255, 93, 168, 0.26);
}

/* Inline links in body copy. The global `a { color: inherit; text-decoration: none }`
   makes a link dropped into a paragraph indistinguishable from the words around it,
   so it needs its affordance back. Scoped to `main p >` and to the few components
   whose copy carries links — deliberately NOT a blanket `li`/`a` rule, because the
   footer, breadcrumbs, nav and legal index are all classless anchors that must keep
   their own treatment. Use .link-inline to opt in from anywhere else. */
main p > a:not([class]),
main .notice a,
main .check a,
main .legal-meta a,
.link-inline {
  color: var(--pink-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 93, 168, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease, color 0.18s ease;
}

main p > a:not([class]):hover,
main .notice a:hover,
main .check a:hover,
main .legal-meta a:hover,
.link-inline:hover {
  color: var(--pink);
  text-decoration-color: var(--pink-2);
}

.prose a {
  color: var(--pink-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 93, 168, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--pink-2);
}

.prose strong {
  color: var(--text);
}

.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 63, 145, 0.06);
  color: var(--text);
  font-size: 0.97rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Legal layout with sticky index */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 20px;
}

.legal-index h2 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 12px;
}

.legal-index ol {
  display: grid;
  gap: 3px;
  counter-reset: li;
}

.legal-index a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r-xs);
  font-size: 0.84rem;
  color: var(--muted);
  transition: all var(--speed) var(--ease);
}

.legal-index a:hover {
  background: var(--fill-2);
  color: var(--text);
}

/* Doubled up on `.prose` because this line is authored as a <p class="legal-meta">
   inside the prose column, and `.prose p` (0-1-1) would otherwise outrank
   `.legal-meta` (0-1-0) and reset it to body copy size and colour. */
.legal-meta,
.prose .legal-meta {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-dim);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

/* ==========================================================================
   19. CTA bands
   ========================================================================== */

.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 93, 168, 0.24);
  background: linear-gradient(140deg, rgba(255, 63, 145, 0.14), rgba(168, 85, 247, 0.11) 55%, rgba(13, 20, 33, 0.9));
  box-shadow: var(--shadow-lg);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 50px 48px;
}

.cta-band__glow {
  position: absolute;
  right: -140px;
  top: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 63, 145, 0.42), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.cta-band__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.cta-band__media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center 16%;
}

.cta-band__body > * {
  position: relative;
  z-index: 2;
}

.cta-band__body h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band__body p {
  font-size: 1rem;
  max-width: 46ch;
  margin-bottom: 26px;
}

.cta-band--center {
  text-align: center;
}

.cta-band--center .cta-band__inner {
  grid-template-columns: minmax(0, 1fr);
  padding: 64px 40px;
}

.cta-band--center .cta-band__body p {
  margin-inline: auto;
}

.cta-band--center .btn-row {
  justify-content: center;
}

/* ==========================================================================
   20. Footer
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 20, 33, 0.4), rgba(9, 14, 24, 0.85));
  padding-top: 62px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 46px;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 16px 0 20px;
}

.footer__col h2,
.footer__col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--speed) var(--ease);
}

.footer__col a:hover {
  color: var(--pink-2);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--muted);
  transition: all var(--speed) var(--ease);
}

.footer__social a:hover {
  color: var(--pink-2);
  border-color: rgba(255, 93, 168, 0.42);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted-dim);
}

.footer__bottom nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__bottom a:hover {
  color: var(--pink-2);
}

.footer__note {
  font-size: 0.78rem;
  color: var(--muted-dim);
  max-width: 88ch;
  padding-bottom: 26px;
  opacity: 0.86;
}

/* ==========================================================================
   21. Utilities
   ========================================================================== */

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

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

.mt-0 {
  margin-top: 0;
}
.mt-sm {
  margin-top: 14px;
}
.mt-md {
  margin-top: 26px;
}
.mt-lg {
  margin-top: 44px;
}
.mb-0 {
  margin-bottom: 0;
}

.center-x {
  margin-inline: auto;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--fill);
  font-size: 0.8rem;
  color: var(--muted);
}

.pill-note svg {
  color: var(--pink-2);
  flex: none;
}

.divider-glow {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 63, 145, 0.4), transparent);
}

/* Small "UI mock" panel used to demonstrate product surfaces */
.ui-panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(23, 34, 53, 0.86), rgba(13, 20, 33, 0.92));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ui-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
}

.ui-panel__dots {
  display: flex;
  gap: 6px;
}

.ui-panel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.ui-panel__dots span:first-child {
  background: rgba(255, 63, 145, 0.6);
}

.ui-panel__title {
  font-size: 0.8rem;
  color: var(--muted-dim);
  font-weight: 600;
  margin-left: 6px;
}

.ui-panel__body {
  padding: 22px;
}

/* Two-column "text | demo" rows used across feature pages */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 74px;
}

.feature-row--flip .feature-row__text {
  order: 2;
}

.feature-row__text h2 {
  margin-bottom: 14px;
}

/* ==========================================================================
   22. Motion & reveal
   ========================================================================== */

/* The hidden start state is scoped to `html.js`, which main.js sets on its first
   line. Without that class the content is simply visible, so a failed or blocked
   script degrades to a plain readable page instead of a blank one. Both rules are
   scoped together — an unscoped `.reveal.is-visible` (0-2-0) would lose to
   `html.js .reveal` (0-2-1) and leave every section stuck at opacity 0. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

.reveal--d1 {
  transition-delay: 0.08s;
}
.reveal--d2 {
  transition-delay: 0.16s;
}
.reveal--d3 {
  transition-delay: 0.24s;
}
.reveal--d4 {
  transition-delay: 0.32s;
}

/* ==========================================================================
   23. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root {
    --gutter: 22px;
  }

  .char-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card {
    width: 232px;
  }

  .hero-card--center {
    width: 280px;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-y: 72px;
  }

  .split,
  .split--wide-right,
  .spotlight,
  .feature-row,
  .builder {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .feature-row--flip .feature-row__text {
    order: 0;
  }

  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bento__cell--wide {
    grid-column: span 4;
  }
  .bento__cell--half,
  .bento__cell--third {
    grid-column: span 2;
  }

  .pricing-grid,
  .post-grid,
  .testimonials,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan--featured {
    transform: none;
  }

  .plan--featured:hover {
    transform: translateY(-5px);
  }

  .builder__preview {
    position: static;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .legal-index {
    position: static;
  }

  .auth {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .auth__visual {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px;
  }

  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 32px;
  }

  .cta-band__media {
    max-width: 420px;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

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

  .post-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-featured__media {
    min-height: 260px;
  }

  .post-featured__body {
    padding: 30px 28px;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 22px 0;
  }

  .timeline__label {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  /* Header collapses to drawer */
  .nav-toggle {
    display: grid;
  }

  .header__cta-compact {
    display: inline-flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 18px) 22px 32px;
    background: linear-gradient(180deg, rgba(17, 27, 43, 0.99), rgba(11, 17, 28, 0.99));
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.36s var(--ease);
    z-index: 85;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 13px 14px;
    font-size: 1rem;
    border-radius: var(--r-sm);
  }

  .header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .header__actions .btn {
    width: 100%;
    --btn-py: 14px;
  }

  .header__actions .btn--ghost {
    border: 1px solid var(--line-strong);
    background: var(--fill);
  }

  /* Hero cast becomes a swipeable row */
  .hero__cast {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 26px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }

  .hero-card,
  .hero-card--center {
    width: 216px;
    transform: none;
    scroll-snap-align: center;
    flex: none;
  }

  .hero-card--center {
    order: -1;
  }

  .hero-card--left,
  .hero-card--right {
    transform: scale(0.97);
  }

  .hero__cast:hover .hero-card--left,
  .hero__cast:hover .hero-card--right,
  .hero__cast:hover .hero-card--center {
    transform: scale(0.97);
  }

  .hero__cast:hover .hero-card--center {
    transform: none;
  }

  .char-grid,
  .char-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat__body {
    max-height: 360px;
  }
}

@media (max-width: 700px) {
  :root {
    --section-y: 60px;
    --gutter: 18px;
    --header-h: 64px;
  }

  .section__head {
    margin-bottom: 32px;
  }

  .grid--3,
  .grid--4,
  .steps,
  .testimonials,
  .post-grid,
  .pricing-grid,
  .voice-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--third {
    grid-column: span 1;
  }

  .bento__cell--tall {
    grid-row: span 1;
  }

  /* Media cell reflows to a top banner with the copy underneath */
  .bento__cell--media {
    padding: 0;
    min-height: 0;
  }

  .bento__cell--media img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 216px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .bento__cell--media > * {
    margin: 0 22px;
  }

  .bento__cell--media > *:first-child {
    margin-top: 20px;
  }

  .bento__cell--media > *:last-child {
    margin-bottom: 24px;
  }

  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder {
    padding: 20px;
  }

  .build-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .section__head--split {
    align-items: flex-start;
  }

  .btn-row {
    gap: 10px;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }

  .btn-row .btn--quiet {
    flex: 1 1 100%;
  }

  .cta-band__inner {
    padding: 34px 22px;
  }

  .cta-band--center .cta-band__inner {
    padding: 44px 22px;
  }

  .cta-band__media {
    max-width: none;
  }

  .cta-band__body p {
    max-width: none;
  }

  .testimonial,
  .accordion__trigger {
    padding-inline: 18px;
  }

  .accordion__panel p {
    padding-inline: 18px;
  }

  .msg {
    max-width: 92%;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }

  .plan--featured {
    transform: none;
  }

  .call__actions {
    gap: 9px;
  }

  .call-btn {
    min-width: 68px;
    padding: 11px 10px 9px;
  }

  .auth__form-wrap {
    padding: 36px var(--gutter);
  }

  .post-featured__body {
    padding: 26px 20px;
  }
}

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

  .char-grid--scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 20px;
    -webkit-overflow-scrolling: touch;
  }

  .char-grid--scroll .char-card {
    flex: none;
    width: 78vw;
    max-width: 300px;
    scroll-snap-align: center;
  }

  .hero__title {
    max-width: none;
  }

  .hero-card,
  .hero-card--center {
    width: 190px;
  }

  .trust-strip {
    gap: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery-ui__thumbs {
    gap: 6px;
  }

  .call__time {
    font-size: 1.3rem;
  }

  .chat__body {
    min-height: 260px;
    max-height: 320px;
    padding: 16px 12px 6px;
  }

  .chat__form,
  .chat__head {
    padding-inline: 12px;
  }

  .builder__preview img {
    aspect-ratio: 4 / 4.4;
  }
}

/* ==========================================================================
   Reduced motion — switch off decorative animation entirely
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__cast {
    scroll-snap-type: none;
  }
}

/* ==========================================================================
   Print (legal pages)
   ========================================================================== */

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .site-footer,
  .cta-band,
  .nav-scrim {
    display: none !important;
  }

  .prose p,
  .prose li {
    color: #333;
  }
}
