/* =============================================
   ART DIRECTION — "Atmospheric Kinetic"
   Dark, premium, technically polished. Cyan stays
   the single action color (CTAs, links); a warm
   coral secondary accent lives only in the ambient
   glow/atmosphere layer, never in interactive UI.
   Hairline-divided editorial lists instead of card
   grids wherever content isn't genuinely tabular.
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
============================================= */

:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4.4vw,  5rem);
  --text-hero: clamp(2.9rem,   0.4rem  + 7.5vw,  7.5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1440px;
  --content-xl: 1600px;
}

[data-theme="dark"] {
  --color-bg:              #0a0a0b;
  --color-surface:         #121214;
  --color-surface-2:       #17171a;
  --color-surface-offset:  #1d1d21;
  --color-divider:         #26262b;
  --color-border:          #323238;

  --color-text:            #e8e8ea;
  --color-text-muted:      #8a8a96;
  --color-text-faint:      #4a4a54;
  --color-text-inverse:    #0d0d0e;

  --color-primary:         #5ce1e6;
  --color-primary-hover:   #7eeaee;
  --color-primary-active:  #3dc8cd;
  --color-primary-dim:     rgba(92,225,230,0.08);
  --color-primary-border:  rgba(92,225,230,0.22);

  --color-accent-2:        #ff9463;
  --color-accent-2-dim:    rgba(255,148,99,0.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px rgba(92,225,230,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
::selection { background: rgba(92,225,230,0.2); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

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

/* ── GRAIN OVERLAY ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── AMBIENT GLOW FIELD (used locally inside hero / stat-strip / cta) ── */
.glow-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  will-change: transform, translate;
  translate: 0 var(--scrollShift, 0px);
}
.glow-orb--cyan { background: var(--color-primary); }
.glow-orb--coral { background: var(--color-accent-2); opacity: 0.28; }
.glow-orb--dim { opacity: 0.13; }
@keyframes orbDrift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4%, 6%); } }
@keyframes orbDrift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5%, -4%); } }
.glow-orb--a { animation: orbDrift1 22s ease-in-out infinite; }
.glow-orb--b { animation: orbDrift2 26s ease-in-out infinite; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.3s;
}
.skip-link:focus { top: var(--space-4); }

/* ── LAYOUT ── */
.container { max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-12)); }
.container--narrow { max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-12)); }
.container--xl { max-width: var(--content-xl); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-12)); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); position: relative; }
.section-tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); position: relative; }
.section > .container, .section > .container--narrow, .section > .container--xl { position: relative; z-index: 1; }

.hairline { height: 1px; background: var(--color-divider); border: none; }

