/* ============================================================
   Apps Rated — Main Stylesheet
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --primary:        #8C4CE6;
  --primary-dark:   #7038C4;
  --primary-light:  #A97CEF;
  --secondary:      #CAB7E5;
  --secondary-dark: #2B193D;
  --black:          #201E1F;
  --pacific-blue:   #45B1C9;
  --rosy-copper:    #DB514A;
  --yellow:         #FFDD4A;
  --light-green:    #8FD694;

  /* UI greys */
  --white:      #FFFFFF;
  --gray-50:    #F9F8FC;
  --gray-100:   #F2EEFA;
  --gray-200:   #E6DFEF;
  --gray-300:   #D0C7DF;
  --gray-400:   #A299B0;
  --gray-500:   #786F87;
  --gray-600:   #544C62;
  --gray-800:   #342C40;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(44, 25, 61, 0.08);
  --shadow-md:  0 8px 32px rgba(44, 25, 61, 0.12);
  --shadow-lg:  0 24px 64px rgba(44, 25, 61, 0.16);
  --shadow-xl:  0 40px 80px rgba(44, 25, 61, 0.20);

  /* Typography */
  --font-regular:      'GalanoGrotesque-Regular', system-ui, sans-serif;
  --font-light:        'GalanoGrotesque-Light', system-ui, sans-serif;
  --font-bold:         'GalanoGrotesque-Bold', system-ui, sans-serif;
  --font-italic:       'GalanoGrotesque-Italic', system-ui, sans-serif;
  --font-bold-italic:  'GalanoGrotesque-BoldItalic', system-ui, sans-serif;
  --font-light-italic: 'GalanoGrotesque-LightItalic', system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-bold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { color: var(--gray-600); line-height: 1.7; }

.subhead {
  font-family: var(--font-regular);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--gray-600);
}

.kicker {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

strong { font-family: var(--font-bold); }

/* ── 4. Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 100px 0; }
.section--sm { padding: 72px 0; }
.section--lg { padding: 120px 0; }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-bold);
  font-size: 1rem;
  border-radius: 100px;
  padding: 14px 28px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(140, 76, 230, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(140, 76, 230, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--gray-400);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 17px 36px;
}

/* ── 6. Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-family: var(--font-regular);
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--black);
  background: var(--gray-100);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__signin {
  font-family: var(--font-regular);
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__signin:hover {
  color: var(--black);
  background: var(--gray-100);
}

.nav__join {
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  background: var(--primary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 100px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(140,76,230,0.3);
}
.nav__join:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(140,76,230,0.4);
}

/* Mobile nav toggle */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ── 7. Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(155deg, #FFFFFF 0%, #FAF7FF 60%, #F3EDFF 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative glow blobs */
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(140,76,230,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(69,177,201,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140,76,230,0.1);
  border: 1px solid rgba(140,76,230,0.2);
  color: var(--primary);
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--black);
}

.hero .h1-em {
  font-family: var(--font-bold);
  /*font-style: italic;*/
  color: var(--primary);
}

.hero .subhead {
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--gray-500);
  font-family: var(--font-regular);
}

