/* 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;
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

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 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.3rem;
}

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

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

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

/* ----- 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;
}

.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;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 640px) {
  .topnav {
    padding: 0.75rem 1rem;
  }
  .topnav .nav-links {
    gap: 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}
