/* ============================================================
   Avenue Tax Sale & Surplus Property
   Institutional dark — Bloomberg / fintech aesthetic
   ============================================================ */

:root {
  /* === Canvas — deep institutional === */
  --bg:           #0a0e1a;        /* near-black with navy bias */
  --bg-deep:      #060912;        /* darker tier */
  --surface:      #11172a;        /* cards */
  --surface-2:    #18203a;        /* lifted cards / hover */
  --line:         rgba(196, 211, 235, 0.08);
  --line-strong:  rgba(196, 211, 235, 0.18);

  /* === Text === */
  --text:         #e8edf6;
  --text-soft:    #c4d3eb;
  --text-muted:   rgba(232, 237, 246, 0.62);
  --text-dim:     rgba(232, 237, 246, 0.40);

  /* === Accent — calm institutional blue === */
  --accent:       #6ea3e0;
  --accent-soft:  #8ebaef;
  --accent-deep:  #4a82c4;
  --accent-tint:  rgba(110, 163, 224, 0.10);

  /* === Status === */
  --status-new:      #6ea3e0;
  --status-updated:  #d9b15e;
  --status-sold:     #5fb085;
  --status-closed:   rgba(232, 237, 246, 0.55);
  --status-archived: rgba(232, 237, 246, 0.32);

  /* === CTA === */
  --cta:          #2c63a6;
  --cta-hover:    #3a76bd;
  --cta-active:   #1f4a82;

  /* === Type === */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* === Radii === */
  --r-sq: 2px;
  --r-md: 4px;

  /* === Shadows === */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-cta:  0 1px 0 rgba(255,255,255,0.10) inset, 0 6px 18px rgba(44, 99, 166, 0.32);
  --shadow-hover:0 1px 0 rgba(255,255,255,0.10) inset, 0 14px 32px rgba(44, 99, 166, 0.46);

  --label-size: 12px;
  --label-track: 0.18em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 {
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

em { font-style: italic; color: var(--accent-soft); font-family: var(--serif); }
.hero-accent { color: var(--accent-soft); font-style: normal; font-family: var(--serif); font-weight: 400; }
strong { font-weight: 600; color: var(--text); }
.muted { color: var(--text-muted); font-weight: 400; }

/* ============== EYEBROW ============== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.6;
}

/* ============== LAYOUT ============== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; }

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-deep { background: var(--bg-deep); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-lead {
  font-size: 1.10rem;
  color: var(--text-muted);
  margin-top: 14px;
  font-weight: 300;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
}

/* ============== TICKER (rotating feed) ============== */
.ticker {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  overflow: hidden;
}
.ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ticker-tag {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-sq);
  font-size: 10px;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.ticker-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 163, 224, 0.6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.ticker-feed {
  position: relative;
  flex: 1;
  height: 18px;
  overflow: hidden;
  min-width: 0;
}
.ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(6px);
  white-space: nowrap;
}
.ticker-item.ticker-item-active {
  opacity: 1;
  transform: translateY(0);
}
.ticker-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: var(--r-sq);
  flex-shrink: 0;
}
.ticker-pill-new     { background: rgba(110, 163, 224, 0.18); color: var(--status-new); border: 1px solid rgba(110, 163, 224, 0.32); }
.ticker-pill-updated { background: rgba(217, 177, 94, 0.18);  color: var(--status-updated); border: 1px solid rgba(217, 177, 94, 0.32); }
.ticker-pill-watch   { background: rgba(180, 140, 220, 0.16); color: #c9a9eb; border: 1px solid rgba(180, 140, 220, 0.32); }
.ticker-pill-closed  { background: rgba(232, 237, 246, 0.08); color: var(--text-muted); border: 1px solid rgba(232, 237, 246, 0.16); }
.ticker-text { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.ticker-time { color: var(--text-soft); font-weight: 500; }
.ticker-meta {
  color: var(--text-dim);
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 163, 224, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(110, 163, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 163, 224, 0); }
}
@media (max-width: 820px) {
  .ticker-meta { display: none; }
}

/* ============== HEADER ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  display: inline-block;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .brand-divider, .brand-tag { display: none; }
  .brand-logo { height: 24px; }
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 18px;
}
.nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.header-cta {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sq);
  padding: 9px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text); display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 32px 22px;
  gap: 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  color: var(--text-muted);
}
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav.open { display: flex; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r-sq);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--cta);
  color: #fff !important;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active { background: var(--cta-active); transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--accent-tint);
}
.btn-block { width: 100%; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 50% at 14% 20%, rgba(110, 163, 224, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 80%, rgba(74, 130, 196, 0.10), transparent 65%),
    var(--bg);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 211, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 211, 235, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-inner-single {
  display: block;
  text-align: left;
  max-width: 920px;
}
.hero-text { max-width: 760px; }
.hero-inner-single .hero-text { max-width: 100%; }
.hero-attribution {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.01em;
  max-width: 620px;
}
.hero-title { letter-spacing: -0.018em; }
.hero-lead {
  font-size: 1.14rem;
  color: var(--text-muted);
  margin: 22px 0 30px;
  max-width: 600px;
  font-weight: 300;
  line-height: 1.6;
}
.hero-credit {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  margin: -8px 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero { padding: 70px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============== STAT CARD (hero right) ============== */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 30px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.stat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.stat-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent);
}
.stat-card-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card-body { padding: 4px 0 14px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.stat-row:last-child { border-bottom: none; }
.stat-row strong {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-card-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.stat-card-note {
  font-size: 11.5px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
  display: block;
}

/* ============== CARDS ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card h3 { margin-bottom: 12px; color: var(--text); }
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.65;
}
.card-num {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

/* ============== MONITOR CARDS ============== */
.monitor-grid { gap: 18px; }
.monitor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.monitor-card:hover {
  border-color: var(--accent-deep);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.monitor-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-transform: uppercase;
}
.monitor-card h3 { font-size: 1.3rem; margin: 0; color: var(--text); }
.monitor-card p { font-size: 0.93rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.monitor-freq {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============== HIGHLIGHTS ============== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .highlights-grid { grid-template-columns: 1fr; } }

.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  position: relative;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.highlight:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
  background: var(--surface-2);
}
.highlight-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--r-sq);
  margin-bottom: 18px;
}
.highlight h3 { font-size: 1.35rem; margin-bottom: 18px; color: var(--text); }
.highlight-stats {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.highlight-stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.highlight-stats li span { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.highlight-stats li strong { font-family: var(--mono); font-weight: 500; color: var(--text); font-size: 0.92rem; }
.highlight-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.highlight-source {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.highlight-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* ============== STATUS BADGES ============== */
.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 3px 8px;
  border-radius: var(--r-sq);
  text-transform: uppercase;
}
.status-new      { background: rgba(110, 163, 224, 0.15); color: var(--status-new); border: 1px solid rgba(110, 163, 224, 0.25); }
.status-updated  { background: rgba(217, 177, 94, 0.15); color: var(--status-updated); border: 1px solid rgba(217, 177, 94, 0.25); }
.status-sold     { background: rgba(95, 176, 133, 0.15); color: var(--status-sold); border: 1px solid rgba(95, 176, 133, 0.30); }
.status-closed   { background: rgba(232, 237, 246, 0.06); color: var(--status-closed); border: 1px solid rgba(232, 237, 246, 0.12); }
.status-archived { background: transparent; color: var(--status-archived); border: 1px solid rgba(232, 237, 246, 0.12); }

/* ============== RESULTS TABLE ============== */
.results-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.results-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr 1fr 0.8fr;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.93rem;
}
.results-row:last-child { border-bottom: none; }
.results-row:hover { background: var(--surface-2); }
.results-head {
  background: var(--bg-deep);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 14px;
  padding-bottom: 14px;
}
.results-head:hover { background: var(--bg-deep); }
.results-prop {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
}
.results-num {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.results-status-col { text-align: right; }
.results-row > div:last-child { text-align: right; }
.results-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 900px) {
  .results-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 22px; }
  .results-head { display: none; }
  .results-row > div { text-align: left !important; }
  .results-row > div::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-right: 8px;
  }
}

