@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #20211c;
  --paper: #fff7e8;
  --surface: #fffdf6;
  --action: #ee5e3b;
  --action-hover: #d84928;
  --yellow: #ffd84d;
  --sky: #83d8f5;
  --leaf: #4f9f68;
  --lilac: #c7b6f8;
  --muted: #69675e;
  --border: #ded6c4;
  --warning: #c34f1f;
  --shadow: 0 24px 0 rgba(32, 33, 28, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, .brand, .result-number, .offer-panel-number {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.1rem); line-height: .96; letter-spacing: -.058em; max-width: 820px; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.9rem); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 18px; }
h3 { font-size: 1.15rem; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 247, 232, .9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.28rem; }
.brand-symbol { width: 43px; height: 43px; overflow: visible; }
.brand-symbol > path:first-child { fill: var(--action); stroke: var(--ink); stroke-width: 2.2; }
.brand-symbol circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.brand-symbol .brand-street { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-size: 1.48rem; letter-spacing: -.05em; }
.brand-word > span { color: var(--action); }
.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.desktop-nav a:hover { color: var(--ink); }
.language-toggle { min-width: 70px; min-height: 44px; border: 2px solid var(--ink); border-radius: 100px; background: var(--yellow); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.hero {
  padding: clamp(54px, 7vw, 100px) clamp(20px, 4vw, 64px) 72px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 8% 24%, rgba(255,216,77,.95) 0 4.5%, transparent 4.7%),
    radial-gradient(circle at 93% 8%, rgba(131,216,245,.7) 0 12%, transparent 12.2%),
    linear-gradient(128deg, #fff1d2 0 56%, #f9d8cf 56%);
}
.hero::after { content: ""; position: absolute; width: 110px; height: 110px; border: 3px solid var(--ink); border-radius: 50%; right: 3%; bottom: 25%; opacity: .12; }
.hero-copy { max-width: 1180px; margin: 0 auto 38px; display: grid; grid-template-columns: 1.25fr .55fr; gap: 48px; align-items: center; }
.hero-subhead { max-width: 690px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.38rem); }
.eyebrow { font: 800 .75rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: .14em; color: var(--action-hover); margin-bottom: 18px; }
.city-life-art { height: 250px; position: relative; transform: rotate(2deg); }
.sun-disc { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); top: -5px; right: 7px; }
.art-window { position: absolute; inset: 28px 18px 0 0; background: var(--sky); border: 3px solid var(--ink); border-radius: 90px 90px 12px 12px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.awning { height: 44px; display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 3px solid var(--ink); }
.awning i:nth-child(odd) { background: var(--action); }
.awning i:nth-child(even) { background: var(--surface); }
.awning i + i { border-left: 2px solid var(--ink); }
.window-copy { padding: 22px; font: 800 1.55rem/1 "Bricolage Grotesque"; }
.cafe-table { position: absolute; width: 70px; height: 12px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); right: 38px; bottom: 54px; }
.cafe-table::after { content:""; position:absolute; width:3px; height:52px; background:var(--ink); left:31px; top:8px; }
.plant { position: absolute; width: 25px; height: 44px; bottom: 22px; left: 26px; border: 3px solid var(--ink); border-radius: 50% 50% 7px 7px; background: var(--leaf); transform: rotate(-12deg); }
.plant-two { left: 56px; height: 34px; transform: rotate(14deg); background: var(--lilac); }
.art-note { position: absolute; z-index: 2; right: -3px; bottom: -17px; padding: 10px 15px; border: 2px solid var(--ink); background: var(--lilac); font-weight: 800; transform: rotate(-4deg); }
.calculator-shell { position: relative; z-index: 2; max-width: 1180px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); background: var(--ink); border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 12px 12px 0 rgba(32,33,28,.95); }
.calculator { padding: clamp(24px, 4vw, 48px); background: var(--surface); display: grid; grid-template-columns: 1fr 52px 1fr; gap: 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--muted); }
.field select, .money-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffaf0;
}
.field select { padding: 0 14px; color: var(--ink); }
.money-input { display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.money-input span { color: var(--muted); }
.money-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.income-field { grid-column: 1 / -1; }
.swap-button { width: 48px; height: 48px; align-self: end; margin-bottom: 4px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); cursor: pointer; font-size: 1.3rem; }
.primary-button, .dark-button { min-height: 54px; border: 0; border-radius: 12px; padding: 0 22px; font-weight: 800; cursor: pointer; }
.primary-button { grid-column: 1 / -1; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:hover { background: var(--action-hover); }
.form-note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .85rem; margin: -8px 0 0; }
.result-card { padding: clamp(28px, 4vw, 52px); color: var(--ink); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(152deg, var(--sky), #cceef7 58%, var(--lilac)); }
.result-topline { display: flex; gap: 8px; align-items: center; font: 700 .73rem/1 "Manrope", sans-serif; letter-spacing: .1em; color: #c8d2cc; }
.status-dot { width: 8px; height: 8px; background: var(--action); border-radius: 50%; }
.result-context { color: #4b554f; margin: 26px 0 4px; }
.result-number, .offer-panel-number { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.result-delta { color: #7a2f1c; font-weight: 800; margin: 10px 0 30px; }
.result-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 2px solid rgba(32,33,28,.28); padding-top: 22px; }
.result-summary div { display: flex; flex-direction: column; gap: 4px; }
.result-summary span { color: #59625d; font-size: .82rem; }
.demo-note { color: #626860; font-size: .78rem; margin: 24px 0 0; }
.upgrade-strip { position: relative; z-index: 2; max-width: 1050px; margin: 28px auto 0; display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 6px 6px 0 var(--action); }
.upgrade-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--action); color: white; border: 2px solid var(--ink); border-radius: 50%; font-size: 1.4rem; font-weight: 800; }
.upgrade-strip > div:nth-child(2) { display: flex; flex-direction: column; }
.upgrade-kicker { color: var(--action-hover); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.upgrade-button { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }

.section-pad { padding: clamp(70px, 10vw, 140px) clamp(20px, 4vw, 64px); }
.section-heading { max-width: 740px; margin-bottom: 48px; }
.section-heading > p:last-child { color: var(--muted); max-width: 620px; }
.breakdown { max-width: 1308px; margin: auto; }
.breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cost-card { min-height: 180px; padding: 24px; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px 16px 16px 3px; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--border); }
.cost-card:nth-child(2) { background: #ecf8ff; }
.cost-card:nth-child(3) { background: #fff1c2; }
.cost-card:nth-child(4) { background: #f4eefe; }
.cost-card:nth-child(5) { background: #e5f4e4; }
.cost-card:nth-child(6) { background: #ffe6dc; }
.cost-card span { color: var(--muted); }
.cost-card strong { font: 800 2.1rem/1 "Manrope"; margin: auto 0 10px; }
.cost-card small { color: var(--muted); }
.cost-card.positive strong { color: var(--warning); }
.cost-card.negative strong { color: var(--action-hover); }

.offer-section { background: var(--yellow); display: grid; grid-template-columns: 1fr minmax(360px, .78fr); gap: clamp(40px, 8vw, 120px); align-items: center; border-block: 3px solid var(--ink); }
.offer-copy { max-width: 650px; }
.offer-copy .eyebrow { color: var(--ink); }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li::before { content: "✓"; margin-right: 10px; font-weight: 800; }
.offer-panel { background: #fffbf3; border: 3px solid var(--ink); border-radius: 20px 20px 20px 4px; padding: clamp(24px, 4vw, 42px); box-shadow: 12px 12px 0 var(--action); }
.offer-panel-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 800; font-size: .75rem; letter-spacing: .1em; }
.decision-badge { background: #ffdf9c; border-radius: 99px; padding: 7px 10px; color: #7a4300; }
.offer-panel-label { color: var(--muted); margin: 34px 0 5px; }
.offer-panel-number { font-size: clamp(3rem, 6vw, 4.5rem); }
.offer-panel-period { color: var(--muted); }
.negotiation-row { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark-button { width: 100%; background: var(--ink); color: white; }

.steps { max-width: 1308px; margin: auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps-grid article { padding: 28px 32px 28px 0; border-right: 1px solid var(--border); }
.steps-grid article + article { padding-left: 32px; }
.steps-grid article:last-child { border-right: 0; }
.steps-grid span { font: 700 .78rem "Manrope"; color: var(--action-hover); }
.steps-grid h3 { margin: 44px 0 10px; }
.steps-grid p { color: var(--muted); }

.methodology { color: white; background: #273e70; display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 8vw, 110px); }
.methodology .eyebrow { color: var(--yellow); }
.method-copy { color: #c8d2cc; font-size: 1.1rem; }
.source-row { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.18); }
.source-row strong { color: white; }
.fine-print { color: #929f98; font-size: .82rem; }
footer { padding: 40px clamp(20px,4vw,64px); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; font-size: .9rem; color: var(--muted); }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.footer-brand { color: var(--ink); }

dialog { border: 0; border-radius: 20px; padding: 0; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(19,35,29,.64); backdrop-filter: blur(5px); }
dialog form { padding: 36px; position: relative; }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
dialog .primary-button { width: 100%; margin-top: 12px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  h1 { letter-spacing: -.05em; }
  .hero { padding-top: 44px; }
  .hero-copy { grid-template-columns: 1fr; }
  .city-life-art { display: none; }
  .calculator-shell { grid-template-columns: 1fr; border-radius: 20px; }
  .calculator { grid-template-columns: 1fr; padding: 22px; }
  .income-field, .primary-button, .form-note { grid-column: auto; }
  .swap-button { order: 2; justify-self: center; transform: rotate(90deg); margin: -4px 0; }
  .calculator .field:nth-of-type(2) { order: 3; }
  .income-field { order: 4; }
  .calculator .primary-button { order: 5; }
  .form-note { order: 6; }
  .result-card { min-height: 430px; }
  .upgrade-strip { grid-template-columns: 42px 1fr; }
  .upgrade-button { grid-column: 1 / -1; width: 100%; }
  .breakdown-grid { grid-template-columns: 1fr 1fr; }
  .offer-section, .methodology { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .offer-panel { box-shadow: 7px 7px 0 var(--ink); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article, .steps-grid article + article { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .steps-grid h3 { margin-top: 24px; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header { min-height: 66px; padding-inline: 16px; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-word { font-size: 1.3rem; }
  .hero, .section-pad { padding-inline: 14px; }
  .hero { padding-top: 26px; }
  .hero-copy { margin-bottom: 18px; }
  .hero-message .eyebrow { margin-bottom: 10px; }
  .hero-message h1 { font-size: 2.15rem; line-height: .98; margin-bottom: 10px; max-width: 350px; }
  .hero-subhead { font-size: .96rem; line-height: 1.38; margin-bottom: 0; }
  .calculator-shell { border-radius: 16px; box-shadow: 7px 7px 0 var(--ink); }
  .calculator { grid-template-columns: 1fr 38px 1fr; gap: 9px; padding: 14px; }
  .calculator .field:nth-of-type(2) { order: initial; }
  .swap-button { order: initial; width: 36px; height: 36px; transform: none; margin-bottom: 7px; font-size: 1rem; }
  .income-field { grid-column: 1 / -1; order: initial; }
  .calculator .primary-button { grid-column: 1 / -1; order: initial; min-height: 48px; }
  .form-note { grid-column: 1 / -1; order: initial; }
  .field label { font-size: .72rem; }
  .field select, .money-input { min-height: 46px; font-size: .86rem; padding-inline: 9px; }
  .result-card { min-height: 0; padding: 24px 20px; }
  .result-context { margin-top: 18px; }
  .result-number { font-size: 3rem; }
  .result-delta { margin-bottom: 20px; }
  .demo-note { margin-top: 16px; }
  .upgrade-strip { margin-top: 18px; padding: 12px; grid-template-columns: 38px 1fr; }
  .upgrade-icon { width: 38px; height: 38px; }
  .upgrade-strip strong { font-size: .9rem; line-height: 1.25; }
  .upgrade-button { min-height: 46px; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .cost-card { min-height: 150px; }
  .result-summary { grid-template-columns: 1fr; }
  .result-number { font-size: 3.4rem; }
  .source-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
