/* ============================================================
   TenHours.ai — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---- Tokens ---- */

:root {
  --color-bg:           #faf9f6;
  --color-surface:      #f5f4f0;
  --color-surface-2:    #eeede9;
  --color-border:       rgba(0,0,0,0.09);
  --color-border-2:     rgba(0,0,0,0.18);
  --color-text:         #1a1a18;
  --color-text-muted:   #5a5a56;
  --color-text-faint:   #9a9a94;
  --color-accent:       #185fa5;
  --color-accent-hover: #0c447c;
  --color-accent-contrast: #fff;
  --color-success:      #3b6d11;
  --color-success-bg:   #eaf3de;
  --color-warn:         #854f0b;
  --color-warn-bg:      #faeeda;

  --font-sans:  'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono:  'DM Mono', monospace;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  38px;
  --text-hero: clamp(32px, 5vw, 56px);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #1a1a18;
    --color-surface:      #252523;
    --color-surface-2:    #2e2e2b;
    --color-border:       rgba(255,255,255,0.08);
    --color-border-2:     rgba(255,255,255,0.18);
    --color-text:         #e8e7e0;
    --color-text-muted:   #a0a09a;
    --color-text-faint:   #8e8e88;
    --color-accent:       #85b7eb;
    --color-accent-hover: #b5d4f4;
    --color-accent-contrast: #1a1a18;
    --color-success:      #97c459;
    --color-success-bg:   #173404;
    --color-warn:         #ef9f27;
    --color-warn-bg:      #412402;
  }
}

/* ---- Reset & Base ---- */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--space-4) 0;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4) 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-accent-hover); }

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

/* ---- Skip link ---- */

.skip-link {
  position: absolute;
  top: calc(-1 * var(--space-9));
  left: var(--space-4);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--color-accent-contrast);
}

/* ---- Layout ---- */

.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }
.section   { padding: var(--space-9) 0; }
.section-alt { background: var(--color-surface); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-contrast);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-2);
}
.btn-ghost:hover { background: var(--color-surface); }

/* ---- Cards ---- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-icon  {
  margin-bottom: var(--space-4);
  /* Reserve space before Lucide renders to prevent layout shift */
  width: 32px;
  height: 32px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.card-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.card-link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.card-link:hover { text-decoration: underline; }

/* ---- Badge ---- */

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--space-8);
  gap: var(--space-5);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--color-text); }

.nav-brand-tld {
  color: var(--color-text-faint);
  animation: brand-pulse 4s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  flex-shrink: 0;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text);
  margin-left: auto;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.nav-drawer a:last-child { border-bottom: none; }

.nav-drawer .btn {
  margin-top: var(--space-3);
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-burger { display: block; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-8) 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.hero-ten {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(400px, 55vw, 800px);
  color: var(--color-border-2);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  /* GPU-accelerated: only opacity changes, no layout/paint */
  animation: hero-pulse 6s ease-in-out infinite;
  will-change: opacity;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.7;
  /* Reserve space for two lines so layout doesn't jump during typing */
  min-height: 3.4em;
}

.hero-typewriter::after {
  content: '|';
  display: inline-block;
  color: var(--color-accent);
  animation: blink-cursor 0.7s steps(2) infinite;
  margin-left: 2px;
  font-weight: 500;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Social proof bar ---- */

.proof-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-2);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

.proof-dot {
  color: var(--color-text-faint);
  user-select: none;
}

/* ---- Service grid ---- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-icon svg,
.card-icon i {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ---- How it works ---- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(33.33% / 2 + var(--space-6));
    right: calc(33.33% / 2 + var(--space-6));
    height: 0;
    border-top: 2px dashed var(--color-border-2);
  }
}

.step {
  text-align: center;
}

.step-number {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-border-2);
  line-height: 1;
  margin-bottom: var(--space-4);
  display: inline-block;
  position: relative;
  background: var(--color-bg);
  padding: 0 var(--space-3);
}

.section-alt .step-number {
  background: var(--color-surface);
}

.step-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Calculator teaser ---- */

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

.calc-teaser p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}

.calc-teaser .small {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* ---- Booking section ---- */

.booking {
  text-align: center;
}

.booking h2 { margin-bottom: var(--space-4); }

.booking-body {
  max-width: 600px;
  margin: 0 auto var(--space-7);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.calendly-inline-widget {
  min-width: 320px;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-7) 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
  .footer-right { text-align: right; }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-links a:hover { color: var(--color-text); }

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---- Service detail pages ---- */

.service-hero {
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
}

.service-hero h1 { margin-bottom: var(--space-4); }

.service-hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.feature-block {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-block:last-of-type { border-bottom: none; }

.feature-label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.feature-problem,
.feature-solution {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.feature-problem strong,
.feature-solution strong {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}

.time-saved {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
}

.ownership-callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-7) 0;
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ---- Pricing ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: var(--space-7) 0;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.pricing-features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '\2713';
  margin-right: var(--space-2);
  color: var(--color-success);
  font-weight: 500;
}

/* ---- Consulting phases ---- */

.phase {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.phase:last-of-type { border-bottom: none; }

.phase-number {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-border-2);
  flex-shrink: 0;
  line-height: 1;
}

.phase-content { flex: 1; }

.phase-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.phase-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.rate-callout {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin: var(--space-7) 0;
}

/* ---- About page ---- */

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-7) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tech-pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---- 404 page ---- */

.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-9) var(--space-5);
}

.page-404-code {
  font-family: var(--font-serif);
  font-size: clamp(80px, 15vw, 160px);
  color: var(--color-border-2);
  line-height: 1;
  margin-bottom: var(--space-5);
}

.page-404 p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 500px;
}

/* ---- Calculator ---- */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.calc-panel {
  position: sticky;
  top: calc(var(--space-8) + var(--space-5));
}

.calc-section-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.calc-field {
  margin-bottom: var(--space-5);
}

.calc-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.calc-field .helper {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface-2);
  border-radius: 3px;
  outline: none;
  margin: var(--space-2) 0;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: var(--space-5);
  height: var(--space-5);
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: var(--space-5);
  height: var(--space-5);
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.calc-field input[type="number"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
}
.calc-field input[type="number"]:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.calc-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.calc-slider-value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-accent);
  min-width: var(--space-8);
  text-align: right;
  flex-shrink: 0;
}

/* Results panel */

.calc-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.calc-featured-item {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.calc-featured-value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.calc-featured-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.calc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.calc-metric {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.calc-metric-value {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.calc-metric-value.positive { color: var(--color-success); }
.calc-metric-value.neutral  { color: var(--color-text-muted); }

.calc-metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* SVG chart */

.calc-chart {
  margin-bottom: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.calc-chart svg { width: 100%; }

.calc-chart rect {
  transition: height 0.3s ease, y 0.3s ease;
}

.calc-chart text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  fill: var(--color-text-muted);
}

.calc-chart .bar-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Share button */

.share-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

.share-btn {
  position: relative;
}

.share-tooltip {
  position: absolute;
  top: calc(-1 * var(--space-7));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-tooltip.show { opacity: 1; }

/* Calculator CTA */

.calc-cta {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.calc-cta p {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.calc-cta .small {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* ---- Generic section CTA ---- */

.section-cta {
  text-align: center;
  padding: var(--space-7) 0;
}

/* ---- Accessibility ---- */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