/* ============== FOCUS AREAS ============== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .focus-grid { grid-template-columns: 1fr; } }

.focus-card-wide { grid-column: span 1; }
@media (min-width: 981px) {
  .focus-card-wide { grid-column: span 3; }
  .focus-card-wide .focus-list { max-width: 720px; }
}

.focus-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.focus-card::before {
  content: "";
  position: absolute;
  top: 0; left: 28px;
  width: 36px; height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.focus-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
  background: var(--surface-2);
}
.focus-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-bottom: 18px;
}
.focus-card h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--text); }
.focus-list { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ============== SUBSCRIBE BLOCK ============== */
.subscribe-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 44px 48px 40px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.subscribe-block::before {
  content: "";
  position: absolute;
  top: 0; left: 48px;
  width: 80px; height: 2px;
  background: var(--accent);
}
.subscribe-block .eyebrow { margin-bottom: 18px; }
.subscribe-block h2 { margin-bottom: 14px; }
.subscribe-lead {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 26px;
  max-width: 620px;
  line-height: 1.55;
}

.subscribe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 640px) { .subscribe-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 0; }
.field label, .field legend {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg);
  border: 1px solid var(--line-stronger, #2a3554);
  border-radius: var(--r-sq);
  color: var(--text);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  box-shadow: inset 0 0 0 1px rgba(110, 163, 224, 0.04);
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-deep);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.region-pick {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.region-pick legend { padding: 0; margin-bottom: 14px; }
.region-pick + .region-pick { margin-top: 8px; }
.region-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.region-pick-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.region-pick-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) {
  .region-pick-grid, .region-pick-grid-4, .region-pick-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-stronger, #2a3554);
  border-radius: var(--r-sq);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  background: var(--bg);
  white-space: nowrap;
}
.check:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--text);
}
.check input { accent-color: var(--accent); margin: 0; }
.check input:checked + span { color: var(--accent); font-weight: 600; }
.check-all { grid-column: span 2; background: var(--bg-deep); border-style: dashed; }
@media (max-width: 800px) { .check-all { grid-column: span 2; } }

