/*
 * OriginQR homepage — marketing/conversion landing styles.
 * Light warm calm theme (tokens v3). Loaded only on index.html so
 * parallel app-page redesigns can own styles.css without conflicts.
 */

/* -------------------------------------------------------------------------- */
/* Self-hosted Inter (no CDN runtime fetch)                                   */
/* -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
}

/* -------------------------------------------------------------------------- */
/* Page shell overrides (dark enterprise)                                     */
/* -------------------------------------------------------------------------- */
body.home-page {
  color: var(--color-text-secondary);
  background: var(--color-bg);
  font-family: var(--font-family);
  overflow-x: hidden;
}

/* Full-bleed marketing shells only — exclude reading-column mains. */
body.home-page main:not(.prose-page) {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home-page a {
  color: var(--color-primary);
}

body.home-page a:hover {
  color: var(--color-primary-dark);
}

/* Header — solid light */
body.home-page .site-header {
  background: rgba(250, 248, 243, 0.92);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

body.home-page .header-container {
  max-width: 1120px;
}

body.home-page .logo,
body.home-page .logo:hover,
body.home-page .logo-text {
  color: var(--color-text-primary);
}

body.home-page .nav a {
  color: var(--color-text-secondary);
}

body.home-page .nav a:hover {
  color: var(--color-text-primary);
  background: var(--color-primary-tint);
}

body.home-page .nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-tint);
}

body.home-page .btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

body.home-page .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-on-primary);
}

body.home-page .btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

body.home-page .btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-text-primary);
}

body.home-page .site-footer {
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  margin-top: 0;
}

/* -------------------------------------------------------------------------- */
/* Shared layout helpers                                                      */
/* -------------------------------------------------------------------------- */
.home-section {
  padding: var(--space-8) var(--space-5);
}

.home-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

.section-lead {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 0 var(--space-6);
}

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                    */
/* -------------------------------------------------------------------------- */
.hero-marketing {
  position: relative;
  padding: var(--space-7) var(--space-5) var(--space-6);
  overflow: hidden;
}

.hero-marketing::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-marketing::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-copy {
  text-align: left;
}

/* Homepage hero brand lockup — larger mark + wordmark above headline.
   Height reserved from first paint so entrance animation cannot shift layout.
   Nav logo is unchanged (small, static) for consistent wayfinding. */
.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* Reserve final layout size (64px mark) before animation paints */
  min-height: 64px;
  height: 64px;
  margin: 0 0 var(--space-5);
  /* Optional subtle settle after mark + wordmark land (~550–750ms) */
  animation: hero-lockup-settle 200ms ease-out 550ms both;
}

.hero-lockup-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: block;
  /* Final state is the default (no-JS / failed-anim still fully visible) */
  opacity: 1;
  transform: scale(1);
  /* 0–250ms: fade + scale in */
  animation: hero-mark-enter 250ms ease-out both;
}

.hero-lockup-wordmark {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  /* 150–550ms: slides from near the mark into resting position */
  animation: hero-wordmark-enter 400ms ease-out 150ms both;
}

