:root {
  --line: rgba(24, 24, 21, 0.25);
  --line-strong: rgba(24, 24, 21, 0.72);
  --soft: rgba(255, 255, 255, 0.28);
  --muted: rgba(24, 24, 21, 0.66);
  --accent: #7f292b;
}

button,
input,
textarea { font: inherit; }

button { color: inherit; }

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

.clipboard-fallback {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.builder-shell {
  width: 100%;
  min-height: 100svh;
  padding-inline: var(--gutter);
}

.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(4.75rem, 8vw, 6.75rem);
  border-bottom: 1px solid rgba(24, 24, 21, 0.38);
  font-size: clamp(0.72rem, 0.75vw, 0.84rem);
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.builder-close { text-decoration: none; }

.builder-close {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}

.builder-main {
  width: min(100%, 96rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 7rem) 7rem;
}

.eyebrow,
.section-number,
.option-price,
.quote-group-title,
.visual-path,
.comparison-label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.builder-intro__copy { max-width: 58rem; }

.builder-intro__copy h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.06em;
}

.builder-intro__copy > p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.intro-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 7rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 16px;
  background: #e9e4da;
}

.intro-showcase__frame {
  position: relative;
  min-height: clamp(24rem, 49vw, 43rem);
  overflow: hidden;
  border: 1px solid rgba(24, 24, 21, 0.16);
  border-radius: 12px;
  background: #fbf9f4;
}

.mock-window-bar {
  display: flex;
  gap: 0.35rem;
  height: 2.6rem;
  align-items: center;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
}

.mock-window-bar i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(24, 24, 21, 0.35);
}

