/* ============================================================
   Driftwink — Shared Stylesheet
   Dusk Storybook palette · Mobile-first · WCAG AA
   ============================================================ */

/* ── Custom properties ───────────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #0D0B1E;
  --surface:      #1A1535;
  --surface-el:   #241D4A;
  --accent:       #6D28D9;
  --accent-dark:  #5B21B6;
  --accent-glow:  rgba(109, 40, 217, 0.40);
  --text-primary: #F5F0FF;
  --text-sec:     #A89EC4;
  --text-ter:     #9D93BB;
  --star:         #FDE68A;
  --trust:        #34D399;

  /* Type */
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Nav height */
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--text-primary); }

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}

/* ── Focus states (WCAG AA) ──────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw + 0.3rem, 1.75rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-primary); }
.text-sec { color: var(--text-sec); }
.text-ter { color: var(--text-ter); }

/* ── Layout helpers ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background: var(--surface);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn--secondary:hover { background: var(--accent); color: #fff; }

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 11, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}
.nav__links a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta { font-size: 0.875rem; padding: 0.625rem 1.25rem; }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-primary);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 1.5rem var(--space-sm);
  z-index: 99;
}
.nav__mobile.is-open { display: block; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav__mobile a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 0.25rem 0;
}
.nav__mobile a:hover { color: var(--text-primary); }
.nav__mobile .btn { width: 100%; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
  .nav__links { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--space-lg));
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Full-bleed background SVG layers (hero + final CTA).
   Replaces inline style="position:absolute;inset:0" so the CSP
   can forbid 'unsafe-inline' styles. */
.hero__bg > svg,
.final-cta__bg > svg {
  position: absolute;
  inset: 0;
}

/* Radial glow behind the moon */
.hero__bg::after {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, 0);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__text { max-width: 580px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero__h1 {
  margin-bottom: var(--space-sm);
}
.hero__h1 .line1 {
  display: block;
  font-weight: 400;
  color: var(--text-primary);
}
.hero__h1 .line2 {
  display: block;
  color: var(--accent);
  font-weight: 700;
}

.hero__subhead {
  color: var(--text-sec);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.hero__reassurance {
  color: var(--text-ter);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-sec);
  font-size: 0.875rem;
}
.hero__social-proof svg { color: var(--star); flex-shrink: 0; }

/* ── Hero illustration ───────────────────────────────────────── */
.hero__illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__illustration svg {
  width: 100%;
  max-width: 440px;
}

@media (min-width: 860px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Stars (CSS animation) ───────────────────────────────────── */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: var(--star);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: var(--op, 0.7); transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: var(--op, 0.5); }
}

/* ── Feature sections ────────────────────────────────────────── */
.feature {
  padding-block: var(--space-xl);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.feature__text h2 { margin-bottom: var(--space-sm); }
.feature__text p  { color: var(--text-sec); margin-bottom: var(--space-sm); }
.feature__text p:last-child { margin-bottom: 0; }

.feature__visual {
  display: flex;
  justify-content: center;
}
.feature__visual svg {
  width: 100%;
  max-width: 380px;
}

@media (min-width: 768px) {
  .feature__grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature__grid--reverse .feature__visual { order: -1; }
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing {
  padding-block: var(--space-xl);
}

.pricing__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.pricing__header h2 { margin-bottom: 0.5rem; }
.pricing__pretitle {
  color: var(--text-sec);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pricing__subtitle {
  margin-top: 0.5rem;
  max-width: 480px;
  margin-inline: auto;
}

.pricing__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pricing__cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .pricing__cards { grid-template-columns: 1fr 1.08fr 1fr; align-items: start; }
}

.pricing-card {
  background: var(--surface-el);
  border: 1.5px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: rgba(139, 92, 246, 0.4); }

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.2);
  padding-top: calc(var(--space-md) + 0.5rem);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sec);
}
.pricing-card__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-sec);
}
.pricing-card__save {
  font-size: 0.8125rem;
  color: var(--trust);
  font-weight: 600;
}
.pricing-card__gift-note {
  font-size: 0.8125rem;
  color: var(--text-sec);
  font-style: italic;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-sec);
}
.pricing-card__features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  background: var(--trust);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 3.5L6 11 2.5 7.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 3.5L6 11 2.5 7.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing__footnote {
  text-align: center;
  color: var(--text-ter);
  font-size: 0.875rem;
  margin-top: var(--space-md);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { padding-block: var(--space-xl); }

.faq__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.faq__header h2 { margin-bottom: 0.5rem; }

.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  border: 1.5px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--accent); }
.faq__question[aria-expanded="true"] { color: var(--accent); }

.faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-sec);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq__answer.is-open { display: block; }
.faq__answer a { color: var(--accent); }

.faq__footer {
  text-align: center;
  margin-top: var(--space-md);
}
.faq__footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.faq__footer a:hover { text-decoration: underline; }

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding-block: var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.final-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--text-sec);
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
}

/* ── Waitlist Form ───────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin-inline: auto;
}

.waitlist-form__row {
  display: flex;
  gap: 0.5rem;
}
.waitlist-form__row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  background: var(--surface-el);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.waitlist-form__row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.waitlist-form__row input[type="email"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.waitlist-form__row input::placeholder { color: var(--text-ter); }

/* Honeypot */
.waitlist-form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.waitlist-form__consent {
  color: var(--text-ter);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.waitlist-form__consent a { color: var(--text-sec); }

.waitlist-form__status {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.waitlist-form__status.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--trust);
}
.waitlist-form__status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

