/* Jellyfish Real Estate — stylesheet
   Doctrine: navy-ink base, cool paper, jellyfish blue for action only,
   muted green for verified states only, amber for caution only.
   No red urgency, no gold, no neon, no hype gradients. Sans-led. */

:root {
  --ink: #0e2233;          /* deep navy-ink: text, contract surfaces */
  --ink-2: #10293f;        /* panel navy */
  --ink-soft: #33505f;     /* secondary text on paper (AA on paper) */
  --paper: #f7f9fa;        /* cool clean paper */
  --surface: #ffffff;
  --line: #d4dee3;         /* hairlines */
  --blue: #0077b6;         /* action blue: links and buttons (AA on white/paper for large + UI) */
  --blue-bright: #00ace6;  /* the mark's blue: decoration and large elements only */
  --blue-dark: #005d8f;    /* link hover */
  --green: #1e7b4d;        /* verified / confirmed states ONLY */
  --green-bg: #e8f3ec;
  --amber: #8a5a00;        /* caution text (AA on amber-bg) */
  --amber-bg: #fdf3e0;
  --radius: 10px;
  --maxw: 1120px;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }


/* Honeypot field: present in the form for bots, invisible to people. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header / lockup ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup img { width: 62px; height: auto; display: block; }
.lockup .wordmark {
  font-weight: 800; font-size: 1.32rem; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.15; display: block;
}
.lockup .heritage {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  margin-top: 3px; white-space: nowrap;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
}
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.main-nav a:hover { color: var(--blue); text-decoration: underline; }
.main-nav a.nav-cta {
  display: inline-block; background: var(--blue-bright); color: var(--ink);
  font-weight: 700; padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--blue-bright); line-height: 1.3;
}
.main-nav a.nav-cta:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--blue);
  cursor: pointer; line-height: 1.3; text-align: center;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.secondary {
  background: transparent; color: var(--blue);
}
.btn.secondary:hover { background: var(--blue); color: #fff; }
.btn.on-dark { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--ink); }
.btn.on-dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #eaf2f6; padding: 56px 0 48px; }
.hero h1 {
  color: #fff; font-size: 2.35rem; line-height: 1.16;
  letter-spacing: -0.015em; margin: 0 0 14px; max-width: 20ch;
}
.nb { white-space: nowrap; }
.hero p.lede { font-size: 1.14rem; max-width: 58ch; margin: 0 0 10px; }
.hero .count-line { font-size: 1.05rem; margin: 18px 0 26px; }
.hero .count-line .big-number { color: #fff; }
.doors { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  background: var(--ink-2); border: 1px solid #274b63; border-radius: var(--radius);
  padding: 24px;
}
.door h2 { color: #fff; font-size: 1.25rem; margin: 0 0 8px; }
.door p { margin: 0 0 18px; color: #cfdde5; }

/* Big dated numbers: the loudest element on data pages */
.big-number {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink);
}
.stat-label { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.source-line { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Sections and cards ---------- */
section.block { padding: 44px 0 8px; }
section.block:last-of-type { padding-bottom: 48px; }
h1.page-title { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.015em; margin: 34px 0 10px; }
h2.section-title { font-size: 1.55rem; letter-spacing: -0.01em; margin: 0 0 8px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.sub { color: var(--ink-soft); max-width: 65ch; margin-top: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; }

.city-card .big-number { font-size: 1.7rem; }

.trust-strip {
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-strip ul { margin: 10px 0 0; padding-left: 20px; }
.trust-strip li { margin-bottom: 6px; }

/* ---------- Data tables ---------- */
table.data {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }
table.data th { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); background: var(--paper); }
table.data td.figure { font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
table.data td .src { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.pending { color: var(--ink-soft); font-style: italic; font-weight: 600; }

/* ---------- Listings ---------- */
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.badge.verified { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.badge.sample { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.badge.expired { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }

.listing-card .price { font-size: 1.9rem; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 16px 0; }
@media (min-width: 700px) { .terms-grid { grid-template-columns: repeat(3, 1fr); } }
.terms-grid .t-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.terms-grid .t-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.terms-grid .t-value.wide { grid-column: span 2; }

.empty-state {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 28px; text-align: left;
}
.empty-state h3 { margin-top: 0; }

.caution {
  background: var(--amber-bg); border: 1px solid var(--amber);
  border-radius: var(--radius); padding: 20px 24px;
}
.caution h2, .caution h3 { color: var(--amber); margin-top: 0; }

.verified-note {
  background: var(--green-bg); border: 1px solid var(--green);
  border-radius: var(--radius); padding: 16px 20px;
}
.verified-note strong { color: var(--green); }

/* ---------- Articles ---------- */
.article { max-width: 760px; }
.article h2 { font-size: 1.45rem; margin: 34px 0 8px; letter-spacing: -0.01em; }
.article p, .article li { max-width: 68ch; }
.definition {
  background: var(--surface); border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 22px 0;
  font-size: 1.08rem;
}
.example-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 22px 0;
}
.example-box .label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sources { font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }
.meta-line { font-size: 0.88rem; color: var(--ink-soft); }
.next-step {
  background: var(--ink); color: #e8f0f4; border-radius: var(--radius);
  padding: 26px; margin: 36px 0 8px;
}
.next-step h2 { color: #fff; margin-top: 0; font-size: 1.3rem; }
.next-step a { color: #7fd4f7; }

/* FAQ */
details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
details.faq summary { font-weight: 700; cursor: pointer; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 0.87rem; color: var(--ink-soft); margin: 4px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="number"],
.field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink-soft); border-radius: 8px;
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(0, 119, 182, 0.35); outline-offset: 1px; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-field input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.form-error {
  background: var(--amber-bg); border: 1px solid var(--amber); color: var(--ink);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; display: none;
}
.form-success {
  background: var(--green-bg); border: 1px solid var(--green);
  border-radius: var(--radius); padding: 22px; display: none;
}
.form-success h2 { color: var(--green); margin-top: 0; }

/* Calculator result */
.result-panel {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 26px; margin-top: 24px; display: none;
}
.result-panel .verdict { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.result-rows { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 700px) { .result-rows { grid-template-columns: repeat(3, 1fr); } }
.assumptions { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfdde5; margin-top: 56px; }
.footer-grid {
  display: grid; gap: 28px; grid-template-columns: 1fr; padding: 42px 0 10px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfdde5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-doors a { color: #7fd4f7; font-weight: 700; }
.disclosure {
  border-top: 1px solid #274b63; padding: 20px 0 30px; font-size: 0.88rem; color: #a9c0cc;
}
.disclosure strong { color: #e8f0f4; }

/* ---------- Conversion doors (friction removal, never pressure) ---------- */
/* Mobile sticky bar: two calm doors, dismissible for the session. */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    display: flex; gap: 10px; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(1, 29, 79, 0.12);
  }
  body.has-mobile-bar { padding-bottom: 78px; }
}
.mobile-bar-btn {
  flex: 1; text-align: center; font-weight: 700; font-size: 0.95rem;
  padding: 11px 8px; border-radius: 999px; text-decoration: none; line-height: 1.3;
}
.mobile-bar-btn.primary { background: var(--blue-bright); border: 2px solid var(--blue-bright); color: var(--ink); }
.mobile-bar-btn.ghost { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.mobile-bar-close {
  flex: none; width: 40px; border: none; background: transparent;
  color: var(--ink-soft); font-size: 1.45rem; cursor: pointer; line-height: 1;
}

/* Inline door card inside articles */
.inline-door {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 26px 0;
}
.inline-door h2 { margin-top: 0; font-size: 1.25rem; }
.inline-door p:last-child { margin-bottom: 0; }

/* City page waitlist strip */
.waitlist-strip h2 { font-size: 1.3rem; margin: 0 0 6px; }
.waitlist-strip p:last-child { margin-bottom: 0; }

/* Form friction cuts */
.form-intro { font-weight: 600; margin: 0 0 18px; max-width: 62ch; }
.field label .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.9em; }
.steps-line { color: var(--ink-soft); font-size: 0.96rem; }
.next-steps { padding-left: 22px; margin: 8px 0 0; }
.next-steps li { margin-bottom: 6px; }

/* Full lockup image (Gregory's master, tagline removed) replaces icon + live text in the header */
.lockup img.lockup-full { width: auto; height: 66px; }
@media (max-width: 759px) { .lockup img.lockup-full { height: 52px; } }

/* ---------- Storage shelf (operator profiles) ---------- */
.op-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
}
.storage-card h3 { margin-top: 8px; }

/* Directory hub + category shelves 2026-11-02 (Build A) */
.glyph-tile {
  width: 52px; height: 52px; flex: none;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.glyph-tile svg { width: 30px; height: 30px; display: block; }
.feat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.feat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px 4px 8px; line-height: 1.35;
}
.feat svg { width: 15px; height: 15px; flex: none; display: block; }
.hub-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.hub-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.hub-card p:last-child { margin-bottom: 0; }
.shelf-hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 30px 0 22px;
  display: flex; gap: 20px; align-items: center;
}
.shelf-hero .glyph-tile { width: 78px; height: 78px; margin: 0; border-radius: 12px; }
.shelf-hero .glyph-tile svg { width: 46px; height: 46px; }
.shelf-hero h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 6px; }
.shelf-hero .meta-line { margin: 0; }
@media (max-width: 560px) {
  .shelf-hero { flex-direction: column; align-items: flex-start; }
}

/* Directory hub + category shelves 2026-11-02 (Build A) — card parity */
.laundry-card h3 { margin-top: 8px; }

/* Traffic layer — city pages 2026-11-02 (Build C) */
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin: 24px 0 0; }
.crumbs a { color: var(--blue-dark); font-weight: 600; }
table.data tfoot td {
  font-size: 0.85rem; font-weight: 400; color: var(--ink-soft);
  background: var(--paper); text-transform: none; letter-spacing: 0;
}
.city-page-link { font-size: 0.92rem; font-weight: 600; margin: -8px 0 14px; }
.city-page-link a { color: var(--blue-dark); }

/* Traffic layer — NC areas + guides 2026-11-02 (Build D) */
.crumbs-d { font-size: 0.9rem; color: var(--ink-soft); margin: 28px 0 2px; }
.crumbs-d a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs-d a:hover { color: var(--blue-dark); text-decoration: underline; }
.crumbs-d .sep { margin: 0 7px; color: var(--ink-soft); }
.guide-figure {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; margin: 20px 0;
}
.guide-figure svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.guide-figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.fits-list { margin: 14px 0 0; padding-left: 20px; }
.fits-list li { margin-bottom: 7px; max-width: 68ch; }

/* Verified sections 2026-11-02 */
h3.section-title { font-size: 1.55rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.verified-band {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 6px; margin: 30px 0 0;
}
.profiled-head { margin: 34px 0 0; }
