/* IndustrialFlipper sales-page styles.
   Phase 1 / Day 8 Commit 3 — distilled from the React+Babel design
   prototype in `docs/IndustrialFlipper_HTML_SalesPage.html`. Mobile-
   first; brand palette frozen below. */

:root {
  --steel: #1c2b3a;
  --cream: #f5f0e8;
  --gold: #c9963a;
  --accent: #e8621a;
  --bg: #1a1813;
  --fg: var(--cream);
  --muted: rgba(245, 240, 232, 0.6);
  --muted-dark: rgba(28, 43, 58, 0.6);
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: var(--accent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Top navigation ----- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 43, 58, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topnav .brand-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.topnav .brand {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 1.3rem;
}

.topnav .brand-sep {
  color: rgba(245, 240, 232, 0.3);
  font-size: 0.9rem;
}

.topnav .brand-sub {
  color: rgba(245, 240, 232, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topnav .nav-links .nav-link {
  color: var(--muted);
  text-decoration: none;
}

.topnav .nav-links .nav-link:hover {
  color: var(--cream);
}

.topnav .nav-links .nav-join {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: filter 120ms ease;
}

.topnav .nav-links .nav-join:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* ----- Hero ----- */
.hero {
  min-height: 80vh;
  background: linear-gradient(160deg, #0e1b27 0%, var(--steel) 60%, #243444 100%);
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(201, 150, 58, 0.04) 80px
  );
}

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

.domain-chip {
  display: inline-block;
  border: 1px solid rgba(201, 150, 58, 0.35);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--cream);
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-title .gold {
  color: var(--gold);
}

.hero-title .subtitle {
  font-size: 0.75em;
  font-weight: 700;
}

.hero-lede {
  font-size: 1.25rem;
  color: rgba(245, 240, 232, 0.75);
  margin: 0 0 2.5rem;
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ----- CTAs ----- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.1rem 1.75rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}

.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
}

.cta-primary:hover:not(:disabled) {
  opacity: 0.88;
}

.cta-outline {
  background: transparent;
  border: 2px solid rgba(245, 240, 232, 0.3);
  color: var(--cream);
}

.cta-outline:hover:not(:disabled) {
  border-color: rgba(245, 240, 232, 0.7);
}

.cta-outline-dark {
  background: transparent;
  border: 2px solid rgba(28, 43, 58, 0.3);
  color: var(--steel);
}

.cta-outline-dark:hover:not(:disabled) {
  border-color: rgba(28, 43, 58, 0.7);
}

.cta-badge {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-weight: 500;
}

/* Monthly tier CTA — visually subordinate to Annual + Founding.
   Orange-outline on dark hero, ~90% of the size, and lower-weight
   to keep Founding as the headline tier in the hero row. */
.cta-outline-accent {
  background: transparent;
  border: 2px solid rgba(232, 98, 26, 0.55);
  color: var(--accent);
}

.cta-outline-accent:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(232, 98, 26, 0.08);
}

.cta-sm {
  font-size: 0.9rem;
  padding: 0.95rem 1.4rem;
  font-weight: 600;
}

.hero-fineprint {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.hero-trial {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-trial a {
  color: var(--gold);
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section-cream {
  background: var(--cream);
  color: var(--steel);
}

.section-steel {
  background: var(--steel);
  color: var(--cream);
}

.section-final {
  background: linear-gradient(160deg, #0e1b27 0%, var(--steel) 60%, #243444 100%);
  text-align: center;
}

.section-cream a {
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.eyebrow.gold {
  color: var(--gold);
}

.eyebrow.accent {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.section-title.dark {
  color: var(--steel);
}

.section-title.cream {
  color: var(--cream);
}

.section-lede {
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.7);
}

.section-lede.dark {
  color: rgba(28, 43, 58, 0.75);
}

/* ----- Grid utilities ----- */
.grid-4 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.grid-cell {
  border-top: 2px solid rgba(28, 43, 58, 0.15);
  padding-top: 1rem;
}

.grid-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.grid-cell p {
  margin: 0;
  color: rgba(28, 43, 58, 0.75);
  font-size: 0.95rem;
}

/* ----- Cards ----- */
.card-flat,
.card-dark {
  border-radius: 0.5rem;
  padding: 1.75rem;
}

.card-flat {
  background: rgba(28, 43, 58, 0.05);
  border: 1px solid rgba(28, 43, 58, 0.08);
}

.card-flat .card-num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-flat h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--steel);
}

.card-flat p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(28, 43, 58, 0.7);
}

.card-dark {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
}

.card-dark h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

.card-dark p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.7);
}

/* ----- Pricing ----- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2rem 0 1.5rem;
}

.price-card {
  background: #fff;
  border: 1px solid rgba(28, 43, 58, 0.12);
  border-radius: 0.5rem;
  padding: 2rem;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(232, 98, 26, 0.12);
}

.price-tier {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
}

.price-tier.accent {
  color: var(--accent);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  margin: 0.5rem 0 1rem;
  color: var(--steel);
}

.price-amount.accent {
  color: var(--accent);
}

.price-suffix {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(28, 43, 58, 0.5);
}

.price-features {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
  font-size: 0.95rem;
  color: rgba(28, 43, 58, 0.85);
}

.price-features li {
  margin-bottom: 0.5rem;
}

.price-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(28, 43, 58, 0.6);
}

.pricing-upgrade-note {
  text-align: center;
  color: var(--gold);
  font-size: 0.95rem;
  margin: 1.5rem auto 0;
  max-width: 640px;
}

/* ----- Final CTA + footer ----- */
.final-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.checkout-error {
  margin-top: 1.25rem;
  color: #f4a261;
  font-size: 0.95rem;
}

.footer {
  background: var(--steel);
  color: rgba(245, 240, 232, 0.4);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-disclaimer {
  max-width: 760px;
  margin: 0 auto 1rem;
  color: rgba(245, 240, 232, 0.55);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.35);
}

/* ----- Modal (checkout email collection) ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 39, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--steel);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(28, 43, 58, 0.6);
  line-height: 1;
}

.modal-close:hover {
  color: var(--steel);
}

.modal-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  color: var(--steel);
}

.modal-lede {
  margin: 0 0 1.5rem;
  color: rgba(28, 43, 58, 0.7);
  font-size: 0.95rem;
}

.modal-card form label {
  display: block;
  font-size: 0.85rem;
  color: rgba(28, 43, 58, 0.7);
  margin-bottom: 0.35rem;
}

.modal-card form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--steel);
  border: 1px solid rgba(28, 43, 58, 0.2);
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-card form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Checkbox row: keep the input + label inline, with the checkbox
   sitting flush left of the wrapping text. Re-used by trial-signup
   and the checkout-email modal. */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(28, 43, 58, 0.85);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0 0;
  flex: 0 0 auto;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.modal-disclaimer,
.legal-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(28, 43, 58, 0.65);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

/* ----- Section 02: What It Is — opening line ----- */
.what-opening {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--steel);
  line-height: 1.7;
  margin: 0 0 2.5rem;
  max-width: 760px;
}

.what-opening strong {
  font-weight: 700;
}

/* ----- Section 03: Credibility — deal cards ----- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 2rem;
}

.deal-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--accent);
}

.deal-card.deal-card-muted {
  background: #0e1b27;
  border-top-color: var(--gold);
}

.deal-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.deal-card-muted .deal-card-label {
  color: var(--gold);
}

.deal-card-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.deal-stats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deal-stats li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
  padding-bottom: 0.5rem;
}

.deal-stats .deal-stat-key {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.deal-stats .deal-stat-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.4;
}

.deal-card-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.5;
  margin: 0;
}

/* ----- Section 04: Platform — 6-card grid ----- */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(28, 43, 58, 0.1);
  margin-top: 2.5rem;
}

