:root {
  --cream: #f2efe7;
  --cream-2: #e8e3d7;
  --paper: #fbfaf6;
  --ink: #2b1b19;
  --muted: #6d5f59;
  --night: #1b100f;
  --wine: #4b1d1c;
  --crimson: #be123c;
  --crimson-deep: #8f3232;
  --rust: #c8643b;
  --peach: #f4b58f;
  --sage: #cfdad3;
  --sage-deep: #a9bfb5;
  --rule: rgb(43 27 25 / 0.12);

  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wordmark: "Space Grotesk", var(--body);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--crimson-deep);
}

a:hover {
  color: var(--crimson);
}

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem var(--gutter) 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.5rem 0.45rem 1.1rem;
  background: rgb(246 243 235 / 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgb(43 27 25 / 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(27 16 15 / 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 1.8rem;
  height: 1.8rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgb(43 27 25 / 0.07);
  color: var(--ink);
}

.nav .button {
  margin-left: 0.35rem;
  color: var(--cream);
}

.nav .button:hover {
  color: var(--cream);
  background: var(--crimson-deep);
}

.menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--wine);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(18rem, calc(100vw - 2rem));
  background: var(--paper);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: 0 20px 50px rgb(27 16 15 / 0.25);
  display: grid;
}

.menu-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

.menu-panel a:hover {
  background: var(--cream);
}

.menu-panel .button {
  margin-top: 0.35rem;
  text-align: center;
  color: var(--cream);
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--crimson-deep);
  color: var(--cream);
}

.button:active {
  transform: translateY(1px);
}

.button-light {
  background: var(--cream);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
  color: var(--ink);
}

.button-quiet {
  display: inline-block;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 0.4rem;
}

.button-quiet:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  margin-bottom: 1rem;
}

.hero {
  margin-top: -4.6rem;
  padding: calc(4.6rem + clamp(3.5rem, 9vw, 6.5rem)) 0 clamp(9rem, 20vw, 14rem);
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(115% 88% at 50% 108%, #fff3de 0%, #f7c49c 16%, #e48a5d 31%, #b24a34 48%, #6b2522 66%, #2a1413 90%),
    #2a1413;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1.2px);
  background-size: 6px 6px;
  mask-image: linear-gradient(to bottom, transparent, black 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 55%);
}

.hero .eyebrow {
  color: #f6d7c0;
}

.hero h1 {
  max-width: 15ch;
  margin: 0 auto;
}

.hero .lede {
  max-width: 38rem;
  margin: 1.5rem auto 2.25rem;
  font-size: 1.18rem;
  color: rgb(246 239 229 / 0.82);
}

.hero .actions {
  justify-content: center;
}

.hero .button {
  background: var(--cream);
  color: var(--ink);
}

.hero .button:hover {
  background: #fff;
  color: var(--ink);
}

.hero .button-quiet {
  color: var(--cream);
}

.hero .free {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: rgb(246 239 229 / 0.7);
}

.roof-canvas {
  width: 9rem;
  height: 9rem;
  margin: 0 auto 1.25rem;
}

.form-stage {
  margin-top: clamp(-11rem, -18vw, -7rem);
  position: relative;
  z-index: 2;
}

.form {
  max-width: 50rem;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 0.92rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgb(27 16 15 / 0.45), 0 0 0 1px rgb(43 27 25 / 0.06);
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
}

.form-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-head .year {
  text-align: right;
}

.form table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.form caption {
  text-align: left;
  padding: 0.6rem 1.4rem;
  background: var(--cream);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form th,
.form td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}

.form thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.form thead th:first-child,
.form thead th:nth-child(2) {
  text-align: left;
}

.form .no {
  width: 3rem;
  padding-left: 1.4rem;
  font-family: var(--mono);
  color: var(--muted);
}

.form .amt {
  width: 7.5rem;
  text-align: right;
  font-family: var(--mono);
}

.form .amt:last-child {
  padding-right: 1.4rem;
}

.form tr.total th,
.form tr.total td {
  font-weight: 600;
}

.form tr.result th,
.form tr.result td {
  font-weight: 600;
  background: #fbe9e4;
  color: var(--wine);
  border-bottom: 0;
}

.form .pin {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--crimson);
  line-height: 1.3;
}

