:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f3f7f5;
  --border: #e4e7ec;
  --border-strong: #cbd5e1;
  --text: #141c24;
  --text-secondary: #475467;
  --text-muted: #667085;
  --accent: #0f6b4e;
  --accent-hover: #0a523b;
  --accent-soft: #e6f4ef;
  --accent-ring: rgba(15, 107, 78, 0.25);
  --warm-bg: #fef3c7;
  --warm-text: #92400e;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(16, 24, 40, 0.08), 0 2px 6px -1px rgba(16, 24, 40, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: "Fraunces", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.article-container {
  max-width: 780px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.header-link:hover {
  color: var(--accent);
}

.notice-strip {
  background: #f2f4f7;
  border-top: 1px solid var(--border);
  padding-block: 0.35rem;
}

.notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dot {
  opacity: 0.55;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn:focus-visible,
.option-btn:focus-visible,
.footer-link-btn:focus-visible,
summary:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 107, 78, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 107, 78, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main Article Layout */
.article-main {
  padding-top: 2.25rem;
  padding-bottom: 4.5rem;
}

.article-hero {
  margin-bottom: 2.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill-warm {
  background: var(--warm-bg);
  color: var(--warm-text);
}

.pill-green {
  background: var(--accent-soft);
  color: var(--accent);
}

.meta-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.article-deck {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
}

/* Hero Summary Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  display: grid;
  gap: 1.35rem;
}

.hero-card-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.975rem;
  color: var(--text-secondary);
}

.icon-check {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.hero-card-action {
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
}

.cta-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Editorial Sections */
.article-section {
  margin-bottom: 2.75rem;
}

.article-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.9rem;
  color: var(--text);
}

.article-section p {
  margin: 0 0 1.1rem;
  color: var(--text-secondary);
}

.editorial-callout {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.35rem;
  background: var(--surface-tint);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editorial-callout p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

/* 4-Factor Grid */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.factor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.factor-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.factor-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.factor-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Interactive Readiness Check */
.readiness-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 105px;
}

.readiness-header h2 {
  margin-top: 0.65rem;
  margin-bottom: 0.45rem;
}

.readiness-header p {
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.readiness-widget {
  display: grid;
  gap: 1.35rem;
}

.question-group {
  display: grid;
  gap: 0.6rem;
}

.question-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.option-btn {
  appearance: none;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.option-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.option-btn.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.readiness-result {
  background: var(--surface-tint);
  border: 1px solid #cce3d8;
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.result-text {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 1.15rem;
}

.result-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.result-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 3-Step Walkthrough */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--text);
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.15rem;
}

.faq-item summary {
  padding-block: 0.95rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.faq-body p {
  margin: 0;
  font-size: 0.95rem;
}

/* Bottom CTA Card */
.bottom-cta-card {
  background: linear-gradient(135deg, #0d5941 0%, #0f6b4e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.15rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.bottom-cta-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.65rem;
  color: #ffffff;
}

.bottom-cta-card p {
  max-width: 540px;
  margin: 0 auto 1.35rem;
  color: rgba(255, 255, 255, 0.9);
}

.bottom-cta-card .btn-primary {
  background: #ffffff;
  color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.bottom-cta-card .btn-primary:hover {
  background: #f0fdf4;
}

.bottom-cta-meta {
  margin: 0.9rem auto 0 !important;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Sticky Mobile Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  padding-top: 0.65rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-copy strong {
  font-size: 0.9rem;
  color: var(--text);
}

.sticky-copy span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #f2f4f7;
  border-top: 1px solid var(--border);
  padding-block: 2.25rem 3.25rem;
}

.footer-container {
  max-width: 780px;
}

.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.35rem;
}

.disclaimer-box p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: var(--accent);
}

/* Dialog Modals */
.legal-dialog {
  width: min(92vw, 560px);
  max-height: 85dvh;
  overflow-y: auto;
  margin: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.22);
}

.legal-dialog::backdrop {
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(2px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.dialog-header h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
}

.dialog-close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.dialog-close:hover {
  background: #f2f4f7;
  color: var(--text);
}

.dialog-body {
  padding: 1.25rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.dialog-body p {
  margin: 0 0 0.85rem;
}

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

/* Responsive */
@media (max-width: 680px) {
  .header-link {
    display: none;
  }

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

  .readiness-section {
    padding: 1.35rem 1.15rem;
  }

  .result-cta-wrap .btn,
  .bottom-cta-card .btn {
    width: 100%;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .site-footer {
    padding-bottom: 5.75rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
    line-height: 1.65;
  }

  .container {
    padding-inline: 1rem;
  }

  .header-inner {
    min-height: 58px;
    gap: 0.6rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.9375rem;
  }

  .brand-tag {
    font-size: 0.6875rem;
  }

  .header-actions .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .notice-inner {
    font-size: 0.7rem;
    gap: 0.2rem 0.45rem;
    text-align: center;
  }

  .article-main {
    padding-top: 1.35rem;
    padding-bottom: 3rem;
  }

  .article-hero {
    margin-bottom: 2rem;
  }

  .article-title {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
  }

  .article-deck {
    font-size: 1.02rem;
    margin-bottom: 1.35rem;
  }

  .hero-card {
    padding: 1.15rem;
    gap: 1.1rem;
  }

  .hero-card-title {
    font-size: 1.2rem;
  }

  .check-list li {
    font-size: 0.9375rem;
  }

  .btn-lg {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: 0.98rem;
    text-align: center;
  }

  .article-section {
    margin-bottom: 2.15rem;
  }

  .editorial-callout {
    padding: 1rem 1.05rem;
  }

  .factor-card {
    padding: 1.05rem;
  }

  .option-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .option-row > .option-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .option-btn {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
    text-align: center;
    line-height: 1.25;
  }

  .readiness-result {
    padding: 1.1rem;
  }

  .step-item {
    padding: 1rem;
    gap: 0.8rem;
  }

  .faq-item {
    padding: 0.2rem 1rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }

  .bottom-cta-card {
    padding: 1.65rem 1.15rem;
  }

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

