/* Source: prototype-v2/public/reference.css + original templates.
   Florentia; #241544 / #07071f / #fcfcfc; 8px controls; 24px cards. */
:root {
  --ink:#07071f; --plum:#241544; --paper:#fcfcfc; --surface:#f3f3f5;
  --muted:#686875; --line:#dedee3; --soft:#efedf3; --focus:#65507f; --error:#972c42;
  --safe-top:0px; --safe-bottom:0px; --body:Florentia,Manrope,Arial,sans-serif;
  color-scheme:light; font-family:var(--body); color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:24px }
body { margin:0; font-size:16px; line-height:1.5 }
button,input,select { font:inherit; color:inherit }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent }
button { cursor:pointer }
button:disabled { cursor:not-allowed; opacity:.5 }
a { color:inherit; text-underline-offset:4px }
img { display:block; max-width:100% }
h1,h2,h3,p { margin:0 }
h1,h2,h3,strong { font-weight:400 }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid var(--focus); outline-offset:4px }
h2[tabindex="-1"]:focus,#quiz-content:focus { outline:none }
[hidden] { display:none!important }
.skip-link { position:absolute; z-index:10; top:-100px; left:16px; padding:12px 20px; background:var(--paper); border-radius:8px }
.skip-link:focus { top:12px }

