/* ============================================================
   CITIZEN SENIORS — Main Stylesheet
   Design system: Oxford Blue authority + Forest Green action
   Base font 20px for senior legibility
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --bg-alabaster:        #F8FAFC;
  --text-slate:          #1E293B;
  --text-muted:          #64748B;
  --brand-oxford:        #0F172A;
  --action-green:        #16A34A;
  --action-green-hover:  #15803D;
  --card-white:          #FFFFFF;
  --border:              #E2E8F0;
  --warning-red:         #DC2626;
  --warning-bg:          #FEF2F2;
  --success-bg:          #F0FDF4;
  --success-border:      #BBF7D0;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);

  --radius:     12px;
  --radius-sm:  8px;
}

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

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-alabaster);
  color: var(--text-slate);
  font-size: 20px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* === ACCESSIBILITY === */
*:focus-visible {
  outline: 3px solid var(--action-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  color: var(--brand-oxford);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.5rem;  margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

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

a {
  color: var(--action-green);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.4rem; }

/* === HEADER === */
.site-header {
  background: var(--card-white);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-oxford);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--brand-oxford); }

/* Desktop nav */
.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
}

.site-nav a {
  color: var(--text-slate);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover {
  background: var(--bg-alabaster);
  color: var(--brand-oxford);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  background: var(--bg-alabaster);
  color: var(--action-green);
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--text-slate);
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* === TOOL GRID === */
.tool-grid-section {
  padding: 0 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--card-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--action-green);
  text-decoration: none;
  color: inherit;
}
.tool-card-icon { font-size: 2rem; line-height: 1; }
.tool-card h2 {
  font-size: 1.15rem;
  color: var(--brand-oxford);
  margin: 0;
}
.tool-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.tool-card-cta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--action-green);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background-color: var(--action-green);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--action-green-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-slate);
}
.btn-outline:hover {
  border-color: var(--action-green);
  color: var(--action-green);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 60px;
}
.btn-full { width: 100%; }

/* === FORMS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-oxford);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="time"],
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-slate);
  background: var(--card-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-height: 52px;
  width: 100%;
  transition: border-color 0.15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--action-green);
  outline: none;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === TOOL PAGE LAYOUT === */
.tool-page-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.tool-page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.tool-page-hero p { color: var(--text-muted); font-size: 1rem; }

.tool-container {
  max-width: 640px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* === RESULTS (hidden until JS reveals) === */
.results-section { display: none; }
.results-section.visible { display: block; }

.result-block {
  background: var(--brand-oxford);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.result-block h3 { color: #fff; margin-bottom: 0.25rem; font-size: 1rem; font-weight: 500; }
.result-block .result-value { font-size: 1.6rem; font-weight: 700; }

.result-warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.result-warning strong { color: var(--warning-red); display: block; margin-bottom: 0.25rem; }
.result-warning p { color: var(--warning-red); margin: 0; font-size: 0.95rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* === EMAIL CAPTURE === */
.email-capture {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}
.email-capture h3 { margin-bottom: 0.4rem; }
.email-capture p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}
.email-form input { flex: 1; }

/* CMS affiliate disclaimer (inline) */
.affiliate-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* === PAGE CONTENT (static pages: About, Privacy, Terms) === */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.page-content h1 { margin-bottom: 0.5rem; }
.page-content .page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-content h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}
.page-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* === TRUST GRID (About page) === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.trust-item {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.trust-item .trust-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.trust-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* === FOOTER === */
.site-footer {
  background-color: var(--brand-oxford);
  color: #94A3B8;
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer-nav a { color: #CBD5E1; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-divider {
  border: none;
  border-top: 1px solid #1E3A5F;
  margin: 1.5rem auto;
  max-width: 400px;
}

.ymyl-disclaimer {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-style: italic;
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.6;
}

/* === COOKIE CONSENT === */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-oxford);
  color: #CBD5E1;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 999;
  font-size: 0.875rem;
  border-top: 1px solid #1E3A5F;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: #93C5FD; }
#cookie-accept {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .site-header { padding: 0.875rem 1.25rem; }

  /* Collapse nav to hamburger */
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .site-nav li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.875rem; }

  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 1.5rem; }

  .card { padding: 1.5rem; }
  .tool-page-hero { padding: 2rem 1.25rem 1.5rem; }
  .tool-page-hero h1 { font-size: 1.6rem; }

  .email-form { flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr 1fr; }

  #cookie-banner { gap: 0.75rem; text-align: center; }
}

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