.subscribe-disclaimer {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 14px 0 0;
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .subscribe-block { padding: 32px 24px; }
  .subscribe-block::before { left: 24px; }
  .check { white-space: normal; }
}

/* ============== CONFIRMATION ============== */
.signup-confirm {
  text-align: center;
  padding: 30px 0 8px;
  animation: rise 0.4s ease;
}
.confirm-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  margin: 0 auto 18px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  border: 1px solid var(--accent);
}
.signup-confirm h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 8px;
}
.signup-confirm p { color: var(--text-muted); margin: 0; }

/* ============== DISCLAIMER ============== */
.disclaimer-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 48px 48px;
}
.disclaimer-block h2 { margin-bottom: 32px; }
.disclaimer-list li { max-width: 640px; }
.disclaimer-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: disclaim;
}
.disclaimer-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.disclaimer-list li:first-child { border-top: none; padding-top: 0; }
.disclaimer-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 6px;
}
.disclaimer-list p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.disclaimer-list strong { color: var(--text); }

/* ============== MONITORED CATEGORIES (Bloomberg sector cards) ============== */
.section-categories {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.categories-head {
  max-width: 1240px;
  margin: 0 auto 36px;
  padding: 0 32px;
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.categories-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}
.categories-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0;
  letter-spacing: -0.008em;
}
.categories-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .categories-grid { grid-template-columns: 1fr; } }

