:root {
  /* Product-specific colors - yellow/gold for trades */
  --color-primary: #ca8a04;
  --color-primary-hover: #a16207;
  --color-primary-light: #fef9c3;
  --color-primary-faint: #fefce8;

  /* Shared neutrals */
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-faint: #8a919d;
  --color-surface: #f9fafb;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-success: #15803d;
  --color-success-light: #dcfce7;
  --color-warning: #9a5400;
  --color-warning-light: #fef3c7;
  --color-error: #b91c1c;
  --color-error-light: #fee2e2;
  --color-btn-text: #ffffff;

  /* Layout */
  --max-width: 900px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;
  --section-gap: clamp(3rem, 6vw, 5rem);

  /* Border radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04);
  --shadow-primary:
    0 2px 4px rgba(202, 138, 4, 0.06),
    0 4px 8px rgba(202, 138, 4, 0.08),
    0 12px 24px rgba(202, 138, 4, 0.06);

  /* CTA-specific */
  --cta-shadow: 0 4px 14px rgba(202, 138, 4, 0.35);
  --cta-shadow-hover: 0 6px 20px rgba(202, 138, 4, 0.45);

  /* Typography */
  --font-xs: 0.75rem;
  --font-sm: 0.85rem;
  --font-base: 1rem;
  --font-md: 1.05rem;
  --font-lg: 1.15rem;
  --font-xl: 1.25rem;

  /* Z-index */
  --z-below: -1;
  --z-base: 1;
  --z-tooltip: 10;
  --z-header: 50;
  --z-sticky-cta: 100;
  --z-skip-link: 200;

  /* Transition */
  --transition: 0.2s ease-out;

  /* Header */
  --header-bg: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(255, 255, 255, 0.88);
  --sticky-bg: rgba(255, 255, 255, 0.97);
}

/* ===================== Dark mode ===================== */
[data-theme="dark"] {
  --color-primary: #facc15;
  --color-primary-hover: #eab308;
  --color-primary-light: #422006;
  --color-primary-faint: #1a1400;

  --color-bg: #0a0a0a;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-text-faint: #6b7280;
  --color-surface: #141414;
  --color-border: #262626;
  --color-border-strong: #3f3f46;
  --color-success: #22c55e;
  --color-success-light: #052e16;
  --color-warning: #f59e0b;
  --color-warning-light: #451a03;
  --color-error: #ef4444;
  --color-error-light: #350707;
  --color-btn-text: #0a0a0a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-primary:
    0 2px 4px rgba(250, 204, 21, 0.06),
    0 4px 8px rgba(250, 204, 21, 0.08),
    0 12px 24px rgba(250, 204, 21, 0.06);
  --cta-shadow: 0 4px 14px rgba(250, 204, 21, 0.25);
  --cta-shadow-hover: 0 6px 20px rgba(250, 204, 21, 0.35);

  --header-bg: rgba(10, 10, 10, 0.85);
  --overlay-bg: rgba(10, 10, 10, 0.88);
  --sticky-bg: rgba(10, 10, 10, 0.97);
}

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