/* ── SECTION HEADERS ── */
.kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  line-height: 1.7;
  margin-top: var(--space-5);
}
.section-head { max-width: var(--content-default); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-body { margin-inline: auto; }

/* ── KINETIC TYPE: clip-reveal ──
   clip-path lives on an inner span, never on the observed
   .reveal-clip element itself: an element's own clip-path
   makes IntersectionObserver compute a permanent 0% ratio
   for it in Chrome, since it factors clip-path into the
   element's effective visible geometry. Observing an
   unclipped outer element and clipping an inner child
   avoids that deadlock. */
.reveal-clip .clip-inner {
  display: block;
  text-wrap: balance;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}
/* Negative insets push the "revealed" clip rectangle past the box
   edge on every side, so a descender's ink (which can extend past
   the calculated line box at tight line-heights) never gets
   hard-clipped right at the boundary. */
.reveal-clip.visible .clip-inner { clip-path: inset(-0.15em -0.1em -0.3em -0.1em); }

/* ── MARQUEE ── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-5);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  animation-play-state: paused;
}
.fonts-ready .marquee__track { animation-play-state: running; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-right: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-faint);
  white-space: nowrap;
}
.marquee__item span.dot { color: var(--color-accent-2); font-size: 0.7em; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-play-state: paused !important; }
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 84px;
  display: flex; align-items: center;
  transition: background var(--transition-interactive), backdrop-filter var(--transition-interactive), border-color var(--transition-interactive);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-divider);
}
.nav-inner {
  width: 100%; max-width: var(--content-wide); margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-links-wrap { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.nav-cta:hover { background: var(--color-primary-hover); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px; padding: var(--space-2); cursor: pointer;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  transition: all var(--transition-interactive);
}
@media (max-width: 860px) {
  .nav-links-wrap { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links-wrap.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 84px; left: 0; right: 0;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-6);
    gap: var(--space-6);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: var(--space-1); width: 100%; }
  .nav-links a { font-size: 17px; padding: var(--space-3) 0; min-height: 44px; display: flex; align-items: center; width: 100%; }
  .nav-cta { width: 100%; min-height: 50px; font-size: 16px; }
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: 84px;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  position: relative; overflow: hidden;
  --spot-x: 50%; --spot-y: 35%;
}
.hero-spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(560px circle at var(--spot-x) var(--spot-y), rgba(92,225,230,0.10), transparent 70%);
}
.hero > #hero-content, .hero > .hero-scroll-hint { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.4rem 1rem;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.hero-title .accent { color: var(--color-primary); text-shadow: 0 0 48px rgba(92,225,230,0.35); }
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive), box-shadow var(--transition-interactive), transform 0.2s var(--ease);
}
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: 0 8px 28px rgba(92,225,230,0.3); }
.btn-primary svg { transition: transform var(--transition-interactive); }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.9rem 2rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all var(--transition-interactive);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hero-scroll-hint {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── CREDIBILITY / STAT STRIP ── */
.stat-strip { background: var(--color-surface); border-block: 1px solid var(--color-divider); overflow: hidden; }
.stat-strip-statement {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 46ch;
  line-height: 1.6;
  margin-bottom: var(--space-12);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.stat-card {
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-divider);
}
.stat-big {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 32px rgba(92,225,230,0.25);
}
.stat-desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); line-height: 1.5; max-width: 32ch; }
.stat-bar { height: 2px; background: var(--color-divider); margin-top: var(--space-5); overflow: hidden; }
.stat-bar-fill {
  height: 100%;
  background: var(--color-text-muted);
  width: 0;
  transition: width 1.6s var(--ease);
}
.stat-bar-fill.animated { background: var(--color-primary); }

/* ── MORPH TRANSITION BAND (Problem -> How we help) ── */
.morph-band { background: var(--color-bg); border-bottom: 1px solid var(--color-divider); text-align: center; padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
.morph-stack { position: relative; max-width: 46ch; margin-inline: auto; min-height: 3.6em; }
.morph-line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.morph-line--before { color: var(--color-text-faint); opacity: 1; transform: translateY(0); }
.morph-line--after { color: var(--color-text); opacity: 0; transform: translateY(14px); transition-delay: 0.15s; }
.morph-band.in-view .morph-line--before { opacity: 0; transform: translateY(-14px); }
.morph-band.in-view .morph-line--after { opacity: 1; transform: translateY(0); }
.morph-line--after .accent { color: var(--color-primary); }

/* ── EDITORIAL LIST (problem / how-we-help) ── */
.editorial-list { margin-top: var(--space-12); }
.editorial-list--flush { margin-top: 0; }
.editorial-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  transition: background var(--transition-interactive);
}
.editorial-item:last-child { border-bottom: 1px solid var(--color-divider); }
.editorial-item__index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-faint);
  line-height: 1;
  transition: color var(--transition-interactive);
}
.editorial-item:hover .editorial-item__index { color: var(--color-primary); }
.editorial-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.editorial-item__body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.65; max-width: 56ch; }

/* ── PROBLEM ── */
.problem-section { background: var(--color-bg); }

/* ── HOW WE HELP (services) — sticky-intro split layout ── */
.split-layout {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
@media (min-width: 861px) {
  .split-layout { grid-template-columns: 0.85fr 1fr; }
  .split-layout__intro { position: sticky; top: calc(84px + var(--space-10)); }
}
.help-lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; line-height: 1.7; margin-top: var(--space-5); }

/* ── PROCESS ── */
.how-bg { background: var(--color-surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-14);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 0.9rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--color-divider);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
  background: var(--color-surface);
  display: inline-block;
  padding-right: var(--space-3);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  line-height: 1.3;
}
.step p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ── ABOUT ── */
.about-section { background: var(--color-bg); }
.about-content { max-width: var(--content-default); }
.about-text {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.75;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-primary);
}
.about-text + .about-text { margin-top: var(--space-5); }

