/* ============================================================
   Blue Peak Real Estate — design system v2
   Brand: navy / ice / blue / orange · Apotek Wide display · Schibsted Grotesk text
   ============================================================ */

@font-face {
  font-family: 'Apotek Wide';
  src: url('/assets/fonts/apotek-extrawide-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-italic-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette — OKLCH, hues unchanged from the brand (navy / ice / blue / orange), neutrals tinted toward the brand blue */
  --navy: oklch(28.5% 0.058 242);
  --navy-deep: oklch(23% 0.044 243);
  --navy-soft: oklch(33.5% 0.065 242);
  --ice: oklch(95.3% 0.026 222);
  --ice-dim: oklch(83% 0.045 226);
  --blue: oklch(66.9% 0.184 249);
  --mid: oklch(53.4% 0.128 254);
  --sky: oklch(51% 0.124 245);          /* darkened from #157CBF so links and eyebrows clear 4.5:1 on paper and carry white text */
  --orange: oklch(79% 0.167 68);
  --paper: oklch(97.9% 0.007 234);
  --white: oklch(99.3% 0.004 234);      /* never pure white: a hint of the brand blue */
  --ink-soft: oklch(44.7% 0.057 239);
  --danger: oklch(56.1% 0.173 31);
  --success: oklch(51.5% 0.111 158);
  --line: oklch(95.3% 0.026 222 / 0.28);
  --line-dark: oklch(28.5% 0.058 242 / 0.14);

  /* type */
  --display: 'Apotek Wide', 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* type scale — 1.25 ratio; body is fixed, display sizes are fluid */
  --text-xs: 0.75rem;    /* 12px: table headers, datelines, labels — the floor */
  --text-sm: 0.875rem;   /* 14px: secondary, captions */
  --text-base: 1rem;     /* 16px: body */
  --text-md: 1.25rem;    /* 20px: ledes, lead-deal name */
  --text-lg: 1.5625rem;  /* 25px: section h3 / small display */
  --text-xl: clamp(1.6rem, 3vw, 2.4rem);
  --text-2xl: clamp(2.1rem, 4.6vw, 3.9rem);

  /* rhythm */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 6.5rem;
  --space-xs: var(--s1); --space-sm: var(--s2); --space-md: var(--s3); --space-lg: var(--s4);
  --space-xl: var(--s5); --space-2xl: var(--s6); --space-3xl: var(--s7);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px -2px rgba(7, 31, 48, 0.12);
  --shadow: 0 20px 45px -20px rgba(7, 31, 48, 0.4);
  --shadow-lg: 0 32px 70px -28px rgba(7, 31, 48, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--body);
  font-size: var(--text-base);
  font-kerning: normal;
  font-feature-settings: 'liga' 1;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 0.6em 1.2em; font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container--narrow { width: min(860px, 92vw); margin-inline: auto; }

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.005em;
}
h1, h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.06; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; text-wrap: balance; }
table, .num, .price-badge, .lead-price, .offer-box .price-now, .stat-n { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--orange); }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--orange); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 58ch; line-height: 1.55; }
.on-dark .lede, .section--dark .lede { color: var(--ice-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--ice);
  color: var(--ice);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ice); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--dark { border-color: var(--navy); color: var(--navy); }
