/* ============================================================================
   PRENUP GUIDE UK – MAIN STYLESHEET
   Production-Ready | Complete Design System Implementation
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================================================ */

:root {
  /* Colour Palette */
  --bg-deepest:     #070e1a;
  --bg-deep:        #0d1b2e;
  --bg-mid:         #152338;
  --bg-light:       #1e3354;
  --accent-primary: #d4a843;
  --accent-mid:     #b8923a;
  --accent-muted:   #8a6d2f;
  --accent-pale:    #f0dfa0;
  --cream:          #f5f0e8;
  --text-primary:   #e8e0d0;
  --text-secondary: #a89f90;
  --text-muted:     #6e6558;
  --success:        #4a8c6e;
  --danger:         #c44f3a;
  --border-subtle:  rgba(212,168,67,0.12);
  --border-mid:     rgba(212,168,67,0.28);
  --border-strong:  rgba(212,168,67,0.55);

  /* Typography Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Josefin Sans', Arial, sans-serif;

  /* Layout */
  --max-w: 1140px;
  --prose-w: 780px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-primary);
  background: var(--bg-deepest);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* ============================================================================
   3. TYPOGRAPHY HIERARCHY
   ============================================================================ */

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 600;
  color: var(--accent-pale);
  line-height: 1.25;
}

h4 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

h5 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

h6 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
}

p {
  margin-bottom: 1.25rem;
}

small {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

strong {
  font-weight: 700;
  color: var(--cream);
}

em {
  font-style: italic;
  color: var(--accent-pale);
}

/* ============================================================================
   4. COMPLIANCE RIBBON
   ============================================================================ */

.compliance-ribbon {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #12060a;
  border-bottom: 2px solid var(--danger);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 9px 20px;
  text-align: center;
}

.compliance-ribbon a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.compliance-ribbon a:hover {
  color: var(--accent-pale);
}

/* ============================================================================
   5. NAVIGATION
   ============================================================================ */

.site-nav {
  position: sticky;
  top: 44px;
  z-index: 999;
  backdrop-filter: blur(8px);
  background: rgba(13, 27, 46, 0.97);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.site-nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.site-nav__logo span {
  color: var(--accent-primary);
}

.site-nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav__links a:hover {
  color: var(--cream);
}

.site-nav__links a.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--accent-primary);
  color: var(--bg-deepest);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-mid);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
}

/* Mobile Navigation */
@media (max-width: 820px) {
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    gap: 16px;
    gap: 16px;
  }

  .site-nav__links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }
}

/* ============================================================================
   6. HERO SECTIONS
   ============================================================================ */

.hero {
  background: var(--bg-deepest);
  padding: 84px 24px 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,168,67,0.03) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__title em {
  color: var(--accent-pale);
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero--inner {
  padding: 56px 24px 52px;
  text-align: left;
}

.hero--inner .hero__title,
.hero--inner .hero__subtitle {
  text-align: left;
}

.hero__breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero__breadcrumb a {
  color: var(--text-secondary);
}

.hero__breadcrumb span {
  color: var(--text-muted);
  margin: 0 6px;
}

@media (max-width: 820px) {
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas > * {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================================================
   7. BUTTONS
   ============================================================================ */

.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-deepest);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-mid);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent-primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-deepest);
}

/* ============================================================================
   8. SECTIONS & CONTAINERS
   ============================================================================ */

.section {
  padding: 72px 24px;
}

@media (max-width: 600px) {
  .section {
    padding: 48px 16px;
  }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.prose {
  max-width: var(--prose-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  margin: 0.04em 0.09em 0 0;
  color: var(--accent-primary);
}

.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 48px 0 8px;
}

.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  margin: 36px 0 8px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  margin: 0 0 20px;
}

.prose li {
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.7;
}

.prose a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--accent-pale);
}

/* ============================================================================
   9. DIRECT ANSWER BLOCK (DAB)
   ============================================================================ */

.dab {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-mid);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 16px 0 28px;
}

.dab__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-muted);
  margin-bottom: 8px;
}

.dab p {
  font-size: 0.97rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
}

.dab p::first-letter {
  font-size: inherit;
  float: none;
  color: inherit;
}

/* ============================================================================
   10. SCOTLAND NOTE
   ============================================================================ */

.scotland-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.scotland-note__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.scotland-note__body {
  flex: 1;
}