/* ── TRUST STRIP ── */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-14);
}
.trust-point {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: border-color var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.trust-point:hover {
  border-color: var(--color-primary-border);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,225,230,0.12);
}
.trust-point svg { width: 14px; height: 14px; color: var(--color-primary); flex-shrink: 0; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-14);
  align-items: stretch;
  max-width: 1200px;
  margin-inline: auto;
}
.pricing-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-interactive), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--color-border); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
/* Hover sheen sweep */
.pricing-card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-15deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.pricing-card:hover::after { left: 130%; }
.pricing-card.featured {
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 1px var(--color-primary-border), 0 20px 60px rgba(92,225,230,0.08);
  animation: featuredGlow 4s ease-in-out infinite;
}
.pricing-card.featured:hover { box-shadow: 0 0 0 1px var(--color-primary-border), 0 20px 50px rgba(92,225,230,0.18); }
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--color-primary-border), 0 20px 60px rgba(92,225,230,0.08); }
  50% { box-shadow: 0 0 0 1px var(--color-primary-border), 0 20px 60px rgba(92,225,230,0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-card.featured { animation: none; }
}
.pricing-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.pricing-card.featured .pricing-badge { color: var(--color-primary); }
.pricing-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.pricing-desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); line-height: 1.5; }
.pricing-price { display: flex; align-items: baseline; gap: var(--space-1); margin-bottom: var(--space-6); }
.pricing-price .amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.pricing-price .period { font-size: var(--text-sm); color: var(--color-text-muted); }
.pricing-features { list-style: none; margin-bottom: var(--space-8); flex-grow: 1; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.pricing-features li:first-child { border-top: none; }
.pricing-features li svg { width: 15px; height: 15px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.pricing-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.pricing-cta { width: 100%; justify-content: center; margin-top: auto; }
.pricing-footer-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-10);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list { margin-top: var(--space-12); max-width: var(--content-default); }
.faq-item { border-top: 1px solid var(--color-divider); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); color: var(--color-primary); }
.faq-answer { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; padding-bottom: var(--space-6); max-width: 62ch; }

/* ── CTA / FORM SECTION ── */
.cta-section { background: var(--color-surface); border-top: 1px solid var(--color-divider); text-align: center; overflow: hidden; }
.cta-body { margin-bottom: var(--space-6); max-width: 100%; }
.cta-reassurance {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  font-weight: 500;
}
.cta-reassurance .dot { color: var(--color-primary); margin-inline: var(--space-2); }
.results-panel { max-width: 600px; margin-inline: auto; }

/* ── FORM STYLES ── */
.form-input {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive);
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: var(--color-primary); }
.form-input::placeholder { color: var(--color-text-faint); }
.form-input--error { border-color: #e5726c; }
.form-input--error:focus { border-color: #e5726c; }
.form-input-wrapper { position: relative; }
.form-input-prefix {
  position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); font-size: var(--text-base); pointer-events: none;
}
.form-input--with-prefix { padding-left: 2.75rem; }
.form-input--resize-vertical { resize: vertical; min-height: 100px; }
.form-label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--color-text); margin-bottom: var(--space-2); text-align: left; }
.form-group { margin-bottom: var(--space-4); text-align: left; }
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); }
.form-error { font-size: var(--text-xs); color: #e5726c; margin-top: var(--space-2); font-weight: 500; }

/* ── RESULTS PANEL ── */
.results-card {
  background: var(--color-bg);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  animation: fadeInUp 0.5s var(--ease);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.results-label { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4); }
.results-headline { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.results-amount { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 800; color: var(--color-text); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.results-period { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.results-divider { height: 1px; background: var(--color-divider); margin: var(--space-8) 0; }
.results-disclaimer { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-6); }
.results-next-step { font-size: var(--text-base); color: var(--color-text); font-weight: 500; line-height: 1.6; }
.results-next-step-box {
  background: var(--color-surface-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}
.results-next-step-box strong { color: var(--color-primary); font-size: var(--text-base); }

/* ── BOOKING SECTION ── */
.booking-section { padding-block: var(--space-16); background: var(--color-bg); border-top: 1px solid var(--color-divider); }
.booking-container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-12)); text-align: center; }
.booking-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4); }
.booking-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--space-4); color: var(--color-text); }
.booking-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-10); line-height: 1.7; }
.booking-embed-wrapper { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-2); }
.booking-scroll-wrapper {
  border-radius: var(--radius-lg);
  max-height: 900px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.booking-scroll-wrapper::-webkit-scrollbar { width: 6px; }
.booking-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.booking-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.booking-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
.booking-frame { display: block; margin-inline: auto; width: 100%; max-width: 100%; height: 900px; border: 0; border-radius: var(--radius-lg); }

/* ── LEGAL / UTILITY PAGES ── */
.legal-page { padding-top: 84px; background: var(--color-bg); }
.legal-wrap { max-width: var(--content-default); margin-inline: auto; padding: clamp(var(--space-8), 6vw, var(--space-16)) clamp(var(--space-4), 4vw, var(--space-12)) var(--space-24); }
.legal-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-12)); }
.legal-meta {
  display: inline-block; margin-bottom: var(--space-5);
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-primary-border);
  background: var(--color-primary-dim);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.legal-card h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: var(--space-4); }
