/* Engine Room Simulator - ERS Landing Page */

:root {
  --splash-dark: #0a1210;
  --splash-mid: #101c18;
  --splash-deep: #060908;
  --surface-dark: #142019;
  --surface-dark-mid: #1c2b23;
  --surface-dark-raised: #243028;
  --surface-sage: #2d4538;
  --engine-green: #5c9e7a;
  --engine-green-dark: #3d7a5c;
  --engine-green-light: #d4e8dc;
  --engine-green-muted: #a8c4b4;
  --accent-gold: #d4af37;
  --light-surface: #d8e0db;
  --light-surface-alt: #ccd6d0;
  --section-mid: #b8c8be;
  --card-bg: #f2f5f3;
  --card-bg-elevated: #fafcfb;
  --card-border: #a8b8ae;
  --text-main: #142019;
  --text-muted: #4a5c52;
  --text-on-dark: #f3f0e7;
  --text-muted-on-dark: #a8bdb0;
  --warm-white: #f3f0e7;
  --panel-stroke: #6b7f74;
  --floor-red: #d13a31;
  --display-green: #8be26a;
  --shadow: 0 10px 36px rgba(10, 18, 16, 0.14);
  --shadow-lg: 0 20px 56px rgba(10, 18, 16, 0.22);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --mobile-cta-height: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-height) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--light-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--engine-green-dark);
  text-decoration: none;
}

.section-dark a,
.site-footer a,
.hero a {
  color: var(--display-green);
}

a:hover {
  text-decoration: underline;
}

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

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(20, 32, 25, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 158, 122, 0.25);
  box-shadow: 0 4px 24px rgba(10, 18, 16, 0.2);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--engine-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(92, 158, 122, 0.35);
}

.nav-cta:hover {
  background: var(--display-green);
  color: var(--splash-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--splash-mid) 0%, var(--surface-dark) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/engine_room.jpg");
  background-size: cover;
  background-position: center right;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 18, 16, 0.92) 0%,
    rgba(16, 28, 24, 0.82) 42%,
    rgba(20, 32, 25, 0.45) 72%,
    rgba(20, 32, 25, 0.2) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: 4rem 5rem;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(92, 158, 122, 0.18);
  border: 1px solid rgba(139, 226, 106, 0.35);
  border-radius: 999px;
  color: var(--display-green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 0.25rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.hero-title .gold {
  display: block;
  color: var(--accent-gold);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.hero-tagline {
  margin: 1rem 0 1.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-on-dark);
  font-weight: 600;
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted-on-dark);
  max-width: 520px;
}

.hero-desc strong {
  color: var(--warm-white);
  font-weight: 700;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  transform: scale(1.04);
  opacity: 0.95;
  text-decoration: none;
}

.store-badge img {
  height: 48px;
  width: auto;
}

/* Trust strip */
.trust-strip {
  background: var(--surface-sage);
  border-bottom: 1px solid rgba(92, 158, 122, 0.3);
  padding-block: 1.25rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-pills li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.trust-pills li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--display-green);
}

.trust-attribution {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--engine-green-muted);
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding-block: 4.5rem;
}

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

.section-dark {
  background: linear-gradient(180deg, var(--surface-dark-mid) 0%, var(--splash-dark) 100%);
  color: var(--text-on-dark);
}

.section-dark .section-header h2,
.section-dark .value-banner h2 {
  color: var(--text-on-dark);
}

.section-dark .section-header p,
.section-dark .value-lead,
.section-dark .value-eyebrow {
  color: var(--text-muted-on-dark);
}

.section-dark .value-lead strong {
  color: var(--warm-white);
}

.section-dark .value-eyebrow {
  color: var(--display-green);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: var(--text-muted-on-dark);
}

/* Value proposition */
.value-section {
  background: var(--light-surface-alt);
}

.value-banner {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.value-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--engine-green-dark);
}

