:root {
  --ink: #14213d;
  --muted: #5f6f7d;
  --line: #d8e3e7;
  --paper: #fbfdfc;
  --panel: #ffffff;
  --soft: #eef8f4;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #d97706;
  --radius: 8px;
  --shadow: 0 16px 45px rgba(20, 33, 61, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: #102a43;
  color: #e7f5f1;
  font-size: 0.9rem;
  text-align: center;
  padding: 9px 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: white;
}

.lang-switch a {
  min-width: 42px;
  padding: 6px 9px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-switch a:first-child {
  background: var(--soft);
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

.btn.secondary {
  background: white;
  color: var(--brand);
  border-color: var(--brand);
}

.hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 118, 110, 0.12), transparent 33%),
    linear-gradient(135deg, #fbfdfc 0%, #edf8f3 52%, #f7f1e5 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
}

h3 {
  font-size: 1.18rem;
}

.hero p,
.section-head p,
.article-body p,
.card p,
.card li {
  color: var(--muted);
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 1.12rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual,
.visual-card,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f7;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d8dc;
}

.mock-body {
  padding: 24px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mock-panel {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.line {
  height: 9px;
  margin: 10px 0;
  border-radius: 999px;
  background: #dfe8ea;
}

.line.short {
  width: 68%;
}

.line.good {
  background: rgba(15, 118, 110, 0.25);
}

.score-pill {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--soft);
  font-weight: 850;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: white;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 24px;
  box-shadow: none;
}

.quick-answer {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, white, #edf8f4);
}

.quick-answer strong {
  color: var(--brand-dark);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-answer p {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
}

.article-body {
  display: grid;
  gap: 28px;
}

.article-body section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-body section:last-child {
  border-bottom: 0;
}

.article-body h2 {
  margin-bottom: 12px;
}

.article-body ul {
  padding-left: 20px;
}

.workflow {
  counter-reset: step;
}

.workflow .card::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 15px;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.2fr;
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row > div {
  padding: 16px;
}

.comparison-row.heading {
  color: white;
  background: #102a43;
  font-weight: 850;
}

.comparison-row:not(.heading) > div:first-child {
  color: var(--brand-dark);
  font-weight: 850;
}

.draft-box {
  padding: 22px;
  border-radius: 8px;
  color: #334155;
}

.draft-box.bad {
  background: #fee2e2;
}

.draft-box.good {
  background: #dcfce7;
}

.label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
}

.label.bad {
  color: #b91c1c;
  background: #fee2e2;
}

.label.good {
  color: #047857;
  background: #dcfce7;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.check {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.check strong {
  display: block;
  margin-bottom: 5px;
}

.editorial-note {
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f1fbf7 100%);
  box-shadow: 0 14px 36px rgba(20, 33, 61, 0.08);
}

.editorial-note .eyebrow {
  margin-bottom: 10px;
}

.editorial-note h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.tested-grid,
.observation-grid,
.reference-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tested-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.observation-grid,
.reference-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tested-card,
.observation-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.tested-card strong,
.observation-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.tested-card span,
.observation-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.reference-links a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--brand-dark);
  text-align: center;
  text-decoration: none;
  font-weight: 850;
}

.reference-links a:hover {
  border-color: rgba(15, 118, 110, 0.45);
}

.review-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px 20px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}

.related-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
}

.callout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, white, #edf8f4);
}

footer {
  padding: 58px 0 34px;
  background: #102a43;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

footer p,
footer a {
  color: #cfe3e7;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

footer li {
  margin: 9px 0;
}

.fineprint {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b6cbd1;
  font-size: 0.9rem;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .article-layout,
  .callout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tested-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > div {
    padding: 14px 16px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .actions .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .mock-row,
  .compare,
  .comparison-row,
  .checklist,
  .tested-grid,
  .observation-grid,
  .reference-links {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn,
  .callout .btn {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