.grid-6 .card-flat {
  background: var(--cream);
  border: 0;
  border-radius: 0;
  padding: 2.25rem 2rem;
}

.grid-6 .card-num-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.75rem;
  color: rgba(28, 43, 58, 0.1);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.grid-6 .card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

.demo-strip {
  margin-top: 2.5rem;
  background: var(--steel);
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.demo-strip-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

.demo-strip-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0 0 0.4rem;
}

.demo-strip-text p {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.55);
  margin: 0;
  line-height: 1.5;
}

/* ----- Section 05: Access — layered rows ----- */
.access-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2rem;
}

.access-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(201, 150, 58, 0.25);
  padding: 2rem 2.25rem;
}

.access-row.is-founding {
  background: rgba(232, 98, 26, 0.08);
  border-left-color: var(--accent);
}

.access-row .access-layer-num {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.access-row.is-founding .access-layer-num {
  color: var(--accent);
}

.access-row h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.access-who {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  border: 1px solid rgba(245, 240, 232, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.access-row.is-founding .access-who {
  color: var(--accent);
  border-color: var(--accent);
}

.access-body {
  font-size: 0.98rem;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.65;
  margin: 0;
  align-self: center;
}

@media (max-width: 720px) {
  .access-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
}

/* ----- Section 06: Pricing comparison table ----- */
.compare-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  color: var(--cream);
  font-family: var(--font-body);
}

.compare-table th.feature-col {
  width: 28%;
  text-align: left;
  padding: 0 0 1.5rem;
  border: 0;
}

.compare-table th.tier-col {
  width: 24%;
  padding: 0 1rem 1.5rem;
  text-align: center;
  vertical-align: bottom;
  border: 0;
}

/* Monthly tier column — same neutral grey treatment as Annual but
   distinguishable. Used in comparison table and final CTA cards. */
.compare-tier-head.is-monthly {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(201, 150, 58, 0.4);
}

.compare-table td.cell-monthly {
  background: rgba(255, 255, 255, 0.015);
  color: rgba(245, 240, 232, 0.55);
}

.compare-tier-head {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.25rem 1rem;
  border-top: 3px solid rgba(245, 240, 232, 0.3);
}

.compare-tier-head.is-founding {
  background: rgba(232, 98, 26, 0.1);
  border-top-color: var(--accent);
}

.compare-tier-head h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.65rem;
  color: var(--cream);
  margin: 0;
}

.compare-tier-head .compare-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--cream);
  margin-top: 0.4rem;
}

