* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;
}

[data-theme="light"] {
  --bg: #f1ebde;
  --bg-soft: #f7f3ea;
  --panel: rgba(241, 235, 222, 0.92);
  --panel-strong: #f7f3ea;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-alt: rgba(255, 255, 255, 0.6);
  --text: #111b32;
  --text-muted: #3d4a63;
  --text-soft: #5a6478;
  --border: rgba(17, 27, 50, 0.12);
  --border-strong: rgba(17, 27, 50, 0.2);
  --primary: #111b32;
  --primary-dark: #0a1122;
  --primary-soft: rgba(17, 27, 50, 0.08);
  --accent: #111b32;
  --shadow: rgba(17, 27, 50, 0.1);
  --hero-glow: radial-gradient(circle at top, rgba(17, 27, 50, 0.06), transparent 40%);
  --body-bg: linear-gradient(180deg, #f1ebde 0%, #f5f0e5 100%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111b32;
  --bg-soft: #1a2540;
  --panel: rgba(17, 27, 50, 0.92);
  --panel-strong: #1a2540;
  --surface: rgba(26, 37, 64, 0.92);
  --surface-alt: rgba(26, 37, 64, 0.72);
  --text: #f1ebde;
  --text-muted: #b8b0a0;
  --text-soft: #8a8274;
  --border: rgba(241, 235, 222, 0.12);
  --border-strong: rgba(241, 235, 222, 0.2);
  --primary: #f1ebde;
  --primary-dark: #e5ddd0;
  --primary-soft: rgba(241, 235, 222, 0.1);
  --accent: #f1ebde;
  --shadow: rgba(0, 0, 0, 0.3);
  --hero-glow: radial-gradient(circle at top, rgba(241, 235, 222, 0.08), transparent 40%);
  --body-bg: linear-gradient(180deg, #111b32 0%, #151f38 100%);
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--body-bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.text-muted {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.screen {
  display: none;
  min-height: 100vh;
  padding-top: 88px;
}

.screen.active {
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.2rem;
  backdrop-filter: blur(18px);
  background: rgba(241, 235, 222, 0.38);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(17, 27, 50, 0.38);
}

.navbar.is-landing {
  background: transparent;
  border-bottom-color: transparent;
}

body[data-screen="auth"] .navbar,
body[data-screen="survey"] .navbar,
body[data-screen="dashboard"] .navbar,
body[data-screen="loading"] .navbar,
body[data-screen="order-confirm"] .navbar {
  background: var(--panel);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.nav-logo-crop {
  width: 132px;
  height: 38px;
  overflow: hidden;
  position: relative;
}

.nav-logo-img {
  width: 335px;
  height: auto;
  position: absolute;
  left: -106px;
  top: -191px;
}

.nav-logo-light { display: block; }
.nav-logo-dark  { display: none; }
[data-theme="light"] .nav-logo-light { display: none; }
[data-theme="light"] .nav-logo-dark  { display: block; }

.nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.nav-palette {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-palette-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-block;
}

.nav-version {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle,
.btn-text,
.profile-trigger {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle,
.profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.btn-text {
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover,
.btn-text:hover,
.profile-trigger:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.nav-profile {
  position: relative;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-weight: 800;
}

.avatar-large {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 240px;
  padding: 0.75rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px var(--shadow);
}

.dropdown-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.dropdown-email {
  padding-bottom: 0.85rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.profile-dropdown button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  cursor: pointer;
}

.profile-dropdown button:hover {
  background: var(--primary-soft);
}

.landing-hero {
  position: relative;
  padding: 5rem 0 2rem;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.landing-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.landing-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  max-width: 11ch;
}

.hero-subtitle {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

.hero-point {
  width: min(100%, 640px);
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px var(--shadow);
}

[data-theme="dark"] .hero-point {
  background: rgba(255, 255, 255, 0.03);
}

.hero-point-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

.hero-point strong {
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-rail {
  display: block;
}

.hero-rail-card,
.process-card,
.collection-card,
.value-card,
.story-card,
.closing-cta-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 42px var(--shadow);
}

.hero-rail-card {
  padding: 1.4rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.06), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

[data-theme="dark"] .hero-rail-card {
  background:
    linear-gradient(180deg, rgba(241, 235, 222, 0.08), rgba(26, 37, 64, 0.9)),
    var(--surface);
}

.hero-rail-top h2 {
  font-size: 1.7rem;
  margin-top: 0.85rem;
  line-height: 1.1;
}

.eyebrow-compact {
  padding: 0.38rem 0.65rem;
  font-size: 0.7rem;
}

.hero-category-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.hero-category-item {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .hero-category-item {
  background: rgba(255, 255, 255, 0.04);
}

.hero-category-item span {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-category-item strong {
  font-size: 0.97rem;
  line-height: 1.5;
}

.hero-rail-note {
  color: var(--text-muted);
  line-height: 1.7;
}

.btn-primary,
.btn-secondary {
  border-radius: 16px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  border: none;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 18px 34px var(--shadow);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.btn-hero {
  min-width: 188px;
  font-size: 1rem;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.landing-sections {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

.landing-section {
  position: relative;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 14ch;
}

.section-copy {
  margin-top: 0.6rem;
  max-width: 60ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-band,
.values-section,
.merchandising-section,
.story-section {
  padding: 1.5rem 0 0;
}

.process-grid,
.collection-grid,
.values-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}

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

.process-card,
.value-card,
.story-card {
  padding: 1.3rem;
  border-radius: 28px;
}

.process-step,
.collection-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process-step {
  margin-bottom: 0.9rem;
  color: var(--primary);
  background: var(--primary-soft);
}

.process-card h3,
.collection-card h3,
.value-card h3,
.story-card h2 {
  margin-bottom: 0.45rem;
}

.process-card p,
.collection-card p,
.value-card p,
.story-card p,
.impact-list li,
.closing-cta-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

.collection-card {
  min-height: 220px;
  padding: 1.35rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.04), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

[data-theme="dark"] .collection-card {
  background:
    linear-gradient(180deg, rgba(241, 235, 222, 0.05), rgba(26, 37, 64, 0.96)),
    var(--surface);
}

.collection-card-warm {
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.08), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.collection-card-dark {
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.1), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

[data-theme="dark"] .collection-card-warm,
[data-theme="dark"] .collection-card-dark {
  background:
    linear-gradient(180deg, rgba(241, 235, 222, 0.08), rgba(26, 37, 64, 0.96)),
    var(--surface);
}

.collection-kicker {
  margin-bottom: 1rem;
  color: var(--primary);
  background: var(--primary-soft);
}

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

.values-grid .value-card:last-child {
  grid-column: span 3;
}

.story-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.story-card h2 {
  font-size: 2rem;
  line-height: 1.08;
}

.story-card p + p {
  margin-top: 0.8rem;
}

.impact-card {
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.06), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

[data-theme="dark"] .impact-card {
  background:
    linear-gradient(180deg, rgba(241, 235, 222, 0.06), rgba(26, 37, 64, 0.96)),
    var(--surface);
}

.impact-list {
  list-style: none;
  margin-top: 1rem;
}

.impact-list li {
  position: relative;
  padding-left: 1.25rem;
}

.impact-list li + li {
  margin-top: 0.7rem;
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}

.closing-cta-card {
  padding: 1.6rem;
  border-radius: 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(17, 27, 50, 0.06), rgba(17, 27, 50, 0.04)),
    var(--surface);
}

.closing-cta-card h2 {
  margin: 0.85rem auto 0.65rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.closing-cta-card p {
  max-width: 62ch;
  margin: 0 auto 1.2rem;
}

.auth-container,
.confirm-container,
.loading-container {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100vh - 88px);
  padding: 1.5rem 0 2.5rem;
}

.auth-logo {
  width: 150px;
  border-radius: 18px;
  box-shadow: 0 18px 38px var(--shadow);
  margin-bottom: 1.6rem;
}

.auth-card,
.confirm-card {
  width: min(440px, 100%);
  padding: 2rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 22px 48px var(--shadow);
}

.auth-card h2,
.confirm-card h2 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.auth-card .text-muted {
  margin-bottom: 1.5rem;
}

.auth-switch {
  margin-top: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.version-tag {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.input-group {
  width: 100%;
}

.input-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.input-field {
  width: 100%;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.input-field::placeholder {
  color: var(--text-soft);
}

.survey-container,
.dash-container {
  width: min(980px, calc(100vw - 2rem));
  padding-bottom: 3rem;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.progress-copy h2 {
  font-size: 2rem;
}

.progress-copy p {
  margin-top: 0.45rem;
  max-width: 54ch;
}

.progress-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 27, 50, 0.05);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.25s ease;
}

.question {
  padding: 1.7rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px var(--shadow);
}

.question h3 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

.question p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.options {
  display: grid;
  gap: 0.75rem;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.extra-card {
  padding: 1.05rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.extra-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-meta,
.extra-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.option {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.option.selected,
.option.multi-selected {
  border-color: rgba(17, 27, 50, 0.45);
  background: var(--primary-soft);
}

[data-theme="dark"] .option.selected,
[data-theme="dark"] .option.multi-selected {
  border-color: rgba(241, 235, 222, 0.45);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(17, 27, 50, 0.1);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.2rem;
}

[data-theme="dark"] .spinner {
  border-color: rgba(241, 235, 222, 0.12);
  border-top-color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.dash-header h2 {
  margin: 0.8rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.profile-summary,
.warning-panel,
.trust-card,
.stack-card,
.empty-stack {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px var(--shadow);
}

.profile-summary {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: start;
}

.profile-summary-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-summary-name {
  font-weight: 800;
  font-size: 1rem;
}

.profile-summary-email {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.profile-detail-row {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
}

.profile-detail-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.profile-detail-value {
  font-size: 0.9rem;
  line-height: 1.5;
}

.warning-panel {
  padding: 1.1rem 1.2rem;
  border-radius: 24px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(17, 27, 50, 0.1), rgba(17, 27, 50, 0.04));
}

.warning-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.warning-panel p {
  color: var(--text-muted);
  line-height: 1.65;
}

.warning-panel p + p {
  margin-top: 0.45rem;
}

.stack-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.stack-media {
  position: relative;
  min-height: 100%;
  background: var(--bg-soft);
}

.stack-card-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.stack-card-body {
  padding: 1.4rem;
}

.stack-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.7rem;
}

.stack-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.stack-card-header h3 {
  font-size: 1.8rem;
}

.category-tag,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-tag {
  color: var(--primary);
  background: var(--primary-soft);
}

.badge-training {
  color: var(--primary);
  background: var(--primary-soft);
}

.badge-bedtime {
  color: #a8b8ff;
  background: rgba(168, 184, 255, 0.16);
}

.btn-remove {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.btn-remove:hover {
  color: #ff8585;
  border-color: rgba(255, 133, 133, 0.45);
}

.stack-card-dose {
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.why-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.why-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.why-card p,
.stack-card-desc,
.stack-card-timing,
.trust-card p,
.trust-card li,
.disclaimer,
.order-item,
.confirm-note {
  color: var(--text-muted);
  line-height: 1.7;
}

.stack-card-desc {
  margin-bottom: 0.75rem;
}

.stack-card-timing {
  font-size: 0.92rem;
}

.add-supplement-section,
.order-section {
  margin-top: 1.4rem;
}

.add-supplement-section h3,
.trust-card h3,
.recurrence-section h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.add-supplement-section p {
  margin-bottom: 1rem;
}

.add-supplement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
}

.add-supplement-row .input-field {
  margin-bottom: 0;
}

.btn-add {
  min-width: 128px;
}

.trust-card {
  padding: 1.4rem;
  border-radius: 28px;
  margin-bottom: 1.2rem;
}

.trust-card ul {
  list-style: none;
  margin-top: 1rem;
}

.trust-card li {
  position: relative;
  padding-left: 1.4rem;
}

.trust-card li + li {
  margin-top: 0.4rem;
}

.trust-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.recurrence-subtitle {
  margin-bottom: 0.8rem;
}

.recurrence-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.recurrence-opt strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.recurrence-opt span {
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-order {
  width: 100%;
  margin: 1.25rem 0 0.8rem;
}

.dashboard-disclaimer {
  margin-top: 1.2rem;
  text-align: center;
}

.empty-stack {
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
}

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

.confirm-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  background: var(--primary);
  color: var(--bg);
}

.order-details {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-align: left;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.order-detail-row span {
  color: var(--text-soft);
}

.order-items {
  padding-top: 0.8rem;
}

.order-item + .order-item {
  margin-top: 0.35rem;
}

/* ── Category Tabs ── */
.category-tabs {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

body[data-screen="landing"] .category-tabs {
  display: block;
}

body:not([data-screen="landing"]) .category-tabs {
  display: none;
}

.category-tabs-inner {
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 1.2rem;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.cat-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.cat-tab.active {
  color: var(--bg);
  background: var(--primary);
  border-color: transparent;
  font-weight: 700;
}

/* ── Hero Carousel ── */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: none;
  animation: fadeSlide 0.5s ease;
}

.hero-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

.carousel-dot:hover {
  border-color: var(--primary);
}

.hero-rail-card-warm {
  background:
    linear-gradient(180deg, rgba(17, 27, 50, 0.08), rgba(255, 255, 255, 0.94)),
    var(--surface) !important;
}

[data-theme="dark"] .hero-rail-card-warm {
  background:
    linear-gradient(180deg, rgba(241, 235, 222, 0.1), rgba(26, 37, 64, 0.9)),
    var(--surface) !important;
}

/* ── Product Scroll Row ── */
.product-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}

.product-scroll-row::-webkit-scrollbar {
  display: none;
}

/* ── Product Cards ── */
.product-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px var(--shadow);
}

.product-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.product-card-category {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 0.5rem;
}

.product-card-name {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card-timing {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.product-card-action {
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.product-card-action:hover {
  transform: translateY(-1px);
}

/* ── Favorites / Browse Section ── */
.browse-section,
.favorites-section {
  padding: 1.5rem 0 0;
}

/* ── Site Footer ── */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-logo {
  width: 110px;
  border-radius: 14px;
  box-shadow: 0 8px 22px var(--shadow);
}

.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col > p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-subscribe {
  display: flex;
  gap: 0.5rem;
}

.footer-input {
  flex: 1;
  margin-bottom: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
}

.footer-sub-btn {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.footer-copy {
  white-space: nowrap;
}

/* Adjust screen padding for category tabs */
body[data-screen="landing"] .screen {
  padding-top: 126px;
}

@media (max-width: 760px) {
  .navbar {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .nav-meta {
    display: none;
  }

  .stack-card {
    grid-template-columns: 1fr;
  }

  .stack-media {
    min-height: 220px;
  }

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

  .category-tabs-inner {
    justify-content: flex-start;
  }

  .profile-summary-grid,
  .recurrence-options,
  .extras-grid,
  .profile-details,
  .input-row,
  .process-grid,
  .collection-grid,
  .values-grid,
  .story-grid,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .progress-row,
  .survey-nav,
  .landing-footer,
  .add-supplement-row {
    flex-direction: column;
  }

  .landing-footer {
    align-items: flex-start;
  }

  .survey-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .add-supplement-row {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container,
  .survey-container,
  .dash-container {
    width: calc(100vw - 1.25rem);
  }

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

  .footer-subscribe {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .product-card {
    flex: 0 0 220px;
  }

  .landing-copy h1 {
    font-size: 2.4rem;
  }

  .section-heading h2,
  .story-card h2,
  .closing-cta-card h2 {
    max-width: none;
    font-size: 2rem;
  }

  .auth-card,
  .confirm-card,
  .question,
  .profile-summary,
  .warning-panel,
  .stack-card-body,
  .trust-card,
  .hero-rail-card,
  .process-card,
  .collection-card,
  .value-card,
  .story-card,
  .closing-cta-card {
    padding: 1.15rem;
  }

  .hero-actions,
  .survey-nav {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn-primary,
  .btn-secondary,
  .btn-add {
    width: 100%;
  }

  .add-supplement-row {
    flex-direction: column;
  }

  .stack-card-header h3 {
    font-size: 1.45rem;
  }
}

/* ── About Page ── */
.about-container {
  max-width: 900px;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.about-values {
  margin-bottom: 3rem;
}

.about-values h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-impact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.about-impact h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.about-impact p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.about-cta {
  text-align: center;
  padding: 2rem 0;
}

.about-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 1.6rem;
  }
}