.category {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.28s ease;
}
.category::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: transparent;
  transition: background 0.28s ease;
}
.category:hover {
  background: var(--surface);
}
.category:hover::before {
  background: var(--accent);
}
.category-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.category-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.22s, transform 0.28s ease;
}
.category:hover .category-icon {
  opacity: 1;
  transform: translateY(-2px);
}
.category-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--text-dim);
}
.category h3 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.008em;
  line-height: 1.15;
}
.category p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  font-weight: 300;
  flex-grow: 1;
}
.category-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: block;
}

/* ============== WATCH CARDS (refined property display) ============== */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .watch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .watch-grid { grid-template-columns: 1fr; } }

.watch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.watch-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
  background: var(--surface-2);
}
.watch-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.watch-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.watch-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.008em;
}
.watch-loc {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.watch-loc-sep { color: var(--text-dim); margin: 0 8px; }
.watch-note {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 22px;
}
.watch-meta {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.watch-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.watch-meta-row span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.watch-meta-row strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.watch-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  transition: color 0.18s, gap 0.18s;
}
.watch-link:hover { color: var(--accent-soft); }

.section-foot {
  margin-top: 36px;
  text-align: center;
}
.section-foot p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
  font-style: italic;
}

/* ============== REGION STRIP (pill row) ============== */
.region-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 1100px) { .region-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .region-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .region-strip { grid-template-columns: 1fr; } }

.region-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
  position: relative;
  cursor: pointer;
}
.region-pill::before {
  content: "";
  position: absolute;
  top: 0; left: 18px;
  width: 24px; height: 2px;
  background: var(--accent);
  opacity: 0.55;
}
.region-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
  background: var(--surface-2);
}
.region-pill:hover .region-pill-cue {
  opacity: 1;
  transform: translateY(0);
}
.region-pill-cue {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
@media (max-width: 720px) {
  /* Always show the cue on touch devices since hover doesn't fire */
  .region-pill-cue { opacity: 0.7; transform: translateY(0); }
}
.region-pill-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--accent);
}
.region-pill-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}
.region-pill-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.region-pill-stat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.region-pill-stat em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}
.region-pill-stat-new em {
  color: var(--accent);
}
.region-strip-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* ============== OBSERVATIONS ============== */
.observations {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.observation {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.observation-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.observation-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 9px;
  background: var(--accent-tint);
  border-radius: var(--r-sq);
}
.observation-date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.observation p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 640px;
  letter-spacing: -0.005em;
}

/* ============== OUTCOMES (curated, 3 cards) ============== */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .outcomes-grid { grid-template-columns: 1fr; } }

.outcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.outcome:hover {
  border-color: var(--accent-deep);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.outcome-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.outcome-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.outcome h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.008em;
}
.outcome-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.outcome-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.outcome-num {
  font-size: 0.96rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ============== SOFT CONTACT ============== */
.soft-contact {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.soft-contact p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.7;
}
.soft-contact a {
  color: var(--accent);
  font-style: normal;
  border-bottom: 1px solid rgba(110, 163, 224, 0.32);
  padding-bottom: 1px;
}
.soft-contact a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

/* ============== DISTRESSED BAND (in Categories section) ============== */
.distressed-band {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 40px 40px 36px;
  position: relative;
}
.distressed-band::before {
  content: "";
  position: absolute;
  top: 0; left: 40px;
  width: 64px; height: 2px;
  background: var(--accent);
  opacity: 0.55;
}
.distressed-band-head {
  margin-bottom: 28px;
  max-width: 760px;
}
.distressed-band-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.distressed-band-head h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}
.distressed-band-head p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
  font-weight: 300;
}
.distressed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sq);
  overflow: hidden;
}
.distressed-card {
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.distressed-card:hover { background: var(--surface-2); }
.distressed-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.distressed-card strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
}
.distressed-card > span:last-child {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .distressed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .distressed-grid { grid-template-columns: 1fr; }
  .distressed-band { padding: 32px 28px; }
}

