:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 65);
  --surface-strong: oklch(0.92 0.014 65);
  --ink: oklch(0.19 0.018 65);
  --muted: oklch(0.43 0.018 65);
  --line: oklch(0.85 0.012 65);
  --primary: oklch(0.72 0.18 65);
  --primary-dark: oklch(0.49 0.14 57);
  --graphite: oklch(0.24 0.015 250);
  --graphite-soft: oklch(0.31 0.018 250);
  --white: oklch(1 0 0);
  --success: oklch(0.5 0.14 150);
  --danger: oklch(0.53 0.19 27);
  --shadow: 0 24px 70px oklch(0.18 0.02 65 / 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --container: min(1200px, calc(100vw - 40px));
  --display: "Arial Black", "Arial Narrow Bold", "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 4vw, 60px);
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
  background: oklch(1 0 0 / 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header.floating-header {
  top: 14px;
  width: var(--container);
  min-height: 66px;
  margin: 14px auto 0;
  padding: 9px 10px 9px 22px;
  color: var(--white);
  background: oklch(0.205 0.012 250 / .96);
  border: 1px solid oklch(1 0 0 / .13);
  border-radius: 999px;
  box-shadow: 0 18px 48px oklch(0.1 0.015 250 / .24), inset 0 1px 0 oklch(1 0 0 / .055);
  backdrop-filter: blur(18px) saturate(.86);
}

.floating-header .brand img { width: 188px; }
.floating-header .desktop-nav { color: oklch(.84 .006 250); }
.floating-header .desktop-nav a:hover { color: var(--white); }
.floating-header .button-compact { color: var(--graphite); background: var(--primary); border-radius: 999px; }
.floating-header .button-compact:hover { color: var(--white); background: var(--primary-dark); }

.brand { display: inline-flex; text-decoration: none; }
.brand img { width: 200px; height: auto; }

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { color: var(--primary-dark); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.64; transform: none; }
.button-compact { min-height: 44px; padding: 10px 16px; background: var(--ink); color: var(--white); }
.button-compact:hover, .button-primary:hover { background: var(--primary-dark); }
.button-primary { background: var(--graphite); color: var(--white); box-shadow: 0 12px 24px oklch(0.2 0.02 250 / 0.16); }
.button-light { background: var(--white); color: var(--ink); }

.hero {
  width: var(--container);
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.hero-copy { position: relative; z-index: 2; }

.hero-intro {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 9px 13px;
  background: var(--primary);
  color: var(--graphite);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1, .section h2, .calculator-section h2, .proof-section h2, .final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 { max-width: 12ch; font-size: clamp(44px, 5.3vw, 76px); }
.hero-lead { max-width: 57ch; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; color: var(--primary-dark); transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(4px); }

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(44px, 7vw, 76px) 0 0;
  border-top: 1px solid var(--line);
}

.hero-notes div { min-width: 0; padding: 18px 12px 0 0; }
.hero-notes dt { color: var(--primary-dark); font-size: 12px; font-weight: 800; }
.hero-notes dd { margin: 7px 0 0; font-size: 13px; font-weight: 700; line-height: 1.35; }

.hero-visual { position: relative; margin: 0; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 48%;
  height: calc(100% + 36px);
  z-index: -1;
  border: 1px solid oklch(0.38 0.008 250);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: oklch(0.29 0.008 250);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / .035);
}

.hero-visual img { width: 100%; aspect-ratio: 1.33; object-fit: cover; border-radius: 2px var(--radius-lg) var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.hero-visual figcaption {
  position: absolute;
  left: -28px;
  bottom: 24px;
  width: min(310px, 68%);
  padding: 18px 20px;
  background: var(--graphite);
  color: oklch(0.94 0.006 65);
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: 0 16px 36px oklch(0.12 0.01 250 / 0.24);
}

.hero-visual figcaption span { display: block; margin-bottom: 4px; color: var(--primary); font-weight: 800; }

.precision-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: oklch(0.37 0.012 250);
  color: var(--white);
}

.precision-strip p { margin: 0; min-height: 126px; padding: 28px clamp(20px, 5vw, 70px); background: var(--graphite); }
.precision-strip strong, .precision-strip span { display: block; }
.precision-strip strong { color: var(--primary); font-family: var(--display); font-size: 15px; }
.precision-strip span { margin-top: 9px; color: oklch(0.82 0.008 250); font-size: 13px; }

.section { width: var(--container); margin: 0 auto; padding: clamp(80px, 10vw, 140px) 0; }
.section-heading { max-width: 830px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-heading h2, .section h2, .calculator-section h2, .proof-section h2, .final-cta h2 { font-size: clamp(34px, 4.2vw, 60px); }
.section-heading p { max-width: 64ch; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 56px; }
.split-heading p { margin: 0 0 6px; }

.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fence-type {
  position: relative;
  display: grid;
  grid-template-rows: 240px 1fr auto;
  min-width: 0;
  min-height: 510px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px oklch(0.18 0.02 65 / .08);
}

.fence-type-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  grid-template-rows: 1fr auto;
  min-height: 460px;
  background: var(--graphite);
  color: var(--white);
  border-color: var(--graphite);
}
.fence-photo { min-width: 0; margin: 0; overflow: hidden; background: var(--surface-strong); }
.fence-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease; }
.fence-type:hover .fence-photo img { transform: scale(1.025); filter: saturate(1.04) contrast(1.02); }
.fence-type-featured .fence-photo { grid-row: 1 / 3; }
.type-copy { min-width: 0; align-self: start; padding: 26px 26px 0; }
.fence-type-featured .type-copy { align-self: center; padding: 52px 44px 22px; }
.type-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.type-copy p { margin: 16px 0 0; color: var(--muted); }
.fence-type-featured .type-copy p { color: oklch(0.8 0.01 250); }
.type-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.type-copy li { padding: 7px 10px; border: 1px solid oklch(0.72 0.18 65 / 0.45); border-radius: 999px; color: oklch(0.92 0.02 65); font-size: 12px; }
.type-action { justify-self: start; min-height: 44px; margin: 12px 26px 20px; padding: 8px 0; background: none; border: 0; font-weight: 800; cursor: pointer; }
.fence-type-featured .type-action { grid-column: 2; margin: 0 44px 34px; }
.type-action span { color: var(--primary-dark); }
.fence-type-featured .type-action span { color: var(--primary); }

.calculator-section {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(42px, 8vw, 110px);
  padding: clamp(72px, 9vw, 128px) max(20px, calc((100vw - 1200px) / 2));
  color: var(--white);
  background: var(--graphite);
  overflow: hidden;
}

.calculator-section::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -108px;
  width: 470px;
  height: 320px;
  border: 1px solid oklch(0.72 0.18 65 / .28);
  background-image:
    linear-gradient(oklch(0.72 0.18 65 / .11) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.72 0.18 65 / .11) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-7deg);
  pointer-events: none;
}
.calculator-intro { position: relative; z-index: 1; align-self: start; }
.calculator-intro > p:not(.calculator-mark) { max-width: 54ch; color: oklch(0.79 0.01 250); }
.calculator-mark { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calculator-mark::before { content: ""; width: 64px; height: 1px; background: var(--primary); }
.calculator-mark::after { content: ""; width: 7px; height: 7px; border: 2px solid var(--primary); transform: rotate(45deg); }
.calculator-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 12px; }
.calculator-route li { display: grid; gap: 8px; color: oklch(0.72 0.01 250); }
.calculator-route span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--graphite); background: var(--primary); border-radius: 50%; font-weight: 800; }

