/* xerofee.com — page styles. Every colour, radius, space and shadow comes from tokens.css. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 23px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); }

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

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent-fill); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }

/* ---------- Header ---------- */

.site-head { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; }

.wordmark { display: block; width: 112px; height: auto; }
.wordmark-link { display: inline-block; padding: 6px 0; }

.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 500; line-height: 1;
  padding: 7px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-data); font-size: 11px; line-height: 1; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

.field-label {
  font-family: var(--font-data); font-size: 11px; line-height: 1; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  margin-top: var(--space-3);
}
.section-lede { margin-top: var(--space-3); max-width: 520px; }

.icon { width: 15px; height: 15px; flex: none; }

/* WhatsAppButton */
.wa {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 12px 18px;
  background: var(--accent-fill); color: var(--on-accent);
  font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none;
  border-radius: var(--radius-sm);
}
.wa svg { width: 16px; height: 16px; flex: none; }
.wa:hover { filter: brightness(1.08); }
.wa.block { display: flex; width: 100%; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--surface);
  font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--muted); }

.ask {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* StatusChip */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; line-height: 1;
  padding: 6px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface);
}
.chip svg { width: 12px; height: 12px; flex: none; }
.chip.ok { color: var(--ok-ink); background: var(--ok-soft); border-color: transparent; }
.chip.wait { color: var(--wait-ink); background: var(--wait-soft); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* SourceTag */
.src {
  font-family: var(--font-data); font-size: 9.5px; line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 5px; white-space: nowrap;
}

/* TrustLine */
.trust {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--ok-soft); color: var(--ok-ink);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13.5px; font-weight: 500; line-height: 1.4;
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }

.hero h1 {
  margin-top: var(--space-4);
  font-size: clamp(31px, 5.2vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-lede { margin-top: var(--space-4); font-size: 16px; line-height: 25px; max-width: 470px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-note { margin-top: var(--space-3); font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Sample listing ---------- */

.listing-label { margin-bottom: var(--space-3); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
}

.listing-top { padding: 18px var(--space-4) var(--space-4); }
.listing-top h3 { font-size: 26px; font-weight: 700; line-height: 1.08; letter-spacing: -.015em; }
.place { color: var(--muted); font-size: 13.5px; margin: 4px 0 var(--space-3); }

.price-band { margin-top: var(--space-4); display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.price-band strong {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.025em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.price-band span { font-size: 12.5px; color: var(--muted); }

/* UnitRow (glance layer, static here) */
.units { border-top: 1px solid var(--line); }
.unit {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 56px; padding: 11px var(--space-4); border-bottom: 1px solid var(--line);
}
.unit-main { flex: 1; min-width: 0; }
.unit-floor {
  display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600;
  letter-spacing: -.015em; line-height: 1.25; color: var(--ink);
}
.unit-meta { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.unit-right { text-align: right; white-space: nowrap; }
.unit-price {
  display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600;
  letter-spacing: -.015em; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums;
}
.unit-avail {
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
  font-size: 11.5px; line-height: 1.4; color: var(--ok-ink); margin-top: 2px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }
.unit.sold { opacity: .6; }
.unit.sold .unit-price { text-decoration: line-through; }
.unit.sold .unit-avail { color: var(--muted); }
.unit.sold .dot { background: var(--muted); }

/* StatusPanel */
.panel-head {
  width: 100%; display: flex; align-items: center; gap: var(--space-3);
  min-height: 56px; padding: var(--space-4);
  background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.panel-title {
  display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: -.015em; line-height: 1.2; color: var(--ink);
}
.panel-sum { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.chev { width: 13px; height: 13px; color: var(--muted); flex: none; transition: transform .15s ease; }
.panel-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.meter { height: 3px; display: flex; background: var(--line); }
.meter i { display: block; height: 100%; }
.meter .m-ok { background: var(--ok); }
.meter .m-wait { background: var(--wait); opacity: .7; }
.panel-body { padding: 13px var(--space-4) var(--space-4); border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.panel-body[hidden] { display: none; }
.panel-body .chips + .field-label { margin-top: var(--space-4); }
.panel-body .field-label { display: block; margin-bottom: var(--space-2); }

.listing-cta { padding: var(--space-4); border-top: 1px solid var(--line); }

/* ---------- Rules ---------- */

.rules { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.rule { padding: 20px var(--space-4) 18px; display: flex; flex-direction: column; gap: var(--space-3); }
.rule-num { font-family: var(--font-data); font-size: 11px; letter-spacing: .05em; color: var(--accent-ink); }
.rule h3 { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.rule p { font-size: 13.5px; line-height: 1.5; }
.rule-example {
  margin-top: auto; background: var(--surface-2); border-radius: var(--radius-sm);
  padding: var(--space-3); font-size: 13px; line-height: 1.45;
}
.rule-example .k { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.rule-example .v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.rule-example .row + .row { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-strong); }

/* ---------- Honesty note ---------- */

.note {
  margin-top: var(--space-5); max-width: 620px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px var(--space-4);
}
.note blockquote {
  margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: 19px; line-height: 1.35; letter-spacing: -.015em; color: var(--ink);
}
.note p { margin-top: var(--space-3); font-size: 13.5px; line-height: 1.5; }

/* ---------- FactGrid ---------- */

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px;
  margin-top: var(--space-6); max-width: 620px;
  background: var(--surface-2); border-radius: var(--radius-lg); padding: 18px var(--space-4);
}
.facts .v { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-top: 5px; }
.facts .v small { display: block; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--muted); margin-top: 2px; }

/* ---------- Header actions ---------- */

.head-actions { display: flex; align-items: center; gap: var(--space-2); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13.5px; }

/* ---------- Sign up ---------- */

.signup-grid { display: grid; gap: var(--space-6); align-items: start; }
.signup-form { padding: 20px var(--space-4); display: grid; gap: var(--space-4); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input:user-invalid { border-color: var(--wait); }

.more-toggle {
  justify-self: start; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; cursor: pointer; min-height: 24px; text-align: left;
}
.more-toggle .optional { font-weight: 400; color: var(--muted); margin-left: 4px; }
.more-fields { display: grid; gap: var(--space-4); }
.more-fields[hidden] { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button.wa { border: 0; font-family: inherit; cursor: pointer; }
button.wa:disabled { opacity: .7; cursor: progress; }

.form-status { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.form-status.ok { background: var(--ok-soft); color: var(--ok-ink); }
.form-status.error { background: var(--surface-2); color: var(--ink); }
.form-fine { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Closing CTA + footer ---------- */

.closing { padding: 56px 0; border-top: 1px solid var(--line); }
.closing .card { padding: 26px var(--space-4); display: grid; gap: var(--space-4); }
.closing h2 { font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }

.site-foot { padding: var(--space-6) 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.site-foot .wordmark { width: 92px; }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .closing .card { grid-template-columns: 1fr auto; align-items: center; padding: 30px 28px; }
}

@media (min-width: 920px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; }
  .hero-copy { padding-top: 24px; }
  .signup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; }
  .section { padding: 72px 0; }
}

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