:root {
  color-scheme: light;
  --ink: #282a32;
  --muted: #687078;
  --line: #dce1e7;
  --page: #eff0f4;
  --hero: #e8e8ef;
  --card: #ffffff;
  --panel: #f8faf8;
  --teal: #45bfc0;
  --teal-dark: #25999a;
  --teal-soft: #d9fbfa;
  --mint: #bde9df;
  --lime: #d5ef72;
  --violet: #9b9fac;
  --dark: #4b4d59;
  --accent: #4fd0cd;
  --warning: #e0a62d;
  --clay: #d8754a;
  --shadow: 0 28px 80px rgba(47, 50, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--page);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fbfbfc 0%, #f5f6f7 45%, #eceef1 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-align: right;
}

body:not(.home-page) {
  background:
    radial-gradient(circle at 14% 22%, rgba(79, 208, 205, 0.16), transparent 18rem),
    radial-gradient(circle at 86% 72%, rgba(213, 239, 114, 0.14), transparent 20rem),
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 46%, #eceef1 100%);
}

body:not(.home-page)::before,
body:not(.home-page)::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body:not(.home-page)::before {
  left: clamp(-10rem, -8vw, -3rem);
  bottom: clamp(-13rem, -11vw, -5rem);
  z-index: 0;
  width: clamp(26rem, 46vw, 42rem);
  height: clamp(26rem, 46vw, 42rem);
  background: url("./assets/cement-ball-studio.png") center / contain no-repeat;
  opacity: 0.32;
  filter:
    drop-shadow(0 42px 74px rgba(60, 64, 67, 0.18))
    saturate(0.85);
}

