/* ==========================================================================
   ClosetLens marketing site — Warm Closet brand
   Tokens mirror 04_设计/ClosetLens_UI设计规格_v1.md (direction A)
   No external fonts, images or scripts. System font stack only.
   ========================================================================== */

:root {
  /* Brand */
  --cl-primary: #C17B5E;
  --cl-primary-hover: #A6624A;
  --cl-primary-active: #8F5340;
  --cl-primary-disabled: #D4B5A5;
  --cl-primary-surface: #FDF6F1;
  --cl-sage: #7B9E87;
  --cl-sage-dark: #5F8069;

  /* Semantic */
  --cl-success: #2D8B57;
  --cl-success-surface: #EDF7F0;
  --cl-warning: #C4820E;
  --cl-warning-surface: #FEF5E7;

  /* Neutrals */
  --cl-bg: #FAF8F5;
  --cl-surface: #FFFFFF;
  --cl-border: #E8E0D8;
  --cl-border-strong: #D4CCC4;
  --cl-text: #2D2420;
  --cl-text-secondary: #7A6B63;
  --cl-text-tertiary: #A89C94;
  --cl-text-inverse: #FFFFFF;

  /* Platform identity (mock visual only) */
  --cl-poshmark: #E4405F;
  --cl-depop: #1A1715;
  --cl-ebay: #3665F3;

  /* Shadows */
  --cl-shadow-sm: 0 1px 2px rgba(45, 36, 32, 0.06);
  --cl-shadow-md: 0 2px 8px rgba(45, 36, 32, 0.08);
  --cl-shadow-lg: 0 4px 16px rgba(45, 36, 32, 0.12);

  /* Radius */
  --cl-radius-sm: 6px;
  --cl-radius-md: 8px;
  --cl-radius-lg: 12px;
  --cl-radius-xl: 16px;
  --cl-radius-full: 999px;

  /* Layout */
  --cl-container: 1120px;
  --cl-header-h: 64px;

  /* Type */
  --cl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] { scroll-margin-top: calc(var(--cl-header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--cl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cl-text);
  background: var(--cl-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--cl-text);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
li:last-child { margin-bottom: 0; }

a {
  color: var(--cl-primary-hover);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--cl-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--cl-container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cl-primary);
  color: var(--cl-text-inverse);
  padding: 10px 16px;
  border-radius: 0 0 var(--cl-radius-md) 0;
}
.skip-link:focus { left: 0; color: var(--cl-text-inverse); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  top: 0; left: 0;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--cl-radius-lg);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color 200ms ease-out, border-color 200ms ease-out,
              color 200ms ease-out, box-shadow 200ms ease-out, transform 100ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cl-primary);
  color: var(--cl-text-inverse);
}
.btn-primary:hover { background: var(--cl-primary-hover); color: var(--cl-text-inverse); }
.btn-primary:active { background: var(--cl-primary-active); }

.btn-secondary {
  background: transparent;
  border-color: var(--cl-border-strong);
  color: var(--cl-primary-hover);
}
.btn-secondary:hover {
  background: var(--cl-primary-surface);
  border-color: var(--cl-primary);
}

.btn-block { width: 100%; }