@keyframes hero-mark-enter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-wordmark-enter {
  from {
    opacity: 0;
    /* Start near/behind the mark, then settle next to it */
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-lockup-settle {
  from {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-lockup,
  .hero-lockup-mark,
  .hero-lockup-wordmark {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.hero-copy .display-title {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

.hero-copy .body-large {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-6);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  justify-content: flex-start;
}

/* Visual stage: product + phone */
.hero-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-5);
}

/* Product package mockup (geometric bottle) */
.product-mockup {
  position: relative;
  width: 160px;
  flex-shrink: 0;
}

.bottle {
  width: 140px;
  margin: 0 auto;
  position: relative;
}

.bottle-cap {
  width: 44px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, #A8A29E 0%, #78716C 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: 6px 6px 2px 2px;
}

.bottle-neck {
  width: 36px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.15) 0%, #E7E5E4 100%);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.bottle-body {
  width: 120px;
  margin: 0 auto;
  min-height: 220px;
  background: linear-gradient(
    160deg,
    #FFFFFF 0%,
    rgba(22, 101, 52, 0.08) 45%,
    #F5F5F4 100%
  );
  border: 1px solid var(--color-border);
  border-radius: 18px 18px 28px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5) var(--space-3) var(--space-4);
  position: relative;
  overflow: hidden;
}

.bottle-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.bottle-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.bottle-label {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.bottle-label canvas {
  display: block;
  width: 88px !important;
  height: 88px !important;
}

.bottle-meta {
  margin-top: var(--space-3);
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Phone frame */
.phone-frame {
  width: 168px;
  flex-shrink: 0;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border-strong);
  border-radius: 28px;
  padding: 10px 8px 12px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.phone-notch {
  width: 56px;
  height: 6px;
  background: #D6D3D1;
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-2);
}

.phone-screen {
  background: var(--color-surface-solid);
  border-radius: 18px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.phone-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.phone-tab {
  flex: 1;
  padding: 8px 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
}

.phone-tab.active {
  color: var(--color-success);
  background: var(--color-success-tint);
}

.phone-view {
  position: absolute;
  inset: 28px 0 0 0;
  padding: var(--space-3);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.phone-view.active {
  opacity: 1;
  pointer-events: auto;
}

.phone-view-title {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  line-height: 18px;
  color: var(--color-text-primary);
  font-weight: 700;
}

.phone-view p {
  margin: 0 0 var(--space-2);
  font-size: 11px;
  line-height: 16px;
  color: var(--color-text-secondary);
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.phone-chip.live {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.phone-chip.batch {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.phone-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.phone-row strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.phone-cta-bar {
  margin-top: var(--space-3);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------- */
/* 1b. Try It Now generator                                                   */
/* -------------------------------------------------------------------------- */
.try-now {
  padding: 0 var(--space-5) var(--space-8);
  scroll-margin-top: 80px;
}

.try-now-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.try-now-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.try-now-header h2 {
  font-size: 24px;
  line-height: 32px;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}

.try-now-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.try-now-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: start;
}

.try-now-form label {
  color: var(--color-text-primary);
}

.try-now-form input[type="text"] {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.try-now-form input[type="text"]::placeholder {
  color: var(--color-text-muted);
}

.try-now-form input[type="text"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.try-now-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  min-height: 18px;
}

.try-now-hint.valid {
  color: var(--color-success);
  font-weight: 600;
}

.try-now-hint.invalid {
  color: var(--color-danger);
  font-weight: 600;
}

.try-now-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--color-primary);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  word-break: break-all;
  margin-bottom: var(--space-4);
  min-height: 44px;
}

.try-now-preview {
  text-align: center;
  min-width: 200px;
}

.try-now-preview canvas {
  display: block;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
  border: 1px solid var(--color-border);
  max-width: 180px;
  height: auto;
}

.try-now-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.qr-print-size {
  margin: var(--space-3) 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-secondary);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.qr-print-size .qr-print-tips-link {
  white-space: nowrap;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* 2. Why Now / Sunrise 2027 banner                                           */
/* -------------------------------------------------------------------------- */
.sunrise-banner {
  position: relative;
  margin: 0 var(--space-5);
  padding: var(--space-6) var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    105deg,
    rgba(22, 101, 52, 0.08) 0%,
    #FFFFFF 45%,
    rgba(22, 101, 52, 0.06) 100%
  );
  border: 1px solid rgba(22, 101, 52, 0.20);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sunrise-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
}

.sunrise-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sunrise-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-success-tint);
  color: var(--color-success);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.sunrise-banner p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* 3. Benefit grid                                                            */
/* -------------------------------------------------------------------------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.benefit-card {
  padding: var(--space-5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.benefit-card:hover {
  border-color: var(--color-border-strong);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: var(--color-success-tint);
  color: var(--color-success);
  font-size: 18px;
  font-weight: 700;
}

.benefit-card:nth-child(2) .benefit-icon {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.benefit-card h3 {
  font-size: 18px;
  line-height: 26px;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* 4. How it works stepper                                                    */
/* -------------------------------------------------------------------------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary) 15%,
    var(--color-primary) 85%,
    transparent
  );
  opacity: 0.35;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-solid);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: none;
}

.step-card h3 {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* 5. Scan flow diagram                                                       */
/* -------------------------------------------------------------------------- */
.scan-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-3);
}

.flow-node {
  flex: 1 1 180px;
  max-width: 260px;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.flow-node .flow-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.flow-node.glow-success {
  box-shadow: var(--shadow-sm);
  border-color: rgba(21, 128, 61, 0.35);
}

.flow-node.glow-success .flow-icon {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.flow-node h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.flow-node p {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-muted);
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 300;
  flex: 0 0 auto;
  opacity: 0.7;
  padding: 0 2px;
}

/* -------------------------------------------------------------------------- */
/* 6. Compliance badges                                                       */
/* -------------------------------------------------------------------------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
}

.trust-badge.success {
  background: var(--color-success-tint);
  color: var(--color-success);
  border-color: rgba(21, 128, 61, 0.25);
}

.trust-badge.cyan {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  border-color: rgba(22, 101, 52, 0.25);
}

.trust-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* 7. Comparison table                                                        */
/* -------------------------------------------------------------------------- */
/* Scroll the table on narrow viewports instead of expanding the page. */
.compare-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 520px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-solid);
}

.compare-table th.winner {
  color: var(--color-success);
  background: rgba(22, 101, 52, 0.08);
}

.compare-table td {
  color: var(--color-text-secondary);
}

.compare-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 22%;
}

.compare-table td.winner {
  color: var(--color-text-primary);
  font-weight: 600;
  background: rgba(22, 101, 52, 0.05);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------------------- */
/* 8. Pricing preview + closing CTA                                           */
/* -------------------------------------------------------------------------- */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.pricing-preview-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.pricing-preview-card.featured {
  border-color: rgba(22, 101, 52, 0.40);
  box-shadow: var(--shadow-md);
}

.pricing-preview-card .tier-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}

.pricing-preview-card .tier-price {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1);
}

