/* =========================================
   Age Difference Calculator - Main Styles
   agedifferencecalculator.org
   Light Theme - Warm Cream & Deep Teal
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --cream-border: #E2D9CC;
  --teal:         #0D6E6E;
  --teal-dark:    #085252;
  --teal-light:   #E6F4F4;
  --teal-mid:     #1A8C8C;
  --gold:         #C8922A;
  --gold-light:   #FDF3E1;
  --text-dark:    #1A1A1A;
  --text-mid:     #4A4540;
  --text-light:   #8A827A;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(13,110,110,0.08);
  --shadow-md:    0 6px 24px rgba(13,110,110,0.12);
  --shadow-lg:    0 16px 48px rgba(13,110,110,0.16);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    36px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* ── UTILITIES ── */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== HEADER ========== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}

.logo-text .tagline {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--teal-light) 100%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--cream-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #E8C87A;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--teal-mid); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== MAIN CALCULATOR CARD ========== */
.calc-section { padding: 56px 0; }

.calc-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-border);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.calc-card-header {
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-card-header .icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.calc-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  font-weight: 600;
}

.calc-card-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

.calc-card-body { padding: 40px; }

/* ── Person Inputs ── */
.persons-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  gap: 8px;
}

.vs-divider .vs-circle {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.vs-divider .vs-line {
  width: 1px;
  height: 60px;
  background: var(--cream-border);
}

.person-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.person-card.person-2 { background: var(--teal-light); border-color: rgba(13,110,110,0.2); }

.person-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.person-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.person-2 .person-label .dot { background: var(--teal); }

/* Form Fields */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,110,110,0.1);
}

.form-group input::placeholder { color: var(--text-light); }

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select { padding-right: 32px; }

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.85rem;
}

/* Calculate Button */
.btn-calculate {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-calculate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-calculate:hover::before { opacity: 1; }

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,110,0.3);
}

.btn-calculate:active { transform: translateY(0); }

/* ── RESULTS ── */
#calc-result {
  margin-top: 32px;
  display: none;
}

#calc-result.show { display: block; animation: fadeSlideUp 0.4s ease both; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  content: '⏳';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  opacity: 0.12;
}

.result-hero .diff-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 8px;
}

.result-hero .diff-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.result-hero .diff-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.result-stat {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.result-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.result-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Result Details */
.result-details {
  background: var(--gold-light);
  border: 1px solid #E8C87A;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.result-details h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(200,146,42,0.15);
  font-size: 0.875rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row .detail-key { color: var(--text-mid); }
.detail-row .detail-val { font-weight: 600; color: var(--text-dark); }

/* Share */
.result-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share {
  flex: 1;
  min-width: 120px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid transparent;
}

.btn-share.copy { background: var(--white); border-color: var(--cream-border); color: var(--text-dark); }
.btn-share.copy:hover { border-color: var(--teal); color: var(--teal); }
.btn-share.reset { background: var(--white); border-color: var(--cream-border); color: var(--text-light); }
.btn-share.reset:hover { border-color: #CC4444; color: #CC4444; }

/* Error */
.calc-error {
  background: #FFF0F0;
  border: 1.5px solid #FFCCCC;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  color: #CC3333;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.calc-error.show { display: flex; }

/* ========== INFO SECTIONS ========== */
.info-section { padding: 56px 0; border-top: 1px solid var(--cream-border); }
.info-section.alt-bg { background: var(--white); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}

/* How To Use */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--teal-dark);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--cream); }
.faq-question.open { background: var(--teal-light); color: var(--teal-dark); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--cream-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.feature-item:hover { background: var(--cream); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.feature-item p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

/* =========================================
   Age Difference Calculator - Main Styles
   agedifferencecalculator.org
   Light Theme - Warm Cream & Deep Teal
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --cream-border: #E2D9CC;
  --teal:         #0D6E6E;
  --teal-dark:    #085252;
  --teal-light:   #E6F4F4;
  --teal-mid:     #1A8C8C;
  --gold:         #C8922A;
  --gold-light:   #FDF3E1;
  --text-dark:    #1A1A1A;
  --text-mid:     #4A4540;
  --text-light:   #8A827A;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(13,110,110,0.08);
  --shadow-md:    0 6px 24px rgba(13,110,110,0.12);
  --shadow-lg:    0 16px 48px rgba(13,110,110,0.16);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    36px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* ── UTILITIES ── */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== HEADER ========== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}

.logo-text .tagline {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--teal-light) 100%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--cream-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #E8C87A;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--teal-mid); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== MAIN CALCULATOR CARD ========== */
.calc-section { padding: 56px 0; }

.calc-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-border);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.calc-card-header {
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-card-header .icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.calc-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  font-weight: 600;
}

.calc-card-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

.calc-card-body { padding: 40px; }

/* ── Person Inputs ── */
.persons-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  gap: 8px;
}

.vs-divider .vs-circle {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.vs-divider .vs-line {
  width: 1px;
  height: 60px;
  background: var(--cream-border);
}

.person-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.person-card.person-2 { background: var(--teal-light); border-color: rgba(13,110,110,0.2); }

.person-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.person-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.person-2 .person-label .dot { background: var(--teal); }

/* Form Fields */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,110,110,0.1);
}

.form-group input::placeholder { color: var(--text-light); }

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select { padding-right: 32px; }

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.85rem;
}

/* Calculate Button */
.btn-calculate {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-calculate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-calculate:hover::before { opacity: 1; }

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,110,0.3);
}

.btn-calculate:active { transform: translateY(0); }

/* ── RESULTS ── */
#calc-result {
  margin-top: 32px;
  display: none;
}

