:root {
  --ink: #17211d;
  --muted: #53615b;
  --paper: #f7f6ef;
  --panel: #ffffff;
  --panel-strong: #eef4ef;
  --line: #d9e0d8;
  --brand: #0d765d;
  --brand-dark: #084f49;
  --accent: #b7791f;
  --danger: #8b2f2f;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

p,
li,
dd,
dt,
a,
span,
small,
button {
  overflow-wrap: anywhere;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(247, 246, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--brand-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section,
.page-hero,
.section,
.site-footer {
  padding-left: clamp(18px, 4vw, 44px);
  padding-right: clamp(18px, 4vw, 44px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  max-width: var(--max-width);
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  letter-spacing: 0;
}

.hero-lede,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-media {
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 68px;
  padding-bottom: 36px;
}

.legal-hero {
  padding-bottom: 16px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-tint {
  max-width: none;
  background: #edf2ea;
}

.section-tint > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading-inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-heading h2,
.support-band h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.product-actions,
.support-actions,
.modal-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.btn-ghost {
  color: var(--brand-dark);
  background: var(--panel);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.feature-grid,
.category-grid,
.product-grid,
.step-grid,
.contact-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.product-grid-compact {
  grid-template-columns: minmax(0, 540px);
}

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

.feature-card,
.category-card,
.product-card,
.step-card,
.contact-card,
.policy-card,
.identity-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.07);
}

.feature-card,
.category-card,
.step-card,
.contact-card,
.policy-card,
.identity-panel {
  padding: 22px;
}

.feature-card h3,
.category-card h3,
.step-card h2,
.step-card h3,
.contact-card h2,
.policy-card h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p,
.category-card p,
.step-card p,
.contact-card p,
.policy-card p,
.small-muted {
  color: var(--muted);
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.product-count,
.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e0f3ea;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-badge {
  color: var(--brand-dark);
  background: #e0f3ea;
}

.product-card {
  padding: 24px;
  scroll-margin-top: 110px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.product-type-label {
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.product-platform {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0;
}

.product-price span {
  font-size: 2rem;
  font-weight: 850;
  color: var(--brand-dark);
}

.product-price small {
  color: var(--muted);
}

.product-meta {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.product-meta div,
.info-list div,
.identity-panel dl div,
.summary-list div {
  display: grid;
  gap: 4px;
}

.product-meta strong,
.info-list strong,
.identity-panel dt,
.summary-list dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-meta span,
.identity-panel dd,
.summary-list dd {
  color: var(--muted);
  margin: 0;
}

.plan-selector {
  margin: 22px 0;
  outline: none;
}

.plan-selector h4,
.spec-list h4,
.requirements-list h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

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

.plan-option {
  position: relative;
  display: block;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option span {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  cursor: pointer;
}

.plan-option strong {
  color: var(--ink);
}

.plan-option small {
  color: var(--brand-dark);
  font-weight: 800;
}

.plan-option input:checked + span {
  border-color: var(--brand);
  background: #e7f6ef;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.spec-list dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.spec-list dl div {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  font-weight: 750;
}

.requirements-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.purchase-notice,
.catalogue-note {
  border: 1px solid #e2d3b3;
  border-radius: var(--radius);
  background: #fff8e8;
}

.purchase-notice {
  padding: 14px;
  color: #60440d;
}

.catalogue-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.catalogue-note h2 {
  margin-bottom: 6px;
}

.two-column,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: var(--panel);
}

.support-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.policy-card {
  color: var(--ink);
}

.policy-card:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.policy-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.policy-nav a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
}

.policy-nav a:hover {
  background: var(--panel-strong);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-content section,
.legal-content > p {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.legal-content h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

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

.site-footer {
  margin-top: 30px;
  padding-top: 40px;
  padding-bottom: 26px;
  color: #dbe8df;
  background: #12241f;
}

.site-footer a {
  color: #f3d28c;
}

.site-footer p,
.site-footer small,
.footer-contact,
.footer-bottom {
  color: #b8c9c0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr) minmax(220px, 0.8fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.floating-support {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: calc(100vw - 36px);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.floating-support:hover {
  color: #ffffff;
  background: var(--brand);
}

.purchase-modal[hidden] {
  display: none;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 16, 0.68);
  opacity: 0;
  transition: opacity 180ms ease;
}

.purchase-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.purchase-modal.is-open .purchase-modal__backdrop,
.purchase-modal.is-open .purchase-modal__panel {
  opacity: 1;
}

.purchase-modal.is-open .purchase-modal__panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-intro {
  color: var(--muted);
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.summary-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.modal-policy-links a {
  font-weight: 800;
}

.confirmation-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  color: var(--muted);
  font-weight: 650;
}

.confirmation-check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.modal-continue {
  width: 100%;
}

.modal-continue.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

  .nav-toggle {
    display: inline-block;
    flex: 0 0 44px;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .feature-grid,
  .category-grid,
  .product-grid,
  .step-grid,
  .contact-grid,
  .policy-grid,
  .two-column,
  .legal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .support-band,
  .catalogue-note,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-nav {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero-section,
  .page-hero,
  .section,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.18rem;
  }

  .plan-grid,
  .spec-list dl,
  .summary-list {
    grid-template-columns: 1fr;
  }

  .product-actions,
  .hero-actions,
  .support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-actions .btn,
  .hero-actions .btn,
  .support-actions .btn {
    width: 100%;
  }

  .floating-support {
    left: 14px;
    right: 14px;
  }
}