body:not(.home-page)::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(75, 77, 89, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 77, 89, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

body.bag-page {
  background:
    radial-gradient(circle at 13% 15%, rgba(79, 208, 205, 0.12), transparent 20rem),
    linear-gradient(180deg, #15171c 0%, #25282d 31rem, #eff0f4 52rem);
}

body.bag-page::before {
  left: clamp(-12rem, -9vw, -4rem);
  top: 5.8rem;
  bottom: auto;
  width: clamp(31rem, 58vw, 52rem);
  height: clamp(17rem, 34vw, 30rem);
  background: url("./assets/concrete-bag-stack-studio.png") center / cover no-repeat;
  border-radius: 34px;
  opacity: 0.28;
  filter:
    saturate(0.9)
    drop-shadow(0 34px 74px rgba(0, 0, 0, 0.34));
}

body.slab-page,
body.driveway-page {
  background:
    radial-gradient(circle at 12% 16%, rgba(69, 191, 192, 0.14), transparent 20rem),
    radial-gradient(circle at 84% 54%, rgba(213, 239, 114, 0.14), transparent 19rem),
    linear-gradient(180deg, #f7f8f8 0%, #eef1ee 42rem, #eceef1 100%);
}

body.slab-page::before,
body.driveway-page::before {
  left: clamp(-10rem, -6vw, -2rem);
  top: 5.4rem;
  bottom: auto;
  width: clamp(31rem, 54vw, 48rem);
  height: clamp(19rem, 34vw, 30rem);
  background: url("./assets/sidewalk-slab-studio.png") center / cover no-repeat;
  border-radius: 34px;
  opacity: 0.22;
  filter:
    saturate(0.95)
    drop-shadow(0 34px 70px rgba(61, 68, 62, 0.18));
}

body.yardage-page {
  background:
    radial-gradient(circle at 16% 20%, rgba(79, 208, 205, 0.09), transparent 19rem),
    radial-gradient(circle at 84% 55%, rgba(181, 192, 255, 0.12), transparent 19rem),
    linear-gradient(180deg, #e9ebed 0%, #dfe4e5 42rem, #eceef1 100%);
}

body.yardage-page::before {
  left: clamp(-9rem, -5vw, -1.5rem);
  top: 5.6rem;
  bottom: auto;
  width: clamp(31rem, 53vw, 48rem);
  height: clamp(19rem, 34vw, 30rem);
  background: url("./assets/concrete-block-stack-studio.png") center / cover no-repeat;
  border-radius: 34px;
  opacity: 0.18;
  filter:
    brightness(0.62)
    contrast(1.08)
    saturate(0.82)
    drop-shadow(0 34px 70px rgba(61, 64, 68, 0.18));
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--dark);
  color: white;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.15rem 0 0.4rem;
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.96), rgba(246, 247, 249, 0.78));
  backdrop-filter: blur(16px);
}

.nav,
.page,
.footer-inner {
  width: min(1364px, calc(100% - 60px));
  margin: 0 auto;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.42rem;
  justify-items: end;
}

.brand,
.nav-links,
.nav-links a {
  min-height: 52px;
  border-radius: 12px;
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.72rem;
  min-width: 150px;
  padding: 0 1.3rem;
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand span:last-child {
  color: var(--teal);
  overflow-wrap: anywhere;
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.42rem;
  padding: 0;
  background: transparent;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  padding: 0 1.45rem;
  color: white;
  background: var(--violet);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: right;
}

.nav-links a:hover,
.button.secondary {
  background: var(--dark);
  color: white;
}

.nav-links a:last-child {
  background: var(--dark);
}

.page {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0 3rem;
}

.hero {
  position: relative;
  display: block;
  min-height: 0;
}

.hero-showcase {
  position: relative;
  min-height: 870px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 36% 62%, rgba(180, 184, 186, 0.22), transparent 17rem),
    radial-gradient(circle at 63% 82%, rgba(215, 217, 219, 0.28), transparent 18rem),
    linear-gradient(180deg, #f8f8fa 0%, #f1f2f5 45%, #e9ebef 100%);
}

.showcase-topline {
  position: absolute;
  inset: 1.6rem 1.8rem auto;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
  color: rgba(70, 73, 84, 0.54);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bio-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bio-orb {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: url("./assets/cement-ball-studio.png") center / contain no-repeat;
  opacity: 0.98;
  box-shadow: none;
  filter:
    drop-shadow(0 34px 58px rgba(60, 64, 67, 0.22))
    drop-shadow(0 8px 16px rgba(60, 64, 67, 0.1));
}

.bio-orb::before,
.bio-orb::after {
  display: none;
}

.bio-orb-large {
  width: clamp(16rem, 25vw, 23rem);
  height: clamp(16rem, 25vw, 23rem);
  left: 16.8%;
  top: 39%;
  transform: rotate(9deg);
}

.bio-orb-small {
  width: clamp(9rem, 16vw, 14rem);
  height: clamp(9rem, 16vw, 14rem);
  right: 23.5%;
  top: 17%;
  transform: rotate(-17deg);
}

.bio-orb-glow {
  width: 28rem;
  height: 28rem;
  left: 43%;
  bottom: -15rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(83, 87, 89, 0.2), rgba(83, 87, 89, 0) 66%);
  filter: blur(22px);
  opacity: 0.7;
  box-shadow: none;
}

.bio-orb-glow::before,
.bio-orb-glow::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  align-content: center;
  min-height: 790px;
  padding: 4rem 1.5rem 8rem;
  text-align: right;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  color: #34353d;
  font-size: clamp(4.8rem, 9vw, 8.2rem);
  font-weight: 900;
}

h2 {
  color: var(--ink);
  font-size: 2rem;
}

h3 {
  color: var(--ink);
  font-size: 1.05rem;
}

.lede {
  max-width: 41rem;
  margin: 1.35rem 0 0 auto;
  color: #656b73;
  font-size: 1.04rem;
}

.quick-example {
  display: grid;
  gap: 0.36rem;
  width: min(520px, 100%);
  margin-top: 2rem;
  margin-left: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(69, 191, 192, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  color: #34353d;
  box-shadow: 0 20px 44px rgba(47, 50, 60, 0.08);
}

.quick-example span {
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #51545d;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateX(50%);
}

.scroll-cue span {
  width: 1.35rem;
  height: 2rem;
  border: 2px solid #7d8088;
  border-radius: 999px;
}

.calculator-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1rem;
  width: min(1220px, calc(100% - 40px));
  margin: -3.8rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(69, 191, 192, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.input-panel,
.results-panel,
.content-panel,
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.input-panel,
.results-panel,
.content-panel {
  padding: 1.15rem;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
}

.compact-label {
  width: min(100%, 11rem);
}

label {
  display: grid;
  gap: 0.4rem;
  color: #6f7780;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  border: 1px solid #ccd4d8;
  border-radius: 14px;
  padding: 0.58rem 0.8rem;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

select {
  text-align-last: right;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(69, 191, 192, 0.22);
  outline-offset: 2px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.mode-tabs button {
  min-height: 3rem;
  border: 1px solid #d5dce0;
  border-radius: 16px;
  background: #f6f7f9;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  padding-right: 0.9rem;
}

.mode-tabs button.active {
  border-color: rgba(69, 191, 192, 0.5);
  background: var(--teal-soft);
  color: #146d6e;
}

.diagram {
  position: relative;
  min-height: 230px;
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid #dfe4e7;
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 18%, rgba(80, 208, 205, 0.2), transparent 8rem),
    linear-gradient(90deg, rgba(60, 72, 82, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(60, 72, 82, 0.05) 1px, transparent 1px),
    #f0f2f0;
  background-size: auto, 36px 36px, 36px 36px, auto;
}

.shape {
  position: absolute;
  display: none;
}

.diagram[data-shape="slab"] .shape-slab,
.diagram[data-shape="holes"] .shape-hole,
.diagram[data-shape="footing"] .shape-footing,
.diagram[data-shape="stairs"] .shape-stairs {
  display: block;
}

.shape-slab {
  left: 4.5rem;
  right: 3.2rem;
  bottom: 3.35rem;
  height: 6rem;
  border: 2px solid #7d8c91;
  border-radius: 12px;
  transform: skewX(-14deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #c8d0d1, #88969a);
  box-shadow: 1rem 1rem 0 rgba(47, 50, 60, 0.12);
}

.shape-hole {
  left: 50%;
  bottom: 2rem;
  width: 8.1rem;
  height: 10.3rem;
  transform: translateX(-50%);
  border: 2px solid #7d8c91;
  border-radius: 50% 50% 18px 18px / 20% 20% 18px 18px;
  background: linear-gradient(180deg, #cad3d4, #87959a);
  box-shadow: inset 0 1rem 0 rgba(255, 255, 255, 0.28), 0 0 0 1rem rgba(69, 191, 192, 0.08);
}

.shape-hole::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #68757b;
}

.shape-footing {
  left: 3rem;
  right: 3rem;
  bottom: 4rem;
  height: 4.4rem;
  border: 2px solid #7d8c91;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 16px, rgba(255, 255, 255, 0.08) 16px 32px),
    linear-gradient(180deg, #c8d0d1, #87959a);
  box-shadow: 0 1.35rem 0 rgba(47, 50, 60, 0.1);
}

.shape-stairs {
  left: 4.2rem;
  right: 3.2rem;
  bottom: 3rem;
  height: 7.8rem;
  background:
    linear-gradient(to top right, transparent 0 49%, #7d8c91 50% 52%, transparent 53%),
    repeating-linear-gradient(to top, #c8d0d1 0 1.9rem, #87959a 1.9rem 2rem);
  clip-path: polygon(0 100%, 0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%);
  filter: drop-shadow(1rem 1rem 0 rgba(47, 50, 60, 0.12));
}

.measure {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 1.85rem;
  max-width: 10rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: var(--dark);
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.measure-a {
  left: 4rem;
  bottom: 1.1rem;
}

.measure-b {
  right: 1rem;
  top: 5.3rem;
}

.measure-c {
  left: 1rem;
  top: 4rem;
  background: var(--teal-dark);
}

.mode-fields,
.shared-fields,
.yield-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mode-fields {
  display: none;
  margin-top: 1rem;
}

.mode-fields.active {
  display: grid;
}

.shared-fields {
  margin-top: 0.8rem;
}

.yield-box {
  margin-top: 0.95rem;
  padding: 0.9rem;
  border: 1px solid rgba(69, 191, 192, 0.28);
  border-radius: 18px;
  background: #eefafa;
}

.yield-box summary {
  color: #146d6e;
  font-weight: 900;
  cursor: pointer;
}

.yield-box p {
  margin: 0.6rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 90% 8%, rgba(69, 191, 192, 0.16), transparent 8rem),
    white;
}

.primary-result {
  display: grid;
  gap: 0.28rem;
  min-height: 9.2rem;
  align-content: center;
  justify-items: end;
  border: 1px solid rgba(69, 191, 192, 0.28);
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(217, 251, 250, 0.94), rgba(245, 247, 236, 0.92));
}

.primary-result span,
.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-result strong {
  color: #242832;
  font-size: 2.8rem;
  line-height: 1;
}

.primary-result small {
  color: var(--muted);
}

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

.metric,
.bag-results,
.bag-grid span {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.metric {
  min-height: 5.7rem;
  padding: 0.8rem;
  text-align: right;
}

.metric strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.bag-results {
  padding: 0.9rem;
}

.bag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.bag-grid span {
  padding: 0.65rem;
  background: #f6fbfa;
  color: var(--muted);
  font-weight: 850;
  text-align: right;
}

.bag-grid b {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.05;
}

.bag-results p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-note {
  border: 1px solid rgba(216, 117, 74, 0.24);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(216, 117, 74, 0.08);
  color: #69341e;
  font-size: 0.94rem;
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.actions button,
.button.primary {
  min-height: 2.8rem;
  border: 0;
  border-radius: 16px;
  padding: 0.65rem 1rem;
  background: var(--teal);
  color: white;
  font-weight: 900;
  text-align: right;
  justify-content: flex-end;
}

.actions button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: var(--dark);
  color: white;
}

.section {
  margin-top: 1.1rem;
}

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

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

.card {
  position: relative;
  min-height: 11rem;
  padding: 1.05rem;
  overflow: hidden;
  text-decoration: none;
  text-align: right;
  box-shadow: 0 18px 40px rgba(47, 50, 60, 0.06);
}

.card::before,
.content-panel.accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--lime), #b5c0ff);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(47, 50, 60, 0.1);
}

.card p,
.content-panel p,
.content-panel li,
.table-note {
  color: var(--muted);
}

.content-panel {
  position: relative;
  overflow: hidden;
  background: white;
  text-align: right;
  box-shadow: 0 18px 40px rgba(47, 50, 60, 0.06);
}

.content-panel.accent {
  min-height: clamp(22rem, 34vw, 30rem);
  padding: clamp(1.5rem, 4vw, 3.4rem) clamp(1.2rem, 4vw, 3.2rem);
  padding-left: clamp(13rem, 34vw, 28rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.88) 44%, #ffffff 68%),
    radial-gradient(circle at 17% 63%, rgba(79, 208, 205, 0.16), transparent 14rem),
    radial-gradient(circle at 40% 10%, rgba(213, 239, 114, 0.18), transparent 18rem),
    #ffffff;
  display: grid;
  align-content: center;
}

.content-panel.accent::after {
  content: "";
  position: absolute;
  left: clamp(0.8rem, 5vw, 4.2rem);
  bottom: clamp(-5.5rem, -6vw, -2.8rem);
  width: clamp(13rem, 25vw, 22rem);
  height: clamp(13rem, 25vw, 22rem);
  background: url("./assets/cement-ball-studio.png") center / contain no-repeat;
  opacity: 0.9;
  filter:
    drop-shadow(0 26px 54px rgba(60, 64, 67, 0.18))
    drop-shadow(0 8px 18px rgba(60, 64, 67, 0.08));
}

.content-panel.accent > * {
  position: relative;
  z-index: 1;
}

.bag-page .content-panel.accent {
  min-height: clamp(27rem, 42vw, 36rem);
  padding-left: clamp(22rem, 50vw, 44rem);
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.1) 0%, rgba(9, 11, 15, 0.34) 43%, rgba(10, 12, 17, 0.94) 74%),
    url("./assets/concrete-bag-stack-studio.png") left center / cover no-repeat,
    #101217;
  box-shadow: 0 34px 90px rgba(15, 18, 24, 0.28);
}

.bag-page .content-panel.accent::after {
  display: none;
}

.bag-page .content-panel.accent h1 {
  margin-left: auto;
  color: white;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.bag-page .content-panel.accent p,
.bag-page .content-panel.accent .lede {
  color: rgba(246, 248, 249, 0.78);
}

.bag-page .content-panel.accent .eyebrow {
  color: var(--lime);
}

.slab-page .content-panel.accent,
.driveway-page .content-panel.accent {
  min-height: clamp(27rem, 40vw, 35rem);
  padding-left: clamp(23rem, 49vw, 43rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.5) 43%, rgba(255, 255, 255, 0.98) 72%),
    url("./assets/sidewalk-slab-studio.png") left 42% / cover no-repeat,
    #f8faf7;
  box-shadow: 0 28px 76px rgba(61, 68, 62, 0.16);
}

.slab-page .content-panel.accent::after,
.driveway-page .content-panel.accent::after {
  display: none;
}

.slab-page .content-panel.accent h1,
.driveway-page .content-panel.accent h1 {
  margin-left: auto;
}

.yardage-page .content-panel.accent {
  min-height: clamp(27rem, 40vw, 35rem);
  padding-left: clamp(23rem, 49vw, 43rem);
  background:
    radial-gradient(ellipse at 24% 58%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 24%, rgba(14, 15, 17, 0.28) 48%, rgba(8, 9, 11, 0.62) 66%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.74) 0%, rgba(20, 22, 24, 0.5) 37%, rgba(255, 255, 255, 0.5) 54%, rgba(255, 255, 255, 0.98) 72%),
    url("./assets/concrete-block-stack-studio.png") left center / cover no-repeat,
    #191b1d;
  box-shadow: 0 32px 84px rgba(31, 34, 38, 0.2);
}

.yardage-page .content-panel.accent::after {
  display: none;
}

.yardage-page .content-panel.accent h1 {
  margin-left: auto;
  color: white;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.yardage-page .content-panel.accent p,
.yardage-page .content-panel.accent .lede {
  color: rgba(246, 248, 249, 0.8);
}

.yardage-page .content-panel.accent .eyebrow {
  color: var(--lime);
}

.content-panel h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.content-panel .lede {
  max-width: 48rem;
  margin-left: auto;
}

.tool-link {
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem;
  text-align: right;
  vertical-align: top;
}

.table th {
  color: var(--teal-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding-right: 1.7rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.35rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--teal);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.45rem 0;
  background: #f8f9fb;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: right;
}

.footer-inner a {
  margin-right: 0.8rem;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .calculator-shell,
  .two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  body:not(.home-page)::before {
    left: -9.5rem;
    bottom: -8.5rem;
    width: 22rem;
    height: 22rem;
    opacity: 0.18;
  }

  body:not(.home-page)::after {
    background-size: 46px 46px;
  }

  body.bag-page {
    background:
      radial-gradient(circle at 50% 0%, rgba(79, 208, 205, 0.12), transparent 17rem),
      linear-gradient(180deg, #15171c 0%, #24272d 28rem, #eff0f4 44rem);
  }

  body.bag-page::before {
    left: -6rem;
    top: 5.2rem;
    width: 26rem;
    height: 17rem;
    opacity: 0.22;
    border-radius: 24px;
  }

  body.slab-page,
  body.driveway-page {
    background:
      radial-gradient(circle at 42% 0%, rgba(69, 191, 192, 0.12), transparent 16rem),
      linear-gradient(180deg, #f7f8f8 0%, #eef1ee 30rem, #eceef1 100%);
  }

  body.slab-page::before,
  body.driveway-page::before {
    left: -5.6rem;
    top: 5.1rem;
    width: 26rem;
    height: 17rem;
    opacity: 0.2;
    border-radius: 24px;
  }

  body.yardage-page {
    background:
      radial-gradient(circle at 42% 0%, rgba(79, 208, 205, 0.1), transparent 16rem),
      linear-gradient(180deg, #e9ebed 0%, #dfe4e5 30rem, #eceef1 100%);
  }

  body.yardage-page::before {
    left: -5.6rem;
    top: 5.1rem;
    width: 26rem;
    height: 17rem;
    opacity: 0.16;
    border-radius: 24px;
  }

  .nav,
  .page,
  .footer-inner {
    width: min(calc(100% - 24px), 42rem);
  }

  .site-header {
    padding-top: 0.75rem;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .brand {
    width: fit-content;
    min-width: 0;
    min-height: 46px;
    padding: 0 1rem;
    font-size: 1rem;
  }

  .brand span:last-child {
    width: 0;
    overflow: hidden;
    font-size: 0;
  }

  .brand::after {
    content: "CONCRETE";
    color: var(--teal);
    font-size: 1rem;
  }

  .nav-links {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 78px;
    min-height: 46px;
    border-radius: 12px;
    background: white;
    color: var(--violet);
  }

  .nav-links a {
    display: none;
  }

  .nav-links::before {
    content: "MENU";
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 46px;
    padding: 0 1rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .hero-showcase {
    min-height: 720px;
    border-radius: 18px;
  }

  .showcase-topline {
    inset: 1.1rem 1.1rem auto;
    display: grid;
    gap: 0.3rem;
  }

  .hero-copy {
    min-height: 660px;
    padding: 5.9rem 0.85rem 6.4rem;
    overflow: hidden;
  }

  h1 {
    width: min(100%, 8.5ch);
    max-width: min(100%, 9ch);
    font-size: clamp(2.85rem, 11.8vw, 3.45rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .lede {
    max-width: min(100%, 21rem);
    margin-top: 1rem;
    font-size: 0.96rem;
  }

  .quick-example {
    width: min(100%, 20.5rem);
    margin-top: 1.1rem;
  }

  .bio-orb-large {
    left: -12rem;
    top: 46%;
    width: 17rem;
    height: 17rem;
  }

  .bio-orb-small {
    right: -4.1rem;
    top: 19%;
    width: 9rem;
    height: 9rem;
  }

  .calculator-shell {
    width: min(calc(100% - 20px), 42rem);
    margin-top: -4rem;
    padding: 0.65rem;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .quick-example,
  .input-panel,
  .results-panel,
  .content-panel,
  .card {
    padding: 0.95rem;
  }

  .content-panel.accent {
    min-height: 0;
    padding-left: 0.95rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff 64%),
      radial-gradient(circle at 10% 90%, rgba(79, 208, 205, 0.13), transparent 12rem),
      #ffffff;
  }

  .content-panel.accent::after {
    left: -5.2rem;
    bottom: -5.5rem;
    width: 12rem;
    height: 12rem;
    opacity: 0.18;
  }

  .bag-page .content-panel.accent {
    min-height: 32rem;
    padding: 16rem 0.95rem 1.25rem;
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.08) 0%, rgba(9, 11, 15, 0.16) 38%, rgba(10, 12, 17, 0.97) 63%),
      url("./assets/concrete-bag-stack-studio.png") center top / cover no-repeat,
      #101217;
  }

  .bag-page .content-panel.accent h1 {
    width: min(100%, 9.5ch);
    max-width: min(100%, 10ch);
  }

  .slab-page .content-panel.accent,
  .driveway-page .content-panel.accent {
    min-height: 31rem;
    padding: 15rem 0.95rem 1.25rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.62) 39%, #ffffff 66%),
      url("./assets/sidewalk-slab-studio.png") center 38% / cover no-repeat,
      #f8faf7;
  }

  .slab-page .content-panel.accent h1,
  .driveway-page .content-panel.accent h1 {
    width: min(100%, 9.5ch);
    max-width: min(100%, 10ch);
  }

  .yardage-page .content-panel.accent {
    min-height: 31rem;
    padding: 15rem 0.95rem 1.25rem;
    background:
      radial-gradient(ellipse at 30% 22%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 30%, rgba(8, 9, 11, 0.58) 54%),
      linear-gradient(180deg, rgba(8, 9, 11, 0.56) 0%, rgba(8, 9, 11, 0.42) 35%, rgba(255, 255, 255, 0.72) 56%, #ffffff 72%),
      url("./assets/concrete-block-stack-studio.png") center 42% / cover no-repeat,
      #17191b;
  }

  .yardage-page .content-panel.accent h1 {
    width: min(100%, 9.5ch);
    max-width: min(100%, 10ch);
  }

  .panel-heading {
    display: grid;
  }

  .compact-label {
    width: 100%;
  }

  .mode-tabs,
  .mode-fields,
  .mode-fields.active,
  .shared-fields,
  .yield-grid,
  .result-grid,
  .bag-grid,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .diagram {
    min-height: 184px;
  }

  .shape-slab {
    left: 2.5rem;
    right: 1.6rem;
    bottom: 2.75rem;
    height: 4.35rem;
  }

  .shape-footing {
    left: 2rem;
    right: 2rem;
  }

  .shape-stairs {
    left: 3rem;
    right: 2rem;
  }

  .measure {
    max-width: 6.6rem;
    min-height: 1.65rem;
    padding: 0.12rem 0.5rem;
    font-size: 0.68rem;
  }

  .measure-a {
    left: 2rem;
  }

  .measure-b {
    right: 0.4rem;
    top: 5.1rem;
  }

  .measure-c {
    left: 0.4rem;
    top: 4.1rem;
  }

  .primary-result strong {
    font-size: 2.25rem;
  }

  .card {
    min-height: 0;
  }

  .table {
    display: block;
  }

  .table tr {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .table tr:first-child {
    display: none;
  }

  .table th,
  .table td {
    padding: 0.05rem 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .table td:first-child {
    color: var(--teal-dark);
    font-weight: 900;
  }

  .footer-inner {
    display: grid;
  }

  .footer-inner a {
    margin-left: 0;
    margin-right: 0.75rem;
  }
}

@media (max-width: 420px) {
  .nav,
  .page,
  .footer-inner {
    width: min(calc(100vw - 24px), 366px);
    margin-left: auto;
    margin-right: 12px;
  }

  .nav-links a {
    font-size: 0.74rem;
  }
}

@media print {
  .site-header,
  .hero-showcase,
  .mode-tabs,
  .diagram,
  .yield-box,
  .section,
  .site-footer,
  .actions {
    display: none;
  }

  .page,
  .nav,
  .footer-inner {
    width: 100%;
  }

  .calculator-shell,
  .input-panel,
  .results-panel {
    box-shadow: none;
  }
}