.legal-card .legal-intro { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-2); line-height: 1.6; }
.legal-card .legal-updated { color: var(--color-text-faint); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.legal-card h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin-top: var(--space-10); margin-bottom: var(--space-3); color: var(--color-text); }
.legal-card h3 { font-size: var(--text-base); font-weight: 700; margin-top: var(--space-6); margin-bottom: var(--space-2); color: var(--color-text); }
.legal-card p { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.75; margin-bottom: var(--space-4); }
.legal-card ul, .legal-card ol { padding-left: 1.25rem; margin-bottom: var(--space-4); }
.legal-card li { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-2); }
.legal-card a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-card a:hover { color: var(--color-primary-hover); }
.legal-card strong { color: var(--color-text); font-weight: 600; }
.legal-footer-note { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); color: var(--color-text-faint); font-size: var(--text-sm); }
@media (max-width: 640px) { .legal-card { padding: var(--space-6); } }

/* ── 404 ── */
.error-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(var(--space-8), 6vw, var(--space-16)) var(--space-4); position: relative; overflow: hidden; }
.error-code { display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4); }
.error-page h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--space-5); }
.error-page p { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 46ch; margin-inline: auto; margin-bottom: var(--space-8); line-height: 1.6; }

/* ── FOOTER ── */
.footer { background: var(--color-bg); border-top: 1px solid var(--color-divider); padding-block: var(--space-12); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-6); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-tagline { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 32ch; }
.footer-copy { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-links { display: flex; gap: var(--space-6); }
.footer-links a { font-size: var(--text-xs); color: var(--color-text-faint); text-decoration: none; transition: color var(--transition-interactive); }
.footer-links a:hover { color: var(--color-text-muted); }

/* ── UTILITIES ── */
.accent { color: var(--color-primary); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mx-auto { margin-inline: auto; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.max-w-480 { max-width: 480px; }
.max-w-52ch { max-width: 52ch; }
.is-hidden { display: none; }
.text-regular { font-weight: 400; }
.mt-space-8 { margin-top: var(--space-8); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Punchier spring pop-in for small standalone elements (trust pills) */
.reveal-pop {
  opacity: 0;
  transform: scale(0.82) translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-pop.visible { opacity: 1; transform: scale(1) translateY(0); }

#hero-content { will-change: opacity, transform; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE (max-width: 860px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  * { -webkit-tap-highlight-color: transparent; }
  html { scroll-padding-top: 72px; }
  body { -webkit-overflow-scrolling: touch; }

  .nav { height: 64px; }
  .nav-mobile-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav-mobile-toggle span { width: 24px; height: 2px; }
  .nav-links-wrap.open { top: 64px; }

  .hero { min-height: 88svh; padding-top: 64px; padding-inline: var(--space-4); }
  .hero-eyebrow { font-size: 11px; padding: 0.5rem 1rem; margin-bottom: var(--space-6); }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); margin-bottom: var(--space-4); max-width: 15ch; }
  .hero-subtitle { font-size: var(--text-base); max-width: 100%; margin-bottom: var(--space-8); }
  .hero-actions { flex-direction: column; gap: var(--space-3); width: 100%; }
  .btn-primary, .btn-ghost { min-height: 52px; padding: 0.875rem 1.5rem; font-size: 16px; width: 100%; }
  .hero-scroll-hint { display: none; }

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

  .section { padding-block: var(--space-12); }
  .section-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .section-body { font-size: var(--text-base); }

  .stat-row { grid-template-columns: 1fr; gap: var(--space-6); }
  .stat-strip-statement { margin-bottom: var(--space-8); }

  .morph-line { font-size: var(--text-lg); }

  .editorial-list { margin-top: var(--space-8); }
  .editorial-item { grid-template-columns: 2.5rem 1fr; gap: var(--space-4); padding-block: var(--space-6); }
  .editorial-item__title { font-size: var(--text-base); }
  .editorial-item__body { font-size: var(--text-sm); }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-10);
  }
  .steps::before { display: none; }
  .step-number { background: none; padding-right: 0; }

  .about-text { font-size: var(--text-base); padding-left: var(--space-4); }

  .trust-strip { flex-direction: column; align-items: stretch; margin-top: var(--space-10); }
  .trust-point { justify-content: center; }

  .pricing-grid {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    margin-inline: calc(-1 * var(--space-4));
    padding-inline: var(--space-4);
    margin-top: var(--space-10);
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card { flex: 0 0 82%; scroll-snap-align: center; }
  .pricing-card:hover { transform: none; }

  .faq-item summary { font-size: var(--text-sm); padding-block: var(--space-5); }
  .faq-answer { font-size: var(--text-sm); padding-bottom: var(--space-5); }

  .form-group { margin-bottom: var(--space-5); }
  .form-label { font-size: 16px; font-weight: 600; }
  .form-input { min-height: 52px; font-size: 16px !important; }
  .form-input--with-prefix { padding-left: 2.75rem; }
  textarea.form-input { min-height: 120px; }

  .results-card { padding: var(--space-6); }
  .results-amount { font-size: clamp(2.5rem, 11vw, 4rem); }

  .booking-section { padding-block: var(--space-10); }
  .booking-container { padding-inline: var(--space-2); }
  .booking-embed-wrapper { padding: 4px; }

  .footer-inner { flex-direction: column; text-align: center; gap: var(--space-5); }
  .footer-brand { align-items: center; }
  .footer-links { justify-content: center; }

  .glow-orb { filter: blur(70px); }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   RALPHIO CHAT WIDGET — scoped to #ralphio-widget
   Uses the site's own design tokens directly (--color-*, --space-*,
   --text-*, --radius-*, --transition-interactive) rather than a
   parallel token set, so the widget always stays in sync with the
   rest of the theme instead of drifting from it.
═══════════════════════════════════════════════════════════════════ */

/* ── CHAT BUBBLE BUTTON ── */
.rw-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(92, 225, 230, 0.35);
  transition: transform var(--transition-interactive), background var(--transition-interactive), box-shadow var(--transition-interactive);
  z-index: 9999;
  padding: 0;
}

