/* ============================================================
   AGE CALCULATOR — GLOBAL CSS
   Silo: Calculate | Color: Cyan #06B6D4
   Font: DM Sans | BG: #0A0F1C | Card: #111B2E
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&display=swap');
/* Rank Math Breadcrumb Styling */
.rank-math-breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.rank-math-breadcrumb a {
  color: #5A7090;
  text-decoration: none;
}
.rank-math-breadcrumb a:hover {
  color: #06B6D4;
}
.rank-math-breadcrumb .separator {
  color: #374B64;
  margin: 0 8px;
}
.rank-math-breadcrumb .last {
  color: #8899AA;
}

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

:root {
  /* Silo Color — Calculate (Cyan) */
  --silo: #06B6D4;
  --silo-hover: #0891B2;
  --silo-dim: rgba(6, 182, 212, 0.12);
  --silo-border: rgba(6, 182, 212, 0.30);
  --silo-glow: rgba(6, 182, 212, 0.08);
  --silo-icon-bg: rgba(6, 182, 212, 0.15);

  /* Global BG & Cards */
  --bg: #0A0F1C;
  --bg2: #0B1120;
  --card: #111B2E;
  --card-border: rgba(55, 75, 100, 0.30);
  --card-hover-border: rgba(55, 75, 100, 0.55);

  /* Typography */
  --text-primary: #FFFFFF;
  --text-body: #C8D8E8;
  --text-secondary: #8899AA;
  --text-muted: #5A7090;

  /* Font */
  --font: 'DM Sans', sans-serif;

  /* Radius */
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* ── BASE ── */
body,
.age-calc-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED SECTION WRAPPER ── */
.ac-section {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ac-section-narrow {
  padding: 64px 24px;
  max-width: 860px;
  margin: 0 auto;
}

/* ── SECTION LABELS ── */
.ac-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ac-eyebrow::before,
.ac-eyebrow::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--card-border);
}
.ac-eyebrow span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--silo);
}

/* ── HEADINGS ── */
.ac-heading {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: center;
}
/* First H1 on page — slightly smaller intentionally */
.ac-heading-h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: center;
}
.ac-heading em {
  font-style: normal;
  color: var(--silo);
}
.ac-subheading {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 12px auto 0;
}

/* ── BADGE ── */
.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--silo-dim);
  border: 1px solid var(--silo-border);
  color: var(--silo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── BUTTONS ── */
.ac-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--silo);
  color: #000;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.ac-btn-primary:hover {
  background: var(--silo-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}
.ac-btn-primary:active { transform: translateY(0); }

.ac-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  padding: 13px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.ac-btn-secondary:hover {
  border-color: var(--card-hover-border);
  color: var(--text-body);
}

/* ── CARDS ── */
.ac-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ac-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--silo-glow);
  border-color: var(--card-hover-border);
}

/* ── ICON BOX ── */
.ac-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--silo-icon-bg);
  border: 1px solid var(--silo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.ac-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 0;
}