.compare-tier-head.is-founding .compare-price {
  color: var(--accent);
}

.compare-tier-head .compare-price-suffix {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.5);
}

.compare-table td {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
  vertical-align: top;
  text-align: center;
}

.compare-table td.feature-name {
  padding-left: 0;
  text-align: left;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
}

.compare-table td.cell-annual {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 240, 232, 0.6);
}

.compare-table td.cell-founding {
  background: rgba(232, 98, 26, 0.05);
  color: var(--cream);
}

.compare-table tr.row-price td.cell-founding {
  color: var(--accent);
  font-weight: 700;
}

/* ----- Side-by-Side 4-column variant (Trial + Monthly + Annual + Founding) ----- */
/* Wider min-width to keep all four tier columns legible before .compare-wrap
   begins horizontal scroll. Inherits .compare-table base styles above. */
.compare-table.compare-table-4col {
  min-width: 780px;
}

.compare-table.compare-table-4col th.feature-col {
  width: 22%;
}

.compare-table.compare-table-4col th.tier-col {
  width: 19.5%;
}

/* Trial column: green accent — "free / open" visual signal. */
.compare-tier-head.is-trial {
  background: rgba(46, 125, 79, 0.12);
  border-top-color: #4ea676;
}

.compare-tier-head.is-trial h3 {
  color: #b6e0c4;
}

.compare-table td.cell-trial {
  background: rgba(46, 125, 79, 0.06);
  color: rgba(245, 240, 232, 0.7);
  border-left: 2px solid rgba(78, 166, 118, 0.35);
}

.compare-table tr.row-price td.cell-trial {
  color: #b6e0c4;
  font-weight: 700;
}

/* Founding column on the 4-tier table re-uses the existing orange accent
   from `.compare-tier-head.is-founding` + `td.cell-founding` already in
   this stylesheet — add a left border to mirror the trial column. */
.compare-table.compare-table-4col td.cell-founding {
  border-left: 2px solid rgba(232, 98, 26, 0.45);
}

/* Small italic explainer under each feature name. Matches the reference
   doc's `.feat-sub` purpose: short clarifier for the user without
   inflating the row height too much. */
.feature-name .feat-sub {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.45);
  font-style: italic;
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* Generic em-dash placeholder for "not available" cells. */
.compare-table .dash {
  color: rgba(245, 240, 232, 0.3);
  font-size: 1.1rem;
}

/* Optional low-key footnote under the comparison table. */
.compare-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.45);
}

/* Annual-upgrade callout below the side-by-side table. Modelled on the
   `.preamble` left-accent treatment used in tos.html — subtle, not
   alarming, draws the eye for the one-line upgrade-path message. */
.upgrade-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(46, 125, 79, 0.1);
  border-left: 4px solid #4ea676;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.85);
}

.upgrade-note strong {
  color: #b6e0c4;
}

/* ----- Section 07: Series Unlock Map ----- */
/* "Vision ahead of feature" caveat: italicised, slightly muted, with a
   thin gold left-accent so it reads as honest framing — not a warning
   banner. Pattern borrowed from tos.html `.preamble`. */
.rollout-note {
  margin: 1.25rem 0 1.75rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  background: rgba(201, 150, 58, 0.06);
  border-left: 3px solid rgba(201, 150, 58, 0.55);
  line-height: 1.6;
  max-width: 760px;
}

.unlock-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.85rem;
}

.unlock-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.65rem 0.9rem;
  text-align: left;
  color: rgba(245, 240, 232, 0.45);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.unlock-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  vertical-align: top;
  line-height: 1.5;
}

.unlock-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Legacy 4-column variant fields (kept for any old references). */
.unlock-table td.col-series {
  color: var(--cream);
  font-weight: 500;
}

.unlock-table td.col-day {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.unlock-table td.col-trigger {
  color: rgba(245, 240, 232, 0.6);
}

.unlock-table td.col-why {
  color: rgba(245, 240, 232, 0.5);
  font-style: italic;
}

/* ----- 5-column unlock-table variant (new Series Unlock Map) ----- */
.unlock-table.unlock-table-5col {
  min-width: 900px;
}

.unlock-table-5col th.col-series {
  width: 24%;
  color: rgba(245, 240, 232, 0.6);
}

.unlock-table-5col th.col-release {
  width: 11%;
}

.unlock-table-5col th.col-annual-trigger {
  width: 26%;
}

.unlock-table-5col th.col-monthly-trigger {
  width: 20%;
}

.unlock-table-5col th.col-why {
  width: 19%;
}

.unlock-table-5col th .trigger-sub {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  text-transform: none;
}

.unlock-table-5col td.col-series {
  border-left: 3px solid rgba(28, 43, 58, 0.6);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 600;
  color: var(--cream);
}

.unlock-table-5col td.col-release {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.unlock-table-5col td.col-annual-trigger {
  color: rgba(245, 240, 232, 0.75);
}

.unlock-table-5col td.col-monthly-trigger {
  color: rgba(245, 240, 232, 0.65);
}

.unlock-table-5col td.col-monthly-trigger-strong {
  color: var(--cream);
  font-weight: 600;
}

.unlock-table-5col td.col-why {
  color: rgba(245, 240, 232, 0.55);
  font-style: italic;
}

/* Series name + book list inside the first column of the unlock map. */
.series-name {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.series-books {
  display: block;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.45);
  margin-top: 0.3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

/* ----- Section 08: Social proof — evidence blocks ----- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-loom {
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

.proof-loom-label {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.35);
  text-align: center;
  font-family: monospace;
  letter-spacing: 0.04em;
  margin: 0;
}

.proof-thread {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-thread-header {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  font-family: monospace;
  margin: 0;
}

.proof-thread-question,
.proof-thread-answer {
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(245, 240, 232, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.proof-thread-answer {
  border-left-color: var(--accent);
  background: rgba(232, 98, 26, 0.07);
}

.proof-thread-label {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  margin: 0 0 0.4rem;
}

.proof-thread-answer .proof-thread-label {
  color: var(--accent);
}

.proof-thread-body {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  font-style: italic;
  margin: 0;
}

.proof-caption {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* ----- Section 09: Soft close body ----- */
.soft-close-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.soft-close-body p {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.soft-close-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  margin-top: 0.5rem;
}

.soft-close-cta:hover {
  background: var(--gold);
  color: var(--steel);
}

/* ----- Section 10: Final CTA cards ----- */
.final-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  text-align: left;
}

.final-card {
  border: 2px solid rgba(245, 240, 232, 0.15);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.final-card.is-founding {
  border-color: var(--accent);
}

.final-card.is-monthly {
  border-color: rgba(245, 240, 232, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

/* Trial fallback strip in the final CTA section — small "not sure yet"
   nudge below the three paid cards. */
.trial-strip {
  margin: 2rem auto 0;
  max-width: 640px;
  padding: 1.5rem 1.75rem;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(201, 150, 58, 0.25);
  border-radius: 4px;
  text-align: center;
}

.trial-strip p {
  margin: 0 0 1rem;
  color: rgba(245, 240, 232, 0.75);
  font-size: 1rem;
}

.trial-strip .cta {
  text-decoration: none;
}

.final-card-badge {
  position: absolute;
  top: -1px;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
}

.final-card-tier {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--cream);
}

.final-card-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.75rem;
  color: var(--cream);
  line-height: 1;
}

.final-card.is-founding .final-card-price {
  color: var(--accent);
}

.final-card-price .price-suffix {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.5);
}

.final-card-divider {
  height: 1px;
  background: rgba(245, 240, 232, 0.1);
}

.final-card.is-founding .final-card-divider {
  background: rgba(232, 98, 26, 0.3);
}

.final-card-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.final-card-bullets li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.7);
}

.final-card-bullets li::before {
  content: "—";
  color: rgba(245, 240, 232, 0.4);
  flex: 0 0 auto;
}

.final-card.is-founding .final-card-bullets li {
  color: var(--cream);
}

.final-card.is-founding .final-card-bullets li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
}

.final-card .cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.final-card-postscript {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.45);
  text-align: center;
  line-height: 1.5;
  margin: 0.4rem 0 0;
}

.final-ps {
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.7;
  max-width: 600px;
}

.final-ps a {
  color: var(--gold);
  text-decoration: none;
}

.referral-discount {
  margin: 2.5rem auto 0;
  max-width: 760px;
  padding: 1.5rem 1.75rem;
  background: rgba(201, 150, 58, 0.08);
  border: 1px solid rgba(201, 150, 58, 0.25);
  border-left: 4px solid var(--gold);
  text-align: left;
}

.referral-discount h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.referral-discount p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
  margin: 0;
}

.referral-reward {
  margin: 3rem auto 0;
  max-width: 900px;
  border: 1px solid rgba(201, 150, 58, 0.3);
  padding: 2rem;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.referral-reward-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.referral-reward-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.referral-reward-col h4.reward-h4-spaced {
  margin-top: 1.5rem;
}

.referral-reward-col p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.reward-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-options li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-option-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--accent);
  flex: 0 0 auto;
}

.reward-option-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.25rem;
}

.reward-option-desc {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.5);
  margin: 0;
  line-height: 1.5;
}

.reward-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reward-bullets li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.5;
}

.reward-bullets li::before {
  content: "→";
  color: var(--accent);
  flex: 0 0 auto;
}

.reward-bullets.is-gold li::before {
  color: var(--gold);
}

/* ----- Mobile tweaks ----- */
@media (max-width: 640px) {
  .topnav {
    padding: 0.75rem 1rem;
  }
  .topnav .nav-links {
    gap: 0.75rem;
  }
  /* Cramped phone width: drop sub-brand label and the secondary Sign-in
     link; keep the brand, Pricing link, and the primary Join Now CTA
     visible per the reference design. */
  .topnav .brand-sep,
  .topnav .brand-sub,
  .topnav .nav-links .nav-signin {
    display: none;
  }
  .topnav .nav-links .nav-join {
    padding: 0.5rem 0.9rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .deal-stats li {
    grid-template-columns: 90px 1fr;
  }
  .compare-table th.feature-col,
  .compare-table td.feature-name {
    padding-right: 0.5rem;
  }
  /* BUG-011: pricing table cramped on mobile — shrink columns + font
     and let .compare-wrap scroll horizontally for the overflow that
     remains. Keeps every column readable instead of wrapping awkwardly
     at sub-360px viewports. */
  .compare-table {
    min-width: 520px;
    font-size: 0.85rem;
  }
  /* 4-column Side-by-Side: bump min-width higher so the trial column
     does not crush the founding column on iPhone-SE-class viewports.
     `.compare-wrap { overflow-x:auto }` handles the horizontal scroll. */
  .compare-table.compare-table-4col {
    min-width: 720px;
    font-size: 0.78rem;
  }
  .compare-table.compare-table-4col th.tier-col {
    padding: 0 0.4rem 0.85rem;
  }
  .compare-table th.tier-col {
    padding: 0 0.5rem 1rem;
  }
  .compare-table td {
    padding: 0.85rem 0.6rem;
    font-size: 0.85rem;
  }
  .compare-table.compare-table-4col td {
    padding: 0.7rem 0.5rem;
    font-size: 0.78rem;
  }
  .compare-tier-head {
    padding: 1rem 0.75rem 0.85rem;
  }
  .feature-name .feat-sub {
    font-size: 0.72rem;
  }
  /* Series Unlock Map: same horizontal-scroll strategy. */
  .unlock-table.unlock-table-5col {
    min-width: 820px;
    font-size: 0.78rem;
  }
  .unlock-table-5col td {
    padding: 0.65rem 0.6rem;
  }
  .series-books {
    font-size: 0.68rem;
  }
  .final-card {
    padding: 2rem 1.5rem;
  }
  .referral-reward {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}