.form .pin::before {
  content: "\21B3 ";
}

@media (prefers-reduced-motion: no-preference) {
  .form .fill {
    animation: ink 0.6s ease-out both;
    animation-delay: calc(var(--i, 0) * 70ms + 400ms);
  }

  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise-2 {
    animation-delay: 0.12s;
  }

  .rise-3 {
    animation-delay: 0.24s;
  }

  @keyframes ink {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-intro {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
  display: flex;
  flex-direction: column;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--crimson-deep);
  margin-bottom: 2.5rem;
}

.steps p {
  margin-top: 0.6rem;
  color: var(--muted);
  flex: 1;
}

.statement {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  background: var(--cream);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.statement b {
  color: var(--crimson);
  font-weight: 500;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.stack-card {
  position: sticky;
  top: calc(5.5rem + var(--n, 0) * 0.9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: 22rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px;
  color: var(--cream);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(200 100 59 / 0.35), transparent 60%),
    linear-gradient(135deg, #6b2522, #3a1716);
  box-shadow: 0 -10px 40px -20px rgb(27 16 15 / 0.5);
}

.stack-card.sage {
  color: var(--ink);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(255 255 255 / 0.55), transparent 60%),
    linear-gradient(135deg, #b9cdc4, #e6ece6);
}

.stack-card .line {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.stack-card h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.stack-card p:not(.line) {
  margin-top: 1rem;
  font-size: 1.05rem;
  opacity: 0.86;
  max-width: 30rem;
}

.visual {
  border-radius: 18px;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.sage .visual {
  background: rgb(255 255 255 / 0.5);
  border-color: rgb(43 27 25 / 0.08);
}

.visual .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.sage .visual .row {
  border-bottom-color: var(--rule);
}

.visual .row:last-child {
  border-bottom: 0;
}

.visual .tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgb(244 181 143 / 0.22);
  color: #ffd9c2;
}

.sage .visual .tag {
  background: rgb(143 50 50 / 0.1);
  color: var(--crimson-deep);
}

.bar {
  display: flex;
  height: 2.6rem;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.bar span {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.72rem;
}

.bar .interest {
  flex: 58;
  background: var(--peach);
  color: var(--wine);
}

.bar .principal {
  flex: 27;
  background: rgb(255 255 255 / 0.22);
}

.bar .escrow {
  flex: 15;
  background: rgb(255 255 255 / 0.1);
}

.doc {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.55);
}

.doc + .doc {
  margin-top: 0.6rem;
}

.doc .ext {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.66rem;
}

.doc b {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
}

.meter {
  height: 0.55rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  overflow: hidden;
  margin: 0.4rem 0 1rem;
}

.meter span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--peach), #ffe3cf);
}

.dark-band {
  background: var(--night);
  color: var(--cream);
}

.dark-band .eyebrow {
  color: var(--peach);
}

.dark-band .section-intro p:not(.eyebrow) {
  color: rgb(242 239 231 / 0.7);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillars div {
  background: var(--night);
  padding: 1.75rem;
}

.pillars h3 {
  font-size: 1.15rem;
}

.pillars p {
  margin-top: 0.6rem;
  color: rgb(242 239 231 / 0.65);
  font-size: 0.95rem;
}

.closer {
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

.closer-panel {
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: 32px;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(70% 90% at 50% 120%, #fff1dc 0%, #f4b58f 25%, #d0683f 45%, #6b2522 72%, #2a1413 100%);
}

.closer-panel h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.closer-panel p {
  margin: 1rem auto 2rem;
  max-width: 32rem;
  color: rgb(246 239 229 / 0.82);
}

.closer-panel .actions {
  justify-content: center;
}

.page-head {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
}

.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  max-width: 18ch;
}

.page-head p:not(.eyebrow) {
  margin-top: 1.25rem;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 42rem;
}

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

.features > div {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
}

.features .line {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  margin-bottom: 1.5rem;
}

.features p:not(.line) {
  margin-top: 0.6rem;
  color: var(--muted);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
}

.detail + .detail {
  margin-top: 1rem;
}

.detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.detail ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail li + li {
  margin-top: 0.65rem;
}

.detail li strong {
  color: var(--ink);
  font-weight: 500;
}

.price-card {
  max-width: 44rem;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 70px -30px rgb(27 16 15 / 0.35), 0 0 0 1px rgb(43 27 25 / 0.05);
}

.price-card header {
  padding: 2.25rem 2.25rem 2rem;
  color: var(--cream);
  background:
    radial-gradient(80% 140% at 100% 0%, rgb(244 181 143 / 0.45), transparent 60%),
    linear-gradient(135deg, #6b2522, #2a1413);
}

.price {
  font-family: var(--display);
  font-size: clamp(3.5rem, 9vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price small {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
  margin-left: 0.5rem;
}

.price-card .body {
  padding: 2rem 2.25rem 2.25rem;
}

.checks {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  columns: 2 16rem;
  column-gap: 2rem;
}

.checks li {
  break-inside: avoid;
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.4em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--crimson);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.limits {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.limits caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.limits th,
.limits td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}

.limits td {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.faq {
  max-width: 50rem;
}

.faq details {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
}

.faq details + details {
  margin-top: 0.6rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  position: relative;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--crimson-deep);
  font-size: 1.1rem;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
}

.faq .answer p + p {
  margin-top: 0.75rem;
}

.legal {
  max-width: 46rem;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal .toc {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
}

.legal .toc p {
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.legal .toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 15rem;
  column-gap: 2rem;
}

.legal .toc li {
  padding: 0.15rem 0;
  break-inside: avoid;
}

.legal h2 {
  font-size: 1.6rem;
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 6rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: #4a3d38;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.45rem;
}

.legal li strong {
  font-weight: 500;
  color: var(--ink);
}

.legal .caps {
  text-transform: uppercase;
  font-size: 0.9rem;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
  box-shadow: 0 0 0 1px rgb(43 27 25 / 0.05);
}

.contact-card p {
  margin: 0.3rem 0;
}

.site-footer {
  background: var(--night);
  color: rgb(242 239 231 / 0.65);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  font-size: 0.93rem;
  overflow: hidden;
}

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

.site-footer .brand {
  color: var(--cream);
}

.footer-tagline {
  margin-top: 0.9rem;
  max-width: 18rem;
}

.footer-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: rgb(242 239 231 / 0.78);
  text-decoration: none;
  padding: 0.22rem 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .note {
  margin-top: 0.8rem;
  font-size: 0.86rem;
}

.footer-col .note a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-wordmark {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: clamp(4rem, 17vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(180deg, rgb(244 181 143 / 0.55), rgb(244 181 143 / 0.04));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  user-select: none;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .steps,
  .features,
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars {
    gap: 1px;
  }

  .stack-card,
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-card {
    position: relative;
    top: auto;
    min-height: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-pill {
    padding-left: 0.9rem;
  }

  .hero {
    padding-bottom: 8rem;
  }

  .roof-canvas {
    width: 7rem;
    height: 7rem;
  }

  .form {
    font-size: 0.8rem;
    border-radius: 18px;
  }

  .form-head {
    padding: 0.9rem 1rem;
  }

  .form caption {
    padding: 0.5rem 1rem;
  }

  .form th,
  .form td {
    padding: 0.45rem 0.35rem;
  }

  .form .no {
    width: 2rem;
    padding-left: 0.8rem;
  }

  .form .amt {
    width: auto;
  }

  .form .amt:last-child {
    padding-right: 0.8rem;
  }

  .form thead th {
    white-space: normal;
    font-size: 0.64rem;
  }

  .form .pin {
    display: none;
  }
}