.btn[aria-disabled="true"],
.btn.is-disabled {
  background: var(--cl-primary-disabled);
  color: var(--cl-text-inverse);
  cursor: not-allowed;
  opacity: 0.75;
}
.btn[aria-disabled="true"]:hover,
.btn.is-disabled:hover { background: var(--cl-primary-disabled); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cl-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--cl-header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--cl-text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--cl-text); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  list-style: none;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--cl-radius-md);
  color: var(--cl-text-secondary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.nav-links a:hover { color: var(--cl-text); background: var(--cl-primary-surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--cl-primary-hover); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .btn { min-height: 40px; padding: 9px 18px; font-size: 14px; }

.nav-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--cl-text-secondary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.nav-contact-link:hover { color: var(--cl-text); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--cl-border-strong);
  border-radius: var(--cl-radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cl-text);
  border-radius: 2px;
  position: relative;
  transition: transform 200ms ease-out, top 200ms ease-out;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(1100px 420px at 85% -10%, var(--cl-primary-surface) 0%, rgba(253, 246, 241, 0) 60%),
    var(--cl-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--cl-primary-surface);
  color: var(--cl-primary-hover);
  border: 1px solid #F0DDD2;
  border-radius: var(--cl-radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--cl-text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.trust-microcopy {
  font-size: 14px;
  color: var(--cl-text-secondary);
}

/* Browser + side panel mock (pure HTML/CSS) */
.hero-visual { position: relative; }

.mock-browser {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-xl);
  box-shadow: var(--cl-shadow-lg);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F3EEE8;
  border-bottom: 1px solid var(--cl-border);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: #E0A390; }
.mock-dot:nth-child(2) { background: #E4C78B; }
.mock-dot:nth-child(3) { background: var(--cl-sage); }
.mock-url {
  margin-left: 8px;
  flex: 1;
  height: 22px;
  border-radius: var(--cl-radius-full);
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
}

.mock-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 236px;
  min-height: 348px;
}

/* Faint listing form behind the panel */
.mock-form {
  padding: 18px;
  background:
    linear-gradient(var(--cl-bg), var(--cl-bg)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(232, 224, 216, 0.7) 27px 28px);
}
.mock-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 128px;
  margin-bottom: 14px;
  border-radius: var(--cl-radius-lg);
  background: linear-gradient(150deg, #EAD3C2 0%, #F7EBE1 55%, #EFE3D6 100%);
  color: var(--cl-primary);
}
.mock-photo svg { width: 46px; height: 46px; }
.mock-line {
  height: 10px;
  border-radius: var(--cl-radius-full);
  background: #E7DED5;
  margin-bottom: 10px;
}
.mock-line.w-70 { width: 70%; }
.mock-line.w-45 { width: 45%; }
.mock-line.w-85 { width: 85%; }

/* Side panel mock */
.mock-panel {
  background: var(--cl-bg);
  border-left: 1px solid var(--cl-border);
  padding: 14px;
  box-shadow: -8px 0 24px rgba(45, 36, 32, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.mock-panel-head svg { width: 16px; height: 16px; color: var(--cl-primary); }

.platform-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-left: 4px solid var(--cl-poshmark);
  border-radius: var(--cl-radius-md);
  padding: 10px 12px;
  box-shadow: var(--cl-shadow-sm);
}
.platform-card.is-depop { border-left-color: var(--cl-depop); }
.platform-card.is-ebay { border-left-color: var(--cl-ebay); }
.platform-card.is-collapsed { padding: 9px 12px; }

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.mock-field { margin-top: 9px; }
.mock-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cl-text-tertiary);
  margin-bottom: 4px;
}
.mock-field-bar {
  height: 8px;
  border-radius: var(--cl-radius-full);
  background: #EDE4DB;
  margin-bottom: 6px;
}
.mock-field-bar.w-90 { width: 90%; }
.mock-field-bar.w-65 { width: 65%; }

.mock-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--cl-primary-hover);
  background: transparent;
}
.mock-copy.is-copied {
  color: var(--cl-success);
  border-color: var(--cl-success);
  background: var(--cl-success-surface);
}

.mock-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.mock-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--cl-radius-full);
  background: var(--cl-primary-surface);
  color: var(--cl-primary-hover);
}

.mock-subnote {
  font-size: 11px;
  color: var(--cl-text-tertiary);
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust-bar {
  border-block: 1px solid var(--cl-border);
  background: var(--cl-surface);
}
.trust-bar .container { padding-block: 20px; }

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cl-text);
}
.trust-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--cl-sage-dark);
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--cl-surface); border-block: 1px solid var(--cl-border); }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.015em;
}
.section-head p {
  color: var(--cl-text-secondary);
  font-size: 17px;
}
.section-head .kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-primary-hover);
}

