:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef1f5;
  --text-primary: #12161c;
  --text-secondary: #4b5563;
  --text-muted: #8a94a3;
  --border: #e2e6ec;
  --border-strong: #c9d0db;

  --brand-1: #0d5c46;
  --brand-2: #14805e;
  --brand-accent: #d98a3d;
  --brand-accent-2: #b96a2c;

  --success: #147a4c;
  --warning: #b3711a;
  --danger: #c23b3b;

  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 24, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 32, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c1013;
  --bg-elevated: #131920;
  --bg-subtle: #171f27;
  --text-primary: #eef2f6;
  --text-secondary: #a7b1bd;
  --text-muted: #6c7684;
  --border: #232c36;
  --border-strong: #2f3946;

  --brand-1: #1e8f6c;
  --brand-2: #2bb388;
  --brand-accent: #e8a55c;
  --brand-accent-2: #d98a3d;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--brand-2); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 16px 20px; display: none; box-shadow: var(--shadow-lg);
}
.cookie-banner.show { display: block; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-text { font-size: 13.5px; color: var(--text-secondary); flex: 1; min-width: 240px; }
.cookie-text a { color: var(--brand-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-primary);
}
.btn-cookie.accept { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

/* ---------- Top Utility Bar ---------- */
.utility-bar {
  background: var(--brand-1); color: #fff; font-size: 12.5px;
  padding: 6px 0; text-align: center; letter-spacing: 0.01em;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1180px; margin: 0 auto; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 19px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800;
}
.logo span.dim { color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary); background: none; border: none;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-subtle); }
.nav-link svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: 100% ; left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 22px; display: none; z-index: 600;
  width: 640px; max-width: 90vw;
}
.nav-item:hover .mega-menu, .mega-menu:hover { display: block; }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.mega-col-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.mega-link { display: block; padding: 6px 0; font-size: 13.5px; color: var(--text-secondary); border-bottom: 1px solid transparent; }
.mega-link:hover { color: var(--brand-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.hamburger {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-subtle); align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hamburger span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  display: none; position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--bg-elevated);
  z-index: 900; box-shadow: var(--shadow-lg); overflow-y: auto; transform: translateX(100%);
  transition: transform 0.3s ease; padding: 20px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 850; }
.mobile-overlay.open { display: block; }
.mobile-drawer-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-subtle); margin-bottom: 16px; }
.mobile-accordion summary {
  padding: 13px 4px; font-weight: 600; font-size: 15px; list-style: none; display: flex;
  justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); cursor: pointer;
}
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion a.mobile-link { display: block; padding: 9px 4px 9px 14px; font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 7px; padding: 11px 0; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,128,94,0.14), transparent 70%); pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-subtle); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600;
  color: var(--brand-2); margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(20,122,76,0.18); }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; font-weight: 700; margin-bottom: 16px; }
.hero h1 .accent { color: var(--brand-2); }
.hero p.lead { font-size: 16.5px; color: var(--text-secondary); line-height: 1.6; max-width: 620px; margin: 0 auto; }

/* ---------- Tool Card ---------- */
.tool-section { padding: 8px 0 60px; }
.tool-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px; max-width: 900px; margin: 0 auto;
}
.mode-switch {
  display: inline-flex; background: var(--bg-subtle); border-radius: 10px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border);
}
.mode-btn {
  padding: 8px 18px; border-radius: 8px; border: none; background: none; font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary);
}
.mode-btn.active { background: var(--bg-elevated); color: var(--brand-2); box-shadow: var(--shadow-sm); }

.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-field-wrap { flex: 1; min-width: 220px; position: relative; }
.input-field {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--bg); color: var(--text-primary); font-size: 15.5px; font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(20,128,94,0.12); outline: none; }
.input-field.invalid { border-color: var(--danger); }
.input-hint { font-size: 12.5px; margin-top: 7px; color: var(--text-muted); min-height: 16px; }
.input-hint.error { color: var(--danger); font-weight: 500; }
.input-hint.ok { color: var(--success); font-weight: 500; }

textarea.input-field { min-height: 130px; resize: vertical; font-family: var(--font-body); line-height: 1.6; }

.btn-primary {
  padding: 15px 26px; border-radius: var(--radius-sm); border: none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 700;
  font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; white-space: nowrap;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-primary .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-primary.loading .spinner { display: inline-block; }
.btn-primary.loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.bulk-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.example-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-subtle);
  font-size: 12.5px; color: var(--text-secondary); font-weight: 500;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ---------- Results ---------- */
