:root {
  font-synthesis: none;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/dm-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/dm-sans-700.woff2") format("woff2");
}

:root {
  --brand: #3687a1;
  --brand-deep: #286b81;
  --action: #0092c7;
  --accent: #0db1ec;
  --ink: #142f38;
  --muted: #627b83;
  --paper: #ffffff;
  --warm: #fffbfa;
  --line: #dbe9ed;
  --soft-blue: #eef9fc;
  --yellow: #ffe85a;
  --coral: #ff7657;
  --purple: #c89bf2;
  --shadow: 0 12px 40px rgba(43, 91, 105, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brand);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible + .option-card {
  outline: 3px solid rgba(13, 177, 236, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--brand);
  line-height: 1.1;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.site-header,
.hero,
.builder-shell,
.summary-section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.header-tools,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-tools {
  gap: 20px;
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--warm);
}

.language-switcher button {
  min-width: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  color: white;
  background: var(--action);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(13, 177, 236, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: 650px;
  padding: 70px 0 100px;
  gap: 72px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--action);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.16rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button-primary:hover {
  background: #007fac;
}

.button-secondary {
  color: var(--brand);
  border-color: var(--line);
  background: white;
}

.button-secondary:hover {
  border-color: var(--brand);
}

.hero-art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, #f5d0ff 0%, #eab0ee 28%, #ffe75c 68%, #ffb049 100%);
}

.hero-art::before {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -45px;
  bottom: -30px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.art-card {
  position: absolute;
  width: min(340px, 76%);
  left: 50%;
  top: 50%;
  padding: 34px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 16px 18px 0 rgba(20, 47, 56, 0.12);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.art-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.65rem;
  line-height: 1.12;
}

.art-label {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.art-lines span {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.art-lines span:nth-child(2) {
  width: 78%;
}

.art-lines span:nth-child(3) {
  width: 54%;
  background: var(--accent);
}

.art-orbit {
  position: absolute;
  border: 2px solid rgba(20, 47, 56, 0.35);
  border-radius: 50%;
}

.orbit-one {
  width: 300px;
  height: 92px;
  left: -70px;
  top: 80px;
  transform: rotate(18deg);
}

.orbit-two {
  width: 180px;
  height: 55px;
  right: 18px;
  bottom: 56px;
  transform: rotate(-28deg);
}

.art-spark {
  position: absolute;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 400;
}

.spark-one {
  right: 72px;
  top: 54px;
}

.spark-two {
  left: 52px;
  bottom: 55px;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  margin-bottom: 110px;
  border-radius: 24px;
  background: var(--warm);
  box-shadow: var(--shadow);
}

.builder-main {
  min-height: 690px;
  padding: 56px;
}

.builder-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.step-label {
  flex: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-track {
  height: 5px;
  margin: 26px 0 42px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.step-panel {
  animation: step-in 220ms ease;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-panel > p {
  max-width: 620px;
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

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

.goal-grid .option-card {
  min-height: 190px;
}

.option-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.option-card {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: white;
  box-shadow: 0 5px 18px rgba(43, 91, 105, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 91, 105, 0.1);
}

.option-input:checked + .option-card {
  border-color: var(--action);
  box-shadow: 0 8px 24px rgba(0, 146, 199, 0.12);
}

.option-card::after {
  position: absolute;
  width: 20px;
  height: 20px;
  right: 16px;
  top: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  content: "";
}

.option-input[type="checkbox"] + .option-card::after {
  border-radius: 5px;
}

.option-input:checked + .option-card::after {
  border-color: var(--action);
  background: var(--action);
  box-shadow: inset 0 0 0 4px white;
}

.option-title {
  padding-right: 28px;
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 800;
}

.option-description {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.option-more {
  align-self: flex-start;
  margin: 10px 0 0 12px;
  padding: 4px 8px;
  border: 0;
  color: var(--action);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.option-price {
  margin-top: auto;
  padding-top: 12px;
  color: var(--action);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 460px;
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 5px 18px rgba(43, 91, 105, 0.06);
}

.outcome-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 36px;
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  color: var(--muted);
  background: white;
  box-shadow: 0 24px 80px rgba(20, 47, 56, 0.28);
}

.outcome-dialog::backdrop {
  background: rgba(20, 47, 56, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  background: white;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.outcome-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.dialog-description {
  margin-bottom: 26px;
  font-size: 1.02rem;
}

.dialog-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.dialog-section h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.dialog-section p,
.dialog-success p {
  margin-bottom: 0;
}

.dialog-capabilities {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.dialog-capabilities li {
  position: relative;
  padding-left: 24px;
}

.dialog-capabilities li::before {
  position: absolute;
  left: 0;
  color: var(--action);
  content: "✓";
  font-weight: 800;
}

.dialog-success {
  margin: 6px 0 26px;
  padding: 18px;
  border-radius: 12px;
  color: var(--brand-deep);
  background: var(--soft-blue);
}

.dialog-success strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
}

.page-control-copy strong {
  display: block;
  color: var(--brand);
}

.page-control-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.counter {
  display: flex;
  align-items: center;
  gap: 15px;
}

.counter button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  background: white;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
}

.counter output {
  min-width: 28px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.form-error {
  margin: 20px 0 0;
  color: #a74031;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 42px;
}

.estimate-panel {
  position: sticky;
  top: 24px;
  min-height: 690px;
  padding: 56px 38px;
  border-radius: 0 24px 24px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand);
}

.estimate-panel h2 {
  color: white;
  font-size: 1.65rem;
}

.estimate-range {
  margin: 34px 0 8px;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.estimate-note {
  font-size: 0.82rem;
  line-height: 1.45;
}

.estimate-divider {
  height: 1px;
  margin: 32px 0;
  background: rgba(255, 255, 255, 0.18);
}

.estimate-details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.estimate-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.estimate-details dt {
  font-size: 0.84rem;
}

.estimate-details dd {
  margin: 0;
  color: white;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.estimate-prompt {
  margin-top: 44px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.summary-section {
  padding: 90px 0 110px;
}

.summary-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 48px;
}

.summary-header > div:first-child {
  max-width: 660px;
}

.summary-header p:not(.eyebrow) {
  color: var(--muted);
}

.summary-estimate {
  flex: none;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
}

.summary-estimate span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-estimate strong {
  display: block;
  color: var(--brand);
  font-size: 1.6rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.payment-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.payment-card.recommended {
  border: 2px solid var(--action);
  box-shadow: var(--shadow);
}

.recommended-tag {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: var(--action);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-card h3 {
  font-size: 1.4rem;
}

.payment-price {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.payment-price small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.payment-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-total {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.summary-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--warm);
}

.scope-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
}

.scope-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scope-list dt {
  color: var(--muted);
}

.scope-list dd {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  text-align: right;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--action);
  content: "✓";
  font-weight: 800;
}

.ownership-note {
  margin-top: 18px;
  padding: 26px 30px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--brand);
}

.ownership-note strong {
  color: white;
}

.ownership-note p {
  margin: 5px 0 0;
}

.summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-art {
    min-height: 370px;
  }

  .builder-shell {
    grid-template-columns: 1fr;
  }

  .estimate-panel {
    position: static;
    min-height: 0;
    border-radius: 0 0 24px 24px;
  }

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

@media (max-width: 680px) {
  .site-header,
  .hero,
  .builder-shell,
  .summary-section,
  footer {
    width: min(100% - 28px, 1180px);
  }

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

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

  .brand span {
    font-size: 0.88rem;
  }

  .header-meta {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .hero {
    min-height: auto;
    padding: 45px 0 76px;
    gap: 46px;
  }

  .hero-art {
    min-height: 320px;
  }

  .art-card {
    padding: 25px;
  }

  .art-card strong {
    font-size: 1.35rem;
  }

  .builder-main,
  .estimate-panel {
    padding: 34px 22px;
  }

  .builder-heading,
  .summary-header {
    display: block;
  }

  .step-label {
    margin-top: 18px;
  }

  .option-grid,
  .option-grid.three-up,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 118px;
  }

  .form-actions {
    gap: 10px;
  }

  .form-actions .button {
    flex: 1;
  }

  .summary-estimate {
    margin-top: 28px;
  }

  .summary-actions {
    flex-direction: column;
  }

  .outcome-dialog {
    padding: 28px 22px;
  }

  footer {
    flex-direction: column;
    gap: 5px;
  }
}

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

  body {
    color: #1d3c46;
    font-size: 11pt;
  }

  .site-header,
  .hero,
  .builder-shell,
  .summary-actions,
  footer {
    display: none !important;
  }

  .summary-section {
    display: block !important;
    width: 100%;
    padding: 0;
  }

  .summary-header {
    margin-bottom: 24px;
  }

  .payment-grid,
  .summary-grid {
    gap: 10px;
  }

  .payment-card,
  .summary-card,
  .ownership-note {
    break-inside: avoid;
    box-shadow: none;
  }

  .payment-card {
    min-height: 260px;
    padding: 20px;
  }

  .ownership-note {
    color: #1d3c46;
    border: 1px solid var(--line);
    background: white;
  }

  .ownership-note strong {
    color: var(--brand);
  }
}