.scotland-note__body strong {
  font-family: var(--font-display);
  color: var(--cream);
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.scotland-note__body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ============================================================================
   11. CTA NOTE
   ============================================================================ */

.cta-note {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.cta-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ============================================================================
   12. CARD GRID & CARDS
   ============================================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--bg-mid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-mid);
  background: var(--bg-light);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.card__title {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.card__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

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

/* ============================================================================
   13. STAT ROW
   ============================================================================ */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 32px 0;
}

.stat {
  text-align: center;
  padding: 16px 24px;
  background: var(--bg-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.stat__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================================
   14. CRITERIA LIST
   ============================================================================ */

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.criteria-list li {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-mid);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
  align-items: flex-start;
}

.criteria-list li::before {
  content: attr(data-number);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: var(--bg-deepest);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================================
   15. STEPS LIST
   ============================================================================ */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step__title {
  color: var(--cream);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step__content {
  flex: 1;
}

.step__content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

/* ============================================================================
   16. TABLES
   ============================================================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

th {
  background: var(--bg-light);
  color: var(--accent-pale);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-strong);
  font-weight: 700;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: top;
}

tr:nth-child(even) {
  background: rgba(21, 35, 56, 0.4);
}

.tick {
  color: var(--success);
  font-weight: 700;
}

.cross {
  color: var(--danger);
  font-weight: 700;
}

.warn {
  color: var(--accent-primary);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.comparison-table {
  width: 100%;
}

.comparison-table thead th:first-child {
  background: var(--bg-light);
}

.comparison-table thead th:nth-child(2) {
  background: var(--bg-mid);
}

.comparison-table thead th:nth-child(3) {
  background: rgba(212, 168, 67, 0.12);
}

.timeline-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 820px) {
  .table-wrapper {
    overflow-x: auto;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 10px 12px;
  }
}

/* ============================================================================
   17. SERVICE CARDS
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  background: var(--bg-mid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}

.service-card--featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.service-card__badge {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg-deepest);
  background: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  margin-right: 8px;
}

.service-card__recommended {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg-deepest);
  background: var(--success);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.service-card__name {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 8px;
  margin-top: 0;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card__pros {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__pros li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-left: 0;
}

.service-card__pros li:last-child {
  border-bottom: none;
}

.service-card__pros li::before {
  content: '✓';
  color: var(--success);
  margin-right: 8px;
  font-weight: 700;
}

.service-card__cost {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-pale);
  margin: 20px 0 8px;
}

.service-card__cost-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

/* ============================================================================
   18. WARNING BOX
   ============================================================================ */

.warning-box {
  background: rgba(196, 79, 58, 0.12);
  border: 1px solid rgba(196, 79, 58, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.warning-box strong {
  color: #e87b5e;
  font-weight: 700;
}

/* ============================================================================
   19. FAQ ACCORDION
   ============================================================================ */

.faq {
  margin: 24px 0;
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--accent-primary);
}

.faq__question::after {
  content: '+';
  color: var(--accent-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.faq__question.open::after {
  content: '−';
  transform: rotate(0);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-bottom: 0;
  line-height: 1.7;
}

.faq__answer.open {
  max-height: 800px;
  padding-bottom: 16px;
}

/* ============================================================================
   20. CALCULATOR
   ============================================================================ */

.calculator {
  background: var(--bg-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 32px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-pale);
  font-weight: 700;
}

.calc-field .calc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-top: -4px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.input-wrap.focused {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.input-wrap .prefix {
  font-family: var(--font-ui);
  color: var(--accent-primary);
  padding: 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 12px 12px 0;
}

.input-wrap input::placeholder {
  color: var(--text-muted);
}

.calc-btn {
  background: var(--accent-primary);
  color: var(--bg-deepest);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s ease;
  width: 100%;
}

.calc-btn:hover {
  background: var(--accent-mid);
}

.calc-result {
  display: none;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 28px;
}

.calc-result.visible {
  display: block;
}

.calc-result__tier {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-muted);
  margin-bottom: 4px;
}

.calc-result__total {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
}

.calc-result__total-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.calc-result__divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.calc-result__cost-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-result__range {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.calc-result__complexity {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}

.calc-result__recommendation {
  font-size: 0.95rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
  padding-left: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.calc-result__btn {
  margin-bottom: 24px;
  width: 100%;
}

.calc-result__disclaimer {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .calculator {
    padding: 24px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .calculator {
    padding: 20px;
  }

  .calc-field label {
    font-size: 0.68rem;
  }
}

/* ============================================================================
   21. CTA SECTION
   ============================================================================ */

.cta-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 72px 24px;
}

.cta-section h2 {
  color: var(--cream);
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .cta-section {
    padding: 48px 16px;
  }
}

/* ============================================================================
   22. EMAIL CAPTURE FORM
   ============================================================================ */

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input[type='email'] {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.email-form input[type='email']:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.email-form input[type='email']::placeholder {
  color: var(--text-muted);
}

.email-form button {
  white-space: nowrap;
}

.form-success {
  display: none;
  background: rgba(74, 140, 110, 0.12);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #6db38a;
  text-align: center;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

@media (max-width: 820px) {
  .email-form {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
  }
}

/* ============================================================================
   23. FOOTER
   ============================================================================ */

.site-footer {
  background: var(--bg-deepest);
  border-top: 2px solid var(--border-mid);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer__brand {
  max-width: 280px;
}

.footer__brand h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--cream);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer__nav h4,
.footer__legal h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.footer__nav ul,
.footer__legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav a,
.footer__legal a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__legal a:hover {
  color: var(--text-secondary);
}

.disclosure {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  margin-bottom: 32px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.disclosure h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.disclosure-item h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-pale);
  margin-bottom: 8px;
}

.disclosure-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .disclosure-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================================
   24. AFFILIATE NOTE
   ============================================================================ */

.affiliate-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 24px;
}

/* ============================================================================
   25. QUESTIONS/NUMBERED LISTS
   ============================================================================ */

.questions-list {
  list-style: none;
  padding: 0;
  counter-reset: q-counter;
  margin: 0;
}

.questions-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.questions-list li:last-child {
  border-bottom: none;
}

.questions-list li::before {
  content: counter(q-counter);
  counter-increment: q-counter;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: var(--bg-deepest);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.questions-list li p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================================
   26. SECTION ALTERNATING BACKGROUNDS
   ============================================================================ */

.section:nth-child(odd) {
  background: var(--bg-deepest);
}

.section:nth-child(even) {
  background: var(--bg-deep);
}

/* ============================================================================
   27. UTILITY CLASSES
   ============================================================================ */

.text-center {
  text-align: center;
}

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.gap-4 {
  gap: 32px;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================================================
   28. PRINT STYLES
   ============================================================================ */

@media print {
  .compliance-ribbon,
  .site-nav,
  .hero__ctas,
  .cta-section,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: #000;
  }

  a {
    color: #0066cc;
  }
}

/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */

/* Utility classes */
.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }
