/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}
.nav__logo span {
  color: var(--color-accent-500);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-default);
}
.nav__link:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ── Mobile Menu Toggle ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nav__toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-default),
              opacity var(--duration-normal) var(--ease-default);
}

.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
}

/* Primary */
.btn--primary {
  background: var(--color-accent-500);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover {
  background: var(--color-accent-600);
  box-shadow: var(--shadow-sm);
}

/* Secondary / Outline */
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn--ghost:hover {
  background: var(--color-bg-muted);
  color: var(--color-text);
}

/* Size Variants */
.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

/* Disabled */
.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

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

.card__header .card__icon {
  margin-bottom: 0;
}

.card__header .card__title {
  margin-bottom: 0;
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-50);
  color: var(--color-accent-500);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Card Size Variants */
.card--sm {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}
.card--sm .card__icon {
  width: 2rem;
  height: 2rem;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}
.card--sm .card__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.card--sm .card__text {
  font-size: var(--text-xs);
}

.card--lg {
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
}
.card--lg .card__icon {
  width: 3rem;
  height: 3rem;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.card--lg .card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.card--lg .card__text {
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════
   BADGES
   ═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
}

.badge--accent {
  background: var(--color-accent-50);
  color: var(--color-accent-600);
}

.badge--success {
  background: var(--color-success-50);
  color: #15803d;
}

.badge--warning {
  background: var(--color-warning-50);
  color: #b45309;
}

.badge--error {
  background: var(--color-error-50);
  color: #dc2626;
}

/* ═══════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════ */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}
.input::placeholder {
  color: var(--color-text-muted);
}
.input:focus {
  outline: none;
  border-color: var(--color-accent-400);
  box-shadow: 0 0 0 3px var(--color-accent-100);
}

.input--error {
  border-color: var(--color-error-500);
}
.input--error:focus {
  box-shadow: 0 0 0 3px var(--color-error-50);
}

/* Input Size Variants */
.input--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.input--lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    var(--color-accent-50) 0%,
    var(--color-bg) 70%
  );
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

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

.hero__badge {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: var(--leading-none);
  margin-bottom: var(--space-6);
}
.hero__title span {
  color: var(--color-accent-500);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 32rem;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Social proof */
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__avatars {
  display: flex;
  align-items: center;
}

.hero__avatar {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
  object-fit: cover;
}

.hero__avatar + .hero__avatar {
  margin-left: -0.5rem;
}

.hero__social-proof-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.hero__social-proof-text strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

/* Visual column */
.hero__visual {
  flex-shrink: 0;
  width: 42%;
  max-width: 26rem;
}

/* ═══════════════════════════════════════
   RESUME MOCKUP (CSS-only hero visual)
   ═══════════════════════════════════════ */
.resume-mockup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  -ms-transform: rotate(3deg);
  -webkit-transform: rotate(3deg);
  transform: rotate(3deg);
}

.resume-mockup__chrome {
  background: var(--color-neutral-100);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.resume-mockup__dot {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-full);
}

.resume-mockup__dot--red    { background: #f87171; }
.resume-mockup__dot--yellow { background: #fbbf24; }
.resume-mockup__dot--green  { background: #4ade80; }

.resume-mockup__doc {
  padding: var(--space-5);
  background: var(--color-neutral-0);
  position: relative;
}

.resume-mockup__header {
  margin-bottom: var(--space-4);
}

.resume-mockup__name-bar {
  height: 1rem;
  width: 65%;
  background: var(--color-neutral-800);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.resume-mockup__title-bar {
  height: 0.5rem;
  width: 45%;
  background: var(--color-neutral-400);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.resume-mockup__contact-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.resume-mockup__contact-chip {
  height: 0.375rem;
  width: 3.5rem;
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}

.resume-mockup__contact-chip--short { width: 2.5rem; }
.resume-mockup__contact-chip--mid   { width: 4rem; }

.resume-mockup__divider {
  height: 1px;
  background: var(--color-neutral-200);
  margin-bottom: var(--space-3);
}

.resume-mockup__section {
  margin-bottom: var(--space-4);
}

.resume-mockup__section-label {
  height: 0.5rem;
  width: 5rem;
  background: var(--color-accent-400);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.resume-mockup__entry {
  margin-bottom: var(--space-3);
}

.resume-mockup__entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
}

.resume-mockup__entry-title {
  height: 0.5rem;
  width: 50%;
  background: var(--color-neutral-700);
  border-radius: var(--radius-sm);
}

.resume-mockup__entry-title--long { width: 65%; }

.resume-mockup__entry-date {
  height: 0.375rem;
  width: 3.5rem;
  background: var(--color-neutral-300);
  border-radius: var(--radius-sm);
}

.resume-mockup__entry-company {
  height: 0.375rem;
  width: 35%;
  background: var(--color-neutral-400);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.resume-mockup__entry-company--short { width: 28%; }

.resume-mockup__bullet-line {
  height: 0.375rem;
  width: 90%;
  background: var(--color-neutral-200);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-1);
  position: relative;
  margin-left: var(--space-4);
}

.resume-mockup__bullet-line::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3));
  top: 50%;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 0.25rem;
  height: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--color-neutral-400);
}

.resume-mockup__bullet-line--short { width: 55%; }
.resume-mockup__bullet-line--mid   { width: 72%; }

.resume-mockup__skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.resume-mockup__skill-tag {
  height: 1.25rem;
  width: 3rem;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
}

.resume-mockup__skill-tag--wide { width: 4rem; }

.resume-mockup__skill-tag--accent {
  width: 3.5rem;
  background: var(--color-accent-50);
  border-color: var(--color-accent-200);
}

.resume-mockup__ai-tag {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: var(--color-accent-500);
  color: var(--color-neutral-0);
  font-size: 0.65rem;
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   HERO ENTRANCE ANIMATIONS
   ═══════════════════════════════════════ */
@-webkit-keyframes heroFadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(1.5rem);
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-webkit-keyframes heroFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(2rem) rotate(3deg);
    transform: translateY(2rem) rotate(3deg);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) rotate(3deg);
    transform: translateY(0) rotate(3deg);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
  }
}