@media (max-width: 400px) {
  .waitlist-form__row { flex-direction: column; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
}
.footer__links a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-primary); }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-ter);
  font-style: italic;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-ter);
}

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.page-hero p {
  color: var(--text-sec);
  max-width: 520px;
  margin-inline: auto;
  margin-top: 0.75rem;
}

/* ── Prose (legal pages) ─────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-xl);
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-sec);
}
.prose p { color: var(--text-sec); margin-bottom: 1rem; }
.prose ul, .prose ol {
  color: var(--text-sec);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text-primary); }

.prose__summary {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}
.prose__summary p { color: var(--trust); font-weight: 600; margin: 0; }

/* Violet variant — used for the Terms "what this means for you" box. */
.prose__summary--violet {
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.3);
}
.prose__summary--violet p { color: var(--text-primary); }

.prose__meta {
  color: var(--text-ter);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

/* ── Support page ────────────────────────────────────────────── */
.support-sections {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--space-xl);
}
.support-sections h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.support-sections h2:first-child { margin-top: 0; }

.support-faq { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: var(--space-md); }

.support-qa {
  background: var(--surface);
  border: 1.5px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.support-qa__q {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.support-qa__a {
  color: var(--text-sec);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.support-qa__a a { color: var(--accent); }
.support-qa__a ol, .support-qa__a ul { padding-left: 1.25rem; margin-top: 0.4rem; }
.support-qa__a li { margin-bottom: 0.25rem; }

.support-contact-card {
  background: var(--surface-el);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}
.support-contact-card h3 { margin: 0; font-size: 1.1rem; }
.support-contact-card p { color: var(--text-sec); font-size: 0.9375rem; margin: 0; }
.support-contact-card a.email-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.support-contact-card a.email-link:hover { text-decoration: underline; }

.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.sla-table th, .sla-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  color: var(--text-sec);
}
.sla-table th { color: var(--text-primary); font-weight: 600; }
.sla-table tr:last-child td { border-bottom: none; }

.bug-list {
  list-style: decimal;
  padding-left: 1.5rem;
  color: var(--text-sec);
  font-size: 0.9375rem;
}
.bug-list li { margin-bottom: 0.5rem; }

/* ── Trust badges ────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sec);
}
.trust-badge svg { color: var(--trust); }

/* ── Scroll fade-in ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── 404 ─────────────────────────────────────────────────────── */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}
.not-found__moon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.not-found h1 { margin-bottom: 1rem; }
.not-found p { color: var(--text-sec); margin-bottom: var(--space-md); }
.not-found__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Utility ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ── Sample story (web-lite lead magnet) ─────────────────────── */
.sample {
  padding-block: var(--space-2xl);
  background: var(--surface);
}
.sample__header {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.sample__pretitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--star);
  margin-bottom: 0.5rem;
}
.sample__subtitle { margin-top: var(--space-sm); }

.sample__panel {
  max-width: 760px;
  margin: 0 auto;
}

.sample__form {
  display: grid;
  gap: var(--space-md);
  background: var(--surface-el);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.sample__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sample__field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.sample__field input,
.sample__field select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg);
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
}
.sample__field select { cursor: pointer; }
.sample__field input:focus,
.sample__field select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.sample__field input::placeholder { color: var(--text-ter); }
.sample__actions { margin-top: 0.25rem; }
.sample__actions .btn { width: 100%; }
.sample__privacy {
  font-size: 0.8125rem;
  color: var(--text-sec);
  margin: 0;
  text-align: center;
}

.sample__stage {
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* The themed gradient is applied by app.js so it can change with the
     selected world; this is the calm default for no-JS / fallback. */
  background: linear-gradient(160deg, #0D1A12 0%, #1F3A2A 55%, #4F6E4A 100%);
}
.sample__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.sample__title:focus { outline: none; }
.sample__body { margin-bottom: var(--space-md); }
.sample__para {
  color: #F8F5FF;
  line-height: 1.8;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.sample__para:last-child { margin-bottom: 0; }
.sample__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: var(--space-sm);
}
.sample__controls .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.sample__controls .btn--secondary:hover {
  background: #fff;
  color: var(--bg);
}
.sample__nudge {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: #E7DEFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .sample__form { padding: var(--space-xl); }
  .sample__actions .btn { width: auto; }
}

/* Respect reduced-motion: the story still appears, just without fanfare. */
@media (prefers-reduced-motion: reduce) {
  .sample__stage { transition: none; }
}

/* ── More from the studio (cross-promotion) ──────────────────── */
.studio { padding-block: var(--space-2xl); }
.studio__header {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.studio__pretitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--star);
  margin-bottom: 0.5rem;
}
.studio__subtitle { margin-top: var(--space-sm); }

.studio__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-card {
  background: var(--surface-el);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-md);
  transition: transform 0.15s, border-color 0.2s;
}
.studio-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.studio-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
}
.studio-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.studio-card__desc {
  font-size: 0.9375rem;
  color: var(--text-sec);
  line-height: 1.55;
  flex: 1 0 auto;
}
.studio-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
}
.studio-card:hover .studio-card__cta { color: var(--text-primary); }
.studio-card__badge {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--star);
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.studio-card--current {
  border-style: dashed;
  border-color: rgba(253, 230, 138, 0.4);
}
.studio-card--current:hover { transform: none; }

@media (min-width: 600px) {
  .studio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .studio__grid { grid-template-columns: repeat(3, 1fr); }
}