.value-banner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.value-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.value-lead strong {
  color: var(--text-main);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.value-card {
  position: relative;
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark-raised);
  color: var(--display-green);
  border-radius: 14px;
  margin-bottom: 1.1rem;
  font-size: 1.45rem;
}

.value-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

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

.value-card p strong {
  color: var(--text-main);
  font-weight: 700;
}

.value-card--highlight {
  border: 1px solid rgba(92, 158, 122, 0.45);
  border-left: 5px solid var(--accent-gold);
  background: linear-gradient(155deg, #edf5f0 0%, #f9fcfa 45%, #e4efe8 100%);
  box-shadow: 0 16px 48px rgba(20, 32, 25, 0.16);
}

.value-card--highlight::after {
  content: "Primary advantage";
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(92, 158, 122, 0.18);
  border: 1px solid rgba(92, 158, 122, 0.35);
  color: var(--engine-green-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.value-card--highlight .value-icon {
  background: linear-gradient(145deg, var(--engine-green) 0%, var(--engine-green-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(92, 158, 122, 0.35);
}

.value-card--highlight h3 {
  color: var(--surface-dark);
  padding-right: 5.5rem;
}

.value-card--highlight p {
  color: #3d5248;
}

/* Research section */
.research-section {
  border-top: 1px solid var(--card-border);
  background: var(--light-surface);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.research-card {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.research-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.research-card p:last-child {
  margin-bottom: 0;
}

.research-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--engine-green-dark);
  text-decoration: none;
}

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

.research-citations {
  background: var(--surface-dark-raised);
  border: 1px solid rgba(92, 158, 122, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.research-citations-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.citation-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted-on-dark);
  font-size: 0.9rem;
  line-height: 1.7;
}

.citation-list li {
  margin-bottom: 0.85rem;
}

.citation-list a {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--display-green);
}

.research-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--engine-green-muted);
  font-style: italic;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark-raised);
  color: var(--display-green);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Screenshot gallery */
.gallery-section {
  overflow: hidden;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gallery-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(139, 226, 106, 0.3);
  background: var(--surface-dark-raised);
  color: var(--text-on-dark);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}

.gallery-btn:hover {
  background: var(--surface-sage);
  border-color: var(--display-green);
  color: var(--display-green);
}

.gallery-track-wrap {
  overflow: hidden;
  margin-inline: -1rem;
  padding-inline: 1rem;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  padding-inline: max(0px, calc((100% - min(280px, 75vw)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--engine-green) transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--engine-green);
  border-radius: 3px;
}

.phone-frame {
  flex: 0 0 auto;
  width: min(280px, 75vw);
  scroll-snap-align: center;
  text-align: center;
}

.phone-shell {
  position: relative;
  background: #2a2a2a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #f4f7f6;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

/* Modules grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--card-bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.module-card:hover {
  transform: translateY(-4px);
}

.module-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.module-card-body {
  padding: 1.25rem;
}

.module-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.module-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--engine-green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ERS Pro */
.pro-card {
  background: var(--surface-dark-raised);
  border: 1px solid rgba(92, 158, 122, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.pro-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-on-dark);
}

.pro-card p {
  margin: 0 0 2rem;
  color: var(--text-muted-on-dark);
  font-size: 1.05rem;
}

/* SEO content */
.seo-prose {
  max-width: 720px;
  margin: 0 auto;
}

.seo-prose p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.seo-prose p:last-child {
  margin-bottom: 0;
}

.seo-prose a {
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-block: 5rem;
  background: linear-gradient(180deg, var(--surface-sage) 0%, var(--surface-dark-mid) 100%);
  color: var(--text-on-dark);
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text-on-dark);
}

.final-cta p {
  margin: 0 0 2rem;
  color: var(--text-muted-on-dark);
  font-size: 1.05rem;
}

.final-cta .store-badges {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--splash-dark);
  color: var(--text-muted-on-dark);
  padding: 3rem 0 5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(92, 158, 122, 0.2);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer-links a {
  color: var(--display-green);
  font-weight: 600;
}

.footer-disclaimer {
  max-width: 640px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted-on-dark);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted-on-dark);
  opacity: 0.8;
}

/* Mobile sticky CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--mobile-cta-height);
  background: rgba(10, 18, 16, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(92, 158, 122, 0.35);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.mobile-cta-bar a {
  flex: 1;
  max-width: 160px;
  text-align: center;
}

.mobile-cta-bar img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive — tablet, mobile, small phone
   -------------------------------------------------------------------------- */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .value-banner {
    margin-bottom: 2rem;
  }

  .pro-card {
    padding: 2.5rem 1.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .value-grid,
  .research-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .mobile-cta-bar {
    display: flex;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: calc(3rem + var(--mobile-cta-height) + env(safe-area-inset-bottom));
  }

  .site-nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .nav-cta {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    padding-block: 2.5rem 3.25rem;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 18, 16, 0.94) 0%,
      rgba(16, 28, 24, 0.88) 55%,
      rgba(20, 32, 25, 0.75) 100%
    );
  }

  .hero-bg {
    background-position: center;
    opacity: 0.55;
  }

  .hero-title .gold {
    letter-spacing: 0.14em;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .store-badge {
    display: flex;
    justify-content: center;
  }

  .store-badge img {
    height: 44px;
    width: auto;
    max-width: 100%;
  }

  .trust-pills {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
  }

  .trust-pills li {
    font-size: 0.85rem;
  }

  .section {
    padding-block: 3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p,
  .value-lead,
  .seo-prose p {
    font-size: 1rem;
  }

  .value-grid,
  .research-grid,
  .feature-grid,
  .module-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-card,
  .research-card,
  .feature-card,
  .faq-item {
    padding: 1.35rem 1.25rem;
  }

  .value-card--highlight::after {
    position: static;
    display: inline-block;
    margin-bottom: 0.85rem;
  }

  .value-card--highlight h3 {
    padding-right: 0;
  }

  .research-citations {
    padding: 1.5rem 1.25rem;
  }

  .gallery-track-wrap {
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
  }

  .phone-frame {
    width: min(260px, 82vw);
  }

  .gallery-controls {
    display: flex;
  }

  .gallery-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .pro-card {
    padding: 2rem 1.25rem;
  }

  .final-cta {
    padding-block: 3.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
    --mobile-cta-height: 60px;
  }

  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  body {
    font-size: 15px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 0.8rem;
    max-width: 9.5rem;
    line-height: 1.25;
  }

  .brand-text span {
    font-size: 0.62rem;
  }

  .nav-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-title .gold {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    letter-spacing: 0.1em;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin: 0.85rem 0 1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding-block: 2.5rem;
  }

  .section-header h2,
  .value-banner h2,
  .final-cta h2 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .value-banner {
    text-align: left;
  }

  .section-header {
    text-align: left;
  }

  .step {
    text-align: left;
  }

  .step-num {
    margin-inline: 0;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .phone-frame {
    width: min(240px, 88vw);
  }

  .phone-shell {
    padding: 10px;
    border-radius: 32px;
  }

  .phone-caption {
    font-size: 0.85rem;
  }

  .mobile-cta-bar a {
    max-width: none;
  }

  .mobile-cta-bar img {
    height: 36px;
  }

  .citation-list {
    padding-left: 1rem;
    font-size: 0.85rem;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .brand-text {
    max-width: 8rem;
  }

  .hero-title .gold {
    letter-spacing: 0.06em;
  }
}

/* Desktop: hide gallery arrow controls (touch scroll still works on trackpads) */
@media (min-width: 769px) {
  .gallery-controls {
    display: none;
  }
}

/* Reduce hover motion on touch devices */
@media (hover: none) {
  .value-card:hover,
  .feature-card:hover,
  .module-card:hover,
  .nav-cta:hover,
  .store-badge:hover {
    transform: none;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .value-card,
  .feature-card,
  .module-card,
  .store-badge,
  .nav-cta {
    transition: none;
  }

  .gallery-track {
    scroll-behavior: auto;
  }
}
