    :root {
      --bg: #f5f2ea;
      --surface: #ffffff;
      --surface-alt: #f8f8f6;
      --ink: #18202b;
      --muted: #5c6778;
      --line: #d8dde5;
      --brand: #17324d;
      --brand-2: #8a6530;
      --accent: #d9b77a;
      --success: #1f7a4f;
      --warning: #bb7a1a;
      --danger: #b44747;
      --shadow: 0 18px 40px rgba(18, 32, 43, 0.12);
      --radius: 20px;
      --radius-sm: 12px;
      --max: 1240px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
      line-height: 1.5;
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .container {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .btn,
    button {
      border: 0;
      cursor: pointer;
      font: inherit;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 22px;
      border-radius: 999px;
      font-weight: 600;
      transition: transform .18s ease, opacity .18s ease, background .18s ease;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn:disabled {
      cursor: not-allowed;
      opacity: .45;
      transform: none;
    }

    .btn-primary {
      background: var(--brand);
      color: #fff;
    }

    .btn-secondary {
      background: #fff;
      color: var(--brand);
      border: 1px solid rgba(255,255,255,.35);
    }

    .btn-light {
      background: #fff;
      color: var(--ink);
      border: 1px solid var(--line);
    }

    .tag {
      display: inline-flex;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.14);
      color: #fff;
      border: 1px solid rgba(255,255,255,.2);
      font-size: 13px;
      letter-spacing: .02em;
    }

    .eyebrow {
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 12px;
      font-weight: 700;
      color: var(--brand-2);
    }

    .section {
      padding: 84px 0;
    }

    #consultation,
    #questionContainer {
      scroll-margin-top: 96px;
    }

    .section-head {
      margin-bottom: 34px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    .section-head h2 {
      margin: 8px 0 0;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.05;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
      max-width: 620px;
    }

    /* Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(245, 242, 234, 0.82);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(24, 32, 43, 0.06);
    }

    .site-header__inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: .02em;
      text-decoration: none;
    }

    .brand-logo {
      width: 180px;
      height: auto;
    }

    .brand:focus-visible {
      outline: 2px solid var(--brand-2);
      outline-offset: 4px;
      border-radius: 4px;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .nav a {
      color: var(--muted);
      font-weight: 500;
    }

    .nav a:hover { color: var(--ink); }

    /* Hero */
    .hero {
      position: relative;
      color: #fff;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(9,16,22,.18), rgba(9,16,22,.55)),
        linear-gradient(90deg, rgba(10,18,26,.70), rgba(10,18,26,.28)),
        var(--demo-hero-image) center/cover no-repeat;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 120px;
      background: linear-gradient(to top, var(--bg), transparent);
    }

    .hero__inner {
      position: relative;
      z-index: 1;
      min-height: 760px;
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      align-items: center;
      gap: 36px;
      padding: 70px 0 100px;
    }

    .hero h1 {
      margin: 18px 0;
      font-size: clamp(40px, 6vw, 78px);
      line-height: .98;
      max-width: 760px;
    }

    .hero p.lead {
      margin: 0 0 28px;
      font-size: 18px;
      max-width: 700px;
      color: rgba(255,255,255,.88);
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 28px;
    }

    .hero-search {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      padding: 10px;
      width: min(680px, 100%);
      box-shadow: var(--shadow);
    }

    .hero-search input {
      flex: 1;
      min-width: 180px;
      border: 0;
      outline: 0;
      background: transparent;
      color: #fff;
      padding: 12px 14px;
      font: inherit;
    }

    .hero-search input::placeholder {
      color: rgba(255,255,255,.7);
    }

    .hero-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 14px;
      margin-top: 24px;
      max-width: 720px;
    }

    .metric {
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      padding: 16px 18px;
      backdrop-filter: blur(8px);
    }

    .metric strong {
      display: block;
      font-size: 26px;
      margin-bottom: 4px;
    }

    .metric span {
      color: rgba(255,255,255,.78);
      font-size: 14px;
    }

    .hero-card {
      background: rgba(255,255,255,.92);
      color: var(--ink);
      border-radius: 26px;
      padding: 28px;
      box-shadow: var(--shadow);
    }

    .hero-card h3 {
      margin: 8px 0 8px;
      font-size: 30px;
      line-height: 1.05;
    }

    .hero-card p {
      color: var(--muted);
      margin: 0 0 18px;
    }

    .mini-list {
      display: grid;
      gap: 12px;
      margin: 20px 0 24px;
    }

    .mini-item {
      display: flex;
      gap: 12px;
      align-items: start;
      padding: 12px 0;
      border-top: 1px solid var(--line);
    }

    .mini-item:first-child { border-top: 0; }
    .mini-bullet {
      width: 10px;
      height: 10px;
      margin-top: 7px;
      border-radius: 50%;
      background: var(--brand-2);
      flex: 0 0 auto;
    }

    /* Cards */
    .property-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 22px;
    }

    .property-card {
      background: var(--surface);
      border-radius: 22px;
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid rgba(24,32,43,.06);
      display: flex;
      flex-direction: column;
    }

    .property-media {
      aspect-ratio: 1.2 / 1;
      overflow: hidden;
    }

    .property-media picture,
    .property-media img {
      width: 100%;
      height: 100%;
    }

    .property-media picture {
      display: block;
    }

    .property-media img {
      object-fit: cover;
      transition: transform .45s ease;
    }

    .property-card:hover .property-media img {
      transform: scale(1.04);
    }

    .property-body {
      padding: 22px;
      display: grid;
      gap: 14px;
    }

    .property-top {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: start;
    }

    .property-title {
      font-size: 24px;
      line-height: 1.08;
      margin: 0;
    }

    .price {
      color: var(--brand);
      font-weight: 800;
      white-space: nowrap;
    }

    .property-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 14px;
    }

    .chip {
      background: var(--surface-alt);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      color: var(--ink);
    }

    /* Features / steps */
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 22px;
    }

    .info-card {
      background: var(--surface);
      border-radius: 22px;
      padding: 26px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(24,32,43,.06);
    }

    .info-card h3 {
      margin: 12px 0 8px;
      font-size: 24px;
    }

    .info-card p {
      margin: 0;
      color: var(--muted);
    }

    .icon-box {
      width: 56px;
      height: 56px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #1e3c5a, #294f74);
      color: #fff;
      font-weight: 800;
      font-size: 18px;
    }

    /* Quiz shell */
    .quiz-shell {
      background: var(--surface);
      border-radius: 28px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(24,32,43,.06);
      overflow: hidden;
      min-width: 0;
      width: 100%;
    }

    .quiz-topbar {
      padding: 20px 24px;
      background: linear-gradient(90deg, #17324d, #284c70);
      color: #fff;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      flex-wrap: wrap;
    }

    .quiz-stepper {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .quiz-step {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,.8);
      font-size: 14px;
    }

    .quiz-step__num {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.35);
      font-weight: 700;
    }

    .quiz-step.active,
    .quiz-step.done { color: #fff; }

    .quiz-step.done .quiz-step__num,
    .quiz-step.active .quiz-step__num {
      background: rgba(255,255,255,.18);
    }

    .quiz-body {
      padding: 28px;
    }

    .step-panel[hidden] { display: none !important; }

    .lead-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 18px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field.full { grid-column: 1 / -1; }

    .field label {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid var(--line);
      outline: none;
      background: #fff;
      font: inherit;
      color: var(--ink);
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: #87a1bd;
      box-shadow: 0 0 0 4px rgba(23,50,77,.08);
    }

    .helper {
      font-size: 13px;
      color: var(--muted);
    }

    .error {
      font-size: 13px;
      color: var(--danger);
      margin-top: 6px;
    }

    .lead-actions,
    .quiz-actions {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 24px;
    }

    .muted-note {
      color: var(--muted);
      font-size: 14px;
    }

    .form-honeypot {
      position: absolute;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .submission-status {
      color: var(--muted);
      font-size: 14px;
      max-width: 620px;
    }

    .submission-status[data-state="success"] {
      color: #31634d;
    }

    .submission-status[data-state="error"] {
      color: var(--danger);
    }

    .submission-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .progress {
      height: 10px;
      border-radius: 999px;
      background: #e9edf2;
      overflow: hidden;
      margin: 8px 0 22px;
    }

    .progress > span {
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, #17324d, #b18a56);
      transition: width .25s ease;
    }

    .q-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px;
      color: var(--muted);
      font-size: 14px;
    }

    .q-title {
      font-size: clamp(26px, 3vw, 38px);
      line-height: 1.08;
      margin: 10px 0 8px;
    }

    .q-subtitle {
      margin: 0 0 24px;
      color: var(--muted);
      max-width: 760px;
    }

    .question-image {
      border-radius: 22px;
      overflow: hidden;
      margin-bottom: 22px;
      box-shadow: var(--shadow);
      aspect-ratio: 2.82 / 1;
      max-height: 420px;
    }

    .question-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .question-image picture,
    .image-option picture,
    .drag-card picture {
      display: block;
      width: 100%;
    }

    .question-image picture {
      height: 100%;
    }

    .option-grid {
      display: grid;
      gap: 14px;
    }

    .option-btn,
    .image-option,
    .drag-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff;
      color: var(--ink);
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    }

    .image-option,
    .drag-card {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
    }

    .option-btn {
      position: relative;
      display: grid;
      gap: 6px;
      width: 100%;
      text-align: left;
      padding: 18px 64px 18px 18px;
    }

    .option-btn.selected,
    .image-option.selected,
    .drag-card.selected {
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(23,50,77,.08);
      background: #fbfdff;
    }

    .option-btn::after {
      content: "✓";
      position: absolute;
      top: 50%;
      right: 18px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--brand);
      color: #fff;
      font-size: 18px;
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(23,50,77,.25), 0 0 0 3px rgba(255,255,255,.86);
      opacity: 0;
      transform: translateY(-50%) scale(.84);
      transition: opacity .18s ease, transform .18s ease;
      pointer-events: none;
    }

    .option-btn.selected::after {
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }

    .image-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 14px;
      min-width: 0;
    }

    .image-option {
      position: relative;
      width: 100%;
      min-width: 0;
      padding: 0;
      text-align: left;
      overflow: hidden;
    }

    .image-option::after {
      content: "✓";
      position: absolute;
      top: 12px;
      right: 12px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--brand);
      color: #fff;
      font-size: 18px;
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(23,50,77,.25), 0 0 0 3px rgba(255,255,255,.86);
      opacity: 0;
      transform: scale(.84);
      transition: opacity .18s ease, transform .18s ease;
      pointer-events: none;
    }

    .image-option.selected::after {
      opacity: 1;
      transform: scale(1);
    }

    .image-option img {
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: 2 / 1;
      object-fit: cover;
      border-radius: 0;
    }

    .image-option__body {
      padding: 14px 14px 16px;
      display: grid;
      gap: 6px;
    }

    .option-btn strong,
    .image-option__body strong,
    .drag-card__body strong {
      display: block;
      margin: 0;
      font-size: 17px;
      line-height: 1.3;
    }

    .option-btn span,
    .image-option__body span,
    .drag-card__body span {
      display: block;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
    }

    .range-wrap {
      background: var(--surface-alt);
      border: 1px solid var(--line);
      padding: 24px;
      border-radius: 18px;
    }

    .range-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .range-value {
      font-size: 56px;
      font-weight: 800;
      line-height: 1;
      color: var(--brand);
    }

    .range-guidance {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #edf3f8;
      color: var(--brand);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .range-guidance::before {
      content: "";
      width: 18px;
      height: 10px;
      border-radius: 999px;
      background:
        radial-gradient(circle at 75% 50%, #fff 0 3px, transparent 4px),
        linear-gradient(90deg, var(--brand), #7d9ab6);
      box-shadow: inset 0 0 0 1px rgba(23,50,77,.15);
    }

    .range-control {
      padding-top: 4px;
    }

    .range-labels {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      color: var(--muted);
      font-size: 14px;
      margin-top: 12px;
    }

    input[type="range"] {
      width: 100%;
      height: 44px;
      margin: 0;
      appearance: none;
      -webkit-appearance: none;
      background: transparent;
      cursor: ew-resize;
      touch-action: pan-y;
      --range-progress: 50%;
    }

    input[type="range"]:focus {
      outline: none;
    }

    input[type="range"]::-webkit-slider-runnable-track {
      height: 12px;
      border-radius: 999px;
      background:
        linear-gradient(90deg, var(--brand) var(--range-progress), #dfe5ec var(--range-progress));
      box-shadow: inset 0 0 0 1px #c6d0dc;
    }

    input[type="range"]::-webkit-slider-thumb {
      width: 34px;
      height: 34px;
      margin-top: -11px;
      border-radius: 50%;
      border: 6px solid #fff;
      background: var(--brand);
      box-shadow: 0 6px 16px rgba(23,50,77,.28), 0 0 0 2px rgba(23,50,77,.16);
      appearance: none;
      -webkit-appearance: none;
    }

    input[type="range"]:focus-visible::-webkit-slider-thumb {
      box-shadow: 0 6px 16px rgba(23,50,77,.28), 0 0 0 5px rgba(23,50,77,.18);
    }

    input[type="range"]::-moz-range-track {
      height: 12px;
      border-radius: 999px;
      background:
        linear-gradient(90deg, var(--brand) var(--range-progress), #dfe5ec var(--range-progress));
      box-shadow: inset 0 0 0 1px #c6d0dc;
    }

    input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 6px solid #fff;
      background: var(--brand);
      box-shadow: 0 6px 16px rgba(23,50,77,.28), 0 0 0 2px rgba(23,50,77,.16);
    }

    .range-ticks {
      display: grid;
      grid-template-columns: repeat(11, minmax(0,1fr));
      gap: 0;
      padding: 0 4px;
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-align: center;
    }

    .range-ticks span::before {
      content: "";
      display: block;
      width: 1px;
      height: 8px;
      margin: 0 auto 4px;
      background: #b8c4d1;
    }

    .drag-layout {
      display: block;
    }

    .drag-panel {
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
    }

    .priority-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .drag-panel h4 {
      margin: 0;
      font-size: 18px;
    }

    .priority-count {
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .drag-pool {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 14px;
    }

    .drag-card {
      position: relative;
      width: 100%;
      min-width: 0;
      text-align: left;
      overflow: hidden;
      padding: 0;
    }

    .drag-pool.limit-reached .drag-card:not(.selected) {
      opacity: .48;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    @media (hover: hover) and (pointer: fine) {
      .option-btn:hover:not(.selected):not(:disabled),
      .image-option:hover:not(.selected):not(:disabled),
      .drag-pool:not(.limit-reached) .drag-card:hover:not(.selected):not(:disabled) {
        transform: translateY(-2px);
        border-color: rgba(23,50,77,.32);
        background: #fbfdff;
        box-shadow: 0 12px 24px rgba(23,50,77,.10);
      }
    }

    .option-btn:active:not(:disabled),
    .image-option:active:not(:disabled),
    .drag-card:active:not(:disabled) {
      transform: translateY(0);
      box-shadow: 0 4px 10px rgba(23,50,77,.08);
    }

    .option-btn:focus-visible,
    .image-option:focus-visible,
    .drag-card:focus-visible {
      outline: 3px solid rgba(23,50,77,.22);
      outline-offset: 4px;
    }

    .drag-card::after {
      content: attr(data-selected-rank);
      position: absolute;
      top: 12px;
      right: 12px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--brand);
      color: #fff;
      font-size: 15px;
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(23,50,77,.25), 0 0 0 3px rgba(255,255,255,.86);
      opacity: 0;
      transform: scale(.84);
      transition: opacity .18s ease, transform .18s ease;
      pointer-events: none;
    }

    .drag-card.selected::after {
      opacity: 1;
      transform: scale(1);
    }

    .drag-card img {
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: 2 / 1;
      object-fit: cover;
      border-radius: 0;
      border: 0;
    }

    .drag-card__body {
      padding: 14px 14px 16px;
      display: grid;
      gap: 6px;
    }

    /* Results */
    .result-hero {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 24px;
      align-items: start;
      min-width: 0;
    }

    .result-hero > *,
    .result-grid > *,
    .score-grid > * {
      min-width: 0;
    }

    .score-card {
      background: linear-gradient(180deg, #17324d, #264b70);
      color: #fff;
      border-radius: 24px;
      padding: 28px;
      box-shadow: var(--shadow);
    }

    .score-card h3 {
      margin: 0 0 10px;
      font-size: 24px;
    }

    .big-score {
      font-size: 72px;
      line-height: .95;
      font-weight: 800;
      margin: 10px 0 4px;
    }

    .grade-badge {
      display: inline-flex;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.16);
      font-weight: 700;
      margin-top: 10px;
    }

    .result-summary {
      background: var(--surface-alt);
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px;
    }

    .result-summary h3 {
      margin: 0 0 10px;
      font-size: 28px;
    }

    .result-summary p {
      margin: 0;
      color: var(--muted);
    }

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

    .score-metric {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 16px;
    }

    .score-metric strong {
      display: block;
      font-size: 28px;
      color: var(--brand);
      margin-bottom: 4px;
    }

    .score-metric span {
      color: var(--muted);
      font-size: 14px;
    }

    .result-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 18px;
      margin-top: 22px;
    }

    .result-box {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 18px;
      min-width: 0;
      max-width: 100%;
    }

    .result-box h4 {
      margin: 0 0 10px;
      font-size: 18px;
    }

    .result-box p {
      margin: 0;
      color: var(--muted);
    }

    .pill-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pill {
      display: inline-flex;
      padding: 8px 12px;
      border-radius: 999px;
      background: #f5f7fa;
      border: 1px solid var(--line);
      font-size: 14px;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .timing-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 22px;
      background: #fff;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
    }

    .timing-table th,
    .timing-table td {
      text-align: left;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
      font-size: 14px;
    }

    .timing-table th {
      background: #f8fafc;
      color: var(--muted);
      font-weight: 700;
    }

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

    pre.payload {
      margin: 0;
      padding: 18px;
      border-radius: 18px;
      background: #0f1720;
      color: #d5e0ee;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      overflow-x: auto;
      overflow-y: hidden;
      font-size: 13px;
      line-height: 1.6;
    }

    .disclaimer {
      margin-top: 16px;
      font-size: 13px;
      color: var(--muted);
    }

    .footer {
      padding: 40px 0 70px;
      color: var(--muted);
    }

    @media (max-width: 1080px) {
      .hero__inner,
      .result-hero,
      .drag-layout,
      .lead-grid,
      .property-grid,
      .grid-3,
      .result-grid,
      .score-grid {
        grid-template-columns: 1fr;
      }

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

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

      .hero__inner {
        min-height: auto;
      }
    }

    @media (max-width: 760px) {
      .nav { display: none; }
      .container {
        width: min(var(--max), calc(100% - 24px));
      }
      #consultation,
      #questionContainer {
        scroll-margin-top: 168px;
      }
      .site-header__inner {
        min-height: 64px;
        gap: 10px;
      }
      .brand {
        min-width: 0;
      }
      .brand-logo {
        width: 132px;
      }
      .site-header .btn-primary {
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.15;
        min-height: 54px;
        max-width: 134px;
        text-align: center;
        text-wrap: balance;
        white-space: normal;
      }
      .section { padding: 62px 0; }
      .quiz-body { padding: 20px; }
      .hero-search {
        flex-direction: column;
        border-radius: 24px;
      }
      .hero-search input {
        width: calc(100% - 16px);
        min-width: 0;
        text-align: center;
      }
      .hero-metrics {
        grid-template-columns: 1fr;
      }
      .range-wrap {
        padding: 18px;
      }
      .range-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }
      .range-guidance {
        white-space: normal;
      }
      .image-options,
      .drag-pool {
        grid-template-columns: 1fr;
      }
      .priority-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }
      .quiz-topbar {
        padding: 18px;
      }
      .q-title {
        font-size: 28px;
      }
      .timing-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .option-btn,
      .image-option,
      .drag-card,
      .option-btn::after,
      .image-option::after,
      .drag-card::after {
        transition: none;
      }
    }