/* ============== EDITORIAL WORKFLOW ============== */
.workflow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.workflow-step {
  display: grid;
  grid-template-columns: 56px 1fr 100px;
  gap: 24px;
  align-items: start;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.2s;
}
.workflow-step:last-child { border-bottom: none; }
.workflow-step:hover { background: var(--surface-2); }
.workflow-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--accent);
  padding-top: 4px;
}
.workflow-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}
.workflow-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.workflow-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-top: 6px;
}
.workflow-foot {
  max-width: 920px;
  margin: 32px auto 0;
  text-align: center;
}
.workflow-foot p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .workflow-step { grid-template-columns: 40px 1fr; padding: 22px 24px; gap: 14px; }
  .workflow-meta { display: none; }
}

@media (max-width: 640px) {
  .disclaimer-block { padding: 32px 26px; }
  .disclaimer-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-deep);
  padding: 80px 0 36px;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo { height: 32px; width: auto; opacity: 0.95; }
.footer-brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}
.footer-attribution {
  margin: 0;
  max-width: 540px;
  font-weight: 300;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--sans);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--text); }

.footer-disclaimer p {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin: 0 0 10px;
  max-width: 920px;
  line-height: 1.6;
}
.footer-credit { font-size: 0.78rem !important; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============== ANIMATIONS ============== */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   v5 — extended form controls + inquiry modal
   ===================================================================== */

/* select + textarea match input styling */
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg);
  border: 1px solid var(--line-stronger, #2a3554);
  border-radius: var(--r-sq);
  color: var(--text);
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 0 0 1px rgba(110, 163, 224, 0.04);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
                    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-deep);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

/* full-width row */
.subscribe-row-single { grid-template-columns: 1fr; }

/* CASL consent checkbox — full-width, multi-line wrap allowed */
.check-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sq);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bg-deep);
  white-space: normal;
  margin: 0 0 16px;
  transition: border-color 0.18s, color 0.18s;
}
.check-consent:hover { border-color: var(--accent); color: var(--text-soft); }
.check-consent input {
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check-consent input:checked ~ span { color: var(--text-soft); }
.check-consent span { display: block; }

/* =====================================================================
   Property Detail Request — modal overlay
   ===================================================================== */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 60px 20px 40px;
}
.inquiry-overlay.is-open {
  display: flex;
  animation: inquiryFadeIn 0.22s ease-out;
}
@keyframes inquiryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.inquiry-modal {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 36px 38px 32px;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: inquiryRise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes inquiryRise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.inquiry-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.inquiry-close:hover {
  background: var(--bg-deep);
  color: var(--text);
  border-color: var(--accent);
}

.inquiry-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.inquiry-modal h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}
.inquiry-modal h3 em { font-style: italic; color: var(--accent); }
.inquiry-lead {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.inquiry-property {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg-deep);
  border-left: 2px solid var(--accent);
  padding: 10px 14px;
  margin: 0 0 22px;
  border-radius: 2px;
}

.inquiry-form .subscribe-row { margin-bottom: 14px; }
.inquiry-form .field { margin-bottom: 0; }
.inquiry-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}
.inquiry-form fieldset legend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 10px;
}
.inquiry-form .inquiry-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 540px) {
  .inquiry-form .inquiry-radio-grid { grid-template-columns: 1fr; }
}

.inquiry-confirm {
  text-align: center;
  padding: 28px 0 12px;
}
.inquiry-confirm h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 12px 0 6px;
  color: var(--text);
}
.inquiry-confirm p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

@media (max-width: 600px) {
  .inquiry-modal { padding: 28px 22px 24px; }
  .inquiry-modal h3 { font-size: 1.55rem; }
}

/* =====================================================================
   v7 — region pill click → pre-check confirmation pulse
   ===================================================================== */
.check.check-pulse {
  animation: checkPulse 0.9s ease-out;
}
@keyframes checkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 163, 224, 0); border-color: var(--line-stronger, #2a3554); }
  20%  { box-shadow: 0 0 0 6px rgba(110, 163, 224, 0.25); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(110, 163, 224, 0); border-color: var(--accent); }
}