.hero__social-proof::before {
  content: '';
  display: block;
  flex-shrink: 0;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero__avatar:first-child { margin-left: 0; background: var(--rosy-copper); }
.hero__avatar:nth-child(2) { background: var(--pacific-blue); }
.hero__avatar:nth-child(3) { background: var(--primary); }
.hero__avatar:nth-child(4) { background: var(--light-green); color: var(--secondary-dark); }

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* ── 8. Dashboard Mockup ──────────────────────────────────── */
.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(44,25,61,0.06);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

/* Browser chrome */
.db-chrome {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.db-chrome__dots {
  display: flex;
  gap: 6px;
}

.db-chrome__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.db-chrome__dot:nth-child(1) { background: #FF6058; }
.db-chrome__dot:nth-child(2) { background: #FFBD2E; }
.db-chrome__dot:nth-child(3) { background: #28C840; }

.db-chrome__url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-regular);
  font-size: 0.75rem;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

/* Dashboard body layout */
.db-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 380px;
}

/* Sidebar */
.db-sidebar {
  background: var(--secondary-dark);
  padding: 20px 0;
}

.db-sidebar__logo {
  padding: 0 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.db-sidebar__logo-text {
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-sidebar__logo-star {
  color: var(--yellow);
}

.db-sidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-regular);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  border-radius: 0;
  transition: all 0.15s;
  cursor: default;
}

.db-sidebar__item.active {
  background: rgba(140,76,230,0.2);
  color: var(--white);
  border-right: 2px solid var(--primary);
}

.db-sidebar__icon {
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

/* Main content area */
.db-main {
  background: var(--white);
  padding: 20px;
  overflow: hidden;
}

.db-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.db-app-name {
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  color: var(--black);
  margin-bottom: 2px;
}

.db-app-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--gray-500);
  font-family: var(--font-regular);
}

.db-rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 6px 12px;
}

.db-rating-score {
  font-family: var(--font-bold);
  font-size: 1.25rem;
  color: var(--black);
}

.db-rating-stars {
  color: var(--yellow);
  font-size: 0.75rem;
  letter-spacing: -1px;
}

.db-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.db-stat {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.db-stat__value {
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1;
  margin-bottom: 3px;
}

.db-stat__value.up { color: var(--light-green); }
.db-stat__value.up::before { content: '↑ '; }

.db-stat__label {
  font-size: 0.65rem;
  color: var(--gray-400);
  font-family: var(--font-regular);
}

/* Sparkline chart */
.db-chart {
  margin-bottom: 14px;
}

.db-chart__label {
  font-size: 0.6875rem;
  font-family: var(--font-bold);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.db-sparkline {
  width: 100%;
  height: 52px;
}

/* Sentiment bars */
.db-sentiment {
  margin-bottom: 14px;
}

.db-sentiment__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.db-sentiment__label {
  font-size: 0.6875rem;
  font-family: var(--font-regular);
  color: var(--gray-500);
  width: 48px;
  flex-shrink: 0;
}

.db-sentiment__bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.db-sentiment__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease 0.3s;
}

.db-sentiment__bar-fill.positive { background: var(--light-green); width: 89%; }
.db-sentiment__bar-fill.neutral { background: var(--yellow); width: 7%; }
.db-sentiment__bar-fill.negative { background: var(--rosy-copper); width: 4%; }

.db-sentiment__pct {
  font-size: 0.6875rem;
  font-family: var(--font-bold);
  color: var(--gray-600);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* AI Insight card */
.db-insight {
  background: linear-gradient(135deg, rgba(140,76,230,0.06) 0%, rgba(69,177,201,0.04) 100%);
  border: 1px solid rgba(140,76,230,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.db-insight__header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.db-insight__dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.db-insight__label {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.db-insight__text {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
  font-family: var(--font-regular);
}

.db-insight__text strong {
  color: var(--rosy-copper);
}

/* ── 9. Core Capabilities ─────────────────────────────────── */
.capabilities {
  background: var(--white);
}

.capabilities__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.capabilities__header h2 { margin-bottom: 20px; }
.capabilities__header .subhead { margin: 0 auto; }

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

.cap-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cap-card__tag-bar {
  padding: 20px 28px 0;
}

.cap-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.cap-card__tag--analyze {
  background: rgba(69,177,201,0.12);
  color: #2A8EA5;
}

.cap-card__tag--optimize {
  background: rgba(255,221,74,0.2);
  color: #8A6A00;
}

.cap-card__tag--grow {
  background: rgba(143,214,148,0.2);
  color: #2A7A30;
}

.cap-card__body {
  padding: 20px 28px 28px;
}

.cap-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--black);
}

.cap-card__body p {
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.cap-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-family: var(--font-regular);
  line-height: 1.45;
}

.cap-card__list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%238C4CE6' opacity='0.12'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%238C4CE6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ── 10. USP Dark Section ─────────────────────────────────── */
.usps {
  background: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.usps::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(140,76,230,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.usps::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(69,177,201,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.usps__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}

.usps__header .kicker { color: var(--secondary); }

.usps__header h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.usps__header .subhead { color: rgba(255,255,255,0.65); }

.usps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

.usp-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: background 0.2s ease;
}

.usp-item:hover { background: rgba(255,255,255,0.07); }

.usp-item__number {
  font-family: var(--font-bold);
  font-size: 3rem;
  color: rgba(140,76,230,0.25);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.usp-item h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.usp-item p {
  color: rgba(255,255,255,0.60);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── 11. Sentiment Section ────────────────────────────────── */
.sentiment {
  background: var(--white);
}

.sentiment__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sentiment__content .kicker { margin-bottom: 16px; }
.sentiment__content h2 { margin-bottom: 20px; }
.sentiment__content > .subhead { margin-bottom: 48px; }

.sentiment__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sentiment__feature h4 {
  color: var(--black);
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.sentiment__feature p { font-size: 0.9375rem; }

.sentiment__visual {
  position: relative;
}

.insight-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(44,25,61,0.06);
  overflow: hidden;
  position: relative;
}

.insight-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--pacific-blue));
}

.insight-panel__header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-panel__title {
  font-family: var(--font-bold);
  font-size: 1rem;
  color: var(--black);
}

.insight-panel__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-green);
}

.insight-panel__live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--light-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.insight-panel__body { padding: 24px 32px 28px; }

.emotion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.emotion-tag {
  font-family: var(--font-regular);
  font-size: 0.8125rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.emotion-tag--delight   { background: rgba(143,214,148,0.15); border-color: rgba(143,214,148,0.3); color: #2A7A30; }
.emotion-tag--loyalty   { background: rgba(140,76,230,0.1);  border-color: rgba(140,76,230,0.2);  color: var(--primary); }
.emotion-tag--frustrate { background: rgba(219,81,74,0.1);   border-color: rgba(219,81,74,0.2);   color: var(--rosy-copper); }
.emotion-tag--churn     { background: rgba(219,81,74,0.08);  border-color: rgba(219,81,74,0.15);  color: var(--rosy-copper); }
.emotion-tag--praise    { background: rgba(255,221,74,0.15); border-color: rgba(255,221,74,0.3);  color: #8A6A00; }
.emotion-tag--advocacy  { background: rgba(69,177,201,0.12); border-color: rgba(69,177,201,0.25); color: #2A8EA5; }
.emotion-tag--longing   { background: rgba(202,183,229,0.2); border-color: rgba(202,183,229,0.4); color: #5E3A8C; }
.emotion-tag--trust     { background: rgba(143,214,148,0.12); border-color: rgba(143,214,148,0.25); color: #2A7A30; }

.ai-insight-card {
  background: linear-gradient(135deg, rgba(140,76,230,0.07) 0%, rgba(69,177,201,0.05) 100%);
  border: 1px solid rgba(140,76,230,0.18);
  border-radius: var(--radius-md);
  padding: 20px;
}

.ai-insight-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.ai-insight-card__label {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.ai-insight-card__body {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.ai-insight-card__body strong { color: var(--rosy-copper); }

/* ── 12. Testimonials ─────────────────────────────────────── */
.testimonials {
  background: var(--gray-50);
}

.testimonials__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.testimonials__header h2 { margin-bottom: 16px; }

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: var(--yellow);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.testimonial-card__quote {
  font-family: var(--font-regular-italic);
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-card__avatar--1 { background: var(--rosy-copper); }
.testimonial-card__avatar--2 { background: var(--pacific-blue); }
.testimonial-card__avatar--3 { background: var(--light-green); color: var(--secondary-dark); }

.testimonial-card__name {
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ── 13. Closing CTA ──────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #6B2EC7 50%, var(--secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-banner__microcopy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-regular);
}

/* ── 14. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--secondary-dark);
  padding: 72px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--white); }

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

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s ease;
}

.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── 15. Animations ───────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── 16. Mobile Navigation Overlay ───────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 20px 40px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.nav__mobile .nav__signin {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.nav__mobile .nav__join {
  margin-top: 8px;
  text-align: center;
  display: block;
  padding: 13px 22px;
  border-radius: 100px;
}

/* ── 17. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__grid { gap: 48px; }
  .dashboard-mockup { max-width: 460px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__burger { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
    padding: 60px 0;
  }

  .hero .subhead { max-width: 100%; }

  .hero__ctas { justify-content: center; }

  .hero__social-proof { justify-content: center; }

  .hero__visual { justify-content: center; }

  .dashboard-mockup {
    max-width: 480px;
    transform: none;
    margin: 0 auto;
  }

  .capabilities__cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

  .sentiment__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }

  .section { padding: 72px 0; }

  .hero__grid { padding: 48px 0; }

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

  .hero__ctas .btn { width: 100%; max-width: 300px; justify-content: center; }

  .usp-item { padding: 28px; }

  .insight-panel__header,
  .insight-panel__body { padding-left: 24px; padding-right: 24px; }

  .testimonial-card { padding: 28px; }

  .cta-banner__actions { flex-direction: column; }

  .cta-banner__actions .btn { width: 100%; max-width: 280px; justify-content: center; }

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

  .footer__legal { flex-direction: column; gap: 12px; align-items: center; }

  .nav__mobile { padding: 20px 24px 28px; }
}

/* ══════════════════════════════════════════════════════════
   Inner Pages — Shared
════════════════════════════════════════════════════════════ */

/* ── Page hero (features, pricing, how-it-works, etc.) ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(155deg, #FFFFFF 0%, #FAF7FF 60%, #F3EDFF 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(140,76,230,0.07) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-hero .kicker { margin-bottom: 16px; }

.page-hero h1 {
  max-width: 760px;
  margin: 0 auto 24px;
}

.page-hero .subhead {
  max-width: 620px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   Features Page
════════════════════════════════════════════════════════════ */

/* ── Feature tab navigation ───────────────────────────────── */
.feature-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(44,25,61,0.05);
}

.feature-tabs__inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.feature-tabs__inner::-webkit-scrollbar { display: none; }

.feature-tab {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-regular);
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 18px 22px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.feature-tab:hover {
  color: var(--black);
  border-bottom-color: var(--gray-300);
}

.feature-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-family: var(--font-bold);
}

/* ── Feature sections ─────────────────────────────────────── */
.feature-section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--nav-height) + 56px);
}

.feature-section--alt { background: var(--gray-50); }

.feature-section--dark {
  background: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.feature-section--dark::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(140,76,230,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Section header */
.feature-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.feature-section__header .kicker { margin-bottom: 12px; }
.feature-section__header h2 { margin-bottom: 18px; }

.feature-section--dark .feature-section__header .kicker { color: var(--secondary); }
.feature-section--dark .feature-section__header h2 { color: var(--white); }
.feature-section--dark .feature-section__header .subhead { color: rgba(255,255,255,0.6); }

/* ── Feature split layout (features list + visual) ────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-split--reverse > :first-child { order: 2; }
.feature-split--reverse > :last-child  { order: 1; }

/* Feature item list */
.feature-items {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-item {}

.feature-item h4 {
  font-size: 1.0625rem;
  color: var(--black);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.feature-section--dark .feature-item h4 { color: var(--white); }
.feature-section--dark .feature-item p  { color: rgba(255,255,255,0.6); }

/* ── Section visual panel ─────────────────────────────────── */
.section-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(44,25,61,0.06);
  overflow: hidden;
}

.section-panel--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}

.section-panel__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-panel--dark .section-panel__header {
  border-bottom-color: rgba(255,255,255,0.08);
}

.section-panel__title {
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: var(--black);
}

.section-panel--dark .section-panel__title { color: var(--white); }

.section-panel__badge {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(143,214,148,0.15);
  color: #2A7A30;
  border: 1px solid rgba(143,214,148,0.3);
}

.section-panel__body { padding: 24px; }

/* ── Topic cluster visual (Review Analysis) ───────────────── */
.topic-clusters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.topic-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: default;
}

.topic-bubble--lg { font-size: 0.9375rem; padding: 9px 18px; }
.topic-bubble--sm { font-size: 0.75rem; padding: 5px 11px; }

.topic-bubble--blue   { background: rgba(69,177,201,0.12); color: #2A8EA5; border: 1px solid rgba(69,177,201,0.25); }
.topic-bubble--red    { background: rgba(219,81,74,0.1);   color: var(--rosy-copper); border: 1px solid rgba(219,81,74,0.2); }
.topic-bubble--green  { background: rgba(143,214,148,0.15); color: #2A7A30; border: 1px solid rgba(143,214,148,0.3); }
.topic-bubble--purple { background: rgba(140,76,230,0.1);  color: var(--primary); border: 1px solid rgba(140,76,230,0.2); }
.topic-bubble--yellow { background: rgba(255,221,74,0.15); color: #7A5C00; border: 1px solid rgba(255,221,74,0.3); }
.topic-bubble--gray   { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }

.topic-count {
  font-family: var(--font-regular);
  font-size: 0.75em;
  opacity: 0.7;
}

.analysis-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

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

.analysis-stat__n {
  font-family: var(--font-bold);
  font-size: 1.125rem;
  color: var(--black);
}

.analysis-stat__l {
  font-size: 0.6875rem;
  color: var(--gray-400);
  line-height: 1.3;
  margin-top: 2px;
}

/* ── Sentence-level analysis visual (Sentiment Engine) ────── */
.sentence-analysis {
  margin-bottom: 20px;
}

.sentence-analysis__label {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--gray-800);
}

.review-text .hl {
  padding: 1px 4px;
  border-radius: 3px;
}

.hl--praise    { background: rgba(143,214,148,0.25); }
.hl--frustrate { background: rgba(219,81,74,0.15); }
.hl--churn     { background: rgba(219,81,74,0.10); }
.hl--longing   { background: rgba(255,221,74,0.25); }

.sentence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.sentence-tag {
  font-size: 0.6875rem;
  font-family: var(--font-regular);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.sentence-tag--praise    { background: rgba(143,214,148,0.15); border-color: rgba(143,214,148,0.3); color: #2A7A30; }
.sentence-tag--frustrate { background: rgba(219,81,74,0.1);  border-color: rgba(219,81,74,0.2);  color: var(--rosy-copper); }
.sentence-tag--longing   { background: rgba(255,221,74,0.15); border-color: rgba(255,221,74,0.3);  color: #7A5C00; }
.sentence-tag--churn     { background: rgba(219,81,74,0.08); border-color: rgba(219,81,74,0.15); color: var(--rosy-copper); }

/* ── Competitor chart visual ──────────────────────────────── */
.competitor-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.competitor-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.competitor-name {
  font-family: var(--font-regular);
  font-size: 0.8125rem;
  color: var(--gray-600);
  width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.competitor-name--you {
  font-family: var(--font-bold);
  color: var(--primary);
}

.competitor-bar-track {
  flex: 1;
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}

.competitor-bar-fill {
  height: 100%;
  border-radius: 5px;
}

.competitor-bar-fill--you   { background: var(--primary); }
.competitor-bar-fill--rival { background: var(--gray-300); }

.competitor-score {
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: var(--black);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.competitor-insight {
  background: rgba(69,177,201,0.08);
  border: 1px solid rgba(69,177,201,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 4px;
}

.competitor-insight__label {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  color: var(--pacific-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.competitor-insight__text {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── Alert notifications visual ───────────────────────────── */
.alert-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.alert-card--red    { background: rgba(219,81,74,0.06);  border-color: rgba(219,81,74,0.15); }
.alert-card--yellow { background: rgba(255,221,74,0.1);  border-color: rgba(255,221,74,0.25); }
.alert-card--blue   { background: rgba(69,177,201,0.08); border-color: rgba(69,177,201,0.2); }
.alert-card--green  { background: rgba(143,214,148,0.1); border-color: rgba(143,214,148,0.25); }

.alert-card__icon {
  font-size: 1rem;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-card__body { flex: 1; }

.alert-card__title {
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  color: var(--black);
  margin-bottom: 2px;
}

.alert-card__desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.alert-card__time {
  font-size: 0.6875rem;
  color: var(--gray-400);
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Integration grid visual ──────────────────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.integration-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.integration-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.integration-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.integration-card__name {
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 8px;
}

.integration-card__desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ── Report preview visual ────────────────────────────────── */
.report-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.report-header {
  background: var(--secondary-dark);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-header__title {
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: var(--white);
}

.report-header__date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.report-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.report-kpi {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.report-kpi__value {
  font-family: var(--font-bold);
  font-size: 1.25rem;
  color: var(--black);
}

.report-kpi__value.up   { color: var(--light-green); }
.report-kpi__value.down { color: var(--rosy-copper); }

.report-kpi__label {
  font-size: 0.6875rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.report-bar-section { }

.report-bar-label {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.report-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-bar-name {
  font-size: 0.6875rem;
  color: var(--gray-600);
  width: 80px;
  flex-shrink: 0;
}

.report-bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.report-insight-line {
  background: rgba(140,76,230,0.07);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--gray-700);
  font-family: var(--font-italic);
  line-height: 1.5;
}

/* ── Feature grid (6-item) ────────────────────────────────── */
.feature-grid-wrap {
  border-top: 1px solid var(--gray-200);
  padding-top: 56px;
}

.feature-section--alt .feature-grid-wrap { border-top-color: var(--gray-300); }

.feature-grid-wrap--dark {
  border-top-color: rgba(255,255,255,0.08);
}

.feature-grid-header {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.feature-section--dark .feature-grid-header { color: rgba(255,255,255,0.35); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-grid-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.feature-section--alt .feature-grid-item { background: var(--white); }

.feature-grid-item:hover { box-shadow: var(--shadow-sm); }

.feature-grid-item__icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-grid-item__title {
  font-family: var(--font-bold);
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 8px;
}

.feature-grid-item__body {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* Dark variants */
.feature-section--dark .feature-grid-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.feature-section--dark .feature-grid-item:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}

.feature-section--dark .feature-grid-item__title { color: var(--white); }
.feature-section--dark .feature-grid-item__body  { color: rgba(255,255,255,0.55); }

/* ── Emotion category full display (Sentiment Engine) ─────── */
.emotion-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 20px;
}

.emotion-cat-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.feature-section--alt .emotion-cat-item { background: var(--gray-50); }

.emotion-cat-item__tag {
  display: inline-flex;
  font-size: 0.75rem;
  font-family: var(--font-bold);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.emotion-cat-item p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ── Responsive — Features page ───────────────────────────── */
@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-split--reverse > :first-child { order: unset; }
  .feature-split--reverse > :last-child  { order: unset; }

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

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

@media (max-width: 640px) {
  .feature-section { padding: 72px 0; }

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

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

  .report-kpi-row { grid-template-columns: repeat(3, 1fr); }

  .feature-tab { font-size: 0.85rem; padding: 16px 16px; }

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

/* ══════════════════════════════════════════════════════════
   Pricing Page
════════════════════════════════════════════════════════════ */

/* ── Billing toggle ───────────────────────────────────────── */
.pricing-section { background: var(--gray-50); }

.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.billing-toggle__opt {
  font-family: var(--font-regular);
  font-size: 0.9375rem;
  color: var(--gray-500);
  padding: 9px 22px;
  border-radius: 100px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.billing-toggle__opt.is-active {
  background: var(--secondary-dark);
  color: var(--white);
  font-family: var(--font-bold);
}

.billing-toggle__badge {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--light-green);
  color: var(--secondary-dark);
  padding: 3px 8px;
  border-radius: 100px;
}

.billing-toggle__note {
  font-size: 0.875rem;
  color: var(--gray-500);
  min-height: 1.4em;
  transition: opacity 0.2s ease;
}

.billing-toggle__note strong { color: var(--light-green); font-family: var(--font-bold); }

/* ── Pricing cards grid ───────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* ── Individual pricing card ──────────────────────────────── */
.pricing-card {
  background: var(--white);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--gray-200);
}

.pricing-card:last-child { border-right: none; }

.pricing-card--featured {
  background: var(--secondary-dark);
  border-right-color: rgba(255,255,255,0.10);
}

/* "Most popular" badge */
.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(140,76,230,0.12);
  color: var(--primary);
  border: 1px solid rgba(140,76,230,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
  align-self: flex-start;
}

.pricing-card__badge::before {
  content: '★';
  font-size: 0.625rem;
}

/* Plan name + descriptor */
.pricing-card__plan {
  font-family: var(--font-bold);
  font-size: 1.375rem;
  color: var(--black);
  margin-bottom: 6px;
}

.pricing-card--featured .pricing-card__plan { color: var(--white); }

.pricing-card__descriptor {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.4;
}

.pricing-card--featured .pricing-card__descriptor { color: rgba(255,255,255,0.55); }

/* Price area */
.pricing-card__price-area {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__currency {
  font-family: var(--font-bold);
  font-size: 1.5rem;
  color: var(--gray-600);
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-card--featured .pricing-card__currency { color: rgba(255,255,255,0.6); }

.pricing-card__price {
  font-family: var(--font-bold);
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
}

.pricing-card--featured .pricing-card__price { color: var(--white); }

.pricing-card__per {
  font-family: var(--font-regular);
  font-size: 0.9rem;
  color: var(--gray-500);
}

.pricing-card--featured .pricing-card__per { color: rgba(255,255,255,0.5); }

.pricing-card__billing {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.pricing-card--featured .pricing-card__billing { color: rgba(255,255,255,0.4); }

/* Divider */
.pricing-card__divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0 0 24px;
}

.pricing-card--featured .pricing-card__divider { border-top-color: rgba(255,255,255,0.10); }

/* Plan description */
.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 28px;
}

.pricing-card--featured .pricing-card__desc { color: rgba(255,255,255,0.65); }

/* CTA button */
.pricing-card__cta {
  display: block;
  text-align: center;
  font-family: var(--font-bold);
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 100px;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}

.pricing-card__cta--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(140,76,230,0.4);
}
.pricing-card__cta--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(140,76,230,0.5);
}

.pricing-card__cta--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}
.pricing-card__cta--outline:hover {
  border-color: var(--gray-500);
  color: var(--black);
  transform: translateY(-1px);
}

.pricing-card__cta--outline-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.pricing-card__cta--outline-dark:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

/* Feature lists */
.plan-features-header {
  font-family: var(--font-bold);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.pricing-card--featured .plan-features-header { color: rgba(255,255,255,0.35); }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
}

.pricing-card--featured .plan-feature { color: rgba(255,255,255,0.80); }

.plan-feature__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  margin-top: 1px;
}

.plan-feature__icon--check {
  background: rgba(140,76,230,0.12);
  color: var(--primary);
}

.pricing-card--featured .plan-feature__icon--check {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.plan-feature__icon--cross {
  background: var(--gray-100);
  color: var(--gray-400);
}

.plan-feature--excluded {
  opacity: 0.45;
}

.plan-feature--excluded .plan-feature__icon--cross {
  background: transparent;
}

/* Features section spacer */
.plan-features-group { margin-top: 20px; }

/* ── Pricing trust strip ──────────────────────────────────── */
.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.trust-item__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(143,214,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: #2A7A30;
  flex-shrink: 0;
}

/* ── FAQ section ──────────────────────────────────────────── */
.faq-section { background: var(--white); }

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.faq-header h2 { margin-bottom: 16px; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-bold);
  font-size: 1rem;
  color: var(--black);
  transition: background 0.15s ease;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question[aria-expanded="true"] { background: var(--gray-50); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--gray-500);
  font-family: var(--font-regular);
  line-height: 1;
  transition: all 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.faq-answer[hidden] { display: none; }

/* ── Responsive — Pricing page ────────────────────────────── */
@media (max-width: 960px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    max-width: 480px;
  }

  .pricing-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .pricing-card:last-child { border-bottom: none; }
  .pricing-card--featured { border-bottom-color: rgba(255,255,255,0.10); }
}

@media (max-width: 640px) {
  .pricing-card { padding: 32px 24px; }

  .pricing-trust { gap: 20px; }

  .faq-question { padding: 18px 20px; font-size: 0.9375rem; }
  .faq-answer   { padding: 0 20px 20px; }
}

/* ══════════════════════════════════════════════════════════
   How It Works Page
════════════════════════════════════════════════════════════ */

/* ── Hero checklist ───────────────────────────────────────── */
.hiw-hero-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.hiw-hero-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.hiw-hero-list__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(143,214,148,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-family: var(--font-bold);
  color: #2A7A30;
  flex-shrink: 0;
}

/* ── Steps section ────────────────────────────────────────── */
.hiw-section {
  padding: 100px 0 80px;
  background: var(--white);
}

.hiw-steps {
  max-width: 800px;
  margin: 0 auto;
}

.hiw-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 36px;
}

/* ── Step number column with connector line ───────────────── */
.hiw-step__num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-step__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(140,76,230,0.10);
  border: 2px solid rgba(140,76,230,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 0.9375rem;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.hiw-step__line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(140,76,230,0.20), rgba(140,76,230,0.04));
  margin: 10px 0;
}

.hiw-step:last-child .hiw-step__line { display: none; }

/* ── Step content ─────────────────────────────────────────── */
.hiw-step__body {
  padding-bottom: 56px;
}

.hiw-step:last-child .hiw-step__body { padding-bottom: 0; }

.hiw-step__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
  padding-top: 14px; /* align with badge centre */
}

.hiw-step__title {
  font-family: var(--font-bold);
  font-size: 1.375rem;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.25;
}

.hiw-step__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Step bullet list ─────────────────────────────────────── */
.hiw-step__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-step__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.hiw-step__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
}

.hiw-step__list li strong { color: var(--black); font-family: var(--font-bold); font-weight: normal; }

/* ── Tip callout ──────────────────────────────────────────── */
.hiw-tip {
  display: flex;
  gap: 14px;
  background: rgba(140,76,230,0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.hiw-tip__icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

.hiw-tip strong { color: var(--black); font-family: var(--font-bold); font-weight: normal; }

/* ── Platform sub-steps (Step 2) ──────────────────────────── */
.hiw-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.hiw-platform {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.hiw-platform__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: var(--black);
  margin-bottom: 12px;
}

.hiw-platform__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.hiw-platform__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  counter-reset: platform-step;
}

.hiw-platform__steps li {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.55;
  counter-increment: platform-step;
}

.hiw-platform__steps li::before {
  content: counter(platform-step);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 0.625rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.hiw-platform__steps li strong { color: var(--black); font-family: var(--font-bold); font-weight: normal; }

/* ── Role table (Step 6) ──────────────────────────────────── */
.hiw-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
}

.hiw-role {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.hiw-role__name {
  flex-shrink: 0;
  font-family: var(--font-bold);
  font-size: 0.8125rem;
  color: var(--white);
  background: var(--secondary-dark);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 1px;
}

.hiw-role strong { color: var(--black); font-family: var(--font-bold); font-weight: normal; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hiw-section { padding: 72px 0 56px; }

  .hiw-step {
    grid-template-columns: 48px 1fr;
    gap: 0 20px;
  }

  .hiw-step__badge {
    width: 40px;
    height: 40px;
    font-size: 0.8125rem;
  }

  .hiw-step__meta { padding-top: 8px; }

  .hiw-platforms { grid-template-columns: 1fr; }

  .hiw-hero-list { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════════
   Auth Pages (Sign In / Join / Forgot Password)
════════════════════════════════════════════════════════════ */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

/* ── Auth header ──────────────────────────────────────────── */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  flex-shrink: 0;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
}

.auth-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Auth body ────────────────────────────────────────────── */
.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
}

/* ── Auth card ────────────────────────────────────────────── */
.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
}

.auth-card__title {
  font-family: var(--font-bold);
  font-size: 1.75rem;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-card__sub {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ── Auth form elements ───────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-bold);
  font-size: 0.875rem;
  color: var(--black);
  margin-bottom: 6px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-regular);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(140,76,230,0.12);
}

.form-input.is-error {
  border-color: var(--rosy-copper);
  box-shadow: 0 0 0 3px rgba(219,81,74,0.10);
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--rosy-copper);
  line-height: 1.45;
}

.form-error.is-visible { display: block; }

.form-helper {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.45;
}

/* ── Password field with show/hide toggle ─────────────────── */
.password-wrap {
  position: relative;
}

.password-wrap .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  transition: color 0.15s ease;
}

.password-toggle:hover { color: var(--gray-600); }

.password-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* ── Forgot password link ─────────────────────────────────── */
.forgot-link {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

/* ── Auth submit button ───────────────────────────────────── */
.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ── General error banner ─────────────────────────────────── */
.auth-error-banner {
  display: none;
  padding: 12px 16px;
  background: rgba(219,81,74,0.08);
  border: 1px solid rgba(219,81,74,0.25);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--rosy-copper);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-error-banner.is-visible { display: block; }

/* ── Divider + secondary CTA ──────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-secondary {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.auth-secondary a {
  color: var(--primary);
  font-family: var(--font-bold);
  text-decoration: none;
}

.auth-secondary a:hover { text-decoration: underline; }

.auth-card .btn-ghost {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
}

/* ── Trust checklist (Join page) ──────────────────────────── */
.auth-trust {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.auth-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.auth-trust__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(143,214,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  color: #2A7A30;
  font-family: var(--font-bold);
}

/* ── Confirmation state (shown after form submit) ─────────── */
.auth-confirm {
  display: none;
  text-align: center;
}

.auth-confirm.is-visible { display: block; }

.auth-form-state { display: block; }
.auth-form-state.is-hidden { display: none; }

.auth-confirm__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(140,76,230,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.75rem;
}

.auth-confirm__title {
  font-family: var(--font-bold);
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 12px;
}

.auth-confirm__body {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 8px;
}

.auth-confirm__body strong { color: var(--black); font-family: var(--font-bold); }

.auth-confirm__helper {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.auth-confirm__back {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: none;
}

.auth-confirm__back:hover { color: var(--primary); }

/* ── Auth page footer ─────────────────────────────────────── */
.auth-footer {
  text-align: center;
  padding: 20px 24px 28px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .auth-card__title { font-size: 1.5rem; }
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
