:root {
  --ink: #161616;
  --muted: #596160;
  --paper: #ffffff;
  --soft: #f3f7f4;
  --line: #d8e0dc;
  --accent: #c1121f;
  --accent-dark: #8f0d16;
  --teal: #006d77;
  --green: #2d6a4f;
  --yellow: #f4c430;
  --shadow: 0 22px 70px rgba(22, 22, 22, 0.12);
  --max: 1320px;
}

* {
  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;
  font-size: 1.02rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-mark {
  display: grid;
  gap: 0.05rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.15;
}

.site-mark span {
  overflow-wrap: anywhere;
}

.site-mark small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--soft);
  outline: none;
}

.site-nav .nav-cta,
.site-nav .nav-cta[aria-current="page"] {
  color: #ffffff;
  background: var(--accent);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 4.25rem clamp(1rem, 5vw, 4rem) 3.5rem;
  color: #ffffff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 55%, rgba(0, 0, 0, 0.18)),
    url("https://images.unsplash.com/photo-1685537710889-84750d9fec12?auto=format&fit=crop&q=80&w=1800") center / cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--teal));
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__inner--portal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero__content {
  max-width: 860px;
}

.hero__panel {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 1.45rem;
  box-shadow: var(--shadow);
}

.hero__panel .eyebrow {
  color: var(--accent);
}

.hero__panel h2 {
  font-size: 1.5rem;
}

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

.hero__quick-list,
.hero__panel-actions {
  display: grid;
  gap: 0.8rem;
}

.hero__quick-list {
  margin-top: 1.1rem;
}

.hero__quick-link {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: inherit;
  text-decoration: none;
}

.hero__quick-link strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.hero__quick-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__quick-link:hover,
.hero__quick-link:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 109, 119, 0.18);
  outline-offset: 0;
}

.hero__panel-actions {
  margin-top: 1rem;
}

.hero__stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 980px;
  margin-top: 1.75rem;
}

.hero__stat-card {
  min-height: 142px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero__stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.hero__stat-card p {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 3.85rem;
  max-width: 11ch;
}

h2 {
  font-size: 2.3rem;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.hero__lead {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero__lead--muted {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero__lead--narrow {
  max-width: 44rem;
}

.hero__actions,
.sale-panel,
.site-footer,
.signal-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #ffffff;
  background: var(--accent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-dark);
}

.button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button--light {
  color: var(--ink);
  background: #ffffff;
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.signal-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
  font-size: 0.92rem;
}

.portal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.portal-strip__item {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.portal-strip__item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.portal-strip__item p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.section-band {
  padding: 4rem clamp(1rem, 4vw, 3rem);
}

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

.section-band--accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-dark), var(--teal));
}

.section-band--accent .eyebrow {
  color: var(--yellow);
}

.section-grid,
.section-heading,
.card-grid,
.pricing-grid,
.split-section,
.contact-layout,
.sale-panel,
.article-shell,
.contact-page,
.site-footer,
.article-link-grid {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rich-text {
  color: var(--muted);
}

.rich-text strong {
  color: var(--ink);
}

.section-heading {
  max-width: 960px;
  margin-bottom: 1.6rem;
}

.section-heading p {
  color: var(--muted);
}

.section-heading h2 + p {
  margin-top: 1rem;
}

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

.info-card {
  min-height: 168px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.info-card h3 {
  color: var(--teal);
}

.info-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.article-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: stretch;
}

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

.article-card {
  display: grid;
  gap: 0.45rem;
  min-height: 156px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(22, 22, 22, 0.12);
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 109, 119, 0.18);
  outline-offset: 0;
}

.article-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

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

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.related-links a {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.related-links a:hover,
.related-links a:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 109, 119, 0.18);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-section__image img,
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.sale-panel {
  justify-content: space-between;
}

.sale-panel div {
  max-width: 740px;
}

.sale-panel p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.faq-list--wide {
  margin-top: 2rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: 900;
}

details p {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.center-link {
  margin-top: 1.5rem;
  text-align: center;
}

.contact-layout,
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.contact-form--large label:has(textarea),
.contact-form--large button,
.contact-form--large .form-status,
.contact-form--large noscript {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c4be;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 109, 119, 0.2);
}

.form-status {
  min-height: 1.4rem;
  color: var(--green);
  font-weight: 800;
}

.article-shell {
  padding: 4rem clamp(1rem, 5vw, 4rem) 5rem;
}

.article-hero {
  display: grid;
  gap: 1.2rem;
}

.article-hero h1 {
  max-width: 920px;
}

.article-hero p:not(.eyebrow) {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-hero img {
  margin-top: 1rem;
}

.article-hero--compact img {
  aspect-ratio: 16 / 7;
}

.article-body {
  width: 100%;
  max-width: 820px;
  margin: 3rem auto 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
  max-width: var(--max);
  margin: 3rem auto 0;
  align-items: start;
}

.article-content .article-body {
  max-width: none;
  margin: 0;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.toc-card,
.sidebar-note,
.info-panel {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toc-card h2,
.sidebar-note strong {
  color: var(--ink);
}

.toc-card h2 {
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.toc-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.toc-list a {
  display: block;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a:focus-visible,
.toc-list a.is-active {
  background: #ffffff;
  outline: none;
}

.sidebar-note strong {
  display: block;
  font-size: 1.05rem;
}

.sidebar-note p,
.info-panel p {
  color: var(--muted);
}

.sidebar-note .button {
  width: 100%;
  margin-top: 0.9rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.case-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.case-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.case-card p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.compare-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.compare-table th {
  color: var(--ink);
  background: var(--soft);
  font-size: 0.94rem;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

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

.article-body h2 {
  margin-top: 2.4rem;
  color: var(--ink);
  font-size: 1.65rem;
}

.article-body h2 + p,
.article-body h2 + ul,
.article-body h2 + .pricing-grid {
  margin-top: 1rem;
}

.sale-note,
.source-box {
  padding: 1.2rem;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.source-box {
  margin-top: 2.5rem;
}

.source-box h2 {
  margin-top: 0;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.contact-page {
  padding: 5rem clamp(1rem, 5vw, 4rem);
}

.contact-page__intro {
  position: sticky;
  top: 100px;
}

.contact-page h1 {
  max-width: 780px;
}

.contact-page p {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-page .check-list {
  margin-top: 1.4rem;
}

.contact-page__figure {
  margin-top: 1.5rem;
}

.contact-page__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  justify-content: space-between;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 900;
}

.site-footer a {
  color: var(--ink);
}

.footer-note {
  width: 100%;
  font-size: 0.9rem;
}

.site-credit {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-credit a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 76svh;
  }

  .section-grid,
  .split-section,
  .contact-layout,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero__inner--portal,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

  .article-link-grid {
    grid-template-columns: 1fr;
  }

  .contact-page__intro {
    position: static;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  .site-nav a {
    padding: 0.5rem 0.55rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52)),
      url("https://images.unsplash.com/photo-1685537710889-84750d9fec12?auto=format&fit=crop&q=80&w=1200") center / cover;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero__lead,
  .article-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero__lead {
    margin-top: 1rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .signal-list {
    display: none;
  }

  .card-grid,
  .article-link-grid,
  .pricing-grid,
  .contact-form--large,
  .hero__stat-grid,
  .portal-strip,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .section-band,
  .article-shell,
  .contact-page {
    padding-block: 3.25rem;
  }

  .article-hero--compact img {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.85rem;
  }

  .hero__actions .button,
  .signal-list li {
    width: 100%;
  }

  .signal-list li {
    text-align: center;
  }
}
