/* Hallmark · redesign · genre: modern-minimal · macrostructure: Workbench
 * theme: brand-locked (teal #0EA5A4 · Inter + Plus Jakarta Sans · tinted off-white / dark)
 * removed tells: centred-everything · global stagger · cursor-spotlight · magnetic CTA · dead imc-app CSS
 * motion: masthead-settle · panel-fade · result-pop  (prefers-reduced-motion honoured)
 * pre-emit critique: P5 H4 E4 S5 R5 V4
 */
:root {
  --accent: #0EA5A4;
  --accent-soft: #D5F2F1;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E5E7EB;
  --blue-soft: #E0F2FE;
  --blue: #0284C7;
  --green: #34D399;
  --amber: #FBBF24;
  --rose: #F43F5E;
  --sky: #38BDF8;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --radius-sm: 14px;

  /* Structural tokens (added in the Hallmark redesign) */
  --space-3xs: .25rem;  --space-2xs: .5rem;  --space-xs: .75rem;
  --space-sm: 1rem;     --space-md: 1.5rem;  --space-lg: 2rem;
  --space-xl: 3rem;     --space-2xl: 4.5rem; --space-3xl: 7rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-short: 200ms;   --dur-mid: 320ms;
  --rule: 1px solid var(--border);
}

[data-theme="dark"] {
  --bg: #0B1220;
  --card: #131A2A;
  --text: #E8EEF8;
  --muted: #94A3B8;
  --muted-2: #64748B;
  --border: #1F2A40;
  --accent-soft: #0A2E2D;
  --blue-soft: #0B2A3C;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; margin: 0; }

input, button, select, textarea { font-family: inherit; color: inherit; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 50;
  color: var(--text);
  transition: transform .15s, box-shadow .2s;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hero { text-align: left; margin: 0; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: var(--space-sm);
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .muted { color: var(--muted-2); }
.hero .lead {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Workbench toolbar — content-width, left-aligned, no glow (was a centred pill group). */
.tabs.main-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin: 0 0 var(--space-lg);
}
.tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active {
  background: var(--accent);
  color: #fff;
}
/* On narrow screens the toolbar fills the row; icons drop so labels never wrap. */
@media (max-width: 560px) {
  .tabs.main-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tabs .tab { padding: 0 8px; font-size: 12.5px; gap: 5px; }
  .tabs .tab svg { display: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.form-card { grid-column: span 7; }
.result-card { grid-column: span 5; display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .form-card, .result-card { grid-column: span 12; }
}

.form { display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.field .label small { color: var(--muted); font-weight: 500; }
.icon-accent { color: var(--accent); }

.field input,
.field select {
  height: 52px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: transparent;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field select { cursor: pointer; }
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.15);
}

.hint {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 12px;
  margin: 0;
}

.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, color .2s;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 164, .25);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(14, 165, 164, .35); }
.btn.ghost {
  background: var(--bg);
  color: var(--text);
}
.btn.ghost:hover { background: var(--border); }
.btn.small { height: 40px; font-size: 13px; padding: 0 14px; border-radius: 12px; }

.result-card h3 { font-size: 18px; font-weight: 800; }
.result-card .small { font-size: 13px; }
.placeholder { color: var(--muted-2); max-width: 200px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.select-small {
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.disclaimer {
  text-align: left;
  font-size: 12px;
  color: var(--muted-2);
  max-width: 70ch;
  margin: var(--space-xl) 0 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--text);
  color: var(--card);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 64px;
  padding: 32px 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-footer .footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.site-footer p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  max-width: 1080px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Legal / Content pages ===== */
.legal-hero { text-align: left; margin-bottom: 28px; }
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.legal-hero .updated {
  color: var(--muted);
  font-size: 14px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { color: var(--accent); }

.prose {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 600px) { .prose { padding: 24px 22px; } }
.prose h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.prose p, .prose li { color: var(--text); font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }
.prose strong { font-weight: 700; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th { font-weight: 700; color: var(--muted); background: var(--bg); }
.prose .notice {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14.5px;
}

/* ===== 404 page ===== */
.error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
}
.error-code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.error-wrap h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
}
.error-wrap p { color: var(--muted); max-width: 460px; margin: 0 0 24px; }

/* ===== Ghiduri (hub list of articles) ===== */
.ghid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.ghid-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, border-color .15s;
}
.ghid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.ghid-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ghid-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}
.ghid-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 14px;
  line-height: 1.55;
}
.ghid-read {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

/* ===== Top navigation (between theme toggle and content) ===== */
.site-nav {
  max-width: 1080px;
  margin: 0 auto 18px;
  padding: 14px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
}
.site-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav-links a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .15s, background .15s;
}
.site-nav-links a:hover,
.site-nav-links a.is-current {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  max-width: 760px;
  margin: 0 auto;
  animation: cookieSlideUp .3s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 240px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-banner-text strong { color: var(--text); }
.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .1s, opacity .15s, background .15s;
}
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn-reject {
  background: transparent;
  color: var(--muted);
}
.cookie-btn-reject:hover { color: var(--text); background: var(--bg); }
.cookie-btn-accept {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.cookie-btn-accept:hover { opacity: .92; }

/* "Setări cookie-uri" link in footer */
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.cookie-settings-link:hover { color: var(--accent); }

/* ===== FAQ block (used on homepage) ===== */
.faq-section {
  margin-top: var(--space-2xl);
}
.faq-section > h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 8px;
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-section > .faq-lead {
  text-align: left;
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
  max-width: 60ch;
}
.faq-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 820px;
  margin: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin: 0; }
.faq-item .faq-answer a { color: var(--accent); text-decoration: underline; }

/* ===== "Despre acest calculator" section under calculators ===== */
.calc-context {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.calc-context h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}
.calc-context p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 14.5px;
}
.calc-context p:last-child { margin: 0; }
.calc-context a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  max-width: 1080px;
  margin: 0 auto 14px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
}
.breadcrumbs span[aria-hidden="true"] {
  opacity: .5;
}