.rw-bubble:hover {
  transform: scale(1.08);
  background: var(--color-primary-hover);
  box-shadow: 0 8px 28px rgba(92, 225, 230, 0.45);
}

.rw-bubble:active { transform: scale(0.95); }

.rw-bubble-icon { position: absolute; transition: opacity var(--transition-interactive); }

.rw-bubble-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  animation: rw-pulse 2s ease-out infinite;
  pointer-events: none;
}

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

/* ── CHAT PANEL ── */
.rw-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 640px;
  max-height: calc(100vh - 140px);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}

#ralphio-widget.rw-open .rw-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── PANEL HEADER ── */
.rw-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}

.rw-panel-header-info { display: flex; align-items: center; gap: var(--space-3); }

.rw-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.rw-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.2;
}

.rw-panel-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.rw-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-interactive);
  flex-shrink: 0;
}

.rw-close:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* ── MESSAGES AREA ── */
.rw-messages {
  /* flex-grow:1 with flex-basis:0 splits whatever space remains after
     the header 50/50 with .rw-controls, regardless of either pane's
     content. A literal "0 0 50%" here would claim 50% of the *whole*
     panel each — 100% total — leaving no room for the header, so the
     combined height always overflows the panel by the header's own
     height and gets clipped by .rw-panel's overflow:hidden. */
  flex: 1 1 0%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-behavior: smooth;
}

.rw-message { display: flex; animation: rw-message-in 300ms var(--ease); }

@keyframes rw-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rw-message--bot { justify-content: flex-start; }
.rw-message--user { justify-content: flex-end; }

.rw-message-bubble {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  word-wrap: break-word;
}

.rw-message-bubble--bot {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.rw-message-bubble--user {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.rw-typing-indicator { display: flex; align-items: center; gap: 4px; padding: var(--space-3); }

.rw-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: rw-typing-bounce 1.2s ease-in-out infinite;
}

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

@keyframes rw-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── CONTROLS AREA ── */
.rw-controls {
  flex: 1 1 0%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  position: relative;
}

.rw-close-confirm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  text-align: center;
  background: var(--color-surface);
  z-index: 1;
}

