/* WIRSOL Landing — design system derived from CD Brandbook V1 */
:root {
  --navy: #001528;
  --blue: #2090ed;
  --white: #ffffff;

  --bg: #f3f6f9;
  --bg-warm: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --elevated: #ffffff;

  --primary: #001528;
  --secondary: #16324a;
  --accent: #2090ed;
  --accent-soft: #e7f3fd;
  --muted: #d7e1ea;

  --border: rgba(0, 21, 40, 0.1);
  --border-strong: rgba(0, 21, 40, 0.18);

  --text: #001528;
  --text-secondary: #3d5366;
  --text-muted: #5c7388;
  --text-on-dark: #f4f8fc;
  --text-on-dark-muted: rgba(244, 248, 252, 0.72);

  --success: #0f6b4c;
  --warning: #8a5a00;
  --error: #9b1c2c;
  --info: #0b6cb3;

  --grad-h: linear-gradient(90deg, #001528 0%, #0a4f8f 48%, #2090ed 100%);
  --grad-d: linear-gradient(135deg, #001528 0%, #0b5aa3 55%, #2090ed 100%);
  --grad-hero: linear-gradient(135deg, #001528 0%, #01233d 58%, #04365c 100%);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 112px;

  --shadow-xs: 0 1px 2px rgba(0, 21, 40, 0.05);
  --shadow-sm: 0 4px 12px rgba(0, 21, 40, 0.06);
  --shadow-md: 0 10px 28px rgba(0, 21, 40, 0.1);
  --shadow-focus: 0 0 0 3px rgba(32, 144, 237, 0.35);

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: clamp(2.15rem, 3.4vw, 3.15rem);
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  --container: 1120px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;

  --z-header: 40;
  --z-overlay: 60;
  --z-modal: 80;
  --z-skip: 100;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  text-wrap: balance;
}

.prose, .lead, .legal {
  text-wrap: pretty;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus {
  outline: none;
}

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

:target,
:focus-visible {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  z-index: var(--z-skip);
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 40px), 1240px);
  margin-inline: auto;
}

/* Buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:visited {
  color: var(--btn-fg);
}

.btn:hover {
  color: var(--btn-fg);
  background: #01233f;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
}

.btn-primary:hover {
  background: #052a48;
}

.btn-accent {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
}

.btn-accent:hover {
  background: #1578d2;
}

.btn-secondary {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-bd: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--navy);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  --btn-bd: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* Header — floating glass pill */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 12px 0 0;
  background: transparent;
  pointer-events: none;
}

.header-wrap {
  pointer-events: none;
}

.header-shell {
  pointer-events: auto;
  position: relative;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 21, 40, 0.08);
  box-shadow: 0 10px 28px rgba(0, 21, 40, 0.1);
}

.site-header.is-scrolled .header-shell {
  box-shadow: 0 12px 32px rgba(0, 21, 40, 0.14);
}

.header-shell.is-open {
  border-radius: 32px;
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 6px 8px 6px 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 44px;
  min-height: 44px;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.nav-desktop a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-desktop a:hover {
  color: var(--navy);
  background: #ffffff;
}

.nav-desktop a[aria-current="true"] {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 21, 40, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.advisor-chip {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 10px 4px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.advisor-chip:hover {
  color: var(--navy);
  background: #e8eef4;
}

.advisor-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle:hover {
  background: #e8eef4;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-mobile {
  display: none;
  padding: 4px 12px 14px;
}

.nav-mobile.is-open {
  display: grid;
  gap: 6px;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 0;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}

/* Hero */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--grad-h);
}

.hero-grid {
  display: grid;
  gap: var(--space-7);
  padding: calc(var(--header-h) + 8px) 0 var(--space-9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b9dcfa;
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero-kicker {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: #d5e8f8;
}

.hero p.lead {
  margin: 0 0 var(--space-6);
  max-width: 46ch;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-proof div {
  padding: 16px 14px;
  background: rgba(0, 21, 40, 0.25);
}

.hero-proof strong {
  display: block;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-proof span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

.hero-media {
  position: relative;
  min-height: 320px;
}

.hero-frame {
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 21, 40, 0.86);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ad0a5;
  box-shadow: 0 0 0 0 rgba(122, 208, 165, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(122, 208, 165, 0);
  }
}

/* Sections */
.section {
  padding: var(--space-9) 0;
}

.section-muted {
  background: var(--bg);
}

.section-surface {
  background: var(--surface);
}

.section-navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-navy .kicker {
  color: #8ec8f8;
}

.section-head h2,
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: var(--lh-snug);
  font-weight: 700;
}

.section-head p,
.prose {
  color: var(--text-secondary);
  max-width: 62ch;
}

.section-navy .section-head p,
.section-navy .prose {
  color: var(--text-on-dark-muted);
}

/* Market */
.market-grid {
  display: grid;
  gap: var(--space-6);
}

.demand-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background-image: var(--grad-d);
}

.demand-card .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.demand-card .figure {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}

.demand-card .figure span {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
}

.demand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  font-size: 12px;
  color: #d4e8f8;
}

.factor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.factor-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.icon-blob {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}

.icon-blob svg {
  width: 14px;
  height: 14px;
}

/* Project */
.project-layout {
  display: grid;
  gap: var(--space-6);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.stat b {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--text-muted);
  font-size: 13px;
}

.availability {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.availability-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}

.availability-head h3 {
  margin: 0;
  font-size: 1rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}

.sw-sold {
  background: var(--navy);
}

.sw-reserved {
  background: var(--blue);
}

.sw-open {
  background: #d9e3ec;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.unit {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #d9e3ec;
}

.unit[data-state="sold"] {
  background: var(--navy);
}

.unit[data-state="reserved"] {
  background: var(--blue);
}

.bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bar-row span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.track {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}

.track > b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.project-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.spec-row {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.spec {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.spec strong {
  display: block;
  font-size: 15px;
}

.spec span {
  color: var(--text-muted);
  font-size: 13px;
}

.map-block {
  margin-top: var(--space-6);
}

.map-block h3,
.project-copy h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  background: var(--bg);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* IAB band */
.iab-band {
  display: grid;
  gap: var(--space-6);
}

.iab-points {
  display: grid;
  gap: 12px;
}

.iab-points article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.iab-points h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.iab-points p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 14px;
}

/* Benefits */
.benefit-grid {
  display: grid;
  gap: 12px;
}

.benefit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.benefit h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.benefit p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* Diary */
.diary-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.diary-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.diary-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.diary-card div {
  padding: 14px 16px 16px;
}

.diary-card time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.diary-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.diary-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
}

.icon-btn:hover {
  background: var(--accent-soft);
}

/* Trust */
.trust-grid {
  display: grid;
  gap: var(--space-6);
}

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

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.promise-grid {
  display: grid;
  gap: 12px;
}

.promise {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
}

.promise span {
  display: block;
  color: #9cc9ee;
  font-size: 13px;
  margin-top: 4px;
}

/* Status timeline */
.status-steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-step {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}

.status-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--muted);
}

