:root {
  --navy: #193d49;
  --navy-soft: #24515e;
  --ink: #17343d;
  --muted: #62747a;
  --muted-light: #87969a;
  --blue: #f5b83d;
  --blue-bright: #ffc64d;
  --blue-soft: #fff4d7;
  --surface: #f3f5f2;
  --surface-strong: #e8edeb;
  --line: #d9e0dd;
  --white: #ffffff;
  --green: #087a56;
  --error: #b42318;
  --warning: #9a5700;
  --shadow-sheet: 0 24px 64px rgba(13, 47, 57, 0.14);
  color: var(--ink);
  background: var(--white);
  font-family:
    "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.size-option:has(input:focus-visible) {
  outline: 3px solid rgba(22, 132, 214, 0.3);
  outline-offset: 3px;
}

textarea[aria-invalid="true"],
input[aria-invalid="true"] {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background:
    linear-gradient(90deg, var(--navy) 0 10px, transparent 10px),
    var(--white);
}

.access-card {
  width: min(440px, 100%);
  padding: clamp(30px, 6vw, 46px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sheet);
}

.access-card > img {
  width: 124px;
  height: auto;
  padding: 9px 12px;
  display: block;
  background: var(--navy);
  border-radius: 9px;
}

.access-copy {
  margin-top: 38px;
}

.access-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 740;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.access-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.access-card form {
  margin-top: 30px;
}

.access-card form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.access-input {
  position: relative;
}

.access-input input {
  width: 100%;
  height: 50px;
  padding: 0 84px 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd6e0;
  border-radius: 10px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.access-input button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--blue);
  cursor: pointer;
  background: var(--blue-soft);
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.access-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--error);
  font-size: 12px;
  font-weight: 620;
}

.access-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  padding: 0 18px;
  color: var(--white);
  cursor: pointer;
  background: var(--blue);
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 720;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 180ms ease;
}

.access-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.access-submit:active {
  transform: translateY(0);
}

.access-card > small {
  margin-top: 24px;
  display: block;
  color: var(--muted-light);
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}

.access-card.is-error {
  animation: access-error 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header {
  width: min(1440px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 116px;
  height: auto;
  padding: 8px 11px;
  display: block;
  background: var(--navy);
  border-radius: 9px;
}

.brand > span {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--line);
}

.brand strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header > p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header > p span {
  width: 7px;
  height: 7px;
  background: var(--blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 132, 214, 0.1);
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) clamp(22px, 4vw, 64px) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.78fr);
  gap: clamp(52px, 7vw, 106px);
  align-items: start;
}

.builder {
  min-width: 0;
}

.intro {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 6.6vw, 86px);
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro h1 span {
  color: var(--blue);
}