/* ============================================================
   TOOL PAGES — Shared components
   Used by: medicare.php, social-security.php, va-benefits.php,
            pdf-generator.php, poa-checklist.php
   ============================================================ */

/* ── Intro copy inside .card ─────────────────────────────────────────────────── */
.tool-intro {
  margin-bottom: 1.75rem;
  line-height: 1.7;
  color: var(--text-slate);
}

/* ── 2-column form row ───────────────────────────────────────────────────────── */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) {
  .form-row-2col { grid-template-columns: 1fr; }
}

/* ── Select dropdown arrow (appearance: none removes native arrow) ─────────────
   Applied globally so all <select> elements get a consistent arrow. */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Inline field helpers ────────────────────────────────────────────────────── */
.field-error {
  color: var(--warning-red);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.field-optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.birthday-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Fade-slide reveal animation ─────────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MEDICARE CALCULATOR — mc-* namespace
   ============================================================ */

/* Results wrapper (hidden until .visible added by JS) */
.mc-results,
.mc-email-section {
  margin-top: 1.5rem;
  animation: fadeSlideIn 0.25s ease both;
}

/* ── Timeline ─────────────────────────────────────────────────────────────────── */
.mc-timeline {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mc-timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--card-white);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.mc-timeline-row:last-child { border-bottom: none; }
.mc-timeline-row.is-past { background: var(--bg-alabaster); }
.mc-timeline-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.mc-timeline-value {
  font-weight: 700;
  color: var(--brand-oxford);
  text-align: right;
}
.mc-timeline-row.is-past .mc-timeline-value {
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Status boxes ────────────────────────────────────────────────────────────── */
.mc-status {
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.mc-status strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.mc-status p { margin: 0; font-size: 0.95rem; }
.mc-status--info    { background: #EFF6FF; border-left: 4px solid #3B82F6; }
.mc-status--success { background: var(--success-bg); border-left: 4px solid var(--action-green); }
.mc-status--warning { background: var(--warning-bg); border-left: 4px solid var(--warning-red); }
.mc-status--info strong    { color: #1D4ED8; }
.mc-status--success strong { color: #15803D; }
.mc-status--warning strong { color: var(--warning-red); }

/* ── Penalty box ─────────────────────────────────────────────────────────────── */
.mc-penalty-box {
  background: var(--warning-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.mc-penalty-box h3 {
  font-size: 1.05rem;
  color: #991B1B;
  margin-bottom: 0.4rem;
}
.mc-penalty-note {
  font-size: 0.875rem;
  color: #7F1D1D;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.mc-penalty-note a { color: #7F1D1D; text-decoration: underline; }
.mc-penalty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.mc-penalty-item {
  background: var(--card-white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mc-penalty-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #991B1B;
}
.mc-penalty-rate {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.mc-penalty-monthly {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warning-red);
}
.mc-penalty-lifetime {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Email capture card (dark) ───────────────────────────────────────────────── */
.mc-email-card {
  background: var(--brand-oxford);
  color: #F1F5F9;
  border-radius: var(--radius);
  padding: 2.25rem;
}
.mc-email-card h2 { color: #fff; margin-bottom: 0.5rem; font-size: 1.4rem; }
.mc-email-card > p {
  color: #94A3B8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}
.mc-email-card label { color: #CBD5E1; }
.mc-email-card input[type="text"],
.mc-email-card input[type="email"] {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: #F1F5F9;
}
.mc-email-card input::placeholder { color: rgba(255,255,255,0.35); }
.mc-email-card input:focus {
  border-color: var(--action-green);
  background: rgba(255,255,255,0.1);
}
.email-consent-note {
  margin-top: 0.875rem;
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.5;
}
.email-consent-note a { color: #94A3B8; text-decoration: underline; }
.kit-success {
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid #166534;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  color: #BBF7D0;
  line-height: 1.6;
}
.mc-email-card .field-error {
  color: #FCA5A5;
}

/* ── Affiliate block ─────────────────────────────────────────────────────────── */
.mc-affiliate {
  background: var(--bg-alabaster);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  margin-bottom: 3rem;
}
.mc-affiliate-inner {
  max-width: 640px;
  margin: 0 auto;
}
.mc-affiliate-inner h2 { margin-bottom: 0.75rem; }
.mc-affiliate-inner > p {
  line-height: 1.7;
  margin-bottom: 1rem;
}
.mc-affiliate-disclosure {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ============================================================
   FAQ ACCORDION — <details>/<summary> pattern
   Used on all tool pages. No JS required.
   AI crawlers read <details> content as plain text.
   Answers must be verbatim-identical to FAQPage JSON-LD.
   ============================================================ */

.faq-section {
  max-width: 640px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.faq-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.faq-section details {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.625rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.faq-section details[open] {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}
.faq-section summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--brand-oxford);
  user-select: none;
  -webkit-user-select: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--action-green);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-section details[open] summary::after {
  content: '−';
}
.faq-section details > p,
.faq-section details > div {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-slate);
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  margin: 0;
}
.faq-section details > p a,
.faq-section details > div a {
  color: var(--action-green);
  text-decoration: underline;
}

/* ── Tool page responsive overrides ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .mc-timeline-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .mc-timeline-value { text-align: left; }
  .mc-email-card { padding: 1.5rem; }
  .mc-affiliate { padding: 2rem 1.25rem; }
  .mc-penalty-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VISUAL UPGRADE — Color, gradients & sex appeal
   Overrides base tool-page styles for richer visual presence.
   ============================================================ */

/* ── Full-bleed gradient hero (overrides max-width:640px from base) ────────── */
.tool-page-hero {
  max-width: none;
  margin: 0;
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(155deg, #0F172A 0%, #0A2B1A 55%, #0F172A 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Soft color orbs for depth — no images, pure CSS */
.tool-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 90% at 88% 10%, rgba(22,163,74,0.20) 0%, transparent 100%),
    radial-gradient(ellipse 55% 65% at 12% 90%, rgba(14,165,233,0.10) 0%, transparent 100%);
  pointer-events: none;
}
.tool-page-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  position: relative;
}
/* Green gradient underline accent on every tool page h1 */
.tool-page-hero h1::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #16A34A, #34D399);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}
.tool-page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
/* Pill badge — add <span class="hero-badge">Free Tool</span> above h1 */
.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #34D399;
  margin-bottom: 1.25rem;
  position: relative;
}

/* ── Richer gradient primary button ─────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #16A34A 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #15803D 0%, #047857 100%);
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.42);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

/* ── Affiliate section — fix edge-to-edge, add green identity ───────────────── */
.mc-affiliate {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 60%, #f0fdf4 100%);
  border-top: 3px solid var(--action-green);
  border-bottom: none;
  padding: 4rem 5%;       /* percentage side padding = breathing room at any width */
  margin-bottom: 0;
}
.mc-affiliate-inner {
  max-width: 760px;
  margin: 0 auto;
}
.mc-affiliate-inner h2 { font-size: 1.6rem; }

/* ── FAQ section — fix edge-to-edge, larger & sexier accordion ──────────────── */
.faq-section {
  max-width: none;          /* override 640px — full width with internal container */
  margin: 0;
  padding: 4rem 5% 5rem;   /* percentage side padding = no edge-to-edge */
  background: var(--bg-alabaster);
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq-inner h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Larger, more dramatic accordion items */
.faq-section details {
  border-radius: 14px;
  border: 1.5px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-section details[open] {
  border-color: var(--action-green);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.faq-section summary {
  padding: 1.5rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-oxford);
  background: var(--card-white);
  transition: background 0.15s ease;
}
.faq-section summary:hover {
  background: rgba(22, 163, 74, 0.03);
}
.faq-section details[open] summary {
  background: linear-gradient(135deg, rgba(22,163,74,0.06) 0%, rgba(5,150,105,0.04) 100%);
  color: #15803D;
  border-bottom: 1px solid rgba(22, 163, 74, 0.15);
}
/* Circle + / − icon */
.faq-section summary::after {
  content: '+';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-alabaster);
  color: var(--action-green);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 30px;        /* (34 - 2 borders × 2) centers text vertically */
  text-align: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-section details[open] summary::after {
  content: '−';
  background: var(--action-green);
  border-color: var(--action-green);
  color: #fff;
}
/* Answer body */
.faq-section details > p,
.faq-section details > div {
  padding: 1.25rem 1.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  border-top: none;         /* visual separation handled by summary border-bottom */
  color: var(--text-slate);
  margin: 0;
}

/* ── Visual upgrade responsive overrides ────────────────────────────────────── */
@media (max-width: 640px) {
  .tool-page-hero { padding: 3rem 1.25rem 2.5rem; }
  .tool-page-hero h1 { font-size: 1.75rem; }
  .mc-affiliate { padding: 2.5rem 1.25rem; }
  .faq-section { padding: 2.5rem 1.25rem 4rem; }
  .faq-section summary { padding: 1.25rem 1.25rem; font-size: 1rem; }
  .faq-section details > p,
  .faq-section details > div { padding: 1rem 1.25rem 1.25rem; }
}