/* --------------------------------------------------------------------------
   Pain points
   -------------------------------------------------------------------------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  padding: 26px 24px;
  box-shadow: var(--cl-shadow-sm);
}
.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--cl-radius-md);
  background: var(--cl-error-surface, #FDF0EE);
  color: var(--cl-warning);
}
.pain-icon svg { width: 22px; height: 22px; }
.pain-card h3 { font-size: 19px; margin-bottom: 10px; }
.pain-card p { color: var(--cl-text-secondary); font-size: 15px; margin: 0; }

.solution-band {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--cl-primary-surface);
  border: 1px solid #F0DDD2;
  border-radius: var(--cl-radius-lg);
  font-size: 18px;
  line-height: 1.6;
}
.solution-band p { margin: 0; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  padding: 30px 28px;
  box-shadow: var(--cl-shadow-sm);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--cl-radius-md);
  background: var(--cl-primary-surface);
  color: var(--cl-primary-hover);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p, .feature-card li { color: var(--cl-text-secondary); font-size: 15px; }
.feature-card ul { padding-left: 1.1em; margin-top: 8px; }
.feature-card li strong { color: var(--cl-text); }

.feature-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--cl-radius-md);
  background: var(--cl-bg);
  border: 1px dashed var(--cl-border-strong);
  font-size: 14px;
  color: var(--cl-text-secondary);
}
.feature-note p { margin: 0; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  padding: 30px 26px 28px;
  box-shadow: var(--cl-shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cl-primary);
  color: var(--cl-text-inverse);
  font-weight: 700;
  font-size: 17px;
}
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--cl-text-secondary); font-size: 15px; }

.step-arrow {
  display: none;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.pricing-intro h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.015em;
}
.pricing-intro .pricing-sub { font-size: 18px; font-weight: 600; }
.pricing-intro p { color: var(--cl-text-secondary); font-size: 15.5px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-grid--standalone {
  margin-top: 40px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  padding: 26px 22px;
  box-shadow: var(--cl-shadow-sm);
  position: relative;
}
.price-card.is-popular {
  border: 2px solid var(--cl-primary);
  box-shadow: var(--cl-shadow-lg);
  transform: translateY(-4px);
}
.price-card.is-soon {
  opacity: 0.85;
  filter: saturate(0.55);
  background: #F5F1EC;
}
.price-card.is-soon .plan-cta {
  cursor: pointer;
}
.price-card.is-soon:hover { transform: none; box-shadow: var(--cl-shadow-sm); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--cl-radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-popular { background: var(--cl-primary); color: var(--cl-text-inverse); }
.badge-soon { background: var(--cl-warning-surface); color: var(--cl-warning); border: 1px solid #EBD29A; }

.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.plan-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.plan-price small { font-size: 14px; font-weight: 600; color: var(--cl-text-secondary); }
.plan-desc {
  font-size: 13.5px;
  color: var(--cl-text-secondary);
  font-style: italic;
  min-height: 56px;
  margin-bottom: 16px;
}
.plan-desc p { margin: 0; }

.plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--cl-border);
  font-size: 13.5px;
  line-height: 1.4;
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--cl-sage-dark);
}
.plan-features .feat-na { color: var(--cl-text-tertiary); }
.plan-features .feat-na svg { color: var(--cl-text-tertiary); }
.plan-features .feat-soon { color: var(--cl-warning); font-weight: 600; }
.plan-features .feat-soon .mini-badge {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--cl-radius-full);
  background: var(--cl-warning-surface);
  font-size: 10.5px;
  font-weight: 700;
}
.plan-features em { font-style: normal; color: var(--cl-text-secondary); }

.price-card .btn { min-height: 42px; padding: 11px 16px; font-size: 14px; }

.pricing-fineprint {
  max-width: 820px;
  margin: 32px auto 0;
  font-size: 13.5px;
  color: var(--cl-text-secondary);
  text-align: center;
}
.pricing-fineprint p { margin-bottom: 10px; }
.pricing-fineprint p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--cl-shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cl-text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cl-primary-surface); }
.faq-item summary .faq-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--cl-primary-hover);
  transition: transform 300ms ease-out;
}
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }

.faq-body {
  padding: 0 22px 20px;
  color: var(--cl-text-secondary);
  font-size: 15px;
}
.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  background: linear-gradient(135deg, #B76F53 0%, var(--cl-primary) 55%, #C98A6D 100%);
  color: var(--cl-text-inverse);
  text-align: center;
}
.final-cta .container { max-width: 780px; }
.final-cta h2 {
  color: var(--cl-text-inverse);
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.015em;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 600px;
  margin-inline: auto;
}
.final-cta .btn-primary {
  background: var(--cl-text-inverse);
  color: var(--cl-primary-active);
}
.final-cta .btn-primary:hover { background: #F6EDE7; color: var(--cl-primary-active); }
.final-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--cl-text-inverse);
}
.final-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.final-cta .final-cta-micro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #241D19;
  color: #C9BDB3;
  padding: 52px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand { color: #FFFFFF; margin-bottom: 12px; }
.footer-tagline { color: #A99A90; font-style: italic; margin-bottom: 14px; }
.footer-email { color: #E7C9B9; font-weight: 600; }
.footer-email:hover { color: #FFFFFF; }

.footer-col h3 {
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #C9BDB3; }
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid #3D332D;
  padding-top: 24px;
}
.footer-legal-lines {
  font-size: 12.5px;
  color: #9C8E84;
  line-height: 1.65;
}
.footer-legal-lines p { margin: 0 0 6px; }

/* --------------------------------------------------------------------------
   Legal / generic inner pages
   -------------------------------------------------------------------------- */

