:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #e9eef1;
  --ink: #111d25;
  --muted: #586974;
  --line: #cdd7de;
  --accent: #dc5e36;
  --accent-dark: #b84120;
  --dark: #13262e;
  --green: #1f7a5a;
  --blue: #2e6483;
  --gold: #8b6a1f;
  --violet: #5d5573;
  --radius: 16px;
  --shadow: 0 15px 38px rgba(20, 41, 52, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.52;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { width: min(820px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.brand-name { font-size: 18px; }

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

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

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-banner-inner {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding-block: 30px;
}

.hero-banner-copy { max-width: 850px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.13; }

h1 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 49px);
  letter-spacing: -0.038em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.4vw, 40px);
  letter-spacing: -0.03em;
}

h3 {
  margin: 14px 0 9px;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.hero-banner-copy > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section { padding: 68px 0; }
.section-compact { padding: 48px 0; }
.catalogue-section { padding-top: 34px; }

.catalogue-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 23px;
}

.section-heading { max-width: 760px; }
.compact-heading h2 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.section-heading p:last-child,
.detail-card p,
.principles p,
.warning-grid p,
.legal-content p,
.legal-content li,
.download-note { color: var(--muted); }

.section-heading p:last-child { margin: 0; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  padding: 8px 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  background: var(--dark);
  border-color: var(--dark);
}

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

.product-card,
.detail-card,
.product-panel,
.distribution-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(20, 41, 52, 0.055);
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.product-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(218, 95, 54, 0.075), transparent 52%),
    var(--surface);
}

.product-card.is-hidden { display: none; }

.product-card > p {
  margin: 0;
  color: var(--muted);
}

.project-area-card h3 {
  margin-bottom: 10px;
}

.project-product-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.project-product-link {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.project-product-link:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 19px rgba(20, 41, 52, 0.10);
  transform: translateY(-1px);
}

.project-product-link span:last-child {
  color: var(--accent);
  font-size: 19px;
}

.utilities-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.utilities-promo h3 {
  margin: 3px 0 7px;
  font-size: clamp(22px, 3vw, 28px);
}

