:root {
  --primary: 194 78% 28%;
  --secondary: 166 64% 31%;
  --accent: 38 94% 58%;
  --background: 190 33% 97%;
  --foreground: 205 40% 12%;
  --surface: 0 0% 100%;
  --muted: 188 28% 91%;
  --radius: 22px;
  --shadow: 0 18px 50px hsl(var(--foreground) / .10);
  --container: 1180px;
  --narrow: 780px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-family: "Nunito Sans", system-ui, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: hsl(var(--primary)); text-underline-offset: .18em; }
h1, h2, h3, h4 {
  font-family: "DM Serif Display", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); margin: .2em 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--narrow); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--muted { background: hsl(var(--muted)); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: white; padding: .75rem 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: hsl(var(--background) / .9);
  border-bottom: 1px solid hsl(var(--foreground) / .1);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: hsl(var(--foreground)); font-weight: 800; font-family: "DM Serif Display", sans-serif; }
.brand-mark {
  display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1;
  border-radius: 10px; background: hsl(var(--accent)); color: hsl(var(--foreground));
  box-shadow: inset 0 -3px 0 hsl(var(--foreground) / .14);
}
.primary-nav ul { display: flex; align-items: center; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: hsl(var(--foreground)); text-decoration: none; font-weight: 700; font-size: .92rem; }
.menu-toggle { display: none; }
.hero {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background:
    linear-gradient(120deg, hsl(var(--primary) / .13), transparent 50%),
    radial-gradient(circle at 80% 10%, hsl(var(--accent) / .25), transparent 30%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(hsl(var(--foreground) / .12) 1px, transparent 1px),
                    linear-gradient(90deg, hsl(var(--foreground) / .12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .8fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 68ch; color: hsl(var(--foreground) / .78); }
.hero-panel, .aside-card {
  background: hsl(var(--surface) / .88); border: 1px solid hsl(var(--foreground) / .12);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: hsl(var(--secondary)); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: .75rem 1.15rem; border-radius: 12px; text-decoration: none;
  border: 2px solid transparent; font-weight: 800; cursor: pointer;
}
.button--primary { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.button--secondary { background: transparent; border-color: hsl(var(--foreground) / .2); color: hsl(var(--foreground)); }
.trust-list { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 0; list-style: none; font-weight: 700; font-size: .9rem; }
.trust-list li::before { content: "✓"; margin-right: .45rem; color: hsl(var(--secondary)); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card, .comparison-card {
  background: hsl(var(--surface)); border: 1px solid hsl(var(--foreground) / .12);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 8px 30px hsl(var(--foreground) / .06);
}
.card a { color: inherit; }
.card-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 10px; background: hsl(var(--primary) / .12); }
.text-link { font-weight: 800; text-decoration: none; }
.page-hero { padding: 4rem 0 3rem; background: hsl(var(--muted)); }
.breadcrumbs { display: flex; gap: .6rem; align-items: center; font-size: .88rem; margin-bottom: 1.5rem; }
.article-meta { display: flex; gap: 1rem; color: hsl(var(--foreground) / .65); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; }
.article-aside { position: sticky; top: 105px; }
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.7em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .8rem; border: 1px solid hsl(var(--foreground) / .15); text-align: left; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border: 1px solid hsl(var(--foreground) / .13); border-radius: 14px; padding: 1rem 1.2rem; background: hsl(var(--surface)); }
.faq-item summary { cursor: pointer; font-weight: 800; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 4rem; }
.comparison-card dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid hsl(var(--foreground) / .1); padding: .65rem 0; }
.comparison-card dt { font-weight: 800; }
.comparison-card dd { margin: 0; }
.ssf-tool { background: hsl(var(--surface)); border: 1px solid hsl(var(--foreground) / .12); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.ssf-tool label { display: grid; gap: .45rem; font-weight: 800; }
.ssf-tool input, .ssf-tool select { width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid hsl(var(--foreground) / .25); padding: .7rem; background: hsl(var(--background)); }
.tool-result { display: block; margin-top: 1.2rem; border-left: 5px solid hsl(var(--accent)); padding: 1rem; background: hsl(var(--muted)); font-weight: 700; }
.site-footer { padding: 4rem 0 2rem; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 3rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid hsl(var(--background) / .2); margin-top: 3rem; padding-top: 1.5rem; }
.brand--footer { color: hsl(var(--background)); }
@media (max-width: 880px) {
  .hero-grid, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-aside { position: static; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: hsl(var(--background)); padding: 1rem; border-bottom: 1px solid hsl(var(--foreground) / .1); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .card-grid, .comparison-grid, .tool-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .7rem; }
}