.hero__badge {
  -webkit-animation: heroFadeUp 0.5s var(--ease-out) 0.05s both;
  animation: heroFadeUp 0.5s var(--ease-out) 0.05s both;
}

.hero__title {
  -webkit-animation: heroFadeUp 0.55s var(--ease-out) 0.15s both;
  animation: heroFadeUp 0.55s var(--ease-out) 0.15s both;
}

.hero__subtitle {
  -webkit-animation: heroFadeUp 0.55s var(--ease-out) 0.25s both;
  animation: heroFadeUp 0.55s var(--ease-out) 0.25s both;
}

.hero__actions {
  -webkit-animation: heroFadeUp 0.55s var(--ease-out) 0.35s both;
  animation: heroFadeUp 0.55s var(--ease-out) 0.35s both;
}

.hero__social-proof {
  -webkit-animation: heroFadeUp 0.55s var(--ease-out) 0.45s both;
  animation: heroFadeUp 0.55s var(--ease-out) 0.45s both;
}

.hero__visual {
  -webkit-animation: heroFadeIn 0.7s var(--ease-out) 0.2s both;
  animation: heroFadeIn 0.7s var(--ease-out) 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__social-proof,
  .hero__visual {
    -webkit-animation: none;
    animation: none;
    opacity: 1;
  }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero {
    padding-block: var(--space-16);
  }

  .hero__inner {
    flex-direction: column;
    gap: var(--space-10);
  }

  .hero__content {
    text-align: center;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__social-proof {
    justify-content: center;
    flex-direction: column;
  }

  .hero__visual {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    -webkit-animation-name: heroFadeUp;
    animation-name: heroFadeUp;
  }

  .resume-mockup {
    -ms-transform: none;
    -webkit-transform: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════
   SECTION HEADER (reusable)
   ═══════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-header__overline {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta {
  background: var(--color-neutral-900);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: var(--color-text-inverse);
}
.cta h2 {
  color: var(--color-text-inverse);
}
.cta p {
  color: var(--color-neutral-400);
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how-it-works__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.how-it-works__number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-500);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.how-it-works__step .card__title {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════
   WAITLIST FORM
   ═══════════════════════════════════════ */
.waitlist-form__fields {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.waitlist-form__input {
  max-width: 20rem;
  color: var(--color-text);
}

.waitlist-form__privacy {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.waitlist-form__success p {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-inverse);
  margin-top: var(--space-4);
}

.waitlist-form__error p {
  font-size: var(--text-sm);
  color: var(--color-error-400);
  margin-top: var(--space-4);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

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

/* ═══════════════════════════════════════
   DROPDOWN
   ═══════════════════════════════════════ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--space-2);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 12rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1) 0;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default),
              visibility var(--duration-fast) var(--ease-default);
}

.dropdown--open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default);
}

.dropdown__item:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
}

.dropdown__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE (768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Mobile Nav ── */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgb(255 255 255 / 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--duration-slow) var(--ease-default),
                opacity var(--duration-normal) var(--ease-default),
                visibility var(--duration-normal) var(--ease-default);
  }

  .nav--open .nav__links {
    max-height: 20rem;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav__links .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--space-3);
    min-height: 2.75rem;
  }

  /* ── Section Headers ── */
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header__text {
    font-size: var(--text-base);
  }

  /* ── CTA / Waitlist ── */
  .cta {
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .cta h2 {
    font-size: var(--text-2xl);
  }

  .waitlist-form__input {
    max-width: 100%;
  }

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

  .waitlist-form__fields .btn {
    width: 100%;
    min-height: 2.75rem;
  }

  /* ── Footer ── */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__links {
    gap: var(--space-4);
  }

  /* ── Cards ── */
  .card {
    padding: var(--space-6);
  }

  .card--sm {
    padding: var(--space-3);
  }

  /* ── Touch Targets ── */
  .btn--sm {
    min-height: 2.75rem;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════
   SMALL PHONES (480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }
}

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 0.5);
  -webkit-animation: modalOverlayIn var(--duration-normal) var(--ease-out) both;
  animation: modalOverlayIn var(--duration-normal) var(--ease-out) both;
}

.modal--closing .modal__overlay {
  -webkit-animation: modalOverlayOut var(--duration-fast) var(--ease-in) both;
  animation: modalOverlayOut var(--duration-fast) var(--ease-in) both;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  -webkit-animation: modalSlideIn var(--duration-slow) var(--ease-out) both;
  animation: modalSlideIn var(--duration-slow) var(--ease-out) both;
}

.modal--closing .modal__dialog {
  -webkit-animation: modalSlideOut var(--duration-fast) var(--ease-in) both;
  animation: modalSlideOut var(--duration-fast) var(--ease-in) both;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) 0;
}

.modal__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.modal__close:hover {
  background: var(--color-bg-muted);
  color: var(--color-text);
}

/* --- Progress Bar --- */
.modal__progress {
  height: 4px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  margin: var(--space-4) var(--space-6) 0;
  overflow: hidden;
}

.modal__progress-bar {
  height: 100%;
  background: var(--color-accent-500);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-default);
}

.modal__step-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-6) 0;
}

/* --- Body --- */
.modal__body {
  padding: var(--space-6);
  min-height: 12rem;
}

/* --- Footer --- */
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6) var(--space-6);
  gap: var(--space-3);
}

.modal__footer .btn--primary {
  margin-left: auto;
}

/* --- Animations --- */
@-webkit-keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@-webkit-keyframes modalOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes modalOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@-webkit-keyframes modalSlideIn {
  from { opacity: 0; -webkit-transform: translateY(1rem) scale(0.98); transform: translateY(1rem) scale(0.98); }
  to   { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(1rem) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@-webkit-keyframes modalSlideOut {
  from { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
  to   { opacity: 0; -webkit-transform: translateY(0.5rem) scale(0.98); transform: translateY(0.5rem) scale(0.98); }
}
@keyframes modalSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(0.5rem) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .modal__overlay,
  .modal__dialog,
  .modal--closing .modal__overlay,
  .modal--closing .modal__dialog {
    -webkit-animation: none;
    animation: none;
  }
  .modal__progress-bar {
    transition: none;
  }
}

/* ═══════════════════════════════════════
   SURVEY STEPS
   ═══════════════════════════════════════ */

.survey-step {
  border: none;
  padding: 0;
  margin: 0;
}

.survey-step[hidden] {
  display: none;
}

.survey-step__question {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}

.survey-step__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* --- Radio Option (pill-style) --- */
.survey-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default),
              background var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.survey-option:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-subtle);
}

.survey-option__input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent-500);
  flex-shrink: 0;
  cursor: pointer;
}

.survey-option__label {
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
}

/* Selected state (:has fallback via JS class) */
.survey-option:has(:checked),
.survey-option--selected {
  border-color: var(--color-accent-400);
  background: var(--color-accent-50);
  box-shadow: 0 0 0 1px var(--color-accent-400);
}

/* --- Scale (1-10 number row) --- */
.survey-step__scale {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.survey-scale__item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.survey-scale__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.survey-scale__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
}

.survey-scale__label:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-subtle);
}

.survey-scale__input:checked + .survey-scale__label {
  background: var(--color-accent-500);
  color: var(--color-text-inverse);
  border-color: var(--color-accent-500);
  box-shadow: var(--shadow-sm);
}

.survey-scale__input:focus-visible + .survey-scale__label {
  outline: 2px solid var(--color-accent-400);
  outline-offset: 2px;
}

.survey-step__scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Text / Textarea --- */
.survey-step__input-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.survey-step__textarea {
  resize: vertical;
  min-height: 6rem;
}

.survey-step__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Validation error --- */
.survey-step__error {
  font-size: var(--text-xs);
  color: var(--color-error-500);
  margin-top: var(--space-2);
}

.survey-step__error[hidden] {
  display: none;
}

/* --- Inline success --- */
.waitlist-form__success {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-inverse);
}

/* ═══════════════════════════════════════
   MODAL — MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal__dialog {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }

  .survey-scale__label {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--text-xs);
  }

  .survey-step__scale {
    gap: var(--space-1);
  }
}

@media (max-width: 480px) {
  .survey-scale__label {
    width: 2.25rem;
    height: 2.25rem;
  }
}