.utilities-promo p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.utilities-promo .button {
  flex: 0 0 auto;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status,
.product-type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.status {
  padding: 5px 8px;
  border-radius: 999px;
}

.status-live { color: #12593e; background: #dff2ea; }
.status-development { color: #245c78; background: #dfeef5; }
.status-research { color: #765717; background: #f4ead0; }
.status-planned { color: #5d5573; background: #ebe7f2; }
.product-type { color: var(--muted); }

.feature-list {
  margin: 17px 0 0;
  padding-left: 19px;
}

.feature-list li { margin: 7px 0; }
.feature-list.large li { margin: 10px 0; }
.card-feature-list { color: var(--muted); font-size: 14px; }

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.card-actions-bottom { margin-top: auto; padding-top: 20px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 19px rgba(20, 41, 52, 0.14);
}

.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--line); }
.button-large { min-height: 52px; padding-inline: 24px; }
.button-compact { min-height: 41px; padding-inline: 15px; font-size: 14px; }
.button-disabled {
  color: #70808a;
  background: #e5eaed;
  border-color: #d3dce1;
  cursor: not-allowed;
}
.button-disabled:hover { transform: none; box-shadow: none; }

.section-dark {
  color: white;
  background: var(--dark);
}

.section-dark .eyebrow { color: #ff9a78; }
.section-dark p { color: #c9d5da; }

.approach-section { padding-block: 56px; }
.approach-grid,
.warning-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 62px;
  align-items: start;
}

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

.principles > div {
  padding-left: 17px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.principles strong { font-size: 17px; }
.principles p { margin: 8px 0 0; font-size: 14px; }

.product-hero,
.legal-hero {
  padding: 56px 0 52px;
  background:
    linear-gradient(135deg, rgba(218, 95, 54, 0.075), transparent 46%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.product-page-topline {
  justify-content: flex-start;
  margin-bottom: 17px;
}

.hero-copy {
  max-width: 750px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.download-note { margin: 14px 0 0; font-size: 13px; }

.product-panel {
  padding: 24px;
  color: white;
  background: var(--dark);
}

.metric {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.metric:first-child { padding-top: 0; }
.metric:last-child { padding-bottom: 0; border-bottom: 0; }
.metric span { display: block; margin-bottom: 5px; color: #aebfc7; font-size: 12px; }
.metric strong { font-size: 17px; }
.metric code { display: block; overflow-wrap: anywhere; color: #ffb197; font-size: 12px; }

.distribution-section { padding-bottom: 0; }
.distribution-stack {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
}
.distribution-card {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 36px;
  height: 100%;
  padding: 26px;
}

.distribution-card h2 { margin-bottom: 0; font-size: 31px; }
.distribution-list { margin: 0; display: grid; gap: 11px; }
.distribution-list > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.distribution-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.distribution-list dt { color: var(--muted); font-size: 13px; font-weight: 750; }
.distribution-list dd { margin: 0; font-weight: 650; }
.distribution-link {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-dark);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.detail-card { padding: 25px; }
.detail-card h2 { font-size: clamp(25px, 3vw, 35px); }
.detail-card p { margin-bottom: 0; }
.detail-card-action { margin-top: 18px !important; }
.detail-card-action a {
  color: var(--accent-dark);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.product-gallery figure {
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-gallery img { width: 100%; border-radius: 10px; }
.product-gallery figcaption { padding: 9px 4px 2px; color: var(--muted); font-size: 13px; }

.legal-content h2 {
  margin-top: 38px;
  font-size: 27px;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content li { margin: 7px 0; }

.site-footer {
  padding: 40px 0;
  color: #d8e1e5;
  background: #0c1a20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 44px;
  align-items: start;
}

.footer-brand { color: white; }
.footer-logo { filter: invert(1); }
.footer-grid p { max-width: 520px; margin-bottom: 0; color: #9fb0b8; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #d8e1e5; text-decoration: none; }
.footer-links a:hover { color: white; }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 21px;
  color: #82969f;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 930px) {
  .catalogue-heading-row,
  .product-hero-grid,
  .approach-grid,
  .warning-grid,
  .distribution-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .filter-row { justify-content: flex-start; }
  .principles { grid-template-columns: 1fr; gap: 18px; }
  .principles > div { padding-bottom: 16px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 760px) {
  .hero-banner-inner { grid-template-columns: 1fr; min-height: auto; gap: 0; padding-block: 27px; }

  .product-grid,
  .detail-grid,
  .product-gallery { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }
}

@media (max-width: 660px) {
  .shell,
  .narrow { width: min(100% - 28px, 1180px); }

  .header-inner { min-height: 60px; }
  .brand-logo { height: 46px; }
  .brand-name { font-size: 17px; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 59px;
    right: 14px;
    min-width: 205px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 10px; }

  h1 { font-size: 35px; }
  h2 { font-size: 29px; }
  .compact-heading h2 { font-size: 20px; white-space: normal; }
  .hero-banner-copy > p:last-child,
  .hero-copy { font-size: 16px; }

  .section { padding: 50px 0; }
  .section-compact { padding: 38px 0; }
  .catalogue-section { padding-top: 28px; }
  .product-hero, .legal-hero { padding: 42px 0 40px; }

  .product-card,
  .detail-card,
  .product-panel,
  .distribution-card { padding: 20px; }

  .product-topline { align-items: flex-start; flex-direction: column; gap: 7px; }
  .utilities-promo { align-items: stretch; flex-direction: column; }
  .utilities-promo .button { width: 100%; }
  .distribution-list > div { grid-template-columns: 1fr; gap: 3px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
}

.footer-legal p {
  margin: 0;
}

.footer-attribution {
  margin-top: 7px !important;
  color: #9fb0b8;
}

.footer-attribution a {
  color: #d8e1e5;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-attribution a:hover { color: white; }

.resource-section,
.interest-section { padding-top: 0; }

.resource-card,
.interest-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  padding: 27px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 22px rgba(20, 41, 52, 0.055);
}

.resource-card h2,
.interest-card h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.resource-links {
  display: grid;
  gap: 10px;
}

.resource-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-weight: 720;
  text-decoration: none;
}

.resource-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 19px rgba(20, 41, 52, 0.10);
}

.interest-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(218, 95, 54, 0.07), transparent 52%),
    var(--surface);
}

.interest-card p:not(.eyebrow),
.interest-status { color: var(--muted); }

.interest-card p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
}

.interest-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.interest-action button:disabled {
  color: #ffffff;
  background: var(--green);
  cursor: default;
  opacity: 1;
}

.interest-action button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.interest-status {
  min-height: 21px;
  margin: 0;
  font-size: 13px;
}

/* Engineering Utilities catalogue and Free Registered download */
.utility-section,
.registered-download-section { padding-top: 0; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.utility-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 22px rgba(20, 41, 52, 0.055);
}

.utility-card h3 {
  margin: 19px 0 10px;
  font-size: clamp(24px, 3vw, 31px);
}

.utility-card > p { color: var(--muted); }
.utility-card .feature-list { margin-bottom: 19px; }

.utility-access {
  width: 100%;
  margin: auto 0 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 720;
}

#registered-download { scroll-margin-top: 82px; }

.registered-download-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 38px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(218, 95, 54, 0.08), transparent 48%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 28px rgba(20, 41, 52, 0.075);
}

.registered-download-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(29px, 4vw, 42px);
}

.registered-download-copy > p:not(.eyebrow) { color: var(--muted); }

.registered-download-file {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.registered-download-panel {
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.registered-download-panel form {
  display: grid;
  gap: 15px;
}

.consent-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.consent-row a {
  color: var(--ink);
  font-weight: 720;
}

.required-consent { color: var(--ink); }

.registered-download-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.registered-download-actions button { cursor: pointer; }

.registered-download-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.registered-download-status {
  min-height: 21px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.registered-download-status.is-success { color: var(--green); }
.registered-download-status.is-error { color: #a62f24; }

.download-ready h3 {
  margin: 0 0 9px;
  font-size: clamp(27px, 3vw, 34px);
}

.download-ready p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--muted);
}

.download-ready .button { text-align: center; }

@media (max-width: 930px) {
  .resource-card,
  .interest-card,
  .registered-download-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .utility-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .registered-download-card { padding: 20px; }
  .registered-download-panel { padding: 18px; }
  .registered-download-actions { justify-items: stretch; }
  .registered-download-actions .button,
  .download-ready .button { width: 100%; }
}

/* Step 6B.4 — contact section */
#contacts { scroll-margin-top: 78px; }

.footer-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 30px 54px;
}

.footer-intro > p {
  margin-top: 16px;
}

.footer-intro .footer-links {
  margin-top: 24px;
}

.footer-contact {
  padding: 24px;
  color: var(--ink);
  background: #f7f9fa;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.footer-contact .eyebrow {
  margin-bottom: 6px;
}

.footer-contact h2 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.footer-contact > p:not(.eyebrow):not(.contact-email-line) {
  max-width: none;
  margin: 0 0 16px;
  color: var(--muted);
}

.contact-email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  max-width: none !important;
  margin: 0 0 19px !important;
  color: var(--muted) !important;
}

.contact-email-line span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email-line a {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-form-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contact-form-toggle:hover {
  background: #fffaf7;
  border-color: rgba(220, 94, 54, 0.46);
}

.contact-form-toggle[aria-expanded="true"] {
  margin-bottom: 18px;
  background: #fffaf7;
  border-color: rgba(220, 94, 54, 0.55);
}

.contact-form-toggle-copy {
  display: grid;
  gap: 2px;
}

.contact-form-toggle-copy strong {
  font-size: 15px;
}

.contact-form-toggle-copy small {
  color: var(--muted);
  font-size: 12px;
}

.contact-form-chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.contact-form-toggle[aria-expanded="true"] .contact-form-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.contact-form[hidden] {
  display: none;
}

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

.form-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.form-field small {
  color: var(--muted);
  font-weight: 500;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.form-field input {
  min-height: 42px;
  padding: 8px 11px;
}

.form-field textarea {
  min-height: 118px;
  padding: 10px 11px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 94, 54, 0.13);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.contact-form-actions .button {
  min-width: 140px;
  cursor: pointer;
}

.contact-form-actions .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.contact-status {
  min-height: 21px;
  max-width: none !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 13px;
}

.contact-status.is-success { color: var(--green) !important; }
.contact-status.is-error { color: #a62f24 !important; }

.contact-privacy {
  max-width: none !important;
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px;
}

.contact-privacy a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 930px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-contact { padding: 20px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .contact-form-actions { align-items: stretch; flex-direction: column; }
  .contact-form-actions .button { width: 100%; }
}

/* Flange Generator product page and workflow article */
:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid rgba(220, 94, 54, 0.42);
  outline-offset: 3px;
}

.flange-hero {
  padding: 52px 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(220, 94, 54, 0.13), transparent 28%),
    linear-gradient(145deg, #f8fafb 0%, #e8eef1 100%);
  border-bottom: 1px solid var(--line);
}

.flange-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.flange-hero-copy h1 { max-width: 760px; }
.flange-hero-copy code,
.article-content code { font-size: 0.92em; }

.flange-benefit {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 16px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.compact-warning {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #614914;
  background: #fff5d8;
  border-left: 4px solid #d4a42d;
  border-radius: 8px;
  font-size: 13px;
}

.flange-workflow-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 20px;
  color: white;
  background: #11242d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(17, 36, 45, 0.22);
}

.flange-workflow-visual > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #b7c7ce;
  font-size: 12px;
  text-align: center;
}

.workflow-window {
  min-height: 232px;
  padding: 13px;
  background: #f8fafb;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.workflow-window-title {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  color: #5c6d76;
  border-bottom: 1px solid #dce3e7;
  font-size: 11px;
}

.workflow-window-title span {
  width: 7px;
  height: 7px;
  background: #cbd5da;
  border-radius: 50%;
}

.workflow-window-title strong { margin-left: auto; }
.workflow-excel dl { display: grid; gap: 8px; margin: 13px 0 0; }
.workflow-excel dl > div { display: grid; grid-template-columns: 1fr 46px; gap: 8px; align-items: center; }
.workflow-excel dt { color: #52656f; font-size: 11px; font-weight: 700; }
.workflow-excel dd { margin: 0; padding: 5px; color: #1d3540; background: #e7eef1; border: 1px solid #c8d5db; border-radius: 5px; font-size: 11px; text-align: center; }

.workflow-arrow { color: #ffab8f; font-size: 12px; font-weight: 800; text-align: center; }
.workflow-arrow span { display: block; font-size: 28px; line-height: 1; }
.workflow-cad { overflow: hidden; background: linear-gradient(145deg, #f7f9fa, #dce6ea); }

.flange-shape {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 28px auto 0;
  background: radial-gradient(circle, transparent 0 22px, #68818d 23px 34px, #9fb2ba 35px 59px, #48616c 60px 64px, transparent 65px);
  filter: drop-shadow(11px 14px 7px rgba(26, 48, 58, 0.24));
  transform: rotateX(58deg) rotateZ(-16deg);
}

.flange-shape::before,
.flange-shape::after,
.flange-shape span::before,
.flange-shape span::after {
  position: absolute;
  width: 11px;
  height: 11px;
  content: "";
  background: #e8eef1;
  border: 2px solid #536c77;
  border-radius: 50%;
}

.flange-shape::before { top: 17px; left: 60px; }
.flange-shape::after { right: 17px; top: 60px; }
.flange-shape span::before { bottom: 17px; left: 60px; }
.flange-shape span::after { top: 60px; left: 17px; }

.demonstration-card,
.article-promo-card,
.subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 41, 52, 0.06);
}

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

.demo-video {
  min-width: 0;
  margin: 0;
}

.demo-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.demonstration-card h2,
.article-promo-card h2,
.subscription-card h2 { margin-bottom: 8px; font-size: clamp(26px, 3.2vw, 36px); }
.demonstration-card p:last-child,
.article-promo-card p:last-child,
.subscription-card p:last-child { margin-bottom: 0; color: var(--muted); }

.demo-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  color: #765717;
  background: #f4ead0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.workflow-section { padding-top: 30px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.workflow-steps li { display: grid; align-content: start; gap: 14px; padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.workflow-steps li > span { width: 38px; height: 38px; display: inline-grid; place-items: center; color: white; background: var(--accent); border-radius: 50%; font-weight: 850; }
.workflow-steps h3 { margin: 0 0 9px; font-size: 20px; }
.workflow-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.section-soft { background: var(--surface-soft); border-block: 1px solid var(--line); }
.two-column-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.content-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.content-card h2 { font-size: clamp(28px, 3vw, 36px); }
.compatibility-note { margin: 23px 0 0; padding-top: 17px; color: var(--muted); border-top: 1px solid var(--line); }

.download-grid { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr); gap: 52px; align-items: start; }
.download-grid > div > p:not(.eyebrow) { color: var(--muted); }
.file-facts { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.file-facts > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.file-facts > div:first-child { padding-top: 0; }
.file-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.file-facts dt { color: var(--muted); font-size: 13px; font-weight: 760; }
.file-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.hash-value { color: var(--accent-dark); font-size: 12px; }
.safe-start li { margin: 10px 0; color: var(--muted); }
.safe-start code { overflow-wrap: anywhere; }

.limitation-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
.limitation-grid h2 { max-width: 420px; }
.limitation-grid p { margin-top: 0; color: #d0dce1; }
.limitation-grid a { color: #ffb197; }

.subscription-section { padding-top: 0; }
.subscription-card { grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); }
.subscription-card form { display: grid; gap: 13px; padding: 21px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.subscription-card button { justify-self: start; cursor: pointer; }
.subscription-card button:disabled { cursor: wait; opacity: 0.72; }
.subscription-status { min-height: 21px; margin: 0; color: var(--muted); font-size: 13px; }
.subscription-status.is-success { color: var(--green); }
.subscription-status.is-error { color: #a62f24; }

.faq-section { padding-top: 44px; }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.faq-list summary { position: relative; padding: 17px 48px 17px 18px; cursor: pointer; font-weight: 760; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 13px; right: 17px; color: var(--accent); content: "+"; font-size: 25px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 18px 17px; color: var(--muted); }
.faq-contact { margin: 22px 0 0; color: var(--muted); }
.faq-contact a { color: var(--accent-dark); font-weight: 760; }

.article-hero { padding: 64px 0 52px; background: linear-gradient(145deg, #f7fafb, #e4ecef); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 22px; margin: 18px 0 24px; color: var(--muted); font-size: 13px; font-weight: 650; }
.article-content { padding-block: 54px 72px; font-size: 17px; line-height: 1.7; }
.article-content > p,
.article-content > ul,
.article-content > ol { color: #435660; }
.article-content h2 { margin: 48px 0 15px; font-size: clamp(28px, 3.7vw, 39px); }
.article-content h3 { margin: 31px 0 10px; font-size: 24px; }
.article-content li { margin: 8px 0; }
.article-content a:not(.button) { color: var(--accent-dark); font-weight: 700; }
.article-lead { color: var(--ink) !important; font-size: 20px; }
.article-context { margin: 26px 0 34px; padding: 20px 22px; color: #40545e; background: var(--surface-soft); border-left: 4px solid var(--accent); border-radius: 9px; }
.article-context strong { color: var(--ink); }
.article-figure { margin: 34px 0; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(20, 41, 52, 0.10); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-archive-list { display: grid; gap: 14px; }
.article-archive-card { display: grid; grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(20, 41, 52, 0.055); }
.article-archive-card time { display: block; color: var(--muted); font-size: 13px; font-weight: 750; }
.article-archive-card .article-subject { display: block; margin-top: 6px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; }
.article-archive-card h2 { margin: 0 0 7px; font-size: clamp(22px, 2.5vw, 30px); }
.article-archive-card p { margin: 0; color: var(--muted); }
.article-archive-card .button { white-space: nowrap; }
.archive-phase-heading { margin: 48px 0 17px; }
.archive-phase-heading:first-child { margin-top: 0; }
.archive-phase-heading h2 { margin-bottom: 7px; }
.archive-phase-heading p { max-width: 860px; margin-bottom: 0; color: var(--muted); }

.article-demo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 17px; align-items: center; margin: 34px 0 46px; padding: 20px; background: #13262e; border-radius: var(--radius); color: white; }
.article-demo p { margin: 3px 0 0; color: #b8c8cf; font-size: 14px; }
.demo-play { width: 46px; height: 46px; display: grid; place-items: center; padding-left: 3px; color: white; background: var(--accent); border-radius: 50%; font-size: 17px; }
.article-demo .demo-status { color: #ffe7a9; background: rgba(244, 234, 208, 0.13); }

.article-workflow-visual { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 28px 0 40px; padding: 20px; background: #e8eef1; border: 1px solid var(--line); border-radius: var(--radius); }
.article-workflow-visual > div { display: grid; gap: 5px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.article-workflow-visual strong { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.article-workflow-visual b { grid-column: 1 / -1; margin-top: 7px; color: var(--accent-dark); text-align: center; }
.article-warning { margin: 40px 0; padding: 27px; color: white; background: var(--dark); border-radius: var(--radius); }
.article-warning h2 { margin-top: 0; }
.article-warning p { margin-bottom: 0; color: #d0dce1; }
.article-faq { font-size: 16px; line-height: 1.55; }

/* CloudCutter benchmark series and revision history */
.series-hero {
  padding: 64px 0 52px;
  background:
    radial-gradient(circle at 88% 18%, rgba(220, 94, 54, 0.12), transparent 27%),
    linear-gradient(145deg, #f7fafb, #e4ecef);
  border-bottom: 1px solid var(--line);
}

.series-hero h1 { max-width: 930px; }
.series-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.benchmark-list { grid-template-columns: 1fr; }
.series-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 41, 52, 0.06);
}
.series-card h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 35px); }
.series-card > p:not(.eyebrow) { color: var(--muted); }
.series-card .button { align-self: flex-start; margin-top: auto; }
.series-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 22px; padding: 0; list-style: none; }
.series-facts li { padding: 5px 9px; color: #40545e; background: var(--surface-soft); border-radius: 999px; font-size: 12px; font-weight: 720; }
.series-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.series-principles > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.series-principles h3 { margin-top: 0; font-size: 19px; }
.series-principles p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.benchmark-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 42px;
}
.benchmark-summary div { padding: 17px; background: var(--dark); border-radius: 11px; color: white; }
.benchmark-summary strong { display: block; color: #ffb197; font-size: 22px; }
.benchmark-summary span { display: block; margin-top: 4px; color: #b8c8cf; font-size: 12px; }
.table-scroll { margin: 22px 0 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.benchmark-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.benchmark-table th,
.benchmark-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.benchmark-table th { color: var(--ink); background: var(--surface-soft); font-size: 12px; letter-spacing: 0.02em; }
.benchmark-table tr:last-child td { border-bottom: 0; }
.benchmark-table td:last-child { font-weight: 650; }
.code-block { padding: 18px; overflow-x: auto; color: #d9e5e9; background: var(--dark); border-radius: 11px; font-size: 13px; line-height: 1.55; }
.article-note { margin: 34px 0; padding: 22px; color: #4f3b10; background: #fff5d8; border-left: 4px solid #d4a42d; border-radius: 9px; }
.article-note p:last-child { margin-bottom: 0; }
.article-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--line); }

.release-list { display: grid; gap: 18px; margin-top: 30px; }
.release-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.release-card-current { border-color: rgba(220, 94, 54, 0.5); box-shadow: 0 10px 28px rgba(20, 41, 52, 0.07); }
.release-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.release-heading h2 { margin-bottom: 5px; }
.release-heading p { margin: 0; color: var(--muted); }
.release-tag { padding: 6px 10px; color: var(--green); background: #e8f5ef; border-radius: 999px; font-size: 12px; font-weight: 800; }
.release-card h3 { margin-top: 25px; font-size: 20px; }
.release-card li { margin: 8px 0; color: #435660; }
.release-caution { padding: 14px 16px; color: #604817; background: #fff5d8; border-radius: 9px; font-size: 14px; }

@media (max-width: 1040px) {
  .flange-hero-grid { grid-template-columns: 1fr; }
  .flange-workflow-visual { max-width: 650px; }
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .two-column-content,
  .download-grid,
  .limitation-grid,
  .subscription-card { grid-template-columns: 1fr; gap: 26px; }
  .download-grid { gap: 30px; }
  .demonstration-card,
  .article-promo-card { grid-template-columns: 1fr; gap: 18px; }
  .demonstration-card .demo-status { justify-self: start; }
  .article-demo { grid-template-columns: auto minmax(0, 1fr); }
  .article-demo .demo-status { grid-column: 2; justify-self: start; }
  .benchmark-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-principles { grid-template-columns: 1fr; }
  .article-archive-card { grid-template-columns: 1fr; gap: 14px; }
  .article-archive-card .button { justify-self: start; }
}

@media (max-width: 620px) {
  .flange-hero { padding: 34px 0 38px; }
  .flange-hero-grid { gap: 32px; }
  .flange-hero .hero-copy { font-size: 16px; }
  .flange-benefit { font-size: 17px; }
  .flange-hero .hero-actions { margin-top: 18px; }
  .flange-hero .hero-actions .button { width: 100%; }
  .flange-workflow-visual { grid-template-columns: 1fr; }
  .workflow-arrow { transform: rotate(90deg); }
  .workflow-window { min-height: 205px; }
  .flange-workflow-visual > p { grid-column: 1; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { grid-template-columns: auto minmax(0, 1fr); }
  .file-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .subscription-card { padding: 20px; }
  .subscription-card form { padding: 17px; }
  .subscription-card button { width: 100%; }
  .article-hero { padding: 42px 0 38px; }
  .article-content { padding-block: 40px 58px; font-size: 16px; }
  .article-workflow-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-demo { grid-template-columns: 1fr; }
  .article-demo .demo-status { grid-column: 1; }
  .series-hero { padding: 42px 0 38px; }
  .series-grid { grid-template-columns: 1fr; }
  .series-actions .button,
  .article-navigation .button { width: 100%; }
  .article-archive-card { padding: 20px; }
  .article-archive-card .button { width: 100%; }
  .benchmark-summary { grid-template-columns: 1fr; }
}