.mock-site-name {
  position: absolute;
  top: 5rem;
  left: 8%;
  font-size: clamp(1rem, 2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mock-heading,
.mock-copy,
.mock-button {
  position: absolute;
  left: 8%;
  display: block;
  background: var(--ink);
}

.mock-heading {
  top: 34%;
  width: 72%;
  height: clamp(2.6rem, 6vw, 5rem);
}

.mock-heading--short { top: 48%; width: 48%; }
.mock-copy { top: 67%; width: 50%; height: 2px; box-shadow: 0 0.8rem var(--ink), 0 1.6rem var(--ink); opacity: 0.35; }
.mock-button { top: 82%; width: 7rem; height: 2.8rem; border-radius: 999px; }

.intro-showcase__copy { padding: clamp(1rem, 3vw, 2.5rem) clamp(0.5rem, 2vw, 1.5rem); }

.intro-showcase__copy h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.intro-showcase__copy p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }

.intro-showcase__copy a {
  display: inline-flex;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid;
  text-decoration: none;
}

#preset-container { scroll-margin-top: 2rem; }

.preset-section {
  margin-top: clamp(6rem, 11vw, 12rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-block: 1px solid var(--line-strong);
}

.preset-section > header { max-width: 52rem; }
.preset-section > header h2 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.preset-section > header > p:last-child { margin: 0; color: var(--muted); font-size: 1.12rem; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.preset-tile {
  position: relative;
  display: flex;
  min-height: 12.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.3rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.preset-tile.is-selected { background: var(--ink); color: var(--paper); }
.preset-tile strong { max-width: 12rem; font-size: 1.35rem; line-height: 1.05; }
.preset-tile small { color: inherit; opacity: 0.72; line-height: 1.4; }
.preset-tile__mark { margin-left: auto; font-size: 1.1rem; }

.recovery-panel {
  max-width: 58rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.recovery-panel summary { min-height: 44px; cursor: pointer; font-size: 1.05rem; text-decoration: underline; text-underline-offset: 0.3rem; }
.recovery-panel p { color: var(--muted); line-height: 1.5; }
.recovery-panel textarea { min-height: 7.5rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.76rem; overflow-wrap: anywhere; }
.recovery-status { min-height: 1.5rem; }
.recovery-status.is-error { color: var(--accent); }

.configuration {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(22rem, 0.9fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 7rem);
  margin-top: clamp(5rem, 9vw, 9rem);
}

.configuration-flow { container-type: inline-size; }

.visual-column {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
}

.visual-stage,
.mobile-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 21, 0.14);
  border-radius: 16px;
  background: #e9e4da;
}

.visual-stage { min-height: 0; }

.visual-stage__inner,
.mobile-visual__inner {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.visual-stage.is-changing .visual-stage__inner { opacity: 0; transform: scale(0.985); }

.visual-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.visual-placeholder:not(.has-image) { background: #f8f5ef; }

.visual-placeholder::before,
.visual-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(24, 24, 21, 0.14);
  background: rgba(243, 239, 230, 0.82);
}

.visual-placeholder::before {
  inset: 18% 10% 13% 18%;
  border-radius: 12px;
  box-shadow: -3rem 2.5rem 0 -0.4rem rgba(232, 226, 215, 0.95), 2.5rem -1.7rem 0 -0.2rem rgba(255, 255, 255, 0.55);
}

.visual-placeholder::after {
  top: 37%;
  left: 27%;
  width: 48%;
  height: 26%;
  border-radius: 8px;
}

.visual-placeholder__label {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.1rem;
  max-width: 70%;
  text-align: right;
}

.visual-placeholder__label strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
}

.visual-placeholder img {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.visual-placeholder img.is-loaded { opacity: 1; }
.visual-placeholder.has-image::before,
.visual-placeholder.has-image::after,
.visual-placeholder.has-image .visual-placeholder__label { opacity: 0; }

.mobile-visual { display: none; aspect-ratio: 16 / 9; margin-bottom: 2rem; }

.config-section {
  scroll-margin-top: 2rem;
  padding-block: clamp(4rem, 8vw, 7.5rem);
  border-top: 1px solid var(--line-strong);
}

.config-section:first-child { padding-top: 0; border-top: 0; }

.config-section__heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.config-section__heading h2 {
  margin: 0.6rem 0 0.85rem;
  font-size: clamp(2.35rem, 4.4vw, 4.65rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.config-section__heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }

.config-group + .config-group { margin-top: clamp(3.5rem, 7vw, 6rem); }

.config-group { scroll-margin-top: 3rem; }

.config-group h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.config-group > p { margin: 0 0 1.35rem; color: var(--muted); line-height: 1.45; }

.option-stack { display: grid; gap: 0.75rem; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--line);
}

.page-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 0.45rem 1rem;
  min-height: 10.5rem;
  padding: 1.2rem;
  border: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.page-tile.is-selected { background: var(--ink); color: var(--paper); }
.page-tile:disabled { cursor: default; opacity: 0.72; }
.page-tile strong { grid-column: 1; grid-row: 1; align-self: start; max-width: 14rem; font-size: 1.12rem; line-height: 1.1; }
.page-tile small { grid-column: 1 / -1; color: inherit; opacity: 0.7; line-height: 1.4; }
.page-tile > span:last-child { grid-column: 1 / -1; align-self: end; margin-top: auto; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.page-tile__indicator { grid-column: 2; grid-row: 1; justify-self: end; }
.page-tier-block { margin-top: clamp(3rem, 6vw, 5rem); }
.page-tier-block h3 { margin: 0 0 0.45rem; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 400; }
.page-tier-block > p { margin: 0 0 1.2rem; color: var(--muted); }

.quantity-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quantity-control label strong,
.quantity-control label small { display: block; }
.quantity-control label small { margin-top: 0.25rem; color: var(--muted); }
.quantity-control input { text-align: center; }

.translation-options { margin-top: 1.5rem; }

.option-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  width: 100%;
  min-height: 5.15rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  text-align: left;
  cursor: pointer;
  transition: border-color 190ms ease, background 190ms ease, transform 190ms var(--ease-out);
}

.option-row.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: rgba(24, 24, 21, 0.035); }
.option-row.is-disabled { cursor: not-allowed; opacity: 0.52; }
.option-row:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

.option-indicator {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.08rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0.68rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.option-row.is-selected .option-indicator { background: var(--ink); color: var(--paper); transform: scale(1.04); }

.option-copy strong,
.option-copy small { display: block; }
.option-copy strong { font-size: 1.08rem; font-weight: 600; }
.option-copy small { margin-top: 0.3rem; color: var(--muted); line-height: 1.4; }
.option-price { padding-top: 0.12rem; white-space: nowrap; color: var(--muted); text-align: right; }

.option-note {
  margin: 0.8rem 0 0;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--accent);
  background: rgba(127, 41, 43, 0.05);
  color: var(--muted);
  line-height: 1.45;
}
.option-note strong { color: var(--ink); }

.comparison { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.comparison summary { display: flex; min-height: 44px; align-items: center; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 0.28rem; }
.comparison summary::-webkit-details-marker { display: none; }
.comparison__content { padding: 0.5rem 0 0.4rem; color: var(--muted); line-height: 1.5; }
.comparison[open] .comparison__content { animation: disclosure-in 190ms var(--ease-out) both; }
.comparison__content ul { margin: 0.5rem 0 1rem; padding-left: 1.1rem; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .comparison::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height 260ms var(--ease-out), opacity 180ms ease;
  }
  .comparison[open]::details-content { height: auto; opacity: 1; }
}

.custom-pages-panel,
.revealed-field {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}

.custom-page-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.custom-page-option:last-of-type { border-bottom: 0; }
.custom-page-option label { display: flex; align-items: center; gap: 0.65rem; cursor: pointer; }
.custom-page-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.custom-page-option small { color: var(--muted); }

.custom-page-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 0.6rem; margin-top: 0.7rem; }

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }

.field-label { display: block; margin: 1rem 0 0.5rem; font-size: 0.82rem; }

.small-button,
.remove-page,
.quote-action,
.generate-button,
.estimate-bar button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.72rem 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  cursor: pointer;
}
.small-button { margin-top: 1rem; }
.remove-page { padding: 0; border-radius: 8px; font-size: 1.1rem; }

