:root {
  --ink: #101615;
  --muted: #596560;
  --line: #dfe7e2;
  --paper: #f4f7f5;
  --white: #ffffff;
  --green: #047857;
  --green-dark: #075a45;
  --lime: #c8f252;
  --coral: #ff6b4a;
  --gold: #ffcf45;
  --teal-soft: #e1f5ee;
  --shadow: 0 18px 45px rgba(16, 22, 21, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  z-index: 20;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  padding: 9px 10px;
  border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--green-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-cta,
.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
}

.nav-toggle { display: none; }

.section { padding: 72px 0; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(200, 242, 82, .22), transparent 34%),
    linear-gradient(315deg, rgba(255, 107, 74, .13), transparent 36%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: .98;
  max-width: 11ch;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 660px;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-stats div,
.quick-card,
.verdict,
.columns > div,
.toc,
.faq-list details,
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stats div { padding: 14px; }
.hero-stats dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.hero-stats dd { margin: 2px 0 0; font-weight: 850; }

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(16, 22, 21, .12);
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
}

.surface-section { background: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
}

.verdict,
.quick-card,
.columns > div,
.toc,
.faq-list details { padding: 24px; }

.quick-card ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.quick-card li,
.check-list li {
  position: relative;
  padding-left: 28px;
}

.quick-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--green);
}

.check-list.caution li::before { background: var(--coral); }

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading.compact { margin-bottom: 20px; }

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.article-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.article-body {
  display: grid;
  gap: 34px;
  max-width: 780px;
}

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

.article-body p { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 150px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 22px;
  counter-increment: steps;
  font-weight: 750;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  color: var(--lime);
  margin-bottom: 20px;
  font-weight: 900;
}

.seo-expansion {
  background: var(--white);
}

.seo-expansion .section-heading p,
.seo-copy p,
.source-note p {
  color: var(--muted);
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}

.seo-copy,
.seo-card,
.table-block,
.mini-panel,
.source-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.seo-card ul,
.mini-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.table-block {
  margin-top: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eef7f1;
  color: var(--green-dark);
  font-size: .86rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.seo-columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.compact-table table {
  min-width: 620px;
}

.semantic-cloud {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 24px;
}

.semantic-cloud h3 {
  margin-bottom: 4px;
}

.semantic-cloud div {
  display: grid;
  gap: 8px;
}

.semantic-cloud p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.semantic-cloud span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .84);
  font-size: .9rem;
}

.source-note {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

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

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.media-section { background: var(--white); }

.media-section .section-heading p,
.slots-section .section-heading p {
  color: var(--muted);
  margin: 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.payment-logo {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-logo img {
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.payment-logo span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.slots-section {
  background: linear-gradient(180deg, var(--paper), #edf4ef);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.slot-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.slot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

.slot-card div { padding: 18px; }

.slot-card p {
  color: var(--muted);
  margin: 0;
}

.author-section { background: var(--white); }

.author-card {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 24px;
}

.author-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.author-card .eyebrow { color: var(--lime); }

.author-card p {
  color: rgba(255, 255, 255, .74);
}

.author-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.author-points li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, .82);
}

.author-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lime);
}

.related-section { background: var(--ink); color: var(--white); }
.related-section .eyebrow { color: var(--lime); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  color: var(--ink);
  padding: 18px;
  text-decoration: none;
}

.related-card span {
  display: block;
  color: var(--green-dark);
  font-weight: 850;
  margin-bottom: 8px;
}

.site-footer {
  background: #0b0f0e;
  color: var(--white);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr;
  gap: 26px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .72);
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin-top: 8px;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 15, 14, .64);
}

.promo-modal.is-visible {
  display: flex;
}

.promo-dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  padding: 28px;
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
  letter-spacing: .04em;
}

.promo-code span {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.promo-dialog p {
  color: var(--muted);
}

.promo-note {
  margin-bottom: 0;
  font-size: .86rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 800;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open { display: grid; }
  .nav-cta { display: none; }
  .hero { min-height: auto; }
  .hero-grid,
  .split,
  .columns,
  .article-grid,
  .seo-layout,
  .seo-columns-3,
  .comparison-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot-grid,
  .author-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .section { padding: 48px 0; }
  .hero-stats,
  .steps,
  .payment-grid,
  .slot-grid,
  .author-card,
  .related-grid { grid-template-columns: 1fr; }
  h1 { max-width: 100%; }
}