.lead-form { position: relative; z-index: 1; min-width: 0; }
.calculator-form { padding: clamp(24px, 4vw, 48px); color: var(--ink); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 28px 70px oklch(0.1 0.01 250 / .32); }
.lead-form fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.lead-form legend, .field-label, .lead-form > label:not(.consent-control):not(.honeypot) { display: grid; gap: 8px; font-weight: 700; }
.lead-form legend { margin-bottom: 13px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; transition: background-color 160ms ease, border-color 160ms ease; }
.choice-grid input:checked + span { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.choice-grid input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.choice-grid-six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid-six label, .choice-grid-six span { width: 100%; }
.choice-grid-six span { justify-content: center; text-align: center; }
.calculator-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calculator-control { display: grid; min-width: 0; gap: 8px; font-weight: 700; }
.calculator-control > span:first-child { font-size: 13px; }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 44px !important; }
.input-suffix em { position: absolute; top: 50%; right: 15px; color: var(--muted); font-style: normal; font-weight: 700; transform: translateY(-50%); pointer-events: none; }
.calculator-submit { width: 100%; margin-top: 22px; background: var(--primary-dark); box-shadow: none; }
.calculator-submit:hover { background: var(--graphite); }
.calculator-result {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background: var(--graphite);
  border: 1px solid oklch(1 0 0 / .12);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .05);
}
.calculator-result[hidden], .calculator-contact[hidden], .calculator-control[hidden] { display: none !important; }
.calculator-result p { margin: 0; }
.calculator-result-label { color: oklch(.78 .008 250); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.calculator-result strong { color: var(--primary); font-family: var(--display); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.calculator-minimum { margin-top: 7px !important; color: var(--white); font-weight: 800; }
.calculator-disclaimer { margin-top: 6px !important; color: oklch(.74 .008 250); font-size: 12px; }
.calculator-contact { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.calculator-contact-heading { display: grid; gap: 3px; }
.calculator-contact-heading strong { font-family: var(--display); font-size: 20px; }
.calculator-contact-heading span { color: var(--muted); font-size: 13px; }
.form-row-measure { display: grid; grid-template-columns: 1fr auto; margin: 26px 0; }
.form-row-measure label { font-weight: 700; }
.form-row-measure output { color: var(--primary-dark); font-weight: 800; }
.form-row-measure input { grid-column: 1 / -1; width: 100%; margin-top: 12px; accent-color: var(--primary-dark); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin: 16px 0; }
.form-grid label { display: grid; gap: 8px; font-weight: 700; }
.form-field { display: grid !important; grid-template-rows: auto 52px minmax(18px, auto); align-content: start; gap: 8px; min-width: 0; font-weight: 700; }
.form-field input { min-width: 0; align-self: stretch; }
.field-spacer { visibility: hidden; }

.lead-form input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .lead-form select, .lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form textarea { resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: oklch(0.48 0.014 65); opacity: 1; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--primary-dark); box-shadow: 0 0 0 3px oklch(0.72 0.18 65 / .18); outline: 0; }
.lead-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.lead-form small[data-error-for], .lead-form .field-spacer { display: block; min-height: 18px; color: var(--danger); font-size: 12px; font-weight: 600; line-height: 1.35; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent-control { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 18px; color: var(--muted); font-size: 12px; cursor: pointer; }
.consent-control input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary-dark); }
.consent-control a { color: var(--ink); }
.form-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-weight: 700; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

.process-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.process-photo { position: relative; margin: 0; }
.process-photo img { width: 100%; aspect-ratio: .92; object-fit: cover; border-radius: var(--radius-lg); }
.process-photo figcaption { width: 88%; margin: -34px auto 0; position: relative; padding: 18px 20px; color: var(--white); background: var(--graphite); border-radius: var(--radius-sm); font-size: 13px; }
.process-list { margin: 42px 0 0; padding: 0; list-style: none; counter-reset: process; }
.process-list li { counter-increment: process; display: grid; grid-template-columns: 50px 1fr; gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-list li::before { content: counter(process, decimal-leading-zero); grid-row: 1 / 3; color: var(--primary-dark); font-family: var(--display); font-size: 16px; }
.process-list strong { font-size: 18px; }
.process-list span { color: var(--muted); }

.compare-section { padding-top: 40px; }
.compare-scroll { overflow-x: auto; border-block: 1px solid var(--line); }
.compare-scroll:focus-visible { outline-offset: 6px; }
table { width: 100%; min-width: 800px; border-collapse: collapse; text-align: left; }
th, td { padding: 20px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: 12px; font-weight: 800; }
tbody th { font-family: var(--display); font-size: 14px; }
tbody tr:hover { background: var(--surface); }

.proof-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: clamp(72px, 9vw, 120px) max(20px, calc((100vw - 1200px) / 2)); color: var(--white); background: var(--primary-dark); }
.proof-section > div p { max-width: 52ch; color: oklch(0.9 0.025 57); }
.proof-section ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid oklch(1 0 0 / .24); }
.proof-section li { display: grid; grid-template-columns: .45fr 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid oklch(1 0 0 / .24); }
.proof-section li span { color: oklch(0.9 0.03 57); font-size: 13px; }
.proof-section li strong { font-weight: 700; }