.btn--dark:hover { background: var(--navy); color: var(--ice); }
.btn--solid { background: var(--sky); border-color: var(--sky); color: var(--white); }
.btn--solid:hover { background: var(--mid); border-color: var(--mid); color: var(--white); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn--orange:hover { background: #ffb54a; border-color: #ffb54a; color: var(--navy); }
.btn--lg { font-size: 0.95rem; padding: 1.05em 2.6em; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 0.9rem 0;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled, .site-header--solid {
  background: rgba(7, 31, 48, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.45);
  padding: 0.6rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header .logo img { height: 38px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 2.2rem; }
.site-header nav a {
  font-family: var(--display);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--ice);
  text-transform: uppercase;
  opacity: 0.9;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a[aria-current="page"] { border-color: var(--orange); opacity: 1; }
.site-header nav a.btn--orange { color: var(--navy); opacity: 1; border-bottom: 1.5px solid var(--orange); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ice); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero / duotone ---------- */
.duotone { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.duotone > .duotone-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: luminosity;
  opacity: 0.5;
}
.duotone::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 20% 30%, rgba(0, 153, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(7, 31, 48, 0.5), rgba(10, 45, 68, 0.72));
}

.hero { min-height: min(88svh, 840px); display: flex; align-items: center; color: var(--ice); }
.hero .container { padding: 9rem 0 5rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(3rem, 8.6vw, 6.8rem);
  line-height: 1.0;
  color: var(--ice);
  letter-spacing: 0.005em;
  text-shadow: 5px 5px 0 rgba(7, 31, 48, 0.5);
  max-width: 13ch;
}
.hero .sub { margin: 1.5rem 0 2rem; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; }
.hero .sub em { font-style: italic; color: var(--orange); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
/* ---------- sections ---------- */
.section { padding: var(--s7) 0; }
.section--tight { padding: var(--s6) 0; }
.section--dark { background: var(--navy); color: var(--ice); }
.section--deep { background: var(--navy-deep); color: var(--ice); }
.section-head { max-width: 680px; margin-bottom: var(--s5); display: grid; gap: 0.9rem; }
.section-head h2 { font-size: var(--text-xl); }
.section-head--row {
  max-width: none;
  display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.section-head--row > div { max-width: 640px; display: grid; gap: 0.9rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  position: relative;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sky);
  line-height: 1;
}
.step h3 { font-size: 1.22rem; }
.step p { font-size: 0.97rem; color: var(--ink-soft); flex: 1; }
.step .text-link { margin-top: 0.3rem; }

.text-link {
  font-weight: 700; font-size: 0.92rem; color: var(--sky);
  display: inline-flex; align-items: center; gap: 0.4em;
}
.text-link::after { content: '→'; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.section--dark .text-link, .section--deep .text-link, .on-dark .text-link { color: var(--ice); }

/* ---------- listing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem; }
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:focus-within { box-shadow: var(--shadow); }
.card .card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-soft); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.save-flag {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: var(--orange); color: var(--navy);
  font-family: var(--display); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 0.45em 1em;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.28);
}
.price-badge {
  position: absolute; bottom: 0.9rem; left: 0.9rem;
  background: var(--navy); color: var(--ice);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.28);
  font-variant-numeric: tabular-nums;
}
.price-badge s { color: #7d9cb0; margin-right: 0.45em; font-size: 0.82em; }
.price-badge .permo { font-family: var(--body); font-size: 0.68em; font-weight: 600; color: var(--ice-dim); }
.card-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sky);
  background: rgba(21, 124, 191, 0.1);
  border-radius: 999px;
  padding: 0.3em 0.85em;
}
.tag--navy { color: var(--ice); background: var(--navy); }
.card h3 { font-size: 1.08rem; line-height: 1.35; }
.card h3 a::after { content: ''; position: absolute; inset: 0; } /* stretched link */
.card .snippet { font-size: 0.9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-meta { display: flex; gap: 1.1rem; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--line-dark); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- filter bar ---------- */
.filterbar { display: grid; gap: 0.9rem; margin: 0 0 2.4rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-group .flabel {
  font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ice-dim); margin-right: 0.4rem;
}
.chip {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.5em 1.15em;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.chip:hover { background: rgba(222, 244, 252, 0.12); }
.chip.active { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.chip--sort.active { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.results-count { font-size: 0.9rem; color: var(--ice-dim); font-weight: 600; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy);
}
.field > label .req { color: var(--danger); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--paper);
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.95em;
  min-height: 48px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.18);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .field-err { font-size: 0.8rem; color: var(--danger); font-weight: 600; display: none; }
.field.invalid .field-err { display: block; }
.field textarea { min-height: 110px; resize: vertical; }
.form-msg { margin-top: 1.1rem; font-weight: 700; display: none; }
.form-msg.err { color: var(--danger); display: block; }
.form-msg.ok { color: var(--success); display: block; }

.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  font-size: 0.86rem; font-weight: 700;
  border: 1.5px solid var(--line-dark); border-radius: 999px;
  padding: 0.5em 1.15em; min-height: 42px; display: inline-flex; align-items: center;
  cursor: pointer; color: var(--navy); transition: all 0.15s var(--ease);
}
.seg label:hover { border-color: var(--sky); }
.seg input:checked + label { background: var(--navy); color: var(--ice); border-color: var(--navy); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

/* multi-step */
.form-steps { display: none; }
.form-steps.active { display: block; animation: stepIn 0.3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.progress-track { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.8rem; }
.progress-track .pstep {
  flex: 1; height: 6px; border-radius: 4px; background: var(--line-dark);
  position: relative; overflow: hidden;
}
.progress-track .pstep.on::after {
  content: ''; position: absolute; inset: 0; background: var(--blue); border-radius: 4px;
}
.progress-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.success-panel { text-align: center; padding: 2rem 0; }
.success-panel img { width: min(340px, 70%); margin: 0 auto 1.4rem; }

/* ---------- listing detail ---------- */
.listing-hero { padding: 8.5rem 0 3rem; color: var(--ice); }
.listing-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 22ch; }
.listing-hero .meta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.meta-pill {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ice); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4em 1em;
}
.meta-pill--orange { border-color: var(--orange); color: var(--orange); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 215px; gap: 0.8rem; }
.gallery a { border-radius: 12px; overflow: hidden; display: block; position: relative; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .more-count {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(7, 31, 48, 0.62); color: var(--ice);
  font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.1em;
}

.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.6rem; align-items: start; }
.detail-main { display: grid; gap: 2.6rem; }
.detail-main h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.prose p + p { margin-top: 0.9em; }
.prose { color: var(--ink-soft); }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.4rem; list-style: none; }
.amenities li { font-size: 0.96rem; font-weight: 600; padding-left: 1.5em; position: relative; color: var(--navy); }
.amenities li::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 0.7em; height: 0.7em;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.sticky-side { position: sticky; top: 90px; display: grid; gap: 1.4rem; }
.offer-box {
  background: var(--navy); color: var(--ice);
  border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow);
}
.offer-box .price-line { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.offer-box .price-now { font-family: var(--display); font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.offer-box .price-was { color: #7d9cb0; text-decoration: line-through; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.offer-box .permo { color: var(--ice-dim); font-size: 0.85rem; font-weight: 600; }
.offer-box .deal {
  margin-top: 0.9rem; padding: 0.7rem 1rem;
  background: rgba(255, 163, 29, 0.14);
  border: 1px solid rgba(255, 163, 29, 0.5);
  border-radius: var(--radius-sm);
  color: var(--orange); font-weight: 700; font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 70ch; }
.faq details {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  transition: box-shadow 0.2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.2rem; color: var(--sky); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: var(--s7) 0; }
.cta-band h2 { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: clamp(2rem, 5vw, 3.6rem); color: var(--ice); max-width: 18ch; margin: 0 auto 1rem; }
.cta-band p { color: var(--ice-dim); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--ice); padding: var(--s6) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer .foot-h {
  font-family: var(--display); font-size: var(--text-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.93rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo img { height: 44px; margin-bottom: 1.2rem; }
.site-footer .blurb { font-size: 0.9rem; color: var(--ice-dim); max-width: 34ch; }
.site-footer .fineprint {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ice-dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- agent tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem; }
.tool-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card .tool-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0, 153, 255, 0.12); color: var(--sky);
  display: flex; align-items: center; justify-content: center;
}
.tool-card .tool-icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.12rem; }
.tool-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }

/* ---------- CRM ---------- */
.crm-controls {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  margin: 1.8rem 0 1.4rem;
}
.crm-controls input[type="search"], .crm-controls select {
  font: inherit; color: var(--navy); background: var(--white);
  border: 1.5px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 0.6em 0.9em; min-height: 46px;
}
.crm-controls input[type="search"] { flex: 1 1 260px; }
.crm-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.crm-table th {
  font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: left; color: var(--ice); background: var(--navy); padding: 0.9rem 1rem; white-space: nowrap;
}
.crm-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-dark); font-size: 0.92rem; vertical-align: top; }
.crm-table tr:hover td { background: rgba(0, 153, 255, 0.05); }
.crm-table .lead-name { font-weight: 700; cursor: pointer; }
.crm-table .lead-sub { font-size: 0.8rem; color: var(--ink-soft); }
.crm-table select.status-select {
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--navy);
  border: 1.5px solid var(--line-dark); border-radius: 999px; padding: 0.35em 0.7em;
  background: var(--paper); max-width: 230px; cursor: pointer;
}
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.5em; background: var(--mid); }
.crm-detail td { background: var(--paper); font-size: 0.88rem; }
.crm-detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.7rem 1.6rem; }
.crm-detail dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.crm-detail dd { margin: 0.15rem 0 0; }
.crm-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- content studio ---------- */
.studio { display: grid; grid-template-columns: 400px 1fr; gap: 2rem; align-items: start; }
.studio-preview {
  background: repeating-conic-gradient(rgba(10,45,68,0.06) 0% 25%, transparent 0% 50%) 50% / 24px 24px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.4rem; display: flex; justify-content: center; align-items: flex-start;
  position: sticky; top: 90px;
}
.studio-preview canvas { max-width: 100%; height: auto; max-height: 76vh; border-radius: 8px; box-shadow: var(--shadow); }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } .studio-preview { position: static; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }
.breadcrumbs { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; margin-bottom: 1.1rem; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.5em; opacity: 0.5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split .visual img { border-radius: var(--radius); }

.notice-bar {
  background: var(--orange); color: var(--navy);
  font-weight: 700; font-size: 0.88rem; text-align: center;
  padding: 0.55rem 1rem;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 700px) {
  .steps, .cards, .tools-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery a:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column; align-items: flex-start;
    padding: 1.4rem 6vw 1.8rem; gap: 1.2rem;
    box-shadow: 0 24px 40px -18px rgba(0,0,0,0.5);
  }
  .site-header nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero .container { padding-top: 7.5rem; }
}

