/* =============================================================
   1. Tokens (shared palette with each tool, kept in sync by hand —
   this is a static, no-build site: no shared file is included at
   runtime, so token edits here don't propagate automatically)
   ============================================================= */
:root {
  --bg: #f6f9f8;
  --bg-alt: #eef3f1;
  --card: #ffffff;
  --text: #1e2a26;
  --text-soft: #5b6b65;
  --border: #dfe8e4;

  --accent: #2fae7a;
  --accent-dark: #22855e;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sans: "Nunito", system-ui, sans-serif;
  --display: "Quicksand", var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131c19;
    --bg-alt: #1a2521;
    --card: #1f2b26;
    --text: #eaf3f0;
    --text-soft: #9db3ac;
    --border: #2c3a35;
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-wrap: balance; line-height: 1.15; color: var(--text); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--card); color: var(--text);
  z-index: 9999; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: 1.25rem; }

/* =============================================================
   4. Shared header (same markup + classes as each tool's own page)
   ============================================================= */
.site-header { padding: 1rem 0; border-bottom: 1px solid var(--border); background: var(--card); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: inline-block; }
.header-tag { font-size: .85rem; color: var(--text-soft); display: none; }
@media (min-width: 720px) { .header-tag { display: block; } }

/* =============================================================
   5. Shared footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 1rem; color: var(--text-soft); font-size: .85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .15s var(--ease-bounce), box-shadow .2s var(--ease-out), opacity .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 10px 24px -10px rgba(34, 133, 94, .5); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }

/* =============================================================
   7. Hero (landing page)
   ============================================================= */
.hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .6rem; }
.hero p.subtitle { color: var(--text-soft); max-width: 52ch; margin-inline: auto; font-size: 1.05rem; }

/* =============================================================
   8. Tools directory (landing page cards)
   ============================================================= */
.tools-directory { padding-block: 1.5rem 3rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tools-directory { grid-template-columns: repeat(2, 1fr); } }

.tool-card-link { display: block; color: inherit; }
.tool-card-link:hover { text-decoration: none; }
.tool-dir-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; height: 100%; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.tool-card-link:hover .tool-dir-card, .tool-card-link:focus-visible .tool-dir-card {
  transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(30, 60, 50, .35);
}
.tool-dir-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.tool-dir-card h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.tool-dir-card p { color: var(--text-soft); font-size: .92rem; margin-bottom: .8rem; }
.tool-dir-cta { font-weight: 700; color: var(--accent-dark); font-size: .92rem; }
.tool-dir-card--soon { opacity: .6; border-style: dashed; }
.tool-dir-card--soon .tool-dir-cta { color: var(--text-soft); }

/* Per-tool accent: each tool card may show its OWN brand color (scoped to
   that card only) without touching the site-wide neutral palette above. */
.tool-dir-card--pink {
  border-top: 4px solid #f6a3c1;
}
.tool-dir-card--pink .tool-dir-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fdecf3; font-size: 1.15rem;
}
.tool-dir-card--pink .tool-dir-cta { color: #d6608b; }
.tool-card-link:hover .tool-dir-card--pink, .tool-card-link:focus-visible .tool-dir-card--pink {
  box-shadow: 0 16px 36px -18px rgba(214, 96, 139, .35);
}

/* =============================================================
   9. Simple content pages (privacy / legal notice)
   ============================================================= */
.content-section { padding-block: 2rem; }
.content-section h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.content-section p { color: var(--text-soft); max-width: 68ch; margin-bottom: 1rem; }

/* =============================================================
   10. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card-link, .tool-dir-card { transition: none; }
}