.status-step:last-child::before {
  display: none;
}

.status-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--muted);
  position: relative;
  z-index: 1;
}

.status-step.is-done .dot {
  background: var(--navy);
  border-color: var(--navy);
}

.status-step.is-current .dot {
  background: var(--blue);
  border-color: var(--blue);
}

.status-step strong {
  display: block;
  font-size: 14px;
}

.status-step span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Calculator */
.calc-shell {
  display: grid;
  gap: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
}

.req {
  color: var(--error);
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.field input:hover,
.field select:hover {
  background: var(--white);
}

.field input:focus-visible,
.field select:focus-visible {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.field .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  min-height: 1em;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--error);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

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

.kpi {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi b {
  display: block;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi span {
  font-size: 12px;
  color: var(--text-muted);
}

.chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 180px;
  padding: 12px 4px 0;
}

.chart-col {
  display: grid;
  grid-template-rows: 1fr auto auto;
  height: 100%;
  align-items: end;
  text-align: center;
  gap: 6px;
}

.chart-col .bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--grad-h);
  min-height: 4px;
  transition: height 220ms var(--ease);
}

.chart-col small {
  font-size: 10px;
  color: var(--text-muted);
}

.chart-col em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.results-table th {
  background: var(--bg);
  font-weight: 600;
}

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

/* References */
.ref-grid {
  display: grid;
  gap: 12px;
}

.ref-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.ref-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ref-card div {
  padding: 14px 16px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
}

.badge-soft {
  background: var(--accent-soft);
  color: #0b4f86;
}

.ref-card h3 {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-6);
}

.person-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.person {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.person img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.person h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.person p {
  margin: 0;
  color: var(--text-on-dark-muted);
}

.person-mail {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.person-mail:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.form-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.form-row {
  display: grid;
  gap: 12px;
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 10px 0;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.form-status {
  min-height: 1.25em;
  font-size: 14px;
  margin: 8px 0 0;
}

.form-status.is-ok {
  color: var(--success);
}

.form-status.is-err {
  color: var(--error);
}

.trust-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  align-items: center;
}

.trust-marks img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
}

.trust-marks img[alt="DCC Energy"] {
  height: 36px;
  max-width: 260px;
}

.legal {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 90ch;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-7);
}

.footer-bar {
  height: 6px;
  background: var(--grad-h);
  border-radius: 999px;
  margin-bottom: var(--space-5);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-legal {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.claim {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 40, 0.56);
}

.modal-panel {
  position: relative;
  width: min(480px, calc(100% - 32px));
  margin: 8vh auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-height: 84vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

/* Mobile CTA */
.mobile-cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* Utilities */
.mt-4 {
  margin-top: var(--space-4);
}
.mt-5 {
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .wrap,
  .wrap-wide {
    width: min(calc(100% - 64px), var(--container));
  }

  .wrap-wide {
    width: min(calc(100% - 64px), 1240px);
  }

  .nav-toggle,
  .mobile-cta {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: calc(var(--header-h) + 16px) 0 88px;
  }

  .market-grid,
  .project-layout,
  .iab-band,
  .trust-grid,
  .contact-grid,
  .calc-shell {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-grid,
  .ref-grid,
  .spec-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }

  .status-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
  }

  .status-step {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .status-step::before {
    left: 18px;
    right: -12px;
    top: 9px;
    bottom: auto;
    height: 2px;
    width: auto;
  }

  .status-step:last-child::before,
  .status-step:nth-child(4)::before {
    display: none;
  }
}

@media (min-width: 1024px) {
  .advisor-chip {
    display: flex;
  }

  .header-inner {
    padding-right: 6px;
  }

  .calc-shell {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 28px;
  }

  .project-layout {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-steps {
    grid-template-columns: repeat(7, 1fr);
  }

  .status-step:nth-child(4)::before {
    display: block;
  }

  .status-step:last-child::before {
    display: none;
  }

  .hero-frame {
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 479px) {
  .wrap,
  .wrap-wide {
    width: min(calc(100% - 24px), var(--container));
  }

  .stat-row,
  .hero-proof,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .unit-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse {
    animation: none;
  }
}
