:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #5f6772;
  --line: #dbe0e6;
  --paper: #f4f6f7;
  --white: #ffffff;
  --red: #d9232e;
  --red-dark: #9f1720;
  --green: #2c7051;
  --teal: #276a70;
  --charcoal: #242b33;
  --amber: #b37824;
  --shadow: 0 18px 44px rgba(31, 37, 43, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.storefront-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.brand-mark {
  width: 48px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

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

.nav-links,
.top-actions,
.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red-dark);
  background: #f5e7e8;
}

.icon-btn,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
}

.icon-btn {
  width: 42px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--red-dark);
  border-color: #efb3b7;
}

.icon-btn svg,
.primary-action svg,
.secondary-action svg,
.standards-grid svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.primary-action,
.secondary-action {
  padding: 10px 14px;
}

.primary-action {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

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

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: #b9c3cc;
  color: var(--teal);
}

.storefront-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 60px) clamp(16px, 4vw, 54px) 24px;
  background:
    linear-gradient(90deg, rgba(244, 246, 247, 0.98) 0%, rgba(244, 246, 247, 0.88) 54%, rgba(244, 246, 247, 0.7) 100%),
    url("assets/dmx-product.jpg") center right / contain no-repeat;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.14;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.member-card {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.member-card div {
  min-width: 0;
  padding: 13px;
  background: rgba(255, 255, 255, 0.94);
}

.member-card dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-card dd {
  margin: 3px 0 0;
  font-size: 0.96rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quick-inquiry,
.planner-panel,
.summary-panel,
.product-card,
.standards-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-inquiry {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.panel-head span {
  flex: 0 0 auto;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #eef6f2;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

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

label,
fieldset {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
}

legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.84rem;
}

fieldset label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--ink);
  font-weight: 750;
}

fieldset input {
  min-height: 18px;
  height: 18px;
  accent-color: var(--green);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(39, 106, 112, 0.14);
}

input[readonly] {
  color: var(--green);
  background: #eef6f2;
}

.section-shell {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 54px);
}

.section-heading {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 18px;
  align-items: end;
  margin: 0 auto 22px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
}

.starter-package-card {
  border-color: rgba(217, 35, 46, 0.34);
  background:
    linear-gradient(135deg, rgba(217, 35, 46, 0.08), transparent 54%),
    var(--white);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef0f3;
}

.product-card > div {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.product-card dl div {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
  padding: 9px;
  background: #fafbfc;
}

.product-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.split-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 16px;
  align-items: start;
  margin: 0 auto;
}

.planner-panel,
.summary-panel {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}

.summary-panel {
  position: sticky;
  top: 92px;
}

pre {
  max-height: 540px;
  min-height: 220px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: #f4f6f7;
  background: var(--charcoal);
}

.purepower-section {
  background: #eef3f2;
}

.join-section {
  background: #f8f2f2;
}

.standards-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.standards-grid article {
  box-shadow: none;
  padding: 18px;
}

.standards-grid svg {
  margin-bottom: 14px;
  color: var(--red-dark);
}

.standards-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(460px, calc(100vw - 36px));
  max-height: 52vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.summary-drawer pre {
  min-height: 120px;
  max-height: 34vh;
  font-size: 0.78rem;
}

.summary-drawer .eyebrow {
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, 18px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .storefront-hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .storefront-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(244, 246, 247, 0.94), rgba(244, 246, 247, 0.96)),
      url("assets/dmx-product.jpg") top right / 420px auto no-repeat;
  }

  .quick-inquiry,
  .summary-panel {
    align-self: stretch;
    position: static;
  }

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

@media (max-width: 820px) {
  .storefront-topbar {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .section-heading,
  .member-card,
  .form-grid,
  fieldset,
  .product-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .storefront-hero,
  .section-shell {
    padding-inline: 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .summary-drawer {
    position: static;
    width: auto;
    margin: 14px;
  }
}