/* ============================================================
   Property map + concessions tracker (added features)
   ============================================================ */

/* chips on a light section (map + deals) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map-chips, .deals-chips { margin-top: 1.4rem; }
.map-chips .chip, .deals-chips .chip { color: var(--navy); border-color: var(--line-dark); min-height: 38px; }
.map-chips .chip:hover, .deals-chips .chip:hover { background: rgba(10, 45, 68, 0.06); }
.map-chips .chip.active, .deals-chips .chip.active { background: var(--navy); color: var(--ice); border-color: var(--navy); }

/* ---- map layout ---- */
.map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.6rem; align-items: start; }
.map-wrap { position: sticky; top: 90px; }
#bpMap {
  height: min(72vh, 640px); border-radius: var(--radius);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow);
  background: #e8eef2; z-index: 0;
}
#bpMap.map--failed { display: none; }
.map-fail, .map-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; }
.map-price--soft { color: var(--ink-soft); opacity: 0.85; }
.map-list {
  display: grid; gap: 0.9rem; max-height: min(72vh, 640px);
  overflow-y: auto; padding-right: 0.35rem;
}
.map-item {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.map-item:hover, .map-item:focus-visible { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); outline: none; }
.map-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.45rem; }
.map-item-top h3 { font-size: 1rem; line-height: 1.3; }
.map-item .map-price { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.map-item .map-price s { color: #7d9cb0; font-weight: 600; font-size: 0.82em; margin-left: 0.35em; }
.map-item .map-price .permo { font-size: 0.72em; font-weight: 600; color: var(--ink-soft); }
.map-conc { display: flex; gap: 0.4rem; align-items: flex-start; margin-top: 0.4rem; font-size: 0.86rem; color: var(--sky); font-weight: 600; }
.map-conc svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 0.12rem; }
.map-item address { font-style: normal; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.45rem; }
.map-item .text-link { display: inline-block; margin-top: 0.55rem; font-size: 0.86rem; }

/* leaflet marker + popup */
.bp-pin { display: flex; align-items: center; justify-content: center; }
.bp-pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); }
.bp-pin--deal .bp-pin-dot { background: var(--orange); }
.bp-pop { display: grid; gap: 0.2rem; font-family: var(--body); min-width: 160px; }
.bp-pop strong { font-size: 0.98rem; color: var(--navy); }
.bp-pop-hood { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.bp-pop-price { font-weight: 700; color: var(--navy); }
.bp-pop .permo { font-weight: 600; color: var(--ink-soft); font-size: 0.82em; }
.bp-pop em { font-style: normal; color: var(--sky); font-size: 0.84rem; }
.bp-pop a { margin-top: 0.25rem; font-weight: 700; color: var(--blue); }

/* ---- deals table ---- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.deals-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.deals-table th, .deals-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-dark); font-size: 0.92rem; vertical-align: top; }
.deals-table thead th { background: var(--navy); color: var(--ice); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.deals-table tbody tr:last-child td { border-bottom: 0; }
.deals-table tbody tr:hover { background: var(--paper); }
.deals-table td:nth-child(3), .deals-table td:nth-child(6) { font-weight: 700; color: var(--navy); white-space: nowrap; }
.deals-table a { color: var(--sky); font-weight: 600; }

/* ---- concession updater (portal) ---- */
.conc-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.conc-preview { margin: 0.4rem 0 0.2rem; padding: 0.7rem 0.9rem; background: var(--paper); border: 1px dashed var(--line-dark); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--navy); }
.conc-log { position: sticky; top: 90px; }
.conc-log-list { list-style: none; display: grid; gap: 0.85rem; max-height: 60vh; overflow-y: auto; }
.conc-log-list li { border-left: 3px solid var(--blue); padding: 0.15rem 0 0.15rem 0.8rem; }
.conc-log-when { font-size: 0.74rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.conc-log-val { font-size: 0.86rem; color: var(--sky); margin-top: 0.1rem; }

@media (max-width: 980px) {
  .map-layout, .conc-layout { grid-template-columns: 1fr; }
  .map-wrap, .conc-log { position: static; }
  .map-list { max-height: none; }
}
@media (max-width: 640px) {
  /* deals table → stacked cards */
  .deals-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .deals-table, .deals-table tbody, .deals-table tr, .deals-table td { display: block; width: 100%; }
  .deals-table tr { border: 1px solid var(--line-dark); border-radius: var(--radius-sm); margin-bottom: 0.9rem; background: var(--white); }
  .deals-table td { border: 0; padding: 0.4rem 1rem; }
  .deals-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
  .deals-table td:first-child { padding-top: 0.9rem; font-size: 1.02rem; font-weight: 700; }
  .deals-table td:last-child { padding-bottom: 0.9rem; }
}

/* ============================== portal & admin ============================== */
.portal-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.portal-bar #whoami { font-weight: 700; color: var(--navy); }
.portal-bar-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.portal-bar-links a { font-weight: 600; color: var(--mid); text-decoration: none; }
.portal-bar-links a:hover { text-decoration: underline; }
.notice { background: #fff4e6; border: 1px solid #f6d19a; color: #8a5a12; border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.9rem; margin-top: 1rem; }
.notice a { color: inherit; font-weight: 700; }
.soft { color: var(--ink-soft); }
.btn--sm { font-size: 0.78rem; padding: 0.6em 1.1em; }
.tag--warn { background: var(--orange); color: var(--navy); }

/* deals table (agent) */
.deals-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin: 0.4rem 0 0.8rem; }
.deals-controls input[type="search"], #txnFilter { flex: 1 1 220px; max-width: 360px; padding: 0.65rem 0.9rem; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); font: inherit; font-size: 0.92rem; background: var(--white); }
.deals-table--agent td { vertical-align: top; }
.deals-table--agent td em { font-style: normal; font-size: 0.8rem; }
.deals-table--agent .btn--sm { white-space: nowrap; }

/* agent map cards */
.map-agent { display: grid; gap: 0.25rem 0.8rem; margin: 0.45rem 0 0.4rem; font-size: 0.82rem; }
.map-agent div { display: flex; gap: 0.5rem; }
.map-agent dt { font-weight: 800; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); min-width: 78px; padding-top: 0.2rem; }
.map-agent dd { margin: 0; overflow-wrap: anywhere; }
.map-item-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.bp-pop-line { display: block; font-size: 0.82rem; }

