.hc-roofcalc {
  --hc-ink: #18231f;
  --hc-muted: #63716a;
  --hc-border: #dce5df;
  --hc-soft: #f5f8f6;
  --hc-green: #1e73e8;
  --hc-green-dark: #2c3e50;
  --hc-white: #fff;
  max-width: 1080px;
  margin: 2rem auto;
  color: var(--hc-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}
.hc-roofcalc *, .hc-roofcalc *::before, .hc-roofcalc *::after { box-sizing: border-box; }
.hc-roofcalc__header { margin-bottom: 1.5rem; }
.hc-roofcalc__eyebrow { display: inline-block; color: var(--hc-green); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.hc-roofcalc__header h2 { margin: .35rem 0 .5rem; color: var(--hc-ink); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; }
.hc-roofcalc__header p { max-width: 720px; margin: 0; color: var(--hc-muted); }
.hc-roofcalc__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: 1.25rem; align-items: start; }
.hc-roofcalc__form, .hc-roofcalc__results, .hc-roofcalc__guide { border: 1px solid var(--hc-border); border-radius: 16px; background: var(--hc-white); }
.hc-roofcalc__form { padding: clamp(1rem, 3vw, 1.5rem); }
.hc-roofcalc__fieldset { min-width: 0; margin: 0; padding: 0 0 1.25rem; border: 0; }
.hc-roofcalc__fieldset + .hc-roofcalc__fieldset { padding-top: 1.2rem; border-top: 1px solid var(--hc-border); }
.hc-roofcalc__fieldset legend { width: 100%; margin-bottom: .85rem; padding: 0; color: var(--hc-ink); font-size: 1rem; font-weight: 750; }
.hc-roofcalc__segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .3rem; border-radius: 10px; background: var(--hc-soft); }
.hc-roofcalc__segmented button, .hc-roofcalc__quick-pitches button { min-height: 42px; padding: .55rem .65rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--hc-ink); font: inherit; font-size: .9rem; cursor: pointer; }
.hc-roofcalc__segmented button.is-active, .hc-roofcalc__quick-pitches button.is-active { border-color: #1e73e8; background: #1e73e8; color: #fff; font-weight: 750; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hc-roofcalc__field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hc-roofcalc__field { min-width: 0; }
.hc-roofcalc__field--full { grid-column: 1 / -1; }
.hc-roofcalc__field label { display: block; margin-bottom: .4rem; color: var(--hc-ink); font-size: .9rem; font-weight: 650; }
.hc-roofcalc input, .hc-roofcalc select { display: block; width: 100%; min-height: 46px; margin: 0; padding: .65rem .75rem; border: 1px solid #c9d5ce; border-radius: 9px; background: var(--hc-white); color: var(--hc-ink); font: inherit; font-size: 16px; box-shadow: none; }
.hc-roofcalc input:focus, .hc-roofcalc select:focus { border-color: #c9d5ce; outline: 3px solid rgba(30,115,232,.12); }
.hc-roofcalc input[aria-invalid="true"], .hc-roofcalc select[aria-invalid="true"] { border-color: #b42318; }
.hc-roofcalc select { min-height: 46px; padding: .65rem .75rem; border: 1px solid #c9d5ce; border-radius: 9px; background: var(--hc-white); color: var(--hc-ink); font: inherit; font-size: 16px; box-shadow: none; }
.hc-roofcalc__hint { display: block; margin-top: .4rem; color: var(--hc-muted); font-size: .78rem; line-height: 1.45; }
.hc-roofcalc__error { display: block; min-height: 0; color: #b42318; font-size: .78rem; }
.hc-roofcalc__error:empty { display: none; }
.hc-roofcalc__pitch-row, .hc-roofcalc__waste-row { display: flex; align-items: center; gap: .6rem; }
.hc-roofcalc__pitch-row input { max-width: 150px; }
.hc-roofcalc__pitch-unit, .hc-roofcalc__waste-row > span { color: var(--hc-muted); font-weight: 700; }
.hc-roofcalc__waste-row input { max-width: 140px; }
.hc-roofcalc__quick-pitches { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.hc-roofcalc__quick-pitches button { min-height: 34px; padding: .25rem .55rem; border-color: var(--hc-border); background: var(--hc-white); font-size: .82rem; }
.hc-roofcalc__reset { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem .9rem; border: 1px solid var(--hc-border); border-radius: 8px; background: #fff; color: #2c3e50; font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.hc-roofcalc__reset:hover, .hc-roofcalc__reset:active { border-color: #1e73e8; background: #1e73e8; color: #fff; }
.hc-roofcalc__results { overflow: hidden; }
.hc-roofcalc__results-top { padding: 1.4rem; background: var(--hc-soft); }
.hc-roofcalc__results-top h3 { margin: .35rem 0 .25rem; color: var(--hc-ink); font-size: 1.1rem; }
.hc-roofcalc__result-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: .25rem 0; color: #2c3e50; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.hc-roofcalc__result-number span:last-child { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.hc-roofcalc__result-note { margin: .5rem 0 0; color: var(--hc-muted); font-size: .84rem; }
.hc-roofcalc__result-list { padding: .5rem 1.4rem 1rem; }
.hc-roofcalc__result-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--hc-border); font-size: .88rem; }
.hc-roofcalc__result-list > div:last-child { border-bottom: 0; }
.hc-roofcalc__result-list span { color: var(--hc-muted); }
.hc-roofcalc__result-list strong { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.hc-roofcalc__result-list--highlight { margin: .25rem -.6rem 0; padding: .8rem .6rem !important; border-radius: 8px; background: #edf5ef; }
.hc-roofcalc__result-list--highlight strong { color: #2c3e50; }
.hc-roofcalc__disclaimer { margin: 0; padding: 0 1.4rem 1.4rem; color: var(--hc-muted); font-size: .78rem; }
.hc-roofcalc__guide { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); }
.hc-roofcalc__guide h3 { margin: 1.2rem 0 .5rem; color: var(--hc-ink); font-size: 1.08rem; }
.hc-roofcalc__guide h3:first-child { margin-top: 0; }
.hc-roofcalc__guide p { margin: .45rem 0; }
.hc-roofcalc__guide ol, .hc-roofcalc__guide ul { margin: .5rem 0 0; padding-left: 1.35rem; }
.hc-roofcalc__guide li { margin: .35rem 0; }
.hc-roofcalc__footer { margin: .8rem 0 0; color: var(--hc-muted); text-align: center; font-size: .8rem; }
.hc-roofcalc button:focus-visible { outline: 3px solid rgba(30,115,232,.25); outline-offset: 2px; }
@media (max-width: 760px) {
  .hc-roofcalc { margin: 1.25rem auto; }
  .hc-roofcalc__layout { grid-template-columns: 1fr; }
  .hc-roofcalc__results { order: -1; }
  .hc-roofcalc__result-number { font-size: 2.2rem; }
}
@media (max-width: 420px) {
  .hc-roofcalc__field-grid { grid-template-columns: 1fr; }
  .hc-roofcalc__field--full { grid-column: auto; }
  .hc-roofcalc__segmented button { font-size: .8rem; }
  .hc-roofcalc__result-list > div { gap: .5rem; font-size: .82rem; }
}


/* HomeCostify shared calculator design system — v1.2.0 */
.hc-roofcalc {
  container-type: inline-size;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #2c3e50;
}
.hc-roofcalc__header { margin-bottom: 20px; }
.hc-roofcalc__eyebrow {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .08em;
  font-weight: 800;
}
.hc-roofcalc__header h2 {
  margin: 6px 0 8px;
  color: #2c3e50;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: normal;
}
.hc-roofcalc__header p {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
.hc-roofcalc__layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  align-items: stretch;
}
.hc-roofcalc__form,
.hc-roofcalc__results,
.hc-roofcalc__guide {
  border-color: #d7dee8;
  border-radius: 15px;
}
.hc-roofcalc__form { padding: 22px; }
.hc-roofcalc__fieldset { padding-bottom: 18px; }
.hc-roofcalc__fieldset + .hc-roofcalc__fieldset {
  padding-top: 18px;
}
.hc-roofcalc__fieldset legend {
  margin-bottom: 12px;
  color: #2c3e50;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}
.hc-roofcalc__field label {
  margin-bottom: 7px;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.hc-roofcalc input,
.hc-roofcalc select {
  min-height: 42px;
  padding: 9px 12px;
  border-color: #cfd8e3;
  border-radius: 8px;
  color: #2c3e50;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.hc-roofcalc__segmented button,
.hc-roofcalc__quick-pitches button {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
}
.hc-roofcalc__hint,
.hc-roofcalc__error {
  font-size: 12px;
  line-height: 1.45;
}
.hc-roofcalc__results-top { padding: 20px; }
.hc-roofcalc__results-top h3 {
  margin: 6px 0 5px;
  color: #2c3e50;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.hc-roofcalc__result-number {
  gap: 6px;
  margin: 4px 0;
  color: #2c3e50;
  font-size: clamp(30px, 4cqi, 40px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.025em;
}
.hc-roofcalc__result-number span:last-child {
  font-size: 14px;
  font-weight: 600;
}
.hc-roofcalc__result-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.hc-roofcalc__result-list { padding: 8px 20px 14px; }
.hc-roofcalc__result-list > div {
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.45;
}
.hc-roofcalc__result-list strong { font-weight: 650; }
.hc-roofcalc__result-list--highlight {
  padding: 12px 10px !important;
  border-radius: 9px;
  background: #eaf6f0;
}
.hc-roofcalc__disclaimer {
  padding: 0 20px 20px;
  font-size: 12px;
  line-height: 1.5;
}
.hc-roofcalc__guide {
  margin-top: 20px;
  padding: 22px;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.55;
}
.hc-roofcalc__guide h3 {
  margin: 20px 0 8px;
  color: #2c3e50;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.hc-roofcalc__guide h3:first-child { margin-top: 0; }
.hc-roofcalc__guide p { margin: 7px 0; font-size: 14px; }
.hc-roofcalc__guide li { margin: 5px 0; font-size: 14px; }
.hc-roofcalc__footer {
  margin: 14px 0 0;
  color: #63716a;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.hc-roofcalc__footer a {
  color: #1e73e8;
  font-weight: 650;
  text-decoration: none;
}
.hc-roofcalc__footer a:hover { text-decoration: underline; }
@container (max-width: 560px) {
  .hc-roofcalc__layout { grid-template-columns: minmax(0, 1fr); }
  .hc-roofcalc__results { order: -1; }
  .hc-roofcalc__result-number { font-size: 34px; }
}
@container (max-width: 390px) {
  .hc-roofcalc__form { padding: 16px; }
  .hc-roofcalc__results-top { padding: 17px; }
  .hc-roofcalc__result-list { padding-right: 17px; padding-left: 17px; }
  .hc-roofcalc__disclaimer { padding-right: 17px; padding-left: 17px; }
  .hc-roofcalc__guide { padding: 17px; }
}
