.estimate-body {
  background:
    linear-gradient(180deg, rgba(216, 242, 248, 0.46) 0, rgba(244, 241, 234, 0) 360px),
    var(--paper);
}

.estimate-body [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.site-nav a[aria-current="page"] {
  background: rgba(77, 143, 165, 0.13);
  color: var(--ink);
}

.estimate-main {
  min-height: calc(100svh - var(--header-height));
}

.estimate-app {
  width: calc(100% - 36px);
  margin: 0 auto;
  padding: 38px 0 58px;
}

.estimate-head {
  margin-bottom: 22px;
}

.estimate-head-grid {
  display: grid;
  gap: 18px;
}

.estimate-head h1 {
  max-width: 900px;
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

.estimate-head p:not(.section-kicker) {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.estimate-contact-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.8);
  color: var(--ink);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.estimate-panel {
  border: 1px solid rgba(16, 39, 47, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.estimate-controls,
.estimate-features,
.estimate-result,
.estimate-guide,
.estimate-cautions {
  padding: 18px;
}

.estimate-panel-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}

.estimate-panel-head p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.estimate-panel-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 850;
}

.estimate-panel-copy {
  margin: -6px 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.estimate-control-grid {
  display: grid;
  gap: 14px;
}

.estimate-field label,
.estimate-count-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.estimate-field select,
.estimate-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
}

.estimate-field p,
.estimate-count-field p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.estimate-count-field {
  min-height: 112px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  padding: 14px;
}

.estimate-count-field strong {
  color: var(--green-deep);
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.estimate-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.estimate-feature-list {
  display: grid;
  gap: 18px;
}

.estimate-feature-group {
  display: grid;
  gap: 10px;
}

.estimate-feature-group h3,
.estimate-guide h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: 14px;
  line-height: 1.3;
}

.estimate-feature {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(23, 26, 23, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
}

.estimate-feature input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.estimate-feature input:disabled {
  opacity: 0.72;
}

.estimate-feature label {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.estimate-feature-desc,
.estimate-feature-price {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.estimate-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.estimate-tag-must {
  border-color: rgba(77, 143, 165, 0.34);
  background: rgba(216, 242, 248, 0.58);
  color: var(--green-deep);
}

.estimate-comparison {
  display: grid;
  gap: 12px;
}

.estimate-price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  padding: 16px;
}

.estimate-price-card-ai {
  border-color: rgba(77, 143, 165, 0.28);
  background: rgba(216, 242, 248, 0.32);
}

.estimate-price-card > p:first-child {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.estimate-price-card > strong {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 6vw, 34px);
  line-height: 1.05;
  font-weight: 850;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}

.estimate-price-card-ai > strong {
  color: var(--green-deep);
}

.estimate-price-card dl {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.estimate-price-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(23, 26, 23, 0.1);
  padding: 10px 0;
}

.estimate-price-card dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.estimate-price-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-align: right;
  overflow-wrap: anywhere;
}

.estimate-unavailable-note {
  min-height: 1px;
  margin: 12px 0 0;
  color: #7a4a10;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.estimate-difference {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.estimate-difference div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(77, 143, 165, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  padding: 12px;
}

.estimate-difference span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.estimate-difference strong {
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 850;
}

.estimate-note {
  margin-top: 16px;
  border: 1px solid rgba(143, 205, 225, 0.42);
  border-radius: var(--radius);
  background: rgba(216, 242, 248, 0.38);
  color: #263532;
  padding: 14px;
  font-size: 13px;
  line-height: 1.65;
}

.estimate-subsection {
  margin-top: 24px;
}

.estimate-subsection h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.estimate-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.estimate-table-wrap table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 13px;
}

.estimate-table-wrap th,
.estimate-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.estimate-table-wrap tr:last-child td {
  border-bottom: 0;
}

.estimate-table-wrap th {
  background: rgba(244, 241, 234, 0.84);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
}

.estimate-result textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 14px;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.estimate-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.estimate-copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 850;
}

.estimate-guide,
.estimate-cautions {
  margin-top: 18px;
}

.estimate-guide-grid {
  display: grid;
  gap: 18px;
}

.estimate-guide h3 {
  margin-bottom: 10px;
}

.estimate-cautions ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .estimate-result .estimate-table-wrap {
    border: 0;
    background: transparent;
  }

  .estimate-result .estimate-table-wrap table {
    min-width: 0;
    display: block;
    font-size: 12px;
  }

  .estimate-result .estimate-table-wrap thead {
    display: none;
  }

  .estimate-result .estimate-table-wrap tbody {
    display: grid;
    gap: 8px;
  }

  .estimate-result .estimate-table-wrap tr {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
    padding: 10px;
  }

  .estimate-result .estimate-table-wrap td {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 0;
  }

  .estimate-result .estimate-table-wrap td::before {
    content: attr(data-label);
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
  }

  .estimate-result .estimate-table-wrap td:first-child {
    display: block;
    width: auto;
    font-weight: 850;
  }

  .estimate-result .estimate-table-wrap td:first-child::before {
    display: none;
  }
}

@media (min-width: 720px) {
  .estimate-app {
    width: min(var(--max), calc(100% - 48px));
    padding: 56px 0 84px;
  }

  .estimate-head-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
  }

  .estimate-head h1 {
    font-size: clamp(38px, 4.4vw, 58px);
  }

  .estimate-head p:not(.section-kicker) {
    font-size: 17px;
  }

  .estimate-controls,
  .estimate-features,
  .estimate-result,
  .estimate-guide,
  .estimate-cautions {
    padding: 24px;
  }

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

  .estimate-panel-head h2 {
    font-size: 24px;
  }

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

  .estimate-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .estimate-actions .button {
    width: auto;
  }

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

@media (min-width: 1080px) {
  .estimate-control-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .estimate-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  }

  .estimate-result {
    position: sticky;
    top: calc(var(--header-height) + 14px);
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  .site-footer,
  .estimate-contact-link,
  .estimate-actions,
  .skip-link {
    display: none !important;
  }

  .estimate-app {
    width: 100%;
    padding: 0;
  }

  .estimate-layout,
  .estimate-comparison,
  .estimate-guide-grid {
    display: block;
  }

  .estimate-panel,
  .estimate-price-card,
  .estimate-difference div,
  .estimate-note {
    break-inside: avoid;
    box-shadow: none !important;
    background: #fff !important;
    border-color: #bbb !important;
  }

  .estimate-panel {
    margin-top: 12px;
    padding: 14px;
  }

  .estimate-result {
    position: static;
  }

  .estimate-price-card {
    margin-top: 10px;
  }

  .estimate-table-wrap {
    overflow: visible;
  }

  .estimate-table-wrap table {
    min-width: 0;
    font-size: 11px;
  }

  .estimate-result textarea {
    min-height: 360px;
  }
}
