:root {
  color-scheme: light;
  --ink: #18202a;
  --ink-soft: #44515f;
  --muted: #66737f;
  --line: #d7dee4;
  --line-strong: #aab7c2;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --wash-strong: #edf3f1;
  --green: #2f6f5e;
  --green-dark: #194d42;
  --amber: #b36a19;
  --red: #a33b2b;
  --blue: #315f86;
  --shadow: 0 18px 55px rgba(22, 32, 42, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(215, 222, 228, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--green);
  border-right-color: var(--amber);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:focus-visible,
.nav-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(49, 95, 134, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  background-size: 42px 42px, auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero h1,
.section h2,
.closing h2 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.45rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.78rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: #fff;
}

.button.primary:focus-visible,
.button.primary:hover {
  background: #123b33;
}

.button.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.button.secondary:focus-visible,
.button.secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.hero-brief {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-brief div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-brief div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.brief-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-brief strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background: var(--wash);
}

#what-you-get {
  padding-top: clamp(2rem, 4vw, 3rem);
}

#what-you-get .change-table {
  margin-top: 0;
}

.section-grid,
.section-heading,
.change-table,
.policy-box,
.diagram-grid,
.benefit-grid,
.faq-list,
.closing-inner,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.section h2,
.closing h2 {
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
}

.prose p,
.closing-copy p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.prose p:last-child,
.closing-copy p:last-child {
  margin-bottom: 0;
}

.change-table {
  margin-top: clamp(2.5rem, 5vw, 4.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.change-table > h2,
.change-table > h3 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.change-columns > div {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.change-columns > div:first-child {
  border-right: 1px solid var(--line);
  background: #fbfdfc;
}

.change-columns h3,
.change-columns h4 {
  margin: 0 0 0.85rem;
  color: var(--green-dark);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin: 0.5rem 0;
  color: var(--ink-soft);
}

.policy-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.1), transparent 42%),
    #fff;
}

.policy-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(47, 111, 94, 0.28);
  border-radius: 8px;
  background: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.policy-box h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.policy-box p {
  margin: 0;
  color: var(--ink-soft);
}

.policy-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policy;
}

.policy-list li {
  position: relative;
  margin: 0;
  border-left: 3px solid var(--line);
  padding: 0.1rem 0 0.1rem 2.4rem;
  color: var(--ink-soft);
}

.policy-list li::before {
  position: absolute;
  left: 0.75rem;
  top: 0.14rem;
  color: var(--green-dark);
  content: counter(policy, decimal-leading-zero);
  counter-increment: policy;
  font-size: 0.72rem;
  font-weight: 850;
}

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

.diagram-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(24, 32, 42, 0.05);
}

.diagram-card h3 {
  min-height: 3.1rem;
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.diagram-frame {
  aspect-ratio: 13 / 9;
}

.diagram-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.svg-bg {
  fill: #f9fbfb;
}

.lot-fill {
  fill: #fff;
  stroke: #c8d3db;
  stroke-width: 1.5;
}

.lot-line {
  stroke: #6f7f8a;
  stroke-width: 2;
}

.lot-line.internal {
  stroke: #315f86;
  stroke-dasharray: 6 6;
}

.building {
  fill: #e8f1ef;
  stroke: #194d42;
  stroke-width: 2.5;
}

.building.proposed {
  fill: #dcece6;
}

.envelope {
  fill: rgba(179, 106, 25, 0.09);
  stroke: #b36a19;
  stroke-dasharray: 8 7;
  stroke-width: 2;
}

.party-wall {
  stroke: #a33b2b;
  stroke-linecap: round;
  stroke-width: 6;
}

.gap {
  fill: rgba(179, 106, 25, 0.16);
  stroke: #b36a19;
  stroke-dasharray: 5 5;
  stroke-width: 2;
}

.dimension,
.dimension-tick {
  fill: none;
  stroke: #44515f;
  stroke-width: 1.8;
}

.svg-label {
  fill: #33414d;
  font-size: 13px;
  font-weight: 750;
}

.svg-label.strong {
  fill: #a33b2b;
  font-size: 14px;
}

.svg-note {
  fill: #44515f;
  font-size: 14px;
  font-weight: 760;
}

.diagram-caption {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1.2rem;
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.28;
}

.benefit-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  color: var(--ink);
  font-weight: 820;
  line-height: 1.35;
}

summary:focus-visible {
  outline: 3px solid rgba(47, 111, 94, 0.35);
  outline-offset: 2px;
}

details p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem 1.15rem;
  color: var(--ink-soft);
}

.closing {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.closing .eyebrow {
  color: #a9d4c8;
}

.closing h2 {
  color: #fff;
}

.closing-copy {
  max-width: 820px;
  margin: 1.4rem 0 2rem;
}

.closing-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.closing .button.primary {
  background: #fff;
  color: var(--ink);
}

.closing .button.primary:focus-visible,
.closing .button.primary:hover {
  background: #e8f1ef;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-inner,
  .section-grid,
  .policy-box {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-brief {
    max-width: 620px;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    font-size: 0.86rem;
  }

  .hero-inner,
  .section-grid,
  .section-heading,
  .change-table,
  .policy-box,
  .diagram-grid,
  .benefit-grid,
  .faq-list,
  .closing-inner,
  .site-footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .change-columns,
  .diagram-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .change-columns > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .diagram-card h3 {
    min-height: 0;
  }

  .benefit-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