/* admin shell */
.admin-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; background: var(--navy); color: var(--ice); border-radius: var(--radius-sm); padding: 0.7rem 1.1rem; margin: 1.4rem 0 1.6rem; font-size: 0.9rem; }
.admin-nav a { color: var(--ice); text-decoration: none; font-weight: 600; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.admin-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.admin-nav a:hover { color: var(--orange); }
.admin-nav .spacer { flex: 1; }
.freshness { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.fresh { font-size: 0.74rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line-dark); color: var(--ink-soft); }
.fresh b { color: var(--navy); margin-right: 0.3rem; }
.fresh--live { border-color: var(--blue); }
.fresh--stale, .fresh--missing, .fresh--error { border-color: var(--orange); background: #fff4e6; }
.fresh--sync { background: var(--ice); }
.dash-frame { width: 100%; min-height: 900px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: #eef4fa; }

/* financials */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; }
.stat { background: var(--ice); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.stat-n { font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.stat-s { font-size: 0.78rem; color: var(--ink-soft); }
.fin-section { margin-top: var(--s5); }
.fin-section h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.fin-section .sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.9rem; max-width: 70ch; }
.fin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.88rem; }
.fin-table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 0.65rem 0.8rem; background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.fin-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.fin-table th.num, .fin-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table tr.total td { font-weight: 800; background: var(--paper); }
.fin-table .neg { color: var(--danger); }
.fin-table .pos { color: var(--success); }
.fin-table .overdue { color: var(--danger); font-weight: 700; }
.fin-table tr:hover td { background: rgba(0, 153, 255, 0.05); }
.fin-table--wide td, .fin-table--wide th { white-space: nowrap; }
.fin-table--wide td:nth-child(2), .fin-table--wide td:nth-child(3) { white-space: normal; min-width: 120px; }
.chart { width: 100%; height: auto; display: block; margin: 0.4rem 0 1rem; font-family: var(--body); }
.chart .grid { stroke: rgba(10, 45, 68, 0.12); stroke-width: 1; }
.chart .axis { fill: var(--ink-soft); font-size: 11px; }
.chart .bar { transition: opacity 0.15s; }
.chart .hit:hover ~ .bar, .chart g.month:hover .bar { opacity: 0.85; }
.chart .net-dot { stroke: var(--white); stroke-width: 2; }
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.35rem; vertical-align: middle; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: var(--ice); font-size: 0.78rem; line-height: 1.4; padding: 0.45rem 0.65rem; border-radius: 8px; box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); }
.chart-wrap { position: relative; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem; }
.report-card { display: flex; flex-direction: column; gap: 0.25rem; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 0.9rem 1rem; text-decoration: none; color: var(--navy); box-shadow: var(--shadow-sm); }
.report-card:hover { border-color: var(--blue); }
.report-card b { font-size: 0.95rem; }
.report-card span { font-size: 0.78rem; color: var(--ink-soft); }