.faq-section { padding-bottom: clamp(80px, 11vw, 160px); }
.faq-list { max-width: 920px; margin-left: auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 30px; padding: 24px 0; font-family: var(--display); font-size: clamp(17px, 2vw, 23px); line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; flex: 0 0 34px; height: 34px; place-items: center; color: var(--graphite); background: var(--primary); border-radius: 50%; font-family: var(--body); font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 70ch; margin: -2px 50px 24px 0; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 8vw, 110px); padding: clamp(72px, 9vw, 124px) max(20px, calc((100vw - 1200px) / 2)); color: var(--white); background: var(--graphite); }
.final-cta > div > p:not(.final-signal) { max-width: 52ch; color: oklch(0.8 0.01 250); }
.final-signal { position: relative; display: flex; width: min(260px, 72%); height: 42px; align-items: center; justify-content: space-between; gap: 0; }
.final-signal::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: oklch(0.72 0.18 65 / .72); }
.final-signal span { position: relative; width: 9px; height: 9px; background: var(--primary); border: 2px solid var(--graphite); outline: 1px solid var(--primary); transform: rotate(45deg); }
.compact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px; color: var(--ink); background: var(--primary); border-radius: var(--radius-lg); }
.compact-form > label:not(.consent-control):not(.honeypot) { gap: 7px; }
.compact-form > label:nth-of-type(3), .compact-form .consent-control, .compact-form .button, .compact-form .form-status { grid-column: 1 / -1; }
.compact-form .consent-control { color: var(--graphite); }
.compact-form .consent-control a { color: var(--graphite); }