#resultsSection { display: none; padding: 0 0 60px; scroll-margin-top: 90px; }
.results-wrap { max-width: 900px; margin: 0 auto; }
.result-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 26px; margin-bottom: 18px; animation: fadeUp 0.4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.result-domain { font-family: var(--font-display); font-size: 21px; font-weight: 700; word-break: break-all; }
.result-domain .status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-dot.ok { background: var(--success); }
.status-dot.warn { background: var(--warning); }
.status-dot.err { background: var(--danger); }

.tier-badge { padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--brand-2); white-space: nowrap; }

.error-box { padding: 16px; border-radius: var(--radius-sm); background: rgba(194,59,59,0.08); border: 1px solid rgba(194,59,59,0.25); color: var(--danger); font-size: 14px; font-weight: 500; }

.age-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.age-hero .big { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--brand-2); line-height: 1; }
.age-hero .unit { font-size: 15px; color: var(--text-secondary); font-weight: 600; }
.age-hero .sub { font-size: 13.5px; color: var(--text-muted); width: 100%; margin-top: 4px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.meta-item { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--border); }
.meta-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.meta-value { font-size: 15px; font-weight: 600; color: var(--text-primary); word-break: break-word; }
.meta-value.expiry-soon { color: var(--warning); }
.meta-value.expiry-past { color: var(--danger); }

.score-bar-wrap { margin-bottom: 18px; }
.score-bar-track { height: 8px; border-radius: 99px; background: var(--bg-subtle); overflow: hidden; border: 1px solid var(--border); }
.score-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); transition: width 0.6s ease; }
.score-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.ns-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chip { font-size: 12px; padding: 5px 11px; border-radius: 7px; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-secondary); font-family: monospace; }

.status-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.status-chip { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; background: rgba(20,128,94,0.08); color: var(--brand-2); border: 1px solid rgba(20,128,94,0.2); font-weight: 600; }

.result-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-secondary {
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-subtle);
  color: var(--text-primary); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
}
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-secondary svg { width: 15px; height: 15px; }

.export-bar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* Post-result: share + feedback */
.post-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.post-btn {
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-elevated);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary);
}
.post-btn:hover { border-color: var(--brand-2); color: var(--brand-2); }
.post-btn.share { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; border: none; }

/* ---------- Sections shared ---------- */
.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-tag { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand-2); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--bg-subtle); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; color: var(--brand-2);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 13.8px; color: var(--text-secondary); line-height: 1.55; }

/* How it works */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 24px 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display);
  margin-bottom: 14px; font-size: 15px;
}
.step-card h3 { font-size: 15.5px; margin-bottom: 7px; }
.step-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* Article */
.article-block { max-width: 780px; margin: 0 auto; }
.article-block p { color: var(--text-secondary); font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.article-block h2, .article-block h3 { margin-bottom: 14px; margin-top: 26px; }
.article-block strong { color: var(--text-primary); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-weight: 600; font-size: 15px; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--text-muted); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; margin: 0 20px; color: #fff; max-width: 1140px; margin-inline: auto;
}
.cta-section h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; color: #fff; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 15px; margin-bottom: 26px; max-width: 520px; margin-inline: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn { padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; }
.cta-btn.solid { background: #fff; color: var(--brand-1); }
.cta-btn.outline { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }

/* Resource strip before footer */
.resource-strip { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; }
.resource-grid a { font-size: 13px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px dashed transparent; }
.resource-grid a:hover { color: var(--brand-2); border-color: var(--brand-2); }

/* Footer */
footer.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 50px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 36px; }
.footer-brand p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-secondary); padding: 5px 0; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0 26px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--brand-2); }
.disclaimer-box { font-size: 11.8px; color: var(--text-muted); line-height: 1.6; padding: 18px 0; border-top: 1px solid var(--border); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 1100;
  background: var(--text-primary); color: var(--bg); padding: 12px 22px; border-radius: 10px; font-size: 13.5px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.3s ease; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Feedback modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; line-height: 1.55; }
.modal-close-btn { width: 100%; padding: 12px; border-radius: var(--radius-sm); background: var(--brand-2); color: #fff; border: none; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer, .mobile-overlay { display: block; }
  .mobile-drawer:not(.open) { display: none; }
  .mobile-overlay:not(.open) { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 28px; }
  .tool-card { padding: 20px; border-radius: var(--radius-md); }
  .input-row { flex-direction: column; }
  .btn-primary { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .age-hero .big { font-size: 34px; }
  .cta-section { margin: 0 12px; padding: 36px 20px; }
  .resource-strip { padding: 32px 0; }
}