#calc-result.show { display: block; animation: fadeSlideUp 0.4s ease both; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  content: '⏳';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  opacity: 0.12;
}

.result-hero .diff-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 8px;
}

.result-hero .diff-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.result-hero .diff-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.result-stat {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.result-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.result-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Result Details */
.result-details {
  background: var(--gold-light);
  border: 1px solid #E8C87A;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.result-details h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(200,146,42,0.15);
  font-size: 0.875rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row .detail-key { color: var(--text-mid); }
.detail-row .detail-val { font-weight: 600; color: var(--text-dark); }

/* Share */
.result-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share {
  flex: 1;
  min-width: 120px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid transparent;
}

.btn-share.copy { background: var(--white); border-color: var(--cream-border); color: var(--text-dark); }
.btn-share.copy:hover { border-color: var(--teal); color: var(--teal); }
.btn-share.reset { background: var(--white); border-color: var(--cream-border); color: var(--text-light); }
.btn-share.reset:hover { border-color: #CC4444; color: #CC4444; }

/* Error */
.calc-error {
  background: #FFF0F0;
  border: 1.5px solid #FFCCCC;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  color: #CC3333;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.calc-error.show { display: flex; }

/* ========== INFO SECTIONS ========== */
.info-section { padding: 56px 0; border-top: 1px solid var(--cream-border); }
.info-section.alt-bg { background: var(--white); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}

/* How To Use */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--teal-dark);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--cream); }
.faq-question.open { background: var(--teal-light); color: var(--teal-dark); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--cream-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.feature-item:hover { background: var(--cream); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.feature-item p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

/* ========== FOOTER ========== */
#site-footer {
  background: #141414;
  color: rgba(255,255,255,0.65);
  margin-top: auto;
}

.footer-top {
  padding: 60px 0 44px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand col */
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo .logo-text .brand { color: white; }
.footer-brand .logo .logo-text .tagline { color: rgba(255,255,255,0.4); }

.footer-about {
  font-size: 0.865rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-top: 4px;
}

/* Col headings */
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Quick links list */
.footer-col > ul li { margin-bottom: 9px; }

.footer-col > ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.865rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-col > ul li a:hover {
  color: white;
  padding-left: 4px;
}

/* Contact list */
.footer-contact-list { list-style: none !important; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-contact-list li:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.fc-icon {
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.fc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.fc-text a {
  color: rgba(255,255,255,0.7);
  font-size: 0.855rem;
  font-weight: 500;
  transition: color var(--transition);
}

.fc-text a:hover { color: white; }

/* Contact CTA button */
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--teal-dark);
  color: white !important;
  border-radius: var(--radius-sm);
  font-size: 0.835rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.footer-contact-btn:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Bottom bar */
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.48); transition: color var(--transition); }
.footer-bottom a:hover { color: white; }
.footer-bottom nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Responsive footer */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-about { max-width: 100%; }
}

@media (max-width: 580px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--text-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-border);
    padding: 12px 24px 20px;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a { display: block; }

  .hamburger { display: flex; }

  .hero { padding: 40px 0 32px; }

  .persons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vs-divider {
    flex-direction: row;
    padding: 0;
    justify-content: center;
  }

  .vs-divider .vs-line {
    width: 60px;
    height: 1px;
  }

  .calc-card-body { padding: 24px; }
  .calc-card-header { padding: 20px 24px; }

  .date-row {
    grid-template-columns: 1fr 1fr;
  }

  .date-row .select-wrapper:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-share { flex-direction: column; }
  .logo-text .brand { font-size: 0.9rem; }
}

/* ========== PRINT ========== */
@media print {
  #site-header, #site-footer, .btn-calculate, .result-share { display: none; }
  .calc-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ========== POLICY PAGES ========== */
.policy-body { font-size: 0.925rem; color: var(--text-mid); line-height: 1.85; }

.policy-intro {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.75;
}

.policy-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cream-border);
}

.policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.policy-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.policy-section p { margin-bottom: 12px; }
.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul {
  margin: 10px 0 14px 0;
  padding-left: 20px;
}

.policy-section ul li {
  list-style: disc;
  padding: 3px 0;
  color: var(--text-mid);
}

.policy-section a { color: var(--teal); font-weight: 500; }
.policy-section a:hover { color: var(--teal-dark); text-decoration: underline; }

/* Contact Info Box */
.contact-info-box {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 8px 20px;
  margin-top: 20px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-border);
  font-size: 0.875rem;
  color: var(--text-mid);
}

.contact-info-row:last-child { border-bottom: none; }
.contact-info-row a { color: var(--teal); font-weight: 500; }
.contact-info-row a:hover { color: var(--teal-dark); text-decoration: underline; }

/* Contact page 2-col responsive */
@media (max-width: 680px) {
  .contact-grid-2col { grid-template-columns: 1fr !important; }
}


/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--text-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-border);
    padding: 12px 24px 20px;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a { display: block; }

  .hamburger { display: flex; }

  .hero { padding: 40px 0 32px; }

  .persons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vs-divider {
    flex-direction: row;
    padding: 0;
    justify-content: center;
  }

  .vs-divider .vs-line {
    width: 60px;
    height: 1px;
  }

  .calc-card-body { padding: 24px; }
  .calc-card-header { padding: 20px 24px; }

  .date-row {
    grid-template-columns: 1fr 1fr;
  }

  .date-row .select-wrapper:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-share { flex-direction: column; }
  .logo-text .brand { font-size: 0.9rem; }
}

/* ========== PRINT ========== */
@media print {
  #site-header, #site-footer, .btn-calculate, .result-share { display: none; }
  .calc-card { box-shadow: none; border: 1px solid #ccc; }
}