.intro p {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  padding: 0 0 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

legend span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

legend small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.size-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.size-option {
  position: relative;
  min-height: 78px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.size-option:hover {
  border-color: #87bada;
  transform: translateY(-2px);
}

.size-option:has(input:checked) {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--muted-light);
  border-radius: 50%;
}

.size-option:has(input:checked)::after {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.size-name {
  padding-right: 15px;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.size-price {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.size-option:has(input:checked) .size-price {
  color: #e3f2fc;
}

.size-option--custom {
  background: var(--blue-soft);
  border-color: #c7e1f2;
}

.custom-measure-panel {
  margin-top: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: 14px;
  animation: reveal-panel 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.custom-measure-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.custom-measure-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.custom-measure-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.custom-measure-heading > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-measure-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.custom-base-field {
  grid-column: 1 / -1;
}

.custom-measure-fields > label,
.global-values > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.money-input,
.unit-input {
  position: relative;
  display: block;
}

.money-input b,
.unit-input b {
  position: absolute;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  transform: translateY(-50%);
}

.money-input b {
  left: 12px;
}

.unit-input b {
  right: 12px;
}

.money-input input {
  padding-left: 28px !important;
}

.unit-input input {
  padding-right: 34px !important;
}

.custom-measure-fields input,
.price-editor input,
.global-values input,
.transport-fields input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd6e0;
  border-radius: 10px;
  font-size: 16px;
}

.custom-measure-fields input::placeholder,
.transport-fields input::placeholder {
  color: #8898a8;
  opacity: 1;
}

.custom-price-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field-error {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
}

.price-editor {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-editor summary {
  padding: 17px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.price-editor summary > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.price-editor summary strong {
  font-size: 13px;
  font-weight: 700;
}

.price-editor summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.price-editor summary > b {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.price-editor[open] summary > b {
  color: var(--muted);
}

.roof-section {
  margin-top: 38px;
}

.roof-options {
  margin-top: 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: var(--surface);
  border-radius: 14px;
}

.roof-option {
  position: relative;
  min-height: 66px;
  cursor: pointer;
}

.roof-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.roof-option > span {
  height: 100%;
  padding: 12px 15px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  border-radius: 10px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.roof-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.roof-option small {
  font-size: 11px;
  line-height: 1.35;
}

.roof-option:has(input:checked) > span {
  color: #e3f2fc;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(11, 111, 184, 0.2);
}

.roof-option:has(input:checked) strong {
  color: var(--white);
}

.roof-option:has(input:focus-visible) > span {
  outline: 3px solid rgba(22, 132, 214, 0.3);
  outline-offset: 3px;
}

.price-editor-content {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 14px;
}

.price-editor-head,
.price-editor-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.72fr) repeat(2, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
}

.price-editor-head {
  padding: 0 9px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-editor-row {
  min-height: 58px;
  padding: 7px 9px;
  border-top: 1px solid var(--line);
}

.price-editor-row strong {
  font-size: 12px;
  font-weight: 680;
}

.price-editor-row input {
  height: 40px;
}

.global-values {
  margin-top: 14px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(100px, 0.55fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.global-values button {
  min-height: 44px;
  padding: 0 15px;
  color: var(--blue);
  cursor: pointer;
  background: var(--white);
  border: 1px solid #b7cfdf;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.global-values button:hover {
  background: var(--blue-soft);
}

.extras {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.extra-row,
.tax-row {
  min-height: 92px;
  padding: 21px 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.extra-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.extra-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.extra-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.extra-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
}

.extra-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extra-icon--letter {
  font-size: 17px;
  font-weight: 740;
}

.extra-icon--tax {
  font-size: 16px;
  font-weight: 720;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch > span {
  width: 44px;
  height: 24px;
  padding: 3px;
  display: block;
  background: #c5d0da;
  border-radius: 99px;
  transition: background-color 180ms ease;
}

.switch > span::after {
  width: 18px;
  height: 18px;
  display: block;
  content: "";
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(19, 43, 64, 0.22);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.switch input:checked + span {
  background: var(--blue);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.switch input:focus-visible + span {
  outline: 3px solid rgba(22, 132, 214, 0.3);
  outline-offset: 3px;
}

.switch b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.extra-detail {
  grid-column: 1 / -1;
  min-height: 60px;
  margin-left: 56px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 12px;
}

.detail-label {
  color: var(--muted);
  font-size: 12px;
}

.extra-detail > strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.custom-sides-controls {
  width: 100%;
  display: grid;
  gap: 10px;
}

.custom-side-option {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(80px, auto);
  align-items: center;
  gap: 14px;
}

.custom-side-option > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.custom-side-option > span strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.custom-side-option > span small {
  color: var(--muted);
  font-size: 11px;
}

.custom-side-option > strong,
.custom-sides-summary strong {
  color: var(--ink);
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.custom-sides-summary {
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.custom-sides-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.custom-sides-controls .field-error {
  margin-top: 0;
}

.stepper {
  display: grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stepper button {
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 20px;
}

.stepper button:hover {
  background: var(--blue-soft);
}

.stepper output {
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.transport-fields {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
}

.specifications-editor {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.specifications-heading {
  padding: 24px 0 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.specifications-heading h2,
.specification-title h3 {
  margin: 0;
  color: var(--ink);
}

.specifications-heading h2 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.specifications-heading p,
.specification-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.specifications-heading > span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specification-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.specification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.specification-title h3 {
  font-size: 14px;
  font-weight: 700;
}

.specification-detail {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.specification-detail label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.specification-detail textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cbd6e0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.transport-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.transport-fields .field-error {
  margin-top: 0;
}

.quote-panel {
  position: sticky;
  top: 28px;
  min-width: 0;
}

.panel-caption {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
}

.panel-caption > span:first-child {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8, 122, 86, 0.1);
}

.status-dot.is-pending {
  color: var(--warning);
}

.status-dot.is-pending::before {
  background: #c77500;
  box-shadow: 0 0 0 5px rgba(199, 117, 0, 0.1);
}

.quote-sheet {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sheet);
  animation: sheet-arrive 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sheet-heading {
  min-height: 128px;
  padding: 30px 28px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  background: var(--navy);
}

.sheet-heading p {
  margin: 0 0 8px;
  color: #afc3d5;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sheet-heading h2 {
  max-width: 320px;
  margin: 0;
  color: var(--white);
  font-size: 28px;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.sheet-heading > span {
  color: #6fc2f2;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.breakdown {
  padding: 22px 28px 4px;
}

.line-item {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.line-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.line-item strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.line-item--tax {
  color: var(--blue);
}

.line-item--pending strong {
  color: var(--warning);
}

.line-item--excluded strong {
  color: var(--muted);
  font-weight: 620;
}

.line-item--description strong {
  max-width: 62%;
  color: var(--blue);
  text-align: right;
  font-variant-numeric: normal;
}

.quote-specifications {
  margin: 0 28px 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.quote-specifications h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.quote-specification + .quote-specification {
  margin-top: 12px;
}

.quote-specification strong {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 720;
}

.quote-specification p {
  margin: 3px 0 0;
  color: #42586c;
  font-size: 11px;
  line-height: 1.55;
}

.total-block {
  margin: 16px 28px 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 13px;
}

.total-block span {
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.total-block strong {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.message-preview {
  margin: 0 28px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.message-preview summary {
  padding: 13px 0;
  color: #344b60;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
}

.message-preview pre {
  margin: 0 0 14px;
  padding: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #42586c;
  background: var(--surface);
  border-radius: 10px;
  font: 12px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.actions {
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 9px;
}

.button {
  min-height: 50px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 720;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  color: var(--white);
  background: var(--blue);
}

.button--whatsapp {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 18px rgba(8, 122, 86, 0.2);
}

.button--export {
  color: var(--blue);
  background: var(--white);
  border: 1px solid #b7cfdf;
}

.button--export:hover {
  background: var(--blue-soft);
  filter: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.action-note {
  margin: 11px 28px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.mobile-quickbar {
  display: none;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(19, 43, 64, 0.25);
  font-size: 12px;
  font-weight: 680;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sheet-arrive {
  from {
    opacity: 0.55;
    clip-path: inset(0 0 14% 0 round 16px);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 round 16px);
    transform: translateY(0);
  }
}

@keyframes reveal-panel {
  from {
    opacity: 0.5;
    clip-path: inset(0 0 36% 0 round 14px);
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 round 14px);
    transform: translateY(0);
  }
}

@keyframes access-error {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-8px);
  }
  65% {
    transform: translateX(6px);
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 46px;
  }

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

  .actions {
    grid-template-columns: 1fr;
  }

  .global-values {
    grid-template-columns: 1fr 0.6fr;
  }

  .global-values button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .workspace {
    padding-top: 58px;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .intro h1 {
    font-size: clamp(52px, 11vw, 76px);
  }

  .quote-panel {
    position: static;
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .mobile-quickbar {
    position: fixed;
    z-index: 20;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    min-height: 64px;
    padding: 9px 10px 9px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--white);
    background: var(--navy);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(19, 43, 64, 0.3);
  }

  .mobile-quickbar span {
    display: grid;
    gap: 2px;
  }

  .mobile-quickbar small {
    color: #a9bfd2;
    font-size: 9px;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-quickbar strong {
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
  }

  .mobile-quickbar button {
    min-height: 44px;
    padding: 0 18px;
    color: var(--white);
    cursor: pointer;
    background: var(--blue);
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 720;
  }
}

@media (max-width: 620px) {
  .access-screen {
    padding: 16px;
    background:
      linear-gradient(180deg, var(--navy) 0 8px, transparent 8px),
      var(--white);
  }

  .access-card {
    padding: 28px 22px;
    box-shadow: 0 18px 46px rgba(25, 55, 82, 0.15);
  }

  .access-copy {
    margin-top: 32px;
  }

  .access-copy h1 {
    font-size: 31px;
  }

  .site-header {
    min-height: 72px;
    padding-inline: 18px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 88px;
    padding: 7px 9px;
  }

  .brand > span {
    height: 25px;
  }

  .brand strong {
    font-size: 12px;
  }

  .site-header > p {
    display: none;
  }

  .workspace {
    padding: 42px 16px 44px;
    gap: 52px;
  }

  .intro {
    margin-bottom: 48px;
  }

  .intro h1 {
    font-size: clamp(47px, 14.5vw, 63px);
    letter-spacing: -0.04em;
  }

  .intro p {
    margin-top: 20px;
    font-size: 15px;
  }

  legend {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

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

  .size-option {
    min-height: 72px;
  }

  .custom-measure-panel {
    padding: 16px;
  }

  .custom-measure-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .custom-measure-fields {
    grid-template-columns: 1fr;
  }

  .custom-base-field {
    grid-column: auto;
  }

  .price-editor-head {
    display: none;
  }

  .price-editor-content {
    padding: 12px;
  }

  .price-editor-row {
    padding: 12px 4px;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .price-editor-row strong {
    grid-column: 1 / -1;
  }

  .global-values {
    grid-template-columns: 1fr;
  }

  .global-values button {
    grid-column: auto;
  }

  .roof-options {
    grid-template-columns: 1fr;
  }

  .extra-row,
  .tax-row {
    gap: 14px 10px;
  }

  .switch b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .extra-detail {
    margin-left: 0;
  }

  .custom-side-option {
    grid-template-columns: 1fr auto;
  }

  .custom-side-option > strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .specifications-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .specification-title {
    gap: 12px;
  }

  .transport-fields {
    grid-template-columns: 1fr;
  }

  .sheet-heading,
  .breakdown {
    padding-inline: 20px;
  }

  .sheet-heading {
    min-height: 118px;
    padding-block: 26px;
  }

  .sheet-heading h2 {
    font-size: 25px;
  }

  .total-block,
  .quote-specifications,
  .message-preview {
    margin-inline: 20px;
  }

  .total-block {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .total-block strong {
    font-size: 42px;
  }

  .actions {
    padding-inline: 20px;
  }

  .action-note {
    margin-inline: 20px;
  }

  .toast {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Carpas JD — taller de lona */
body {
  background: var(--surface);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.size-option:has(input:focus-visible) {
  outline-color: rgba(245, 184, 61, 0.55);
}

.access-screen {
  background: var(--navy);
}

.access-screen::before {
  position: fixed;
  inset: 0 0 auto;
  height: 14px;
  content: "";
  background: var(--blue);
}

.access-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(4, 23, 29, 0.34);
}

.access-card::after {
  content: none;
}

.access-card > img {
  width: 104px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.access-copy h1 {
  color: var(--navy);
}

.access-input input,
.price-editor-row input,
.global-values input,
.custom-measure-fields input,
.transport-fields input,
.specification-detail textarea {
  border-radius: 4px;
}

.access-input button,
.access-submit {
  color: var(--navy);
  background: var(--blue);
  border-radius: 4px;
}

.access-input button:hover,
.access-submit:hover {
  filter: brightness(1.03);
}

.site-header {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 96px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 10px solid var(--blue);
}

.brand {
  color: var(--white);
}

.brand img {
  width: 68px;
  height: 68px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.brand > span {
  height: 36px;
  background: rgba(255, 255, 255, 0.26);
}

.brand strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.site-header > p {
  color: rgba(255, 255, 255, 0.72);
}

.site-header > p span {
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(245, 184, 61, 0.12);
}

.workspace {
  background: var(--surface);
}

.builder {
  position: relative;
}

.builder::before {
  position: absolute;
  top: 2px;
  bottom: 0;
  left: -28px;
  width: 4px;
  content: "";
  background: var(--blue);
}

.intro h1 {
  max-width: 700px;
  color: var(--navy);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(60px, 7.2vw, 96px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.intro h1 span {
  color: var(--navy-soft);
}

.intro p {
  max-width: 560px;
}

.quantity-section {
  margin-top: 38px;
}

.quantity-control {
  min-height: 78px;
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quantity-control > div:first-child {
  display: grid;
  gap: 4px;
}

.quantity-control strong {
  color: var(--ink);
  font-size: 14px;
}

.quantity-control small {
  color: var(--muted);
  font-size: 11px;
}

legend {
  border-bottom-color: #cbd5d1;
}

.size-option {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 4px;
}

.size-option:hover {
  border-color: #e0a126;
}

.size-option:has(input:checked) {
  color: var(--navy);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(124, 87, 14, 0.14);
}

.size-option:has(input:checked)::after {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(25, 61, 73, 0.12);
}

.size-option:has(input:checked) .size-price {
  color: rgba(25, 61, 73, 0.78);
}

.size-option--custom {
  background: var(--blue-soft);
  border-color: #ead7a5;
}

.custom-measure-panel,
.price-editor-content,
.extra-detail,
.specifications-editor,
.roof-options {
  border-radius: 6px;
}

.roof-option > span {
  border-radius: 3px;
}

.roof-option:has(input:checked) > span {
  color: var(--navy);
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(124, 87, 14, 0.15);
}

.roof-option:has(input:checked) strong {
  color: var(--navy);
}

.extra-icon {
  color: var(--navy);
  background: var(--blue);
  border-radius: 4px;
}

.extra-icon--letter {
  font-size: 12px;
  letter-spacing: -0.04em;
}

.switch input:checked + span {
  background: var(--blue);
}

.switch input:checked + span::after {
  background: var(--navy);
}

.global-values button {
  color: var(--navy);
  border-color: #dac17f;
  border-radius: 4px;
}

.quote-panel {
  top: 30px;
}

.panel-caption > span:first-child {
  color: var(--navy);
}

.quote-sheet {
  border: 1px solid rgba(25, 61, 73, 0.08);
  border-radius: 6px;
}

.sheet-heading {
  position: relative;
  min-height: 142px;
  padding-top: 36px;
  background: var(--navy);
}

.sheet-heading::before {
  content: none;
}

.sheet-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.sheet-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.line-item--tax,
.line-item--description strong,
.quote-specification strong {
  color: #9a6a0a;
}

.total-block {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background: var(--blue);
  border-radius: 4px;
}

.total-block::after {
  content: none;
}

.message-preview pre {
  border-radius: 4px;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.button {
  border-radius: 4px;
}

.button--primary {
  color: var(--navy);
  background: var(--blue);
}

.button--export {
  color: var(--navy);
  border-color: #d4c084;
}

.mobile-quickbar {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.mobile-quickbar button {
  color: var(--navy);
  background: var(--blue);
  border-radius: 3px;
}

.toast {
  color: var(--navy);
  background: var(--blue);
  border-radius: 4px;
}

@media (max-width: 620px) {
  .access-screen {
    background: var(--navy);
  }

  .site-header {
    min-height: 80px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .builder::before {
    display: none;
  }

  .workspace {
    padding-inline: 18px;
  }

  .intro h1 {
    font-size: clamp(57px, 17vw, 72px);
    line-height: 0.9;
  }

  .quantity-control {
    min-height: 74px;
    padding: 12px;
  }
}
