:root {
  --navy: #0A3F5B;
  --navy-deep: #072D41;
  --navy-soft: #E4ECF0;
  --cream: #F2EEED;
  --paper: #FBFAF9;
  --ink: #211F1F;
  --gray: #6F6B6A;
  --line: #DDD6D3;
  --tan: #CCB091;
  --tan-deep: #9A7B58;
  --green: #2F6B4F;
  --green-bg: #E5F0EA;
  --amber: #8A5A12;
  --amber-bg: #F7ECD9;
  --red: #8E2E2A;
  --red-bg: #F5E1DF;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(10, 63, 91, .06), 0 8px 24px rgba(10, 63, 91, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--gray); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.eyebrow { font-family: var(--sans); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tan-deep); margin: 0 0 .75rem; font-weight: 500; }
.eyebrow--light { color: var(--tan); }
:focus-visible { outline: 2px solid var(--tan-deep); outline-offset: 3px; }

/* Buttons */
.btn { font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; border-radius: var(--radius); padding: .85rem 1.4rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .5rem; transition: background .2s, color .2s, border-color .2s; min-height: 44px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost-light { border-color: rgba(242, 238, 237, .55); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(242, 238, 237, .12); }
.btn--quiet { background: transparent; color: var(--navy); border-color: var(--line); padding: .6rem 1rem; }
.btn--quiet:hover { border-color: var(--navy); }
.btn--lg { padding: 1.05rem 1.8rem; }

/* Topbar */
.topbar { background: var(--navy); color: var(--cream); }
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.brand img { width: 104px; height: auto; }
.topbar__title { display: flex; flex-direction: column; border-left: 1px solid rgba(242, 238, 237, .25); padding-left: 1.5rem; }
.topbar__title .eyebrow { margin: 0; font-size: .66rem; }
.topbar__name { font-size: 1.25rem; letter-spacing: .02em; }
.topbar__cta { margin-left: auto; }

/* Hero */
.hero { position: relative; color: var(--cream); background: var(--navy-deep); overflow: hidden; }
.hero__img { position: absolute; inset: 0; background: url("assets/hero.jpg") center 60% / cover no-repeat; opacity: .42; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 45, 65, .92) 0%, rgba(7, 45, 65, .6) 60%, rgba(7, 45, 65, .25) 100%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 6rem) 0; max-width: 1160px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lede { font-size: 1.15rem; max-width: 56ch; color: rgba(242, 238, 237, .9); margin: 0; }

/* Stepper */
.main { padding: 2.5rem 0 4rem; }
.stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 2rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.stepper li { flex: 1; display: flex; align-items: center; gap: .6rem; padding-bottom: .75rem; border-bottom: 2px solid var(--line); }
.stepper li span { width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .75rem; letter-spacing: 0; }
.stepper li.is-active { color: var(--navy); border-color: var(--navy); }
.stepper li.is-active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.stepper li.is-done { color: var(--navy); border-color: var(--tan); }
.stepper li.is-done span { border-color: var(--tan); color: var(--tan-deep); }

.panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.back { background: none; border: 0; color: var(--navy); font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: .5rem 0; margin-bottom: 1rem; min-height: 44px; }

/* Grids */
.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.grid--cities { grid-template-columns: repeat(3, 1fr); }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; gap: .35rem; }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.card[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.card__k { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tan-deep); }
.card__t { font-size: 1.15rem; color: var(--navy); font-weight: 500; }
.card__d { font-size: .92rem; color: var(--gray); }
.card--city { padding: 1.75rem 1.5rem; min-height: 190px; justify-content: flex-end; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.card--city .card__t { font-size: 1.6rem; }
.card--city .card__meta { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .8rem; color: var(--gray); }
.card--project { flex-direction: row; align-items: flex-start; gap: 1rem; }
.card--project svg { flex: none; width: 34px; height: 34px; color: var(--navy); stroke-width: 1.4; }

/* Flags */
.flags { display: grid; gap: 1rem; margin-top: 1.5rem; }
.flag { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.flag legend { padding: 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; float: left; width: 100%; }
.flag__help { grid-column: 1; font-size: .9rem; color: var(--gray); margin: 0; }
.flag__q { grid-column: 1; font-size: 1.05rem; font-weight: 500; }
.seg { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .6rem 1.05rem; font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--tan-deep); outline-offset: -2px; }
.actions { margin-top: 1.75rem; display: flex; gap: .75rem; justify-content: flex-end; }

/* Result */
.result-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.result-tools { display: flex; gap: .5rem; }
.summary { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.summary h2 { margin-bottom: .25rem; }
.summary__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip { font-family: var(--sans); font-size: .75rem; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 99px; background: var(--cream); color: var(--ink); }
.light { display: flex; gap: 1.1rem; align-items: center; padding: 1.25rem; border-radius: var(--radius); }
.light--green { background: var(--green-bg); }
.light--yellow { background: var(--amber-bg); }
.light--red { background: var(--red-bg); }
.light__dots { display: flex; flex-direction: column; gap: .35rem; background: var(--ink); padding: .5rem; border-radius: 20px; flex: none; }
.light__dots i { width: 18px; height: 18px; border-radius: 50%; background: #4a4545; display: block; }
.light--red .light__dots i:nth-child(1) { background: #D9534F; box-shadow: 0 0 10px #D9534F; }
.light--yellow .light__dots i:nth-child(2) { background: #E8B04B; box-shadow: 0 0 10px #E8B04B; }
.light--green .light__dots i:nth-child(3) { background: #4CAF7A; box-shadow: 0 0 10px #4CAF7A; }
.light__label { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.light--green .light__label { color: var(--green); }
.light--yellow .light__label { color: var(--amber); }
.light--red .light__label { color: var(--red); }
.light p { margin: .25rem 0 0; font-size: .95rem; }

.section-title { display: flex; align-items: baseline; gap: .75rem; margin: 2.5rem 0 1rem; }
.section-title h3 { margin: 0; font-size: 1.45rem; }
.section-title .eyebrow { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: st; position: relative; }
.timeline li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: st; }
.timeline li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: 0; width: 1px; background: var(--tan); }
.timeline li:last-child::after { display: none; }
.timeline .st { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.timeline .st h4 { margin: 0 0 .3rem; font-size: 1.08rem; }
.timeline .st p { margin: 0; font-size: .95rem; }
.st__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .6rem; font-family: var(--sans); font-size: .78rem; color: var(--gray); letter-spacing: .03em; }
.st__meta b { color: var(--navy); font-weight: 500; }
.srcref { font-family: var(--sans); font-size: .75rem; color: var(--tan-deep); text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.box--fast { background: var(--navy-soft); border-color: transparent; }
.box--watch { background: var(--cream); border-color: transparent; }
.box h3 { display: flex; align-items: center; gap: .6rem; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li { padding: .6rem 0; border-top: 1px solid rgba(10, 63, 91, .1); font-size: .95rem; }
.box li:first-child { border-top: 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy); flex: none; }
.checklist label { cursor: pointer; }
.checklist input:checked + label { color: var(--gray); text-decoration: line-through; }

.sources { columns: 2; column-gap: 2rem; padding-left: 1.1rem; margin: 0; font-size: .92rem; }
.sources li { break-inside: avoid; margin-bottom: .5rem; }
.verified { font-family: var(--sans); font-size: .8rem; color: var(--gray); margin-top: 1rem; }

/* CTA + footer */
.cta-band { background: var(--cream); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 24ch; }
.cta-band p { max-width: 60ch; margin: 0; }
.cta-band__btns { display: flex; flex-direction: column; gap: .75rem; flex: none; }
@media (max-width: 600px) { .cta-band__btns { width: 100%; } .cta-band__btns .btn { width: 100%; padding-inline: 1rem; } }
.footer { background: var(--navy-deep); color: rgba(242, 238, 237, .8); padding: 2.5rem 0; font-size: .85rem; }
.footer a { color: var(--cream); }
.footer__inner { display: flex; gap: 2rem; align-items: flex-start; }
.footer__inner img { width: 96px; flex: none; }
.footer p { margin: 0 0 .6rem; }

/* Dialog */
.dialog { border: 0; border-radius: var(--radius); padding: 2rem; max-width: 520px; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); font-family: var(--serif); }
.dialog::backdrop { background: rgba(7, 45, 65, .55); }
.dialog textarea { width: 100%; height: 220px; font-family: var(--sans); font-size: .85rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 860px) {
  .grid--cities { grid-template-columns: 1fr; }
  .card--city { min-height: 0; }
  .summary, .cols { grid-template-columns: 1fr; }
  .sources { columns: 1; }
  .cta-band__inner, .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .topbar__title { display: none; }
  .topbar__cta { padding: .6rem .9rem; font-size: .7rem; }
  .stepper { font-size: 0; gap: .35rem; }
  .stepper li { justify-content: center; }
  .flag { grid-template-columns: 1fr; }
  .seg { grid-column: 1; grid-row: auto; justify-self: start; }
  .summary { padding: 1.4rem; }
  .timeline li { padding-left: 2.9rem; }
  .actions .btn { width: 100%; }
}

/* Free vs. paid */
.lock { position: relative; margin-top: 2.5rem; }
.lock__ghost { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.lock__ghost .bar { display: block; height: .7rem; border-radius: 99px; background: rgba(10, 63, 91, .14); margin: 1rem 0; }
.lock__ghost .bar:nth-child(odd) { width: 78%; }
.lock__card { position: relative; margin: -9rem auto 0; max-width: 620px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--tan); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10, 63, 91, .14); padding: 2rem 2.25rem; }
.lock__card h3 { font-size: 1.5rem; }
.lock__list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; font-size: .98rem; }
.lock__list li { padding-left: 1.6rem; position: relative; }
.lock__list li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .7rem; height: .4rem; border-left: 2px solid var(--tan-deep); border-bottom: 2px solid var(--tan-deep); transform: rotate(-45deg); }
.lock__list b { color: var(--navy); font-weight: 600; }
.lock__buy .btn { width: 100%; }
.lock__fine { font-family: var(--sans); font-size: .8rem; color: var(--gray); text-align: center; margin: .6rem 0 0; }
.code { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.code label { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.code__row { display: flex; gap: .5rem; }
.code__row input { flex: 1; min-width: 0; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--paper); }
.code__row input:focus { outline: 2px solid var(--tan-deep); outline-offset: 1px; }
.code__msg { font-family: var(--sans); font-size: .85rem; min-height: 1.3em; margin: .5rem 0 0; color: var(--gray); }
.code__msg.is-err { color: var(--red); }
.access-note { margin-top: 1.5rem; font-family: var(--sans); font-size: .8rem; color: var(--green); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.linkbtn { background: none; border: 0; padding: .25rem 0; font: inherit; color: var(--gray); text-decoration: underline; cursor: pointer; min-height: 32px; }
@media (max-width: 860px) { .lock__ghost { grid-template-columns: 1fr; } .lock__ghost .box:last-child { display: none; } }
@media (max-width: 600px) { .lock__card { padding: 1.5rem 1.25rem; margin-top: -7rem; } .lock__buy .btn { letter-spacing: .1em; padding-inline: .75rem; } .code__row { flex-direction: column; } .result-tools { flex-wrap: wrap; } }
[hidden] { display: none !important; }
