﻿/* SheetMetalCalc — Design Preview v2 (industrial premium) */

:root {
  --graphite: #0e1218;
  --navy: #15202b;
  --navy-soft: #1c2a38;
  --steel: #5c6b7a;
  --steel-light: #8b98a8;
  --off-white: #f6f4f0;
  --canvas: #faf9f7;
  --white: #ffffff;
  --ink: #1a2332;
  --ink-muted: #3d4a59;
  --ink-soft: #5a6674;
  --electric: #2b8cff;
  --electric-hover: #1a74db;
  --electric-glow: rgba(43, 140, 255, 0.22);
  --amber: #e8952e;
  --amber-soft: rgba(232, 149, 46, 0.15);
  --border: #d9dde4;
  --border-dark: rgba(255, 255, 255, 0.1);
  --success: #22a06b;

  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Segoe UI Mono", monospace;

  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 3vw, 2.5rem);
  --text-4xl: clamp(2.5rem, 4.2vw, 3.35rem);
  --text-display: clamp(2.625rem, 5vw, 3.75rem);

  --container: 80rem;
  --header-h: 4.25rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-deep: 0 24px 60px rgba(14, 18, 24, 0.35);
  --shadow-lift: 0 16px 40px rgba(14, 18, 24, 0.12);
  --ease: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-muted);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--electric);
}

a:hover {
  color: var(--electric-hover);
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.btn--primary {
  background: var(--electric);
  color: var(--white);
  border-color: var(--electric);
  box-shadow: 0 4px 14px var(--electric-glow);
}

.btn--primary:hover {
  background: var(--electric-hover);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--steel);
  color: var(--ink);
}

.btn--amber {
  background: var(--amber);
  color: var(--graphite);
  border-color: var(--amber);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--border-dark);
}