.rw-close-confirm p { margin: 0; color: var(--color-text); font-size: var(--text-xs); line-height: 1.5; }

.rw-close-confirm-actions { display: flex; gap: var(--space-2); }

.rw-close-confirm-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-interactive);
}

.rw-close-confirm-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.rw-close-confirm-btn--discard { background: transparent; color: var(--color-text-muted); }

.rw-close-confirm-btn--discard:hover { color: var(--color-text); border-color: var(--color-text-muted); }

.rw-options { display: flex; flex-direction: column; gap: var(--space-2); }

.rw-option-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-interactive);
  font-family: inherit;
}

.rw-option-btn:hover {
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border-color: var(--color-primary-border);
  transform: translateX(4px);
}

.rw-option-btn:active { transform: translateX(2px) scale(0.98); }

@media (hover: none) and (pointer: coarse) {
  .rw-option-btn:active,
  .rw-option-btn:focus {
    transform: none;
    background: var(--color-surface-2);
    color: var(--color-text);
    border-color: var(--color-border);
    outline: none;
  }

  .rw-option-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

.rw-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  margin-top: var(--space-2);
  transition: color var(--transition-interactive);
  font-family: inherit;
}

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

/* ── FORM STYLES ── */
.rw-form { display: flex; flex-direction: column; gap: var(--space-3); }

.rw-form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.rw-form-label { font-size: var(--text-xs); font-weight: 500; color: var(--color-text); }

.rw-required { color: var(--color-primary); }

.rw-form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: border-color var(--transition-interactive);
  outline: none;
}

.rw-form-input:focus { border-color: var(--color-primary); }

.rw-form-input--error { border-color: #e5726c; }
.rw-form-input--error:focus { border-color: #e5726c; }

.rw-form-error { font-size: var(--text-xs); color: #e5726c; min-height: 16px; }

.rw-submit-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition-interactive);
  margin-top: var(--space-1);
  font-family: inherit;
}

.rw-submit-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(92, 225, 230, 0.3);
}

.rw-submit-btn:active:not(:disabled) { transform: scale(0.98); }
.rw-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .rw-bubble { width: 48px; height: 48px; bottom: 10px; right: 10px; }
  .rw-panel {
    width: calc(100vw - 40px);
    max-width: 340px;
    right: 10px;
    bottom: 68px;
    height: calc(100vh - 160px);
    max-height: 480px;
    border-radius: var(--radius-lg);
  }
  .rw-messages { padding: var(--space-3); gap: var(--space-2); }
  .rw-controls { padding: var(--space-2) var(--space-3) var(--space-3); }
  .rw-option-btn { padding: 0.6rem 0.85rem; font-size: 12px; }
  .rw-submit-btn { padding: 0.6rem 0.85rem; font-size: 12px; }
  .rw-form-input { padding: 0.5rem 0.65rem; font-size: 12px; }
  .rw-form-label { font-size: 11px; }
}

/* Short viewports (landscape phones, small tablets) — the default
   calc(100vh - 140px) clamp leaves too little room when vh is small.
   Reclaim space with tighter margins instead of relying on that alone. */
@media (max-height: 640px) {
  .rw-panel { height: calc(100vh - 90px); max-height: 420px; bottom: 80px; }
  .rw-messages { min-height: 100px; padding: var(--space-3); gap: var(--space-2); }
  .rw-controls { padding: var(--space-2) var(--space-3) var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  .rw-bubble,
  .rw-panel,
  .rw-message,
  .rw-option-btn,
  .rw-submit-btn,
  .rw-typing-indicator span {
    transition: none;
    animation: none;
  }
  .rw-bubble-pulse { animation: none; display: none; }
}

/* ── SCROLLBAR STYLING ── */
/* Thumb uses a translucent white rather than a theme border color, which
   is too low-contrast against the dark background to read as a visible
   scroll affordance — this needs to clearly signal "more content below". */
.rw-messages::-webkit-scrollbar,
.rw-controls::-webkit-scrollbar { width: 8px; }

.rw-messages::-webkit-scrollbar-track,
.rw-controls::-webkit-scrollbar-track { background: transparent; }

.rw-messages::-webkit-scrollbar-thumb,
.rw-controls::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  transition: background 300ms ease;
}

.rw-messages::-webkit-scrollbar-thumb:hover,
.rw-controls::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

.rw-messages,
.rw-controls {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.rw-messages:hover,
.rw-controls:hover { scrollbar-color: var(--color-primary) transparent; }