.site-footer { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 50px; padding: 64px max(20px, calc((100vw - 1200px) / 2)) 28px; background: var(--surface); }
.footer-brand img { width: 200px; }
.footer-brand p { max-width: 44ch; color: var(--muted); font-size: 14px; }
.site-footer nav, .footer-details { display: grid; align-content: start; gap: 8px; font-size: 13px; }
.site-footer nav strong, .footer-details strong { margin-bottom: 6px; font-family: var(--display); font-size: 12px; }
.site-footer nav a { text-decoration: none; }
.footer-details p { margin: 0; }
.footer-cookie-button { width: fit-content; padding: 0; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.footer-bottom { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 18px;
  width: min(880px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 20px;
  color: var(--white);
  background: var(--graphite);
  border: 1px solid oklch(1 0 0 / .18);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px oklch(0.12 0.01 250 / .36);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-family: var(--display); font-size: 14px; }
.cookie-banner p { margin: 5px 0 0; color: oklch(0.82 0.01 250); font-size: 12px; }
.cookie-banner a { color: var(--primary); }
.cookie-actions { display: flex; gap: 8px; }
.button-cookie { min-height: 44px; padding: 10px 13px; color: var(--white); background: transparent; border-color: oklch(1 0 0 / .46); font-size: 12px; }
.button-cookie:hover { background: var(--white); color: var(--graphite); }

.legal-page { background: var(--surface); }
.legal-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.legal-header img { width: 200px; }
.legal-main { width: min(1120px, calc(100vw - 40px)); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 0; }
.legal-main-single { width: min(820px, calc(100vw - 40px)); }
.legal-title { min-width: 0; max-width: 880px; margin-bottom: clamp(46px, 7vw, 80px); overflow-wrap: anywhere; }
.legal-title > p:first-child { color: var(--primary-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.legal-title h1 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.legal-title > p:last-child { max-width: 63ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.legal-main:not(.legal-main-single) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: clamp(48px, 8vw, 100px); }
.legal-main:not(.legal-main-single) .legal-title { grid-column: 1 / -1; }
.legal-toc { position: sticky; top: 100px; display: grid; min-width: 0; align-self: start; gap: 8px; padding: 22px; background: var(--graphite); color: var(--white); border-radius: var(--radius); overflow-wrap: anywhere; }
.legal-toc strong { margin-bottom: 7px; color: var(--primary); font-family: var(--display); font-size: 13px; }
.legal-toc a { color: oklch(0.84 .01 250); font-size: 13px; text-decoration: none; }
.legal-toc a:hover { color: var(--white); }
.legal-content { min-width: 0; padding: clamp(26px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-wrap: anywhere; }
.legal-content section { scroll-margin-top: 110px; }
.legal-content h2 { margin: 44px 0 12px; font-family: var(--display); font-size: clamp(20px, 2.5vw, 28px); line-height: 1.25; letter-spacing: -.025em; }
.legal-content h2:first-child, .legal-content section:first-child h2 { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 22px; }
.legal-content code { padding: 2px 5px; color: var(--ink); background: var(--surface); border-radius: 5px; }
.legal-note { margin-top: 46px; padding: 22px; background: oklch(.92 .035 70); border-left: 5px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-note strong { font-family: var(--display); font-size: 14px; }
.legal-note p { margin: 8px 0 0; }
.legal-footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px max(20px, calc((100vw - 1120px) / 2)); color: oklch(.82 .01 250); background: var(--graphite); font-size: 12px; }
.legal-footer p { margin: 0; }

@keyframes hero-settle {
  from { transform: translateY(12px); filter: saturate(.7); }
  to { transform: translateY(0); filter: saturate(1); }
}

.hero-visual img { animation: hero-settle 700ms cubic-bezier(.22, 1, .36, 1) both; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(42px, 5.6vw, 60px); }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fence-type-featured { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 32px, 700px); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 54px; }
  .hero h1 { max-width: 13ch; }
  .hero-visual { margin-left: 22px; }
  .hero-visual img { aspect-ratio: 1.45; }
  .precision-strip { grid-template-columns: 1fr; }
  .precision-strip p { min-height: auto; }
  .split-heading, .calculator-section, .process-section, .proof-section, .final-cta { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .fence-type-featured { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 320px auto auto; }
  .fence-type-featured .fence-photo { grid-row: auto; }
  .fence-type-featured .type-copy { padding: 30px 28px 8px; }
  .fence-type-featured .type-action { grid-column: auto; margin: 8px 28px 24px; }
  .calculator-section, .proof-section, .final-cta { padding-inline: 20px; }
  .calculator-intro { max-width: 700px; }
  .calculator-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-photo img { aspect-ratio: 1.45; }
  .proof-section { gap: 38px; }
  .faq-list { margin: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-bottom { grid-column: 1 / -1; }
  .legal-main:not(.legal-main-single) { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; margin-bottom: 20px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding-block: 9px; }
  .brand img { width: 142px; }
  .site-header.floating-header { top: 8px; width: calc(100% - 24px); margin-top: 8px; padding: 7px 8px 7px 14px; }
  .floating-header .brand img { width: 138px; }
  .site-header .button { min-height: 40px; padding: 9px 12px; font-size: 12px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-lead { margin-top: 20px; }
  .hero-notes { grid-template-columns: 1fr; }
  .hero-notes div { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-notes dd { margin: 0; }
  .hero-visual { margin-left: 0; }
  .hero-visual::before { display: none; }
  .hero-visual figcaption { position: static; width: 100%; margin-top: -1px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading p { font-size: 16px; }
  .fence-type, .fence-type-featured { min-height: 0; }
  .fence-type { grid-template-rows: 250px auto auto; }
  .fence-type-featured { grid-template-rows: 280px auto auto; }
  .fence-photo { min-height: 0; }
  .type-action { width: fit-content; align-self: end; }
  .calculator-form { padding: 22px 18px; }
  .choice-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-controls { grid-template-columns: 1fr; }
  .form-grid, .compact-form { grid-template-columns: 1fr; }
  .compact-form > * { grid-column: 1 !important; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit-row .button { width: 100%; }
  .process-photo img { aspect-ratio: 1; }
  .proof-section li { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-brand, .footer-bottom { grid-column: auto; }
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .legal-content { padding: 24px 18px; }
  .legal-footer { flex-direction: column; }
}

@media (max-width: 420px) {
  :root { --container: calc(100% - 28px); }
  .site-header .button { padding-inline: 10px; }
  .site-header.floating-header { gap: 6px; padding-left: 11px; }
  .floating-header .brand img { width: 112px; }
  .floating-header .button { min-height: 40px; padding-inline: 10px; font-size: 10.5px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero h1 { font-size: clamp(35px, 10.8vw, 44px); overflow-wrap: anywhere; }
  .hero-visual img { min-height: 340px; aspect-ratio: auto; }
  .type-copy { padding: 22px 20px 0; }
  .type-action { margin: 10px 20px 18px; }
  .fence-type-featured .type-copy { padding: 24px 20px 4px; }
  .fence-type-featured .type-action { margin: 8px 20px 20px; }
  .calculator-section, .proof-section, .final-cta { padding-inline: 14px; }
  .calculator-route { gap: 4px; font-size: 10px; }
  .choice-grid span { font-size: 12px; }
  .choice-grid-six { grid-template-columns: 1fr 1fr; }
  .choice-grid-six span { min-height: 46px; padding-inline: 7px; font-size: 11px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .site-footer { padding-inline: 16px; }
  .legal-header { gap: 12px; padding-inline: 14px; }
  .legal-header img { width: 138px; }
  .legal-header .text-link { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