.btn--block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-header--on-dark {
  background: rgba(14, 18, 24, 0.92);
  border-bottom-color: var(--border-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.site-header--on-dark .logo {
  color: var(--white);
}

.logo__mark {
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a,
.nav-desktop__item > button {
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.nav-desktop a:hover,
.nav-desktop__item > button:hover,
.nav-desktop a.is-active {
  color: var(--ink);
  background: rgba(21, 32, 43, 0.06);
}

.nav-desktop a.is-active {
  color: var(--electric);
}

.site-header--on-dark .nav-desktop a,
.site-header--on-dark .nav-desktop__item > button {
  color: rgba(255, 255, 255, 0.72);
}

.site-header--on-dark .nav-desktop a.is-active {
  color: var(--electric);
  background: rgba(43, 140, 255, 0.12);
}

.nav-desktop__item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 17rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.nav-desktop__item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius);
}

.nav-dropdown a:hover {
  background: var(--off-white);
  color: var(--ink);
}

.header-actions {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle__bars {
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.nav-mobile {
  display: none;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a,
.nav-mobile summary {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-mobile details summary {
  cursor: pointer;
  list-style: none;
}

.nav-mobile details summary::-webkit-details-marker {
  display: none;
}

.nav-mobile details a {
  padding-left: 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-mobile__cta {
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* Kicker & section titles */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.kicker--light {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
}

.kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  max-width: 38rem;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.section {
  padding: 4.5rem 0;
}

/* Hero v2 */
.hero-v2 {
  position: relative;
  padding: 3.5rem 0 5rem;
  background: var(--off-white);
  overflow: hidden;
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(43, 140, 255, 0.08), transparent),
    linear-gradient(180deg, var(--off-white), var(--canvas));
  pointer-events: none;
}

.hero-v2__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-v2 h1 {
  margin: 0 0 1.25rem;
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-v2__lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-v2__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-v2__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-v2__trust svg {
  flex-shrink: 0;
  color: var(--electric);
}

.hero-v2__visual {
  position: relative;
  min-height: 28rem;
}

.hero-v2__sheet {
  position: absolute;
  inset: 0.5rem 0 auto auto;
  width: min(100%, 22rem);
  z-index: 0;
  opacity: 0.95;
}

.hero-v2__app {
  position: relative;
  z-index: 1;
  margin: 3rem 0 0 2rem;
  max-width: 26rem;
  margin-left: auto;
}

@media (max-width: 1023px) {
  .hero-v2__app {
    margin: 0 auto;
  }

  .hero-v2__sheet {
    right: 50%;
    transform: translateX(50%);
    opacity: 0.35;
  }
}

@media (min-width: 1024px) {
  .hero-v2__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .hero-v2 {
    padding: 4.5rem 0 6rem;
  }
}

/* Dark app preview (hero + calc) */
.app-shell {
  background: linear-gradient(165deg, #1a2531 0%, var(--graphite) 55%, #0a0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.app-shell__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.app-shell__dots {
  display: flex;
  gap: 0.35rem;
}

.app-shell__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.app-shell__dots span:first-child {
  background: #ff5f57;
}

.app-shell__dots span:nth-child(2) {
  background: #febc2e;
}

.app-shell__dots span:nth-child(3) {
  background: #28c840;
}

.app-shell__body {
  padding: 1.25rem;
}

.app-field {
  margin-bottom: 1rem;
}

.app-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.app-field__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.app-field__control--muted {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.app-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.app-results {
  margin-top: 1rem;
  padding: 1.15rem;
  background: rgba(43, 140, 255, 0.1);
  border: 1px solid rgba(43, 140, 255, 0.35);
  border-radius: var(--radius);
}

.app-results__label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
}

.app-results__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.app-results__hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

.app-shell__cta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-shell__cta .btn {
  flex: 1;
  min-height: 2.5rem;
  font-size: 0.8125rem;
}

/* Tools bento */
.tools-bento {
  display: grid;
  gap: 1.25rem;
}

.tool-featured {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 2.25rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tool-featured::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, var(--electric-glow), transparent 65%);
  pointer-events: none;
}

.tool-featured h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.tool-featured p {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
  max-width: 28rem;
  line-height: 1.55;
}

.tool-featured__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius);
}

.tool-featured__illus {
  position: relative;
  z-index: 1;
  max-width: 20rem;
  justify-self: end;
}

.tool-support-grid {
  display: grid;
  gap: 1.25rem;
}

.tool-support {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.tool-support:hover {
  border-color: #c5ccd6;
  box-shadow: var(--shadow-lift);
}

.tool-support__icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--navy);
}

.tool-support:nth-child(2) .tool-support__icon {
  color: var(--electric);
  background: rgba(43, 140, 255, 0.1);
}

.tool-support:nth-child(3) .tool-support__icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.tool-support h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.tool-support p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.tool-support a {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 768px) {
  .tools-bento {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }

  .tool-support-grid {
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .tool-featured {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2.75rem 3rem;
  }
}

/* Process rail */
.process-rail {
  position: relative;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 1rem;
  }

  .process-rail::before {
    content: "";
    position: absolute;
    top: 2.6rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--electric), var(--border));
  }
}

.process-step {
  position: relative;
  padding: 0 1rem 0 0;
}

.process-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
  border: 3px solid var(--off-white);
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
}

.process-step p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Materials */
.materials-showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.material-tile {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  min-height: 7.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}

.material-tile__metal {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.material-tile__metal--steel {
  background: linear-gradient(135deg, #6b737c 0%, #3e454d 40%, #9aa3ac 100%);
}

.material-tile__metal--stainless {
  background: linear-gradient(135deg, #d8dde3 0%, #9aa5b0 45%, #f2f5f7 100%);
}

.material-tile__metal--aluminum {
  background: linear-gradient(135deg, #e8ebee 0%, #b8c0c8 50%, #f5f7f9 100%);
}

.material-tile__metal--galv {
  background: linear-gradient(135deg, #8fa0b0 0%, #5a6d7d 50%, #c5d0d8 100%);
}

.material-tile__metal--copper {
  background: linear-gradient(135deg, #c8794a 0%, #8f4e28 50%, #dba070 100%);
}

.material-tile__metal--brass {
  background: linear-gradient(135deg, #d4b06a 0%, #9a7a38 50%, #e8cc8a 100%);
}

.material-tile__content {
  position: relative;
  z-index: 1;
}

.material-tile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.material-tile span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .materials-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

.materials-intro {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .materials-intro {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

/* Editorial features */
.editorial {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.editorial__copy h2 {
  margin: 0 0 1rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.editorial__copy > p {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.editorial__visual {
  padding: 2rem;
  background: var(--navy);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.editorial__stat strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.editorial__stat span {
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.feature-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.feature-checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.feature-checks svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--success);
}

@media (min-width: 1024px) {
  .editorial {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Formula dark */
.formula-dark {
  padding: 2.5rem;
  background: var(--graphite);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.formula-dark__eq {
  margin: 0 0 2rem;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.formula-dark__eq em {
  font-style: normal;
  color: var(--electric);
}

.formula-vars {
  display: grid;
  gap: 0.75rem;
}

.formula-vars div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
}

.formula-vars dt {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.formula-vars dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .formula-dark {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }

  .formula-dark__eq {
    margin: 0;
  }
}

/* Gauge chart */
.gauge-compare {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.gauge-compare__intro h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--ink);
}

.gauge-compare__intro p {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.gauge-chart {
  display: grid;
  gap: 1.25rem;
}

.gauge-chart__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 4.5rem;
  gap: 1rem;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.gauge-chart__track {
  height: 0.65rem;
  background: var(--off-white);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gauge-chart__fill {
  height: 100%;
  border-radius: 999px;
}

.gauge-chart__row:nth-child(1) .gauge-chart__fill {
  width: 72%;
  background: linear-gradient(90deg, #4a5560, #8a959f);
}

.gauge-chart__row:nth-child(2) .gauge-chart__fill {
  width: 48%;
  background: linear-gradient(90deg, var(--electric), #6bb5ff);
}

.gauge-chart__row:nth-child(3) .gauge-chart__fill {
  width: 58%;
  background: linear-gradient(90deg, #b8734a, #dba070);
}

.gauge-chart__row:nth-child(4) .gauge-chart__fill {
  width: 40%;
  background: linear-gradient(90deg, #c9a24a, #e8cc7a);
}

.gauge-chart__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  background: var(--off-white);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (min-width: 1024px) {
  .gauge-compare {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* Guides editorial */
.guides-editorial {
  display: grid;
  gap: 1.25rem;
}

.guide-featured {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease);
}

.guide-featured:hover {
  box-shadow: var(--shadow-lift);
}

.guide-featured__media {
  position: relative;
  height: 12rem;
  background: var(--navy);
  overflow: hidden;
}

.guide-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-featured__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 40%, rgba(43, 140, 255, 0.25)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 8px
    );
}

.guide-featured__cat {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
}

.guide-featured__body {
  padding: 1.75rem;
}

.guide-featured h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.guide-featured p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.guide-featured__link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--electric);
}

.guide-stack {
  display: grid;
  gap: 1rem;
}

.guide-compact {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.guide-compact:hover {
  border-color: #c0c8d2;
}

.guide-compact__thumb {
  height: 4.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy-soft), var(--graphite));
}

.guide-compact:nth-child(2) .guide-compact__thumb {
  background: linear-gradient(145deg, #2a3f54, var(--navy));
}

.guide-compact:nth-child(3) .guide-compact__thumb {
  background: linear-gradient(145deg, #3d3528, #5c4f3a);
}

.guide-compact:nth-child(4) .guide-compact__thumb {
  background: linear-gradient(145deg, #1e3d52, #2b5875);
}

.guide-compact__cat {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.guide-compact h3 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.guide-compact p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .guides-editorial {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}

/* FAQ split */
.faq-split {
  display: grid;
  gap: 2.5rem;
}

.faq-split__intro h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--ink);
}

.faq-split__intro p {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 2px;
  background: var(--steel);
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform var(--ease);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-item__answer {
  display: none;
  padding: 0 0 1.15rem;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

@media (min-width: 1024px) {
  .faq-split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
}

/* CTA finale */
.cta-finale {
  padding: 4rem 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  border-top: 3px solid var(--amber);
}

.cta-finale__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-finale h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.cta-finale p {
  margin: 0;
  font-size: var(--text-lg);
  max-width: 32rem;
}

@media (min-width: 768px) {
  .cta-finale__inner {
    grid-template-columns: 1fr auto;
  }
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

/* Calculator page */
.calc-hero {
  padding: 2.5rem 0 2rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.calc-hero h1 {
  margin: 0 0 0.75rem;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--ink);
}

.calc-hero p {
  margin: 0;
  max-width: 40rem;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--steel-light);
}

.breadcrumbs li:last-child::after {
  content: none;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* Calculator workspace UI (form, grid, sidebar) loads via sheetmetalcalc-core plugin CSS. */
.calc-below {
  padding: 0 0 3rem;
}

.calc-below .formula-dark {
  margin-bottom: 2.5rem;
}

.related-links {
  display: grid;
  gap: 0.5rem;
}

.related-links a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-links a:hover {
  border-color: var(--electric);
  color: var(--electric);
}
/* --- WordPress theme utilities --- */
.section--white {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section--off-white {
  background: var(--off-white);
}

.section--guides {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.section--faq {
  padding-bottom: 3rem;
}

.section--gauge {
  padding-top: 0;
}

.section-lead {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.kicker--engineering {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  border-color: transparent;
}

.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a {
  color: var(--electric);
}

.nav-mobile .current-menu-item > a {
  color: var(--electric);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop .menu-item-guides {
  list-style: none;
  position: relative;
}

.nav-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile .nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav-mobile .nav-menu a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content .entry-content {
  max-width: 42rem;
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ink-muted);
}

.page-content .entry-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--ink);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/**
 * Homepage unified tokens (R1): canonical --smc-* definitions and homepage-only
 * overrides live in assets/css/home-cinematic.css under body.home-cinematic.
 * Global :root tokens above remain for non-home templates until a later phase.
 */
