:root {
  --paper: #f8fbf7;
  --paper-soft: #eef7f0;
  --surface: #ffffff;
  --surface-quiet: #f4f8f4;
  --ink: #123026;
  --ink-soft: #29443a;
  --muted: #5f7067;
  --line: #dce8df;
  --line-strong: #bfd0c5;
  --sage: #dff8ef;
  --sage-deep: #0a5c49;
  --teal: #0a5c49;
  --ink-deep: #123026;
  --blueprint: #69b6ff;
  --teal-soft: #e9fff3;
  --clay: #ff6b4a;
  --gold: #ffc845;
  --mint: #7ce6b1;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(18, 48, 38, 0.1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { color: var(--paper); background: var(--teal); }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #ffffff 100%);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
  summary:focus-visible {
  outline: 3px solid rgba(255, 107, 74, 0.36);
  outline-offset: 3px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 54, 43, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(18, 48, 38, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--ink) 56%, var(--clay));
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--clay);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff !important;
  background: var(--clay);
}

.page-hero {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff7 58%, #fff7df 100%);
}

.hero-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.34fr);
  align-items: center;
  gap: 56px;
  padding: 66px 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  color: var(--ink);
  text-shadow: none;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.eyebrow,
.kicker {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero .eyebrow {
  color: var(--clay);
}

.lead {
  max-width: 660px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 19px;
}

.page-hero .lead {
  color: var(--ink-soft);
}

.section-copy,
.muted {
  color: var(--muted);
}

.hero-actions,
.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 850;
}

.btn-primary,
.external-link {
  color: #ffffff;
  background: var(--clay);
}

.page-hero .btn-primary {
  color: #ffffff;
  background: var(--clay);
  box-shadow: 0 16px 40px rgba(255, 107, 74, 0.22);
}

.page-hero .btn-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #ffffff;
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.text-link {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-hero .text-link {
  color: var(--teal);
}

.affiliate-inline,
.affiliate-strip {
  color: var(--muted);
  font-size: 13px;
}

.affiliate-strip {
  border-bottom: 1px solid var(--line);
  background: #fff6dc;
}

.affiliate-strip .container {
  padding: 11px 0;
}

.affiliate-strip strong,
.affiliate-inline strong {
  color: var(--ink);
}

.affiliate-strip a,
.affiliate-inline a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.summary-panel,
.callout {
  border: 1px solid rgba(20, 54, 43, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow);
}

.page-hero .summary-panel {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 48, 38, 0.08);
}

.page-hero .summary-panel li {
  border-color: var(--line);
  color: var(--muted);
}

.summary-panel {
  padding: 22px;
}

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

.summary-panel ul,
.check-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-panel li,
.check-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(221, 209, 191, 0.76);
  color: var(--muted);
  font-size: 14px;
}

.summary-panel li:first-child,
.check-list li:first-child {
  border-top: 0;
}

section {
  padding: 66px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(240px, 0.34fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
}

.quiet-note {
  border-left: 3px solid var(--mint);
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
}

.band {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(18, 48, 38, 0.06);
  overflow: hidden;
}

.card-actions {
  margin-top: auto;
}

.card .external-link {
  width: fit-content;
}

.card::before {
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--clay), var(--gold));
  content: "";
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.card small,
.tag {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 850;
}

.link-list a::after {
  color: var(--clay);
  content: "Open";
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-list a span {
  color: var(--muted);
  margin-left: auto;
  font-size: 13px;
  font-weight: 650;
}

.comparison {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(18, 48, 38, 0.07);
}

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

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

th {
  color: var(--ink);
  background: var(--surface-quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

td strong {
  color: var(--ink);
}

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

.callout {
  padding: 22px;
}

.callout p:last-child {
  margin-bottom: 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.disclosure-box {
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
}

.disclosure-box p,
.disclosure-box li {
  color: var(--muted);
}

.disclosure-box a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  padding: 40px 0;
  background: rgba(248, 251, 247, 0.88);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-links a:not(.nav-cta)::after,
  .btn-primary,
  .btn-secondary,
  .external-link,
  .nav-cta,
  .text-link,
  .card,
  .link-list a {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .external-link:hover,
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(18, 48, 38, 0.14);
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(18, 48, 38, 0.1);
  }

  .link-list a:hover,
  .text-link:hover {
    color: var(--clay);
  }

  .link-list a:hover {
    border-color: rgba(255, 107, 74, 0.42);
    box-shadow: 0 14px 34px rgba(18, 48, 38, 0.08);
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 880px) {
  .hero-inner,
  .section-head,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 58px;
    gap: 30px;
  }

  .page-hero { background: linear-gradient(135deg, #ffffff 0%, #f0fff7 58%, #fff7df 100%); }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .nav-inner {
    min-height: 62px;
  }

  section {
    padding: 52px 0;
  }

  .lead {
    font-size: 17px;
  }

  .btn-primary,
  .btn-secondary,
  .external-link {
    width: 100%;
  }

  .link-list a span {
    width: 100%;
    margin-left: 0;
  }
}