/* Main-site masthead and page heading. */
.test-ribbon { display:flex; justify-content:center; gap:20px; padding:7px 24px; background:var(--soft); color:#504560; font-size:12px; line-height:1.4 }
.test-ribbon span+span { border-left:1px solid #cec7d7; padding-left:20px }
.header { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; width:min(1320px,100%); min-height:91px; margin-inline:auto; padding:16px 32px }
.header-caption { font-size:16px }
.brand img { width:192px; height:55px; object-fit:contain }
main { background:var(--surface) }
.quiz-shell { padding-bottom:40px }
.entry-heading { padding:26px 24px 40px; margin-bottom:32px; background:var(--paper); text-align:center }
.entry-intro { font-size:clamp(32px,4vw,48px); line-height:1.15; letter-spacing:-.025em; margin-bottom:16px }
.entry-description { font-size:16px; line-height:1.55; color:var(--muted); max-width:600px; margin-inline:auto; text-wrap:balance }
.quiz-panel { width:min(800px,calc(100% - 48px)); margin-inline:auto; padding:36px 40px 40px; border-radius:24px; background:var(--paper) }
.quiz-topline { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:24px; margin-bottom:12px; font-size:14px; color:var(--muted) }
.text-button { border:0; background:none; color:var(--plum); padding:8px 0; font-size:13px; line-height:1.4; text-decoration:underline; text-underline-offset:4px }
.progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:28px }
.progress span { height:4px; border-radius:4px; background:#e9e7ed }
.progress span.done { background:var(--plum) }
.quiz-panel h2 { font-size:32px; line-height:1.2; letter-spacing:-.02em; margin-bottom:12px }
.intro { font-size:15px; line-height:1.6; color:var(--muted); margin-bottom:28px }
.eyebrow { font-size:13px; color:var(--focus); margin-bottom:12px }

/* Text fields and clearly outlined, keyboard-accessible choices. */
.quiz-form { display:flex; flex-direction:column; gap:24px }
fieldset { padding:0; margin:0; border:0; min-width:0 }
legend,.field-label { display:block; padding:0; margin-bottom:10px; font-size:16px; line-height:1.4 }
.field-control { width:100%; min-width:0; min-height:52px; padding:14px 18px; border:1px solid #b9b3c3; border-radius:8px; background:var(--paper); color:var(--ink); font-size:16px; line-height:1.4 }
.field-control::placeholder { color:var(--muted); opacity:1 }
.field-control:hover { border-color:#c9c4d2 }
.field-control:focus { border-color:var(--focus) }
select.field-control { appearance:none; padding-right:42px; background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23241544' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 18px center; cursor:pointer }
.field-note { display:block; font-size:12px; line-height:1.5; color:var(--muted); margin-top:8px }
.payment-note { border-left:2px solid var(--focus); padding-left:16px }
.payment-note strong { display:block; color:var(--plum); font-size:15px; line-height:1.5 }
.payment-note span { display:block; margin-top:6px; color:var(--muted); font-size:13px; line-height:1.5 }
.legal-page { max-width:860px; margin:0 auto; padding:32px 24px 64px; background:var(--paper) }
.legal-page h1 { font-size:30px; line-height:1.25; margin:28px 0 16px }
.legal-page section { margin-top:32px }
.legal-page h2 { font-size:22px; line-height:1.3; margin-bottom:16px }
.legal-page p { font-size:16px; line-height:1.7; margin-bottom:16px }
.form-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden }
.field-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
.field-row>label { min-width:0 }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.option-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)) }
.option { position:relative; display:flex; align-items:center; justify-content:flex-start; gap:12px; min-height:54px; padding:14px 16px; border:1px solid #9f96ac; border-radius:10px; background:var(--paper); box-shadow:0 2px 0 #2415440a; font-size:15px; line-height:1.4; text-align:left; cursor:pointer; transition:background .15s,border-color .15s,box-shadow .15s }
.option:hover { border-color:var(--plum); background:#f7f5fa }
.option input { appearance:none; flex:0 0 20px; width:20px; height:20px; margin:0; border:2px solid #9f96ac; border-radius:50%; background:#fff; cursor:pointer }
.option input:checked { border-color:var(--plum); background:var(--plum); box-shadow:inset 0 0 0 4px #fff }
.option:has(input:checked) { background:var(--soft); border-color:var(--plum); box-shadow:inset 0 0 0 1px var(--plum); color:var(--plum) }
.option:has(input:focus-visible) { outline:2px solid var(--focus); outline-offset:4px }
.option input:focus-visible { outline:none }
.capital-help { margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.5 }
.capital-options { grid-template-columns:1fr }
.capital-options .capital-option { min-height:60px; padding:16px }
.capital-option-content { flex:1; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:6px 16px }
.capital-option-title,.capital-option-note { display:block }
.capital-option-amount { display:block; font-size:19px; font-weight:400; white-space:nowrap }
.capital-option-note { grid-column:1 / -1; color:var(--muted); font-size:12px; line-height:1.5 }
.capital-option-content:not(:has(.capital-option-amount)) .capital-option-title { grid-column:1 / -1 }
.mortgage-program { padding:20px; border-radius:12px; background:var(--surface) }
.mortgage-program .field-label { color:var(--muted); font-size:13px; margin-bottom:8px }
#mortgage-term { color:var(--plum); font-size:20px; line-height:1.4 }
.capital-source { margin-top:12px }
.capital-details { margin-top:12px; font-size:12px; line-height:1.5 }
.capital-details summary { cursor:pointer; color:var(--plum) }
.capital-details .field-note { margin:8px 0 0 }
#capital-unknown-note { margin:0 }
.check-label { display:flex; align-items:flex-start; gap:12px; font-size:13px; line-height:1.6; color:var(--muted); cursor:pointer }
.check-label input,.lot-pick input { flex:0 0 auto; width:18px; height:18px; margin:2px 0 0; accent-color:var(--plum) }
.button { display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:52px; padding:14px 24px; border:1px solid var(--plum); border-radius:8px; font-size:16px; line-height:1.4; font-weight:400; transition:background .15s,color .15s }
.button-primary { background:var(--plum); color:var(--paper) }
.button-primary:hover:not(:disabled) { background:#3a2566 }
.button-secondary { border-color:#b0adb9; background:transparent; color:var(--ink) }
.button-secondary:hover:not(:disabled) { background:var(--soft) }
.button span { font-family:Arial,sans-serif; font-size:21px; line-height:1 }
.quiz-nav { display:flex; justify-content:space-between; gap:12px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line) }
.quiz-nav .button-primary { margin-left:auto; min-width:210px }
.error { background:#f9edf0; border-left:3px solid var(--error); border-radius:0 8px 8px 0; padding:16px; color:var(--error); font-size:14px; line-height:1.6; margin:16px 0 }
.inline-note { background:var(--soft); border-radius:12px; padding:20px; font-size:14px; line-height:1.6; color:var(--plum); margin-bottom:20px }
.smallprint { font-size:12px; line-height:1.65; color:var(--muted); margin:20px 0 0; overflow-wrap:anywhere }
details { margin-top:20px; border-top:1px solid var(--line) }
summary { padding:18px 0; font-size:14px; cursor:pointer; color:var(--plum) }
details .smallprint { margin-top:0; margin-bottom:16px }

/* Contact stays separate; the required checkbox is unchanged. */
.contact-section .field-control { max-width:100% }
.contact-section .check-label { margin-top:24px }
.contact-help { font-size:12px; line-height:1.6; color:var(--muted); margin-top:16px }
.contact-step .quiz-nav { flex-wrap:wrap }
.contact-step .quiz-nav .button-primary { flex:1; min-width:0; gap:16px }

/* Calculation, catalogue and the existing project presentation. */
.pill { display:inline-block; border-radius:6px; padding:8px 12px; font-size:12px; line-height:1.4; color:#514465; background:var(--soft); margin:0 0 12px }
.result-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:24px 0; margin:12px 0 24px; border-top:1px solid var(--line); border-bottom:1px solid var(--line) }
.metric strong { display:block; margin-bottom:8px; font-size:32px; line-height:1.2; color:var(--plum) }
.metric span { display:block; color:var(--muted); font-size:12px; line-height:1.5 }
.funds-summary,.calculation-budget dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0 }
.funds-summary dt,.calculation-budget dt { color:var(--muted); font-size:12px; line-height:1.5; margin-bottom:8px }
.funds-summary dd,.calculation-budget dd { font-size:17px; line-height:1.4; margin:0 }
.calculation-budget { background:var(--surface); border-radius:16px; padding:28px; margin:28px 0 }
.calculation-budget h3 { font-size:16px; line-height:1.4; margin-bottom:16px }
.calculation-budget>strong { font-size:clamp(30px,4vw,42px); color:var(--plum); line-height:1.1 }
.calculation-budget>p { font-size:13px; color:var(--muted); line-height:1.6; margin-top:14px }
.calculation-budget dl { border-top:1px solid var(--line); padding-top:20px; margin-bottom:0 }
.catalog-heading { font-size:26px; line-height:1.3; margin:36px 0 14px }
.result-list { display:flex; flex-direction:column; gap:16px }
.lot-card { display:grid; grid-template-columns:180px minmax(0,1fr); gap:24px; padding:24px; border:1px solid var(--line); border-radius:24px; background:var(--paper) }
.lot-card:has(input:checked) { border-color:var(--plum) }
.lot-illustration { display:flex; align-items:center; justify-content:center; min-height:132px; border-radius:12px; background:var(--surface); color:var(--plum); font-size:26px }
.lot-illustration svg { width:90px; height:90px }
.lot-illustration svg path:nth-child(2) { stroke:var(--surface) }
.lot-illustration svg path:nth-child(3) { stroke:#a99abf }
.lot-plan { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; padding:12px; border-radius:12px; background:#fff; color:var(--plum); text-decoration:none }
.lot-plan img { display:block; width:100%; height:180px; object-fit:contain }
.lot-plan span { font-size:12px; line-height:1.4; text-align:center }
.lot-plan:focus-visible { outline:2px solid var(--plum); outline-offset:3px }
.plan-fallback { display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px; text-align:center }
.plan-fallback small { font-size:12px; line-height:1.5; color:var(--muted) }
.lot-info h3 { font-size:21px; line-height:1.3; margin-bottom:10px }
.lot-info p { font-size:12px; line-height:1.6; color:var(--muted); margin-bottom:10px }
.lot-price { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; padding-top:12px; margin:12px 0; border-top:1px solid var(--line) }
.lot-price strong { font-size:24px; line-height:1.2; color:var(--plum) }
.lot-price span { font-size:13px; color:var(--muted) }
.lot-pick { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.5; cursor:pointer; margin-top:16px }
.result-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px }
.result-actions .button { gap:14px; font-size:15px }
.empty-state { padding:24px; border:1px solid var(--line); border-radius:16px; margin-bottom:20px }
.empty-state h3 { font-size:20px; line-height:1.4; margin-bottom:12px }
.empty-state p { font-size:14px; color:var(--muted); line-height:1.7 }
.project-presentation { border-top:1px solid var(--line); margin-top:40px; padding-top:32px }
.project-visual { position:relative; margin:24px 0; border-radius:24px; overflow:hidden }
.project-visual img { width:100%; aspect-ratio:16/9; object-fit:cover; object-position:center 42% }
.project-visual figcaption { position:absolute; inset:auto 0 0; padding:30px 20px 16px; background:linear-gradient(transparent,#07071fcc); font-size:11px; color:var(--paper) }
.project-caption { font-size:13px; color:var(--muted); margin:24px 0 16px }
.project-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px }
.project-features article { border-top:1px solid var(--line); padding-top:16px }
.project-features h3 { font-size:17px; line-height:1.3; margin-bottom:10px }
.project-features p { font-size:13px; line-height:1.6; color:var(--muted) }

/* Preview information stays outside the form. */
.source-bar { display:flex; align-items:center; justify-content:center; gap:12px; max-width:1024px; margin-inline:auto; padding:0 24px 32px; color:var(--muted); font-size:12px; line-height:1.6 }
.status-dot { width:6px; height:6px; flex:0 0 auto; border-radius:50%; background:var(--focus) }
.source-bar button { flex:0 0 auto; border:0; background:none; color:var(--plum); padding:10px 0; font-size:12px; text-decoration:underline; text-underline-offset:4px }
.footer { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:32px max(32px,calc((100vw - 1256px)/2)); background:var(--plum); color:var(--paper); font-size:12px; line-height:1.6 }
.footer-brand { display:flex; align-items:center; gap:24px }
.footer-brand img { width:140px; height:40px; object-fit:contain }
.footer-brand span { color:#d4cfe0 }
.footer-info { display:flex; flex-direction:column; align-items:flex-end; gap:8px; color:#d4cfe0 }
.footer-legal { display:flex; flex-direction:column; align-items:inherit; gap:6px; max-width:100% }
.footer-legal a { color:inherit; text-underline-offset:3px; overflow-wrap:anywhere }
.footer button { border:0; background:none; color:inherit; padding:8px 0; font-size:12px; text-decoration:underline; text-underline-offset:4px }

/* Main-site mobile breakpoint; native inputs stay >=16px to avoid iOS zoom. */
@media(max-width:812px) {
  .test-ribbon { padding:6px 16px; font-size:11px }
  .test-ribbon span+span { display:none }
  .header { display:flex; justify-content:space-between; min-height:64px; padding:12px 20px; gap:16px }
  .header-caption { display:none }
  .brand img { width:120px; height:35px }
  .entry-heading { padding:16px 20px 28px; margin-bottom:20px; text-align:left }
  .entry-intro { font-size:32px; margin-bottom:12px }
  .entry-description { font-size:14px; max-width:none; text-wrap:initial }
  .quiz-shell { padding-bottom:24px }
  .quiz-panel { width:calc(100% - 32px); padding:24px; border-radius:20px }
  .quiz-topline { font-size:12px; gap:12px }
  .text-button { font-size:12px }
  .quiz-panel h2 { font-size:27px }
  .progress { margin-bottom:24px }
  .intro { font-size:14px; margin-bottom:24px }
  legend,.field-label { font-size:15px }
  .quiz-form { gap:22px }
  .field-control { min-height:50px; padding:12px 16px }
  .option { font-size:14px; padding:12px; gap:10px }
  .option-grid.three { grid-template-columns:1fr 1fr }
  .option-grid.three .option:last-child { grid-column:1 / -1 }
  .capital-options .capital-option { padding:14px }
  .capital-option-content { grid-template-columns:1fr; gap:5px }
  .capital-option-amount { font-size:20px }
  .check-label { font-size:12px; gap:10px }
  .button { font-size:15px; min-height:50px; padding:13px 18px; gap:16px }
  .quiz-nav { margin-top:24px; padding-top:20px }
  .quiz-nav .button-primary { min-width:0; flex:1 }
  .contact-step .quiz-nav .button-primary { flex-basis:100%; margin:0 }
  .contact-step .quiz-nav .button-secondary { min-height:44px }
  .metric strong { font-size:27px }
  .metric span { font-size:11px }
  .result-metrics { gap:12px; padding:20px 0 }
  .funds-summary,.calculation-budget dl { grid-template-columns:1fr; gap:16px }
  .funds-summary>div,.calculation-budget dl>div { display:flex; justify-content:space-between; align-items:flex-start; gap:12px }
  .funds-summary dt,.calculation-budget dt { max-width:55%; margin:0 }
  .funds-summary dd,.calculation-budget dd { text-align:right; font-size:15px }
  .calculation-budget { padding:22px 20px }
  .calculation-budget>strong { font-size:32px }
  .inline-note { padding:18px; font-size:13px }
  .catalog-heading { font-size:24px; margin-top:28px }
  .lot-card { grid-template-columns:1fr; gap:20px; padding:20px; border-radius:20px }
  .lot-illustration { min-height:160px }
  .lot-plan img { height:260px }
  .lot-info h3 { font-size:22px }
  .lot-price { gap:8px 12px }
  .result-actions { flex-direction:column }
  .project-visual { border-radius:16px }
  .project-features { grid-template-columns:1fr; gap:20px }
  .source-bar { display:grid; grid-template-columns:6px minmax(0,1fr); align-items:start; gap:4px 10px; padding:0 24px 24px }
  .source-bar .status-dot { margin-top:6px }
  .source-bar button { grid-column:2; justify-self:start; margin:0 }
  .footer { padding:28px 24px; flex-direction:column; align-items:flex-start; gap:24px }
  .footer-info { align-items:flex-start }
}
@media(max-width:420px) {
  .entry-intro { font-size:30px }
  .quiz-panel { padding:24px 20px }
  .field-row { grid-template-columns:1fr; gap:20px }
  .option { padding-inline:8px; font-size:13px }
  .field-note { font-size:11px }
  .metric strong { font-size:24px }
  .metric span { font-size:10px }
  .calculation-budget { padding:20px 16px }
  .calculation-budget>strong { font-size:30px }
  .calculation-budget dd { font-size:14px }
  .lot-card { padding:16px }
  .footer-brand { gap:20px }
}
.miniapp .mode-link,.miniapp .header-caption { display:none }
.miniapp .header { display:flex; justify-content:center }
.miniapp .test-ribbon { padding-top:calc(6px + var(--safe-top)) }
.miniapp .footer { padding-bottom:calc(28px + var(--safe-bottom)) }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  *,*::before,*::after { transition:none!important }
}