/* agent access */
.access-table td .inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.access-table input { padding: 0.45rem 0.6rem; border: 1px solid var(--line-dark); border-radius: 8px; font: inherit; font-size: 0.85rem; min-width: 200px; }
.access-table .btn + .btn { margin-left: 0.4rem; }
.badge { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 20px; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line-dark); }
.badge--ok { background: var(--ice); color: var(--navy); border-color: transparent; }
.badge--warn { background: #fff4e6; color: #8a5a12; border-color: #f6d19a; }
.badge--off { background: #f2f2f2; color: #666; }
.badge--admin { background: var(--navy); color: var(--ice); border-color: transparent; }

@media (max-width: 720px) {
  .admin-nav { gap: 0.8rem; }
  .stat-n { font-size: 1.3rem; }
  .map-agent dt { min-width: 68px; }
}

/* ============================== go-live additions ============================== */
/* Honeypot: off-screen (not display:none — some bots skip those), never focusable. */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-footer .fineprint--legal { border-top: 0; margin-top: 0.2rem; padding-top: 0.6rem; font-size: 0.76rem; line-height: 1.5; color: var(--ice-dim); align-items: flex-start; }
.site-footer .fineprint--legal span:first-child { max-width: 86ch; }
.site-footer .fineprint--legal a { color: inherit; text-decoration: underline; white-space: nowrap; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.7; }
.prose p { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 0.9rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--mid); }

/* ============================================================
   Homepage — editorial rebuild (2026-09-22)
   Light masthead with the lead deal, the specials ledger, one navy
   market note, How it works, Who pays us, closing. No cards, no glows.
   ============================================================ */
.mast { background: var(--paper); padding: calc(4.6rem + var(--space-lg)) 0 var(--space-xl); overflow-x: clip; }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dateline {
  font-family: var(--display); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.mast h1 { font-size: var(--text-2xl); line-height: 1; color: var(--navy); margin-top: 1.1rem; max-width: 15ch; }
.mast-sub { font-size: var(--text-md); color: var(--ink-soft); max-width: 40ch; margin-top: 1.5rem; line-height: 1.5; }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 2.1rem; }
.text-plain {
  display: inline-block; padding: 0.55rem 0;
  font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.22em;
}
.text-plain:hover { text-decoration-color: var(--navy); }

/* lead deal: photo bleeds to the right edge on wide screens, price block sits on navy */
.lead-deal {
  position: relative; display: block; color: var(--ice); background: var(--navy);
  margin-inline-end: calc((100vw - min(1180px, 92vw)) / -2);
  outline-offset: 4px;
}
.lead-deal img { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; display: block; transition: opacity 0.2s var(--ease); }
.lead-deal:hover img, .lead-deal:focus-visible img { opacity: 0.92; }
.lead-deal:hover .lead-name, .lead-deal:focus-visible .lead-name { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.lead-deal-blank { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--navy-soft); }
.lead-deal-label {
  position: absolute; top: 0; left: 0; z-index: 1;
  font-family: var(--display); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--orange); color: var(--navy); padding: 0.55em 0.9em;
}
.lead-deal-body { display: grid; gap: 0.2rem; padding: 1.15rem 1.4rem 1.35rem; }
.lead-price { font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap; }
.lead-price s { color: var(--ice-dim); font-size: var(--text-md); font-family: var(--body); font-weight: 500; }
.lead-price .permo { font-family: var(--body); font-size: var(--text-sm); font-weight: 600; color: var(--ice-dim); }
.lead-name { font-size: var(--text-md); font-weight: 700; margin-top: 0.35rem; }
.lead-hood { font-weight: 500; color: var(--ice-dim); }
.lead-hood::before { content: '· '; }
.lead-terms { font-weight: 700; color: var(--orange); font-size: var(--text-base); }
.lead-layout { font-size: var(--text-sm); color: var(--ice-dim); }

