/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #1a3a5c;
  --navy-dark: #12293f;
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  --bg: #f8f9fa;
  --text: #1c1c1c;
  --text-muted: #5a6270;
  --white: #ffffff;
  --border: #e2e5e9;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(26, 58, 92, 0.08), 0 1px 2px rgba(26, 58, 92, 0.06);
  --shadow-hover: 0 8px 24px rgba(26, 58, 92, 0.14), 0 2px 6px rgba(26, 58, 92, 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1120px;
}

/* =============================================================
   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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--navy); color: var(--white);
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.9rem, 5vw + 1rem, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw + 1rem, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--text); }
.lead {
  font-size: clamp(1rem, 1.5vw + .6rem, 1.25rem);
  color: var(--text-muted);
  max-width: 60ch;
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
}
.btn-block { width: 100%; }

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Trust badge */
.trust-badge {
  display: flex; align-items: center; gap: .6rem;
  justify-content: center;
  background: #eefaf2;
  border: 1px solid #cdf0da;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Ad slot placeholder */
.ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px dashed #b7c2cf;
  border-radius: var(--radius-sm);
  background: #eef1f4;
  color: var(--text-muted);
  font-size: .75rem;
}
.ad-slot__label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* =============================================================
   6. Sections — Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
}
.logo { display: flex; align-items: center; gap: .5rem; }
.logo svg { height: 28px; width: auto; }
.logo-mark-bg { fill: var(--navy); }
.logo-mark-check { fill: var(--accent); }
.logo-word { font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em; }

.main-nav ul { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--navy);
  transition: color .2s var(--ease-out);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-dark); }

/* Hero */
.hero {
  padding-block: 3rem 2.5rem;
  text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hero h1 { max-width: 22ch; }
.hero .lead { margin-inline: auto; }

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.tool-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tool-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #eaf1f8;
  color: var(--navy);
}
.tool-card__icon svg { width: 26px; height: 26px; }
.tool-card__desc { color: var(--text-muted); font-size: .95rem; flex: 1; }

/* Ad section */
.ad-section { padding-block: 1rem 2.5rem; }

/* Legal / content pages */
.page-content {
  padding-block: 3rem 4rem;
}
.page-content .container {
  max-width: 760px;
}
.page-content h1 { margin-bottom: 1.25rem; }
.page-content p { margin-bottom: 1rem; }
.page-content h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.3rem; }
.page-content a.inline-link { color: var(--accent-dark); text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--navy);
  color: #cfd9e3;
}
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
}
.footer-nav a { font-size: .9rem; color: #cfd9e3; transition: color .2s var(--ease-out); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--white); }
.footer-brand { font-weight: 700; color: var(--white); }
.footer-copy { font-size: .8rem; color: #9fb0c0; }

/* =============================================================
   7. Effects
   ============================================================= */
.is-ready .fade-in { animation: fadeIn .5s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 4.5rem 3rem; }
}
@media (min-width: 1280px) {
  .hero h1 { max-width: 26ch; }
}

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-ready .fade-in { animation: none; }
  .card, .btn-primary { transition: none; }
}