/* ===== Related articles section ===== */
.related-articles {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 0 8px;
}
.related-articles h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.related-grid .ghid-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.related-grid .ghid-card p {
  font-size: 13.5px;
  margin: 0 0 10px;
}

/* ===== Ghiduri index: categories filter ===== */
.ghid-categories {
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ghid-categories .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.ghid-categories .chip:hover,
.ghid-categories .chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ghid-categories .chip .count {
  font-weight: 500;
  opacity: .7;
  font-size: 12px;
}

/* ===== Intro block for ghiduri index ===== */
.ghid-intro {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin: 0 auto 22px;
  max-width: 1080px;
}
.ghid-intro p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
}
.ghid-intro p:last-child { margin: 0; }
.ghid-intro strong { color: var(--text); }

/* ===== Sitemap HTML page ===== */
.sitemap-html {
  max-width: 1080px;
  margin: 0 auto;
}
.sitemap-html .sitemap-group {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.sitemap-html .sitemap-group h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
}
.sitemap-html .sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 18px;
}
.sitemap-html .sitemap-group li a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14.5px;
  padding: 4px 0;
  display: block;
}
.sitemap-html .sitemap-group li a:hover {
  text-decoration: underline;
}

/* ===========================================================
   Subtle animations & ambient background
   - All animations respect prefers-reduced-motion
   - GPU-friendly: only transform / opacity / background-position
   =========================================================== */

/* Static, faint corner tint — calmed from an animated 3-blob mesh (the AI "aurora-blob" tell). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60rem 40rem at 85% -15%, rgba(14, 165, 164, 0.06), transparent 70%);
}
[data-theme="dark"] body::before {
  background: radial-gradient(60rem 40rem at 85% -15%, rgba(14, 165, 164, 0.10), transparent 70%);
}
/* (ambient-drift keyframes removed — the background is static now) */

/* One orchestrated entrance — the masthead settles on first paint; everything else is
 * simply present. (Was a 12-section staggered fade-up — the "animate-on-everything" tell.) */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.masthead,
.legal-hero {
  animation: reveal-up 0.5s var(--ease-out) both;
}

/* Tab buttons — subtle press effect (the only motion the toolbar needs). */
.tabs.main-tabs .tab {
  transition: transform var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}
.tabs.main-tabs .tab:hover:not(.active) { transform: translateY(-1px); }
.tabs.main-tabs .tab:active { transform: scale(0.98); }

/* Panel switching — fade when the active tool changes. */
.panel:not([hidden]) {
  animation: reveal-soft var(--dur-mid) var(--ease-out) both;
}

/* Result pop — a soft settle when a calculation or name-day result appears. */
.tool-result > div {
  animation: reveal-up var(--dur-mid) var(--ease-out) both;
}

/* Primary button — solid accent (no gradient fill, no shine sweep). */
.btn.primary { background: var(--accent); }

/* FAQ — animated open/close */
.faq-item .faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}
.faq-item:not([open]) .faq-answer {
  grid-template-rows: 0fr;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-item .faq-answer > * {
  overflow: hidden;
}

/* Theme toggle — subtle rotate on hover */
.theme-toggle:hover { transform: translateY(-1px) rotate(-12deg); }

/* Smooth in-page scroll */
html { scroll-behavior: smooth; }

/* Selection — branded */
::selection { background: var(--accent); color: #fff; }

/* Reduce-motion safeguards — collapse every entrance/transition to a near-instant crossfade. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}