/* =====================================================================
   v8 — watchlist fact band + region-pill stripe fix + outcomes note
   ===================================================================== */

/* fact band: 2-3 columns of label/value pairs above the meta rows */
.watch-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px;
  margin: 14px 0 18px;
  padding: 14px 0 14px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.watch-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.watch-fact-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.watch-fact-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.3;
}

/* On 4-fact PoS cards, give them a slightly tighter 2×2 grid */
.watch-facts:has(> .watch-fact:nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

/* On narrow viewports, collapse to single column */
@media (max-width: 540px) {
  .watch-facts { grid-template-columns: 1fr; gap: 10px 0; }
}

/* =====================================================================
   Region pill accent stripe — clean fix
   The ::before stripe was getting visually muddled with the new
   region-pill-stats stack. Re-anchor it and tighten the visual.
   ===================================================================== */
.region-pill {
  overflow: hidden;
}
.region-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
  border-radius: 0 0 1px 1px;
  z-index: 1;
}
.region-pill:hover::before {
  width: 44px;
  opacity: 1;
  transition: width 0.22s ease, opacity 0.22s ease;
}

/* Outcomes section lead note */
.section-lead-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 12px;
  margin-bottom: 0;
}

/* =====================================================================
   v9 — sample watchlist & outcome card visual treatment
   Used for cards that are placeholder/format previews (PoS cards on
   pre-launch, all outcome cards on pre-launch). Same brand palette but
   visually softer so a reader instantly knows it's not live.
   ===================================================================== */

.watch-card-sample,
.outcome-sample {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  border: 1px dashed var(--line-stronger, #2a3554);
  position: relative;
}
.watch-card-sample::after,
.outcome-sample::after {
  content: "Sample format";
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.45;
  pointer-events: none;
}
/* Hide the corner watermark when the head already carries the SAMPLE pill,
   to avoid double-labeling */
.watch-card-sample .watch-card-head + *::after,
.watch-card-sample::after,
.outcome-sample::after {
  display: none;
}

.watch-tag-sample {
  color: var(--text-muted) !important;
  background: rgba(110, 163, 224, 0.06) !important;
  border: 1px dashed var(--line-stronger, #2a3554);
}

/* SAMPLE status pill — muted treatment vs. the live NEW/UPDATED pills */
.status-sample {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px dashed var(--line-stronger, #2a3554);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

/* The sample outcome cards should feel slightly muted but still readable */
.outcome-sample h3 {
  color: var(--text-soft);
}
.outcome-sample .outcome-num {
  color: var(--text-dim);
  font-family: var(--mono);
}

/* =====================================================================
   v10 — Educational page link inside sector cards + subtle PoS vs Tax
   Sale differentiation per Master Direction Memo §3.
   ===================================================================== */

/* Subtle "Understanding..." link inside sector cards */
.category-guide-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.category-guide-link:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* PoS card subtle differentiation — different footer treatment + 
   slightly different tag look. Applied via .watch-card-pos class. */
.watch-card-pos .watch-link {
  background: rgba(110, 163, 224, 0.04);
  padding: 12px 14px;
  border-radius: 2px;
  display: inline-block;
  width: auto;
  border: 1px solid rgba(110, 163, 224, 0.15);
  transition: background 0.18s, border-color 0.18s;
}
.watch-card-pos .watch-link:hover {
  background: rgba(110, 163, 224, 0.10);
  border-color: var(--accent);
}

/* Tax Sale / Surplus cards: simpler arrow link (current default) — no change.
   The subtle difference between A (municipal tender) and B (MLS/lender PoS)
   is that PoS cards get a contained CTA-style box around the action link
   while Tax Sale / Surplus cards keep the inline arrow.
   This signals: PoS = inquiry-driven, Tax Sale = public-notice-driven. */