body,
header,
footer,
.card,
.step-card,
.nav-links a,
.logo,
select,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
details summary,
.hero,
.faq-answer,
.theme-toggle {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  body, header, footer, .card, .step-card,
  .logo, select, input, textarea, details summary,
  .hero, .faq-answer, .theme-toggle {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
}

/* ===================== Skip link ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-btn-text);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: var(--z-skip-link);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================== Announcement Bar ===================== */
.announcement-bar {
  background: #111827;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.785rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.announcement-bar strong { font-weight: 600; color: #fff; }
.announcement-bar .ann-cta {
  color: var(--color-primary-light, #fef9c3);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  margin-left: 0.35rem;
}
.announcement-bar .ann-cta:hover { color: #fff; }
.announcement-bar .ann-sep { margin: 0 0.4rem; opacity: 0.35; }
[data-theme="dark"] .announcement-bar { background: #1e293b; }
[data-theme="dark"] .announcement-bar .ann-cta { color: #facc15; }

/* ===================== Header ===================== */
header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: var(--header-bg);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ===================== Nav toggle (hamburger) ===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== Theme toggle ===================== */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: var(--color-surface);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===================== Main ===================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===================== Hero ===================== */
.hero {
  text-align: center;
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -50% -25%;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--color-primary-faint) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-wrap: balance;
}

.subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ===================== Social proof ===================== */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: var(--spacing-md) auto 0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-success-light);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.social-proof-count {
  font-weight: 700;
  color: var(--color-success);
}

/* ===================== How It Works ===================== */
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.01em;
  text-align: center;
}

.steps-grid {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-btn-text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.step-card strong {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ===================== Cards ===================== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.card h3 {
  margin-bottom: var(--spacing-sm);
}

.card-highlight {
  border-color: var(--color-success);
  border-width: 2px;
}

.card-cta {
  border-color: var(--color-primary);
  border-width: 2px;
  text-align: center;
}

/* ===================== Form ===================== */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.925rem;
}

label .hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.825rem;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.6875rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.12);
}

.field {
  margin-bottom: var(--spacing-md);
}

.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-prefix input {
  padding-left: 28px;
}

/* ===================== Form grid ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-grid .field {
  margin-bottom: 0.75rem;
}

.form-grid .field label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.field-full {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Line items table ===================== */
.line-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}

.line-items-table th {
  padding: 0.5rem 0.375rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  text-align: left;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.line-items-table td {
  padding: 0.375rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.line-items-table input,
.line-items-table select {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.line-items-table .col-desc {
  min-width: 160px;
}

.line-items-table .col-num {
  width: 80px;
}

.line-items-table .col-unit {
  width: 80px;
}

.line-items-table .col-total {
  width: 90px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.line-items-table .col-action {
  width: 40px;
  text-align: center;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.btn-remove:hover {
  background: var(--color-error-light);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-primary-faint);
  color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  margin-top: 0.5rem;
}

.btn-add:hover {
  background: var(--color-primary-light);
}

/* ===================== Quote summary ===================== */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.925rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.summary-total {
  border-top: 2px solid var(--color-text);
  border-bottom: none;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.summary-label {
  color: var(--color-text-muted);
}

.summary-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary-total .summary-value {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.summary-row .summary-muted {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-left: 0.25rem;
}

/* ===================== Quote preview ===================== */
.quote-preview {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  position: relative;
}

.quote-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 3px solid var(--color-primary);
}

.quote-biz-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.quote-biz-details {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.quote-meta {
  text-align: right;
}

.quote-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.quote-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

.quote-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.quote-party h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.quote-party p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.quote-desc {
  margin-bottom: var(--spacing-lg);
}

.quote-desc h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.quote-desc p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.quote-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-lg);
}

.quote-items-table th {
  padding: 0.625rem 0.5rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.quote-items-table th:last-child {
  text-align: right;
}

.quote-items-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.quote-items-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.quote-items-table .section-label {
  background: var(--color-surface);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.quote-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-xl);
}

.quote-totals-inner {
  width: 280px;
}

.quote-terms {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-lg);
}

.quote-terms h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-terms ul {
  list-style: none;
  padding: 0;
}

.quote-terms li {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
  line-height: 1.5;
}

.quote-terms li::before {
  content: "\2022";
  color: var(--color-primary);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ===================== Buttons ===================== */
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-btn-text);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 48px;
  min-width: 200px;
  transition:
    background 0.2s ease-out,
    box-shadow 0.2s ease-out,
    transform 0.15s ease-out;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
  box-shadow: var(--cta-shadow);
  position: relative;
  overflow: hidden;
}

.buy-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease-out;
  pointer-events: none;
}

.buy-button:hover::after {
  left: 100%;
}

.buy-button:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--cta-shadow-hover);
  transform: translateY(-2px);
}

.buy-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
  transition-duration: 0.05s;
}

.buy-button-lg {
  padding: 0.9375rem 2.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  min-height: 48px;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-faint);
}

