:root {
  --bg: #f5efe5;
  --bg-soft: #fbf7f0;
  --surface: rgba(255, 251, 245, 0.78);
  --surface-strong: #fffdf9;
  --navy: #10283d;
  --navy-strong: #091a2b;
  --ink: #183148;
  --ink-soft: #496174;
  --line: rgba(16, 40, 61, 0.12);
  --green: #365f54;
  --green-soft: rgba(54, 95, 84, 0.1);
  --orange: #db8a58;
  --shadow-lg: 0 28px 80px rgba(16, 40, 61, 0.14);
  --shadow-md: 0 16px 36px rgba(16, 40, 61, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --container: min(1180px, calc(100vw - 2rem));
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(219, 138, 88, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(54, 95, 84, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #f4eee4 52%, #f7f3ec 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    radial-gradient(rgba(16, 40, 61, 0.05) 0.7px, transparent 0.7px);
  background-size: auto, 15px 15px;
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
table {
  margin: 0;
}

ul {
  padding-left: 1.15rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-tight {
  margin-bottom: 0.5rem;
}

.section-index {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2,
.split-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy-strong);
}

.section-intro,
.split-copy > p,
.dual-column-copy p,
.feature-card p,
.trust-card p,
.faq-content p,
.footer-grid p,
.intro-note p,
.highlight-card p,
.micro-note,
.media-frame figcaption {
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 234, 0.74);
  border-bottom: 1px solid rgba(16, 40, 61, 0.08);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 5.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  width: 2.9rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0.92) 13%, transparent 15%),
    linear-gradient(135deg, var(--navy) 0%, #173c57 52%, var(--green) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), var(--shadow-md);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1rem;
  color: var(--navy-strong);
}

.brand-copy span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.header-nav a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: rgba(16, 40, 61, 0.24);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 32px rgba(16, 40, 61, 0.18);
}

.button-secondary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 30px rgba(54, 95, 84, 0.2);
}

.button-soft {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 40, 61, 0.12);
  color: var(--navy);
}

.hero {
  padding-top: 4.25rem;
}

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

.hero-copy h1 {
  margin: 0 0 1.2rem;
  max-width: 10ch;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  color: var(--navy-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.hero-meta span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(16, 40, 61, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--navy);
}

.hero-lead {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-lead-secondary {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: 2rem 0 2.25rem;
}

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

.mini-card,
.toc-card,
.intro-note,
.highlight-card,
.feature-card,
.note-card,
.trust-card,
.faq-item,
.support-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mini-card,
.toc-card,
.intro-note,
.feature-card,
.highlight-card,
.note-card,
.trust-card,
.support-note {
  padding: 1.45rem 1.5rem;
}

.mini-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-lg);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(219, 138, 88, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(54, 95, 84, 0.18), transparent 32%);
  pointer-events: none;
}

.media-frame img {
  border-radius: calc(var(--radius-xl) - 0.5rem);
  position: relative;
  z-index: 1;
}

.media-frame picture {
  display: block;
  position: relative;
  z-index: 1;
}

.media-frame figcaption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.guide-intro {
  padding-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.toc-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

.toc-list a {
  color: var(--navy);
  font-weight: 600;
}

.table-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.method-card {
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

.method-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.38rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-strong);
}

.method-card p {
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(16, 40, 61, 0.1);
}

.comparison-table thead th {
  color: var(--navy-strong);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(16, 40, 61, 0.04);
}

.comparison-table tbody th {
  width: 20%;
  color: var(--navy);
  font-size: 0.98rem;
}

.comparison-table td {
  color: var(--ink-soft);
}

.highlight-card {
  position: sticky;
  top: 6.8rem;
}

.highlight-card .button {
  width: 100%;
  margin-top: 1.15rem;
}

.feature-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card h3,
.trust-card h3,
.callout-panel h3,
.note-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy-strong);
}

.callout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 1.65rem;
  border: 1px solid rgba(16, 40, 61, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(16, 40, 61, 0.96), rgba(20, 50, 74, 0.92)),
    var(--navy);
  color: #f6f5f1;
  box-shadow: var(--shadow-lg);
}

.callout-panel p,
.callout-panel .eyebrow {
  color: rgba(246, 245, 241, 0.76);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
}

.split-section.reverse .split-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.split-copy {
  display: grid;
  gap: 1rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  color: var(--ink-soft);
}

.check-list li::marker {
  color: var(--green);
}

.note-card {
  background: linear-gradient(180deg, rgba(219, 138, 88, 0.08), rgba(255, 255, 255, 0.64));
}

.dual-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

.trust-card {
  position: relative;
  overflow: hidden;
}

.trust-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 0 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.3rem 0;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-content {
  padding: 0 0 1.35rem;
}

.site-footer {
  padding: 2.5rem 0 3.2rem;
  border-top: 1px solid rgba(16, 40, 61, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 245, 0.76);
  box-shadow: var(--shadow-md);
}

.footer-action {
  display: grid;
  align-content: start;
  gap: 1rem;
  justify-items: start;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.site-standard-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
}

.site-standard-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--navy-strong);
}

.site-standard-card p,
.site-standard-card a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .hero-highlights,
  .method-grid,
  .feature-grid,
  .site-standards-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-shell,
  .split-grid,
  .split-section.reverse .split-grid,
  .intro-grid,
  .header-shell,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .header-nav {
    justify-content: start;
  }

  .highlight-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 4.4rem 0;
  }

  .hero-grid,
  .dual-column-copy,
  .hero-highlights,
  .method-grid,
  .feature-grid,
  .site-standards-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .callout-panel {
    grid-template-columns: 1fr;
  }

  .header-shell {
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .header-nav {
    gap: 0.9rem 1rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100vw - 1.2rem, 100%);
  }

  .section {
    padding: 3.8rem 0;
  }

  .site-header {
    position: static;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table {
    min-width: 0;
  }

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

  .comparison-table tbody {
    display: grid;
    gap: 0.95rem;
  }

  .comparison-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-md);
  }

  .comparison-table tbody th,
  .comparison-table tbody td {
    border-bottom: 0;
  }

  .comparison-table tbody th {
    padding: 1rem 1rem 0.35rem;
    color: var(--navy-strong);
  }

  .comparison-table tbody td {
    padding: 0.45rem 1rem 1rem;
  }

  .comparison-table tbody td::before {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .comparison-table tbody td:nth-of-type(1)::before {
    content: "What to check";
  }

  .comparison-table tbody td:nth-of-type(2)::before {
    content: "Why it matters";
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }
}

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

  .button,
  .header-nav a::after {
    transition: none;
  }
}