/* ledger */
.ledger { padding: var(--space-2xl) 0 var(--space-3xl); }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ledger h2 { font-size: var(--text-xl); }
.ledger-count { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.ledger-chips { margin: 0.2rem 0 1.4rem; }
.ledger-chips .chip { color: var(--navy); border-color: var(--line-dark); min-height: 38px; }
.ledger-chips .chip:hover { background: rgba(10, 45, 68, 0.06); }
.ledger-chips .chip.active { background: var(--navy); color: var(--ice); border-color: var(--navy); }
.ledger-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.ledger-table th, .ledger-table td { text-align: left; padding: 0.85rem 0.9rem 0.85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 0.95rem; vertical-align: top; }
.ledger-table thead th { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding-top: 0.7rem; padding-bottom: 0.6rem; white-space: nowrap; }
.ledger-table th[scope="row"] { font-weight: 700; color: var(--navy); }
.ledger-table th[scope="row"] a { text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 0.18em; }
.ledger-table th[scope="row"] a:hover, .ledger-table th[scope="row"] a:focus-visible { text-decoration-color: var(--orange); }
.ledger-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0.9rem; }
.ledger-table td.num { font-weight: 700; color: var(--navy); }
.ledger-table td.no-date { color: var(--ink-soft); }
.ledger-table .permo { font-size: var(--text-xs); font-weight: 500; color: var(--ink-soft); }
.ledger-table tbody tr:hover { background: rgba(10, 45, 68, 0.035); }
.ledger-toggle {
  margin-top: 1rem; background: none; border: 0; padding: 0.55rem 0; min-height: 44px; cursor: pointer;
  font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.22em;
}
.ledger-note { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
.ledger-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
.ledger-empty { font-size: 1.05rem; color: var(--ink-soft); max-width: 50ch; margin-top: 0.6rem; }
.ledger-empty a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* market note: the page's one navy block */
.market { background: var(--navy); color: var(--ice); padding: var(--space-3xl) 0; }
.market-dateline { font-family: var(--display); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.market-line { font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1.1; max-width: 24ch; margin-top: 1.1rem; }
.market-take { margin-top: 1.6rem; max-width: 58ch; font-size: var(--text-md); color: var(--ice-dim); line-height: 1.65; }

/* how it works: heading left, numbered passage right */
.how { padding: var(--space-3xl) 0 var(--space-2xl); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.how h2 { font-size: var(--text-xl); }
.how-list { list-style: none; counter-reset: how; display: grid; gap: 1.6rem; max-width: 56ch; }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; font-size: var(--text-md); line-height: 1.5; color: var(--ink-soft); }
.how-list li::before { content: counter(how); font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--orange); }
.how-list b { color: var(--navy); font-weight: 700; }
.how-list a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }

/* who pays us + the rest of the FAQ as plain definitions */
.pays { padding: var(--space-xl) 0 var(--space-3xl); border-top: 1px solid var(--line-dark); }
.pays-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.pays h2 { font-size: var(--text-xl); }
.pays-answer { margin-top: 1rem; font-size: var(--text-md); line-height: 1.5; max-width: 34ch; color: var(--navy); }
.faq-list { display: grid; }
.faq-item { padding: 1rem 0 1.1rem; border-top: 1px solid var(--line-dark); }
.faq-item:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-item dt { font-weight: 700; color: var(--navy); }
.faq-item dd { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: var(--text-base); line-height: 1.55; max-width: 60ch; }

/* closing */
.closing { padding: var(--space-2xl) 0 var(--space-3xl); background: var(--paper); }
.closing .container { border-top: 1px solid var(--navy); padding-top: var(--space-xl); }
.closing h2 { font-size: var(--text-2xl); color: var(--navy); }

@media (max-width: 900px) {
  .mast-grid, .how-grid, .pays-grid { grid-template-columns: 1fr; }
  .mast { padding-top: calc(4.2rem + var(--space-lg)); }
  .lead-deal { margin-inline-end: 0; }
  .pays-answer { max-width: 50ch; }
}
@media (max-width: 640px) {
  .mast h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .mast-sub { margin-top: 1.1rem; }
  .mast-actions { margin-top: 1.6rem; }
  .lead-deal img, .lead-deal-blank { aspect-ratio: 16 / 10; }
  .lead-deal-body { padding: 0.95rem 1.1rem 1.1rem; }
  /* ledger rows become compact two-column entries: name + price, hood + ends, deal, savings */
  .ledger-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger-table, .ledger-table tbody { display: block; width: 100%; }
  .ledger-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.15rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); }
  .ledger-table tr[hidden] { display: none; }
  .ledger-table th, .ledger-table td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  .ledger-table th[scope="row"] { grid-column: 1; grid-row: 1; font-size: 1.05rem; }
  .ledger-table td[data-label="From"] { grid-column: 2; grid-row: 1; text-align: right; font-size: 1.05rem; }
  .ledger-table td[data-label="Neighborhood"] { grid-column: 1; grid-row: 2; font-size: 0.85rem; color: var(--ink-soft); }
  .ledger-table td[data-label="Ends"] { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.85rem; color: var(--ink-soft); }
  .ledger-table td[data-label="Ends"]:not(.no-date)::before { content: 'Ends '; }
  .ledger-table td[data-label="Deal"] { grid-column: 1 / -1; grid-row: 3; font-weight: 600; color: var(--navy); margin-top: 0.2rem; }
  .ledger-table td[data-label="Saves per year"] { grid-column: 1 / -1; grid-row: 4; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
  .ledger-table td[data-label="Saves per year"]::before { content: 'Saves '; }
  .ledger-table td[data-label="Saves per year"]::after { content: ' a year'; }
  .how-list li { grid-template-columns: 2rem 1fr; }
}
}