.buy-note {
  margin-top: var(--spacing-sm);
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

/* ===================== Trust badges ===================== */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.trust-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* ===================== Rate table ===================== */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.rate-table th {
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  text-align: left;
}

.rate-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.rate-table tbody tr:hover {
  background: var(--color-primary-faint);
}

.rate-table .trade-icon {
  margin-right: 0.375rem;
}

/* ===================== FAQ ===================== */
.faq-section {
  margin: var(--spacing-xl) 0;
}

.faq-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.faq-item {
  cursor: pointer;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.faq-item summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::before {
  content: "\2212";
  background: var(--color-primary);
  color: var(--color-btn-text);
}

.faq-answer {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  margin-left: 2.125rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ===================== CTA Banner ===================== */
.cta-banner {
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.15rem;
}

.cta-banner ul {
  text-align: left;
  max-width: 400px;
  margin: var(--spacing-md) auto;
  list-style: none;
  padding: 0;
}

.cta-banner li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.cta-banner li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ===================== Footer ===================== */
footer {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.825rem;
  margin-top: var(--spacing-2xl);
  background: var(--color-surface);
}

footer .disclaimer {
  margin-bottom: 0.75rem;
  font-style: italic;
  line-height: 1.6;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--color-primary);
}

footer p {
  margin-bottom: 0.375rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 1rem 3rem;
  text-align: left;
  margin-bottom: 1.25rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-nav-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-nav-group a {
  display: block;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav-group a:hover {
  color: var(--color-primary);
}

/* ===================== Content pages ===================== */
.content-page {
  padding: var(--spacing-xl) 0;
}

.content-page h1 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.content-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.content-page h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.content-page p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.content-page ul, .content-page ol {
  margin-bottom: var(--spacing-md);
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.content-page li {
  margin-bottom: 0.375rem;
}

.content-page a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.content-page a:hover {
  text-decoration: underline;
}

/* ===================== Success page ===================== */
.success-card {
  text-align: center;
  border-color: var(--color-success);
  border-width: 2px;
  padding: var(--spacing-xl);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

/* ===================== 404 ===================== */
.error-page {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
}

/* ===================== Scroll reveal ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .buy-button::after {
    display: none;
  }
  .step-card, .card {
    transition: none;
  }
}

/* ===================== Responsive ===================== */
@media (max-width: 640px) {
  .hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }

  main {
    padding: 0 var(--spacing-md);
  }

  .footer-nav {
    grid-template-columns: repeat(2, auto);
    gap: 1.5rem 2rem;
  }

  .nav-bar {
    padding: 0.75rem var(--spacing-md);
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
  }

  .card {
    padding: var(--spacing-md);
  }

  .step-card {
    padding: var(--spacing-md);
  }

  .steps-grid {
    gap: 0.75rem;
  }

  .quote-preview-header {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .quote-meta {
    text-align: left;
  }

  .quote-parties {
    grid-template-columns: 1fr;
  }

  .line-items-table {
    font-size: 0.8rem;
  }

  .line-items-table .col-desc {
    min-width: 100px;
  }

  .line-items-table .col-num {
    width: 60px;
  }
}

/* ===================== Print styles ===================== */
@media print {
  .announcement-bar,
  header,
  footer,
  .nav-toggle,
  .theme-toggle,
  .buy-button,
  .btn-secondary,
  .btn-add,
  .btn-remove,
  .cta-banner,
  .faq-section,
  .steps-grid,
  .hero,
  .trust-badges,
  .social-proof,
  .skip-link,
  .no-print,
  .card:not(.quote-preview-card) {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .quote-preview {
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }

  .quote-preview-header {
    border-bottom-color: #000;
  }

  .quote-biz-name {
    color: #000;
  }

  .quote-items-table th {
    border-bottom-color: #333;
  }

  .quote-items-table td {
    border-bottom-color: #ccc;
  }

  .summary-row {
    border-bottom-color: #ccc;
  }

  .summary-total .summary-value {
    color: #000;
  }

  @page {
    margin: 1.5cm;
  }
}