.hosting-logo { display: inline-grid; width: 1.5rem; height: 1.5rem; place-items: center; margin-right: 0.45rem; vertical-align: middle; }
.hosting-logo svg { width: 100%; height: 100%; }

.estimate-section { padding-bottom: 1rem; }
.review-list { display: grid; gap: 0; margin-bottom: 2rem; border-top: 1px solid var(--line); }
.review-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.review-line span:last-child { color: var(--muted); text-align: right; }

.generate-panel {
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border: 1px solid var(--ink);
  border-radius: 12px;
  text-align: center;
}
.generate-panel h3 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; }
.generate-panel p { margin: 0 auto 1.25rem; max-width: 35rem; color: var(--muted); line-height: 1.5; }
.generate-button { background: var(--ink); color: var(--paper); min-width: 15rem; }
.generate-button:disabled { cursor: wait; opacity: 0.65; }

.outdated-quote-note {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--accent);
  background: rgba(127, 41, 43, 0.05);
  line-height: 1.5;
}

.preparing-panel {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.preparing-panel small { color: var(--muted); }
.preparing-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.quote-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.7rem);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
}
.quote-header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.quote-header h3 { margin: 0.4rem 0 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; }
.quote-group { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.quote-group-title { margin-bottom: 0.65rem; color: var(--muted); }
.quote-line { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.32rem 0; line-height: 1.4; }
.quote-line span:last-child { white-space: nowrap; }
.quote-total { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 0; }
.quote-total strong { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; }
.quote-pricing { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.quote-pricing__row { display: flex; justify-content: space-between; gap: 1.25rem; padding-block: 0.42rem; line-height: 1.45; }
.quote-pricing__row strong { font-weight: 400; white-space: nowrap; }
.quote-pricing__discount { color: var(--muted); }
.quote-pricing__final { align-items: end; margin-top: 0.7rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.quote-pricing__final strong { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.quote-pricing__hint { margin: 0.45rem 0; color: var(--muted); font-size: 0.92rem; }
.quote-notice { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.quote-actions a { display: inline-grid; place-items: center; text-decoration: none; }
.quote-line small { color: var(--muted); }
.historical-note { margin: 1.2rem 0 0; padding: 0.9rem 1rem; border-left: 2px solid var(--accent); background: rgba(127, 41, 43, 0.05); }

.continue-panel,
.code-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.continue-panel h4,
.code-panel h4 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; }
.continue-panel p,
.code-panel p { max-width: 48rem; color: var(--muted); line-height: 1.5; }
.code-panel textarea {
  min-height: 11rem;
  margin-top: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.whats-next {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}

.whats-next__header { max-width: 48rem; }
.whats-next__header h3 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.whats-next__header p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

.next-steps {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.next-step {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.next-step__number {
  color: var(--muted);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.next-step__content { max-width: 48rem; }
.next-step__content h4 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.next-step__content p { margin: 0 0 1rem; color: var(--muted); line-height: 1.55; }
.next-step__content p:last-child { margin-bottom: 0; }
.next-step__content ul { margin: 0.25rem 0 1.15rem; padding-left: 1.25rem; line-height: 1.55; }
.next-step__content li + li { margin-top: 0.35rem; }
.text-link { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.next-step__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.next-step__actions a { display: inline-grid; place-items: center; text-decoration: none; }
.next-step__primary { background: var(--ink); color: var(--paper); }
.copy-feedback { min-height: 1.5em; margin: 0.55rem 0 0 !important; font-size: 0.82rem; }

@media (hover: hover) {
  .preset-tile:hover { background: var(--ink); color: var(--paper); }
  .page-tile:hover:not(:disabled) { background: rgba(255, 255, 255, 0.48); }
  .option-row:hover:not(.is-disabled) { border-color: var(--line-strong); transform: translateY(-1px); }
  .next-step__actions .quote-action { transition: background-color 160ms ease, color 160ms ease; }
  .next-step__actions .quote-action:hover { background: var(--ink); color: var(--paper); }
  .next-step__actions .next-step__primary:hover { background: transparent; color: var(--ink); }
}

.estimate-bar {
  position: fixed;
  z-index: 20;
  left: 0;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--line-strong);
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(14px);
}

.estimate-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100%, 96rem);
  min-height: 4.5rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.estimate-bar p { margin: 0; }
.estimate-bar p span { display: block; margin-top: 0.18rem; color: var(--muted); font-size: 0.86rem; }
.estimate-bar__price { text-align: right; }
.estimate-bar__price strong { font-size: 1.12rem; font-weight: 400; }
.estimate-bar__price small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; }
.estimate-bar__price small[hidden] { display: none; }
.estimate-bar button { min-height: 44px; }

.dependency-note,
.toast {
  position: fixed;
  z-index: 30;
  right: var(--gutter);
  bottom: 5.7rem;
  width: min(28rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--paper);
  line-height: 1.45;
  animation: note-in 220ms var(--ease-out) both;
}
.toast { width: auto; border-color: var(--ink); background: var(--ink); color: var(--paper); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@keyframes note-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes disclosure-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes section-enter { from { opacity: 0.35; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@supports (animation-timeline: view()) {
  .config-section__heading,
  .config-group,
  .whats-next__header,
  .next-step {
    animation: section-enter linear both;
    animation-timeline: view();
    animation-range: entry 0 entry 24%;
  }
}

@media (max-width: 1100px) {
  .configuration { grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.95fr); gap: 2.5rem; }
  .visual-stage { min-height: 0; }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .intro-showcase { grid-template-columns: 1fr; }
  .intro-showcase__frame { min-height: 0; aspect-ratio: 16 / 10; }
  .estimate-bar { padding-bottom: env(safe-area-inset-bottom); }
  .dependency-note,
  .toast { bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .configuration { display: block; }
  .visual-column { display: none; }
  .mobile-visual { display: block; }
  .config-section { padding-block: 4rem; }
  .config-group + .config-group { margin-top: 3.75rem; }
  .estimate-bar__inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 0.65rem; }
  .estimate-bar__price { text-align: left; }
  .estimate-bar button { grid-column: 2; grid-row: 1 / 3; }
  .estimate-bar p:first-child span { display: none; }
  .estimate-bar__price > span,
  .estimate-bar__price small { display: none; }
  .estimate-bar__price strong { font-size: clamp(0.92rem, 4vw, 1.08rem); }
  .page-tile { min-height: 8.75rem; }
}

@container (max-width: 34rem) {
  .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .builder-close span:first-child { display: none; }
  .builder-main { padding-top: 2.75rem; }
  .builder-intro__copy h1 { font-size: clamp(3.7rem, 19vw, 5.5rem); }
  .intro-showcase { margin-inline: calc(var(--gutter) * -0.35); padding: 0.7rem; }
  .intro-showcase__frame { min-height: 0; aspect-ratio: 4 / 3; }
  .option-row { grid-template-columns: 1.2rem minmax(0, 1fr); }
  .preset-grid { grid-template-columns: 1fr; }
  .preset-tile { min-height: 9.5rem; }
  .quantity-control { grid-template-columns: minmax(0, 1fr) 5rem; }
  .option-price { grid-column: 2; text-align: left; padding-top: 0.25rem; }
  .quote-header,
  .quote-total,
  .quote-actions { display: grid; }
  .quote-pricing__row { display: grid; gap: 0.25rem; }
  .quote-pricing__row strong { white-space: normal; }
  .next-step { grid-template-columns: 1fr; gap: 1.25rem; }
  .next-step__number { font-size: 3.3rem; }
  .next-step__actions { display: grid; }
  .next-step__actions .quote-action { width: 100%; }
  .estimate-bar__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
  .estimate-bar__price { grid-column: 1; }
  .estimate-bar button { grid-column: 2; grid-row: 1 / 3; padding-inline: 0.7rem; }
  input[type="text"], input[type="number"], textarea { font-size: 16px; }
  .recovery-panel textarea,
  .code-panel textarea { font-size: 16px; }
}

@media (hover: none), (pointer: coarse) {
  .preset-tile:active,
  .page-tile:not(:disabled):active,
  .option-row:not(.is-disabled):active,
  .quote-action:active,
  .generate-button:active,
  .estimate-bar button:active {
    transform: scale(0.985);
  }
}

@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;
  }
}

@media print {
  body { background: #fff; }
  .builder-header,
  .builder-intro,
  .visual-column,
  .config-section:not(.estimate-section),
  .estimate-bar,
  builtbymatthew-footer,
  .generate-panel { display: none !important; }
  .builder-shell,
  .builder-main,
  .configuration { display: block; padding: 0; margin: 0; }
  .estimate-section { border: 0; padding: 0; }
  .config-section__heading,
  .review-list { display: none; }
  .quote-panel { margin: 0; border: 0; background: #fff; }
  .quote-actions { display: none; }
  .continue-panel,
  .code-panel { display: none; }
  .whats-next { display: none; }
}