.legal-banner {
  margin: 28px 0 0;
  padding: 14px 18px;
  background: var(--cl-warning-surface);
  border: 1px solid #EBD29A;
  border-radius: var(--cl-radius-md);
  font-size: 14px;
  color: #6E4E14;
}
.legal-banner p { margin: 0; }

.legal-card,
.page-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  box-shadow: var(--cl-shadow-sm);
  padding: clamp(24px, 4vw, 48px);
  margin: 24px 0 56px;
}

.page-header {
  text-align: center;
  padding: 56px 0 8px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.page-header p { color: var(--cl-text-secondary); font-size: 17px; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.back-home svg { width: 16px; height: 16px; }

.legal-doc h2 { font-size: 24px; margin-top: 8px; }
.legal-doc h3 { font-size: 18px; margin-top: 32px; }
.legal-doc h4 { font-size: 16px; margin-top: 24px; }
.legal-doc p, .legal-doc li { color: var(--cl-text); font-size: 15px; }
.legal-doc .effective {
  color: var(--cl-text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-doc strong { color: var(--cl-text); }
.legal-doc a { word-break: break-word; }
.legal-doc ul { padding-left: 1.2em; }

/* Narrower, centered card for simple inner pages (contact / waitlist) */
.page-card.page-narrow {
  max-width: 720px;
  margin-inline: auto;
}
.text-center { text-align: center; }
.text-center .contact-list { text-align: left; }

/* --------------------------------------------------------------------------
   Contact / waitlist forms
   -------------------------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--cl-border);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list a { font-weight: 600; }

.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
  max-width: 480px;
  margin-inline: auto;
}
.waitlist-form label { flex: 1 1 240px; text-align: left; }
.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--cl-text);
  background: var(--cl-surface);
  border: 1px solid var(--cl-border-strong);
  border-radius: var(--cl-radius-lg);
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--cl-primary);
  outline: 2px solid var(--cl-primary);
  outline-offset: 1px;
}
.waitlist-note {
  font-size: 13px;
  color: var(--cl-text-tertiary);
  max-width: 480px;
  margin: 0 auto;
}
.form-success {
  margin: 20px auto 4px;
  max-width: 480px;
  padding: 14px 18px;
  border-radius: var(--cl-radius-md);
  background: var(--cl-success-surface);
  color: var(--cl-success);
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px;
}
.error-code {
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 800;
  color: var(--cl-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.error-page h1 { font-size: 26px; }
.error-page p { color: var(--cl-text-secondary); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 44px 40px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .trust-microcopy { text-align: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .pain-grid,
  .steps-grid { grid-template-columns: 1fr; }

  .feature-list { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.is-popular { transform: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-toggle { display: inline-flex; margin-left: 0; }

  .nav-bar { flex-wrap: wrap; }
  .nav-actions { margin-left: auto; order: 2; }
  .nav-actions .nav-contact-link { display: none; }
  .nav-toggle { order: 3; }

  /* Without JS the nav links stay fully expanded (progressive enhancement);
     JS adds .js-nav on <html> and collapses them behind the toggle. */
  .js-nav .nav-links {
    display: none;
  }
  .nav-links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--cl-border);
  }
  .js-nav .nav-links.is-open { display: flex; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }

  .trust-list { grid-template-columns: 1fr 1fr; gap: 14px 20px; }

  .section { padding: 52px 0; }
  .solution-band { padding: 22px; font-size: 16.5px; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-form { display: none; }
  .mock-panel { border-left: 0; box-shadow: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.is-popular { transform: none; }
  .trust-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form label { flex-basis: auto; width: 100%; }
}

/* No horizontal scroll anywhere >=320px */
html, body { overflow-x: hidden; }
.mock-browser { max-width: 100%; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Print (legal pages especially)
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .back-home, .legal-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .legal-card {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