/* ── STAT STRIP ── */
.ac-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 40px auto 0;
  max-width: 860px;
}
.ac-stat {
  background: var(--card);
  padding: 22px 20px;
  text-align: center;
}
.ac-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--silo);
  line-height: 1;
  margin-bottom: 5px;
}
.ac-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── FORM FIELDS ── */
.ac-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.ac-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.ac-input:focus {
  border-color: var(--silo);
  box-shadow: 0 0 0 3px var(--silo-dim);
}
input[type="date"].ac-input::-webkit-calendar-picker-indicator {
  filter: brightness(0.55) sepia(1) saturate(5) hue-rotate(150deg);
  cursor: pointer;
  opacity: 0.7;
}
input[type="date"].ac-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ── FAQ ACCORDION ── */
.ac-faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.ac-faq-item.open {
  border-color: var(--silo-border);
}
.ac-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.ac-faq-q span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.ac-faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--silo-dim);
  border: 1px solid var(--silo-border);
  color: var(--silo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s;
  font-weight: 700;
}
.ac-faq-item.open .ac-faq-icon {
  transform: rotate(45deg);
}
.ac-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}
.ac-faq-item.open .ac-faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}
.ac-faq-a p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── HOW IT WORKS STEPS ── */
.ac-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
.ac-steps-grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silo-border), var(--silo-border), transparent);
  z-index: 0;
}
.ac-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, transform 0.2s;
}
.ac-step:hover {
  border-color: var(--silo-border);
  transform: translateY(-2px);
}
.ac-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--silo-icon-bg);
  border: 2px solid var(--silo-border);
  color: var(--silo);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ac-step-emoji {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.ac-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ac-step p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── FEATURE GRID ── */
.ac-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.ac-feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.ac-feature:hover {
  border-color: var(--silo-border);
  transform: translateY(-2px);
}
.ac-feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.ac-feature h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ac-feature p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── AUDIENCE TAGS ── */
.ac-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ac-tag:hover {
  border-color: var(--silo-border);
  color: var(--text-body);
}

/* ── RELATED TOOLS ── */
.ac-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.ac-related-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.ac-related-card:hover {
  border-color: var(--silo-border);
  transform: translateY(-2px);
}
.ac-related-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--silo-icon-bg);
  border: 1px solid var(--silo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ac-related-text h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.ac-related-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── RESULTS DISPLAY ── */
.ac-results {
  display: none;
  margin-top: 24px;
}
.ac-results.visible {
  display: block;
  animation: fadeInUp 0.4s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ac-result-main {
  background: linear-gradient(135deg, rgba(6,182,212,0.12) 0%, rgba(6,182,212,0.05) 100%);
  border: 1px solid var(--silo-border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
}
.ac-result-age {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  color: var(--silo);
  line-height: 1;
  margin-bottom: 8px;
}
.ac-result-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.ac-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ac-result-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
}
.ac-result-box-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 5px;
}
.ac-result-box-key {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.ac-result-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ac-result-extra-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ac-result-extra-box h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ac-result-extra-box p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}
.ac-result-extra-box .ac-highlight {
  color: var(--silo);
}

/* ── INFO / CONTENT SECTION ── */
.ac-info-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.ac-info-sidebar {
  position: sticky;
  top: 72px;
}
.ac-sidebar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 16px;
}
.ac-sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ac-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.ac-sidebar-link:last-child { border-bottom: none; }
.ac-sidebar-link:hover { color: var(--silo); }
.ac-sidebar-link::before {
  content: '→';
  color: var(--silo);
  font-size: 12px;
}

.ac-prose h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 14px;
}
.ac-prose h3:first-child { margin-top: 0; }
.ac-prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.ac-prose ul {
  list-style: none;
  margin-bottom: 16px;
}
.ac-prose ul li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.6;
}
.ac-prose ul li::before {
  content: '✓';
  color: var(--silo);
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 6px;
}
.ac-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.ac-benefit {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.ac-benefit-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.ac-benefit h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.ac-benefit p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ── CTA SECTION ── */
.ac-cta-wrap {
  background: linear-gradient(135deg, rgba(6,182,212,0.08) 0%, rgba(6,182,212,0.03) 100%);
  border: 1px solid var(--silo-border);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.ac-cta-wrap h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.ac-cta-wrap p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ac-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-steps-grid::before { display: none; }
  .ac-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-info-grid { grid-template-columns: 1fr; }
  .ac-info-sidebar { position: static; }
  .ac-related-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ac-section, .ac-section-narrow { padding: 48px 16px; }
  .ac-steps-grid { grid-template-columns: 1fr; }
  .ac-features-grid { grid-template-columns: 1fr; }
  .ac-result-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-result-extra { grid-template-columns: 1fr; }
  .ac-related-grid { grid-template-columns: 1fr; }
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
  .ac-benefits-grid { grid-template-columns: 1fr; }
  .ac-cta-wrap { padding: 40px 24px; }
}