.pricing-preview-card .tier-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.pricing-preview-card .tier-limit {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.pricing-preview-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex: 1;
}

.pricing-preview-card li {
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-secondary);
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
}

.pricing-preview-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pricing-support {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0 0 var(--space-4);
}

.pricing-support strong {
  color: var(--color-text-primary);
}

.pricing-link-wrap {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Closing CTA banner */
.closing-cta {
  text-align: center;
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(
    135deg,
    rgba(22, 101, 52, 0.08) 0%,
    #FFFFFF 50%,
    rgba(22, 101, 52, 0.06) 100%
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.closing-cta h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.015em;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-copy {
    text-align: center;
  }

  .hero-brand-lockup {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .body-large {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .benefit-grid,
  .stepper,
  .pricing-preview-grid {
    grid-template-columns: 1fr;
  }

  .stepper::before {
    display: none;
  }

  .try-now-grid {
    grid-template-columns: 1fr;
  }

  .try-now-preview {
    order: -1;
  }

  .flow-arrow {
    transform: rotate(90deg);
    width: 100%;
    justify-content: center;
    padding: var(--space-1) 0;
  }

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

  .flow-node {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-lockup-mark {
    width: 56px;
    height: 56px;
  }

  .hero-brand-lockup {
    min-height: 56px;
    height: 56px;
  }

  .hero-lockup-wordmark {
    font-size: 30px;
  }

  .hero-copy .display-title {
    font-size: 28px;
    line-height: 36px;
  }

  .section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .closing-cta h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .sunrise-banner {
    margin: 0 var(--space-4);
    padding: var(--space-5);
  }

  .sunrise-banner p {
    font-size: 16px;
    line-height: 24px;
  }

  .home-section {
    padding: var(--space-7) var(--space-4);
  }

  .try-now {
    padding: 0 var(--space-4) var(--space-7);
  }

  .try-now-card {
    padding: var(--space-5);
  }

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

  .product-mockup {
    width: 130px;
  }

  .bottle {
    width: 120px;
  }

  .bottle-body {
    width: 100px;
    min-height: 190px;
  }

  .bottle-label canvas {
    width: 72px !important;
    height: 72px !important;
  }

  .phone-frame {
    width: 148px;
  }

  .trust-badge {
    white-space: normal;
    text-align: center;
  }

  .badge-row {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-badge {
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .hero-marketing {
    padding: var(--space-5) var(--space-3) var(--space-5);
  }

  .hero-copy .display-title {
    font-size: 26px;
    line-height: 34px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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


/* -------------------------------------------------------------------------- */
/* Mission / why we exist                                                     */
/* -------------------------------------------------------------------------- */
.mission-section {
  padding: var(--space-8) var(--space-5);
  background: var(--color-bg);
}

.mission-card {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mission-card .section-label {
  margin-bottom: var(--space-4);
}

.mission-card .section-title {
  margin-bottom: var(--space-5);
}

.mission-body {
  margin: 0;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-text-secondary);
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Live scannable demos                                                       */
/* -------------------------------------------------------------------------- */
.live-demo-section {
  padding: 0 var(--space-5) var(--space-8);
  scroll-margin-top: 80px;
}

.live-demo-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.live-demo-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.live-demo-header h2 {
  font-size: 24px;
  line-height: 32px;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}

.live-demo-header p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.live-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.live-demo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  gap: var(--space-3);
}

.live-demo-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-primary);
}

.live-demo-item p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-secondary);
  max-width: 280px;
}

.live-demo-item canvas {
  display: block;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.live-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.live-demo-badge.active {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.live-demo-badge.recall {
  background: var(--color-danger-tint);
  color: var(--color-danger);
}

.live-demo-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--color-primary);
  word-break: break-all;
  max-width: 100%;
}

@media (max-width: 700px) {
  .live-demo-grid {
    grid-template-columns: 1fr;
  }

  .mission-body {
    font-size: 16px;
    line-height: 26px;
  }

  .mission-card {
    padding: var(--space-5);
  }
}

/* Data / trust prose page (data.html) */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
}

.prose-page h1 {
  margin-bottom: var(--space-4);
}

.prose-page h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose-page p,
.prose-page li {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

.prose-page ul {
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
}

.prose-page li {
  margin-bottom: var(--space-2);
}

.prose-page .lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

/* Learning hub (learn.html, sunrise-2027.html, glossary.html, faq.html,
   getting-started.html) */
.prose-page .uri-container {
  justify-content: flex-start;
}

.glossary-list {
  margin: 0 0 var(--space-5);
}

.glossary-list dt {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.glossary-list dd {
  margin: 0 0 var(--space-5);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* Consumer result chrome (scan.html?gtin=&lot= from product QR redirects)     */
/* Minimal trust mark only — no SaaS marketing nav / trial CTA / full footer  */
/* -------------------------------------------------------------------------- */
html.consumer-result .site-nav-marketing,
html.consumer-result .site-cta-marketing,
body.consumer-result .site-nav-marketing,
body.consumer-result .site-cta-marketing {
  display: none !important;
}

html.consumer-result .site-header,
body.consumer-result .site-header {
  height: 52px;
  position: relative; /* no sticky marketing bar on a one-shot result */
}

html.consumer-result .header-container,
body.consumer-result .header-container {
  justify-content: center;
  max-width: 480px;
}

html.consumer-result .logo-mark,
body.consumer-result .logo-mark {
  width: 28px;
  height: 28px;
}

html.consumer-result .logo-text,
body.consumer-result .logo-text {
  font-size: 16px;
  font-weight: 600;
}

html.consumer-result .footer-marketing,
body.consumer-result .footer-marketing {
  display: none !important;
}

.footer-consumer {
  display: none;
}

html.consumer-result .footer-consumer,
body.consumer-result .footer-consumer {
  display: block;
}

html.consumer-result .site-footer,
body.consumer-result .site-footer {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-6);
}

.footer-powered {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-powered a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-powered a:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* Slightly tighter page chrome around the result card */
html.consumer-result main,
body.consumer-result main {
  padding-top: var(--space-5);
  max-width: 560px;
}

/* Scan result viewer */
.scan-result {
  max-width: 480px;
  margin: var(--space-7) auto;
  padding: var(--space-6);
  /* Left accent defaults to transparent so non-status cards stay neutral */
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: transparent;
}

/* Status accents: thin left border + very light tint wash (not a solid colored card).
   compliant = green, expired = amber, recalled = red — three distinct states. */
.scan-result.status-compliant {
  border-left-color: var(--color-success);
  background: color-mix(in srgb, var(--color-success-tint) 55%, var(--color-surface));
}

.scan-result.status-expired {
  border-left-color: var(--color-warning);
  background: color-mix(in srgb, var(--color-warning-tint) 55%, var(--color-surface));
}

.scan-result.status-recalled,
.scan-result.recalled {
  border-color: color-mix(in srgb, var(--color-danger) 35%, var(--color-border));
  border-left-color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger-tint) 55%, var(--color-surface));
}

/* Compliant-only seal badge — small icon motif above product name (not a banner) */
.scan-result-illustration {
  display: block;
  width: 64px;
  max-width: 20%;
  height: auto;
  margin: 0 auto var(--space-3);
  object-fit: contain;
  flex-shrink: 0;
}

.scan-result-illustration.hidden {
  display: none;
}

.scan-result-banner {
  display: none;
  background: var(--color-danger);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.scan-result.recalled .scan-result-banner,
.scan-result.status-recalled .scan-result-banner {
  display: block;
}

.scan-result-meta {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.scan-result-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.scan-result-row span {
  color: var(--color-text-muted);
}

.scan-result-row strong {
  color: var(--color-text-primary);
  text-align: right;
}

/* Status value + flat icon (color = state) */
.scan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.scan-status-icon {
  flex-shrink: 0;
  display: block;
}

.scan-status--compliant {
  color: var(--color-success);
}

.scan-status--expired {
  color: var(--color-warning);
}

.scan-status--recalled {
  color: var(--color-danger);
}

.scan-result-message {
  background: var(--color-danger-tint);
  border: 1px solid color-mix(in srgb, var(--color-danger) 25%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 24px;
  margin-top: var(--space-3);
}

/* -------------------------------------------------------------------------- */
/* Live camera QR scanner (scan.html scanner mode)                            */
/* Mobile-first: large touch targets, one-handed viewport                     */
/* -------------------------------------------------------------------------- */
.scanner-mode {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-6);
}

.scanner-stage {
  margin: 0 auto var(--space-4);
}

.scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(68vh, 560px);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0a09;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.scanner-viewport--error {
  border-color: rgba(185, 28, 28, 0.45);
}

.scanner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c0a09;
}

/* Hidden canvas used only for jsQR ImageData sampling */
.scanner-canvas {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.scanner-viewfinder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-viewfinder::before {
  content: "";
  width: min(62%, 240px);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(12, 10, 9, 0.38);
}

.scanner-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0;
}

/* Corners sit on the viewfinder box (~62% centered) */
.scanner-corner--tl {
  top: 50%;
  left: 50%;
  width: min(62%, 240px);
  height: min(62%, 240px);
  max-width: 240px;
  max-height: 240px;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow:
    inset 3px 3px 0 0 var(--color-primary),
    inset -3px -3px 0 0 transparent;
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) top left / 28px 3px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) top left / 3px 28px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) top right / 28px 3px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) top right / 3px 28px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom left / 28px 3px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom right / 28px 3px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom right / 3px 28px no-repeat;
  pointer-events: none;
}

/* Hide unused corner spans — brackets drawn on --tl only */
.scanner-corner--tr,
.scanner-corner--bl,
.scanner-corner--br {
  display: none;
}

.scanner-status {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100% - var(--space-6));
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.scanner-torch {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.scanner-torch:hover,
.scanner-torch:focus-visible {
  border-color: var(--color-primary);
  outline: none;
}

.scanner-torch--on {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #fff;
}

.scanner-torch-icon {
  flex-shrink: 0;
}

/* Dim overlay + centered "Validating…" chip (shown on successful decode) */
.scanner-resolving {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: rgba(12, 10, 9, 0.4);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
}

.scanner-resolving::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11rem;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 0;
}

.scanner-resolving > * {
  position: relative;
  z-index: 1;
}

.scanner-resolving-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.scanner-error {
  max-width: 100%;
  margin: var(--space-3) 0 0;
}

.scanner-paste {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-4);
}

.scanner-paste-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.scanner-paste-row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.scanner-paste-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 16px; /* avoids iOS zoom-on-focus */
  font-family: inherit;
  line-height: 1.3;
}

.scanner-paste-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.scanner-paste-row .btn {
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 64px;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 480px) {
  .scanner-viewport {
    aspect-ratio: 4 / 3;
    max-height: min(62vh, 480px);
  }
}

/* -------------------------------------------------------------------------- */
/* Setup/onboarding illustrations                                             */
/* -------------------------------------------------------------------------- */
.hero-before-after-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.step-card-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.scan-flow-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.compliance-panel-img,
.scan-trace-verify-img {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--space-5) 0 var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

