/* BanditBeacon — tokens follow DESIGN.md §4. No decorative gradients, glow or glass. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --es-canvas: #f3f2ec;
  --es-paper: #fffefb;
  --es-ink: #141820;
  --es-ink-soft: #626977;
  --es-line: #d9dce2;
  --es-line-strong: #aeb4bf;
  --es-action: #1749d1;
  --es-action-hover: #1038a8;
  --es-signal: #ffd735;
  --es-signal-dark: #f2c71d;
  --es-signal-tint: #fff4c2;
  --es-success: #2f704f;
  --es-success-tint: #e6f1ea;
  --es-warning: #9a641e;
  --es-warning-tint: #f8eedd;
  --es-danger: #a63e32;
  --es-danger-tint: #f7e6e3;
  --es-action-tint: #e9effd;
  --es-on-action: #fffef9;
  --es-on-action-soft: #d7e1fb;
  --es-on-action-hover: rgba(255, 254, 249, 0.14);
  --es-on-ink-soft: #c3c8d2;
  --es-ink-deep: #0b1b34;
  --es-scrim: rgba(20, 24, 32, 0.72);

  /* square, like banditbeacon.com and the printed sign */
  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-sheet: 16px 16px 0 0;
  --radius-device: 22px; /* only for the phone drawn in the home-page sample */

  --shadow-1: 0 -1px 0 var(--es-line), 0 -6px 18px rgba(20, 24, 32, 0.08);
  --shadow-2: 0 12px 40px rgba(20, 24, 32, 0.22);
  --shadow-3: 0 18px 48px rgba(11, 27, 52, 0.35);
  --offset: 14px 14px 0 var(--es-signal); /* the yellow block behind a raised card */

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --dock-h: 64px;
  --t-fast: 120ms;
  --t-std: 180ms;
}
@media (min-width: 430px) { :root { --gutter: 20px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--es-paper);
  color: var(--es-ink);
  font: 430 16px/1.55 var(--font);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--es-action); text-underline-offset: 2px; }
a:hover { color: var(--es-action-hover); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--es-action); outline-offset: 2px; border-radius: var(--radius-xs); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--es-paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code { font-family: var(--mono); }
.soft { color: var(--es-ink-soft); }
.small { font-size: 14px; line-height: 1.5; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: 680px; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.stack-l > * + * { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---------- brand lockup: the bandit mark from the printed sign ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--es-ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--es-ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.bm-tile { fill: var(--es-action); }
.bm-face { stroke: var(--es-on-action); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.bm-head { fill: var(--es-action); }
.bm-mask { fill: var(--es-on-action); }
.bm-eye { fill: var(--es-ink-deep); stroke: none; }
.bm-mouth { fill: none; stroke: var(--es-ink-deep); }
.brand-name { font-weight: 740; font-size: 20px; letter-spacing: -0.035em; color: var(--es-action); }
.brand-cat { display: block; font-size: 10.5px; line-height: 1.3; color: var(--es-ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 760 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--es-action); color: #fff; }
.btn-primary:hover { background: var(--es-action-hover); color: #fff; }
.btn-signal { background: var(--es-signal); color: var(--es-ink); border-color: var(--es-signal); }
.btn-signal:hover { background: var(--es-signal-dark); color: var(--es-ink); }
.btn-signal-outline { background: var(--es-paper); color: var(--es-ink); border: 2px solid var(--es-signal-dark); }
.btn-signal-outline:hover { background: var(--es-signal-tint); color: var(--es-ink); }
.btn-secondary { background: var(--es-paper); color: var(--es-ink); border-color: var(--es-line-strong); }
.btn-secondary:hover { border-color: var(--es-ink); color: var(--es-ink); }
.btn-quiet { background: transparent; color: var(--es-ink); border-color: transparent; padding: 0 12px; }
.btn-quiet:hover { border-color: var(--es-line); color: var(--es-ink); }
.btn-danger { background: var(--es-paper); color: var(--es-danger); border-color: var(--es-danger); }
.btn-danger:hover { background: var(--es-danger-tint); color: var(--es-danger); }
.btn-block { width: 100%; }
.text-link { font-weight: 700; color: var(--es-ink); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
.btn-on-action { background: transparent; color: var(--es-on-action); border: 2px solid var(--es-on-action-soft); }
.btn-on-action:hover { background: var(--es-on-action-hover); color: var(--es-on-action); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.app .btn { min-height: 40px; font-size: 15px; padding: 0 16px; }
.app .btn-sm, .btn-sm { min-height: 36px; font-size: 14px; padding: 0 12px; }
.linkish { background: none; border: 0; padding: 0; color: var(--es-action); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 44px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field, .field + .switch, .switch + .field, .switch + .switch { margin-top: 16px; }
label, .label { font-weight: 620; font-size: 14px; line-height: 1.3; }
.help { font-size: 14px; color: var(--es-ink-soft); line-height: 1.45; }
.help .mono { overflow-wrap: anywhere; }
.opt { font-weight: 470; color: var(--es-ink-soft); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--es-line-strong); border-radius: var(--radius-sm);
  background: var(--es-paper); color: var(--es-ink); font: 430 16px/1.4 var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { min-height: 112px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141820' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--es-ink-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--es-action); box-shadow: 0 0 0 3px var(--es-paper), 0 0 0 5px var(--es-action); }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: var(--es-danger); }
/* paste-to-fill: fields filled from pasted text, for the owner to check */
.is-filled input:not([type=radio]), .is-filled textarea, .is-filled select, .is-filled .seg { box-shadow: 0 0 0 3px var(--es-signal); }
.is-filled > label::after, .is-filled > legend::after { content: "Filled in"; display: inline-block; white-space: nowrap; margin-left: 8px; padding: 2px 6px; background: var(--es-signal); color: var(--es-ink); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.prefill { border-color: var(--es-signal-dark); }
.prefill summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; cursor: pointer; list-style: none; background: var(--es-signal-tint); font-size: 14px;
}
.prefill summary::-webkit-details-marker { display: none; }
.prefill summary:hover { background: var(--es-signal); }
.prefill-cta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 2px solid var(--es-ink); background: var(--es-paper); color: var(--es-ink); font-weight: 700; font-size: 14px; white-space: nowrap;
}
.prefill-cta svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform var(--t-std); }
.prefill[open] .prefill-cta svg { transform: rotate(-90deg); }
.prefill .when-open, .prefill[open] .when-closed { display: none; }
.prefill[open] .when-open { display: inline; }
.paste-start textarea { min-height: 150px; }
.prefill summary:focus-visible { outline: 3px solid var(--es-action); outline-offset: -3px; }
.prefill-body { padding: 12px 16px 16px; }
.prefill-body textarea { min-height: 0; }
.err { color: var(--es-danger); font-size: 14px; font-weight: 520; }
.app input:not([type]), .app input[type=text], .app input[type=email], .app input[type=tel], .app input[type=url], .app input[type=password], .app select, .app textarea { min-height: 44px; padding: 9px 12px; font-size: 15px; }
.input-code { font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: 0.08em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 430; font-size: 14px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--es-action); }

/* toggle switch: a real checkbox with role=switch */
.switch { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; cursor: pointer; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text strong { font-weight: 620; font-size: 15px; }
.switch input {
  appearance: none; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 14px; position: relative;
  background: var(--es-line-strong); cursor: pointer; transition: background var(--t-std);
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--t-std);
}
.switch input:checked { background: var(--es-action); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch input:focus-visible { outline: 3px solid var(--es-action); outline-offset: 2px; }

.seg { display: flex; border: 1px solid var(--es-line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--es-paper); text-align: center; }
.seg label + label { border-left: 1px solid var(--es-line-strong); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--es-ink); color: var(--es-paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--es-action); outline-offset: -3px; }

/* ---------- notices ---------- */
.notice { border-left: 3px solid var(--es-line-strong); background: var(--es-paper); padding: 12px 16px; border-radius: var(--radius-xs); font-size: 15px; }
.notice-ok { border-color: var(--es-success); background: var(--es-success-tint); }
.notice-warn { border-color: var(--es-warning); background: var(--es-warning-tint); }
.notice-err { border-color: var(--es-danger); background: var(--es-danger-tint); }
.notice-signal { border-color: var(--es-signal-dark); background: var(--es-signal-tint); }
.notice strong { font-weight: 620; }
.notice ul { padding-left: 18px; margin-top: 6px; }

/* status labels: compact, nearly square */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: var(--radius-xs); font: 600 12px/1 var(--font); letter-spacing: .02em; border: 1px solid var(--es-line-strong); color: var(--es-ink); background: var(--es-paper); white-space: nowrap; }
.tag-live { border-color: var(--es-success); color: var(--es-success); }
.tag-new { background: var(--es-action); border-color: var(--es-action); color: #fff; }
.tag-warn { border-color: var(--es-warning); color: var(--es-warning); }
.tag-mute { color: var(--es-ink-soft); }
.tag-signal { background: var(--es-signal); border-color: var(--es-signal-dark); }
.code-chip { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 2px 6px; border-radius: var(--radius-xs); background: var(--es-signal-tint); border: 1px solid var(--es-signal-dark); color: var(--es-ink); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font: 650 13px/1 var(--font); background: var(--es-paper); color: var(--es-ink); border: 1px solid var(--es-line-strong); white-space: nowrap; }
.pill svg { width: 16px; height: 16px; }
.pill-action { background: var(--es-action); border-color: var(--es-action); color: var(--es-on-action); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.pill-dark { background: var(--es-scrim); border-color: transparent; color: var(--es-on-action); }
.source { font-family: var(--mono); font-size: 13px; font-weight: 560; color: var(--es-ink); background: var(--es-signal-tint); padding: 1px 6px; border-radius: var(--radius-xs); }

/* ======================= public ======================= */
/* Light header and editorial layout from banditbeacon.com; the bandit mark and
   sign-yellow accents from the printed sign. */
.pub-header { background: var(--es-paper); border-bottom: 1px solid var(--es-line); position: relative; z-index: 2; }
.pub-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
@media (min-width: 768px) { .pub-header .wrap { min-height: 72px; } }
.pub-nav { display: flex; align-items: center; gap: 2px; }
.pub-nav a { font-size: 14px; font-weight: 700; color: var(--es-ink); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.pub-nav a:hover { color: var(--es-action); }
.pub-nav svg { width: 16px; height: 16px; }
.pub-nav .nav-cta { border-left: 1px solid var(--es-line); margin-left: 8px; padding-left: 20px; }
.pub-nav .hide-sm, .pub-nav .hide-md { display: none; }
@media (min-width: 640px) { .pub-nav .hide-sm { display: inline-flex; } }
@media (min-width: 900px) { .pub-nav .hide-md { display: inline-flex; } }
.pub-nav a, .brand-cat { white-space: nowrap; }
@media (max-width: 479px) {
  .pub-nav .nav-cta { border: 0; margin: 0; padding: 10px 2px; font-size: 13px; }
  .pub-nav .nav-cta svg { display: none; }
  .pub-nav:has(.nav-code, .code-context) .nav-cta { display: none; } /* visitors need the code more */
  .pub-header .brand-cat { font-size: 9.5px; letter-spacing: .06em; }
}
.code-context { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--es-ink-soft); }
.pub-header .code-chip { background: var(--es-signal); border-color: var(--es-signal); font-size: 14px; padding: 4px 8px; }

.pub-footer { background: var(--es-paper); color: var(--es-ink-soft); border-top: 1px solid var(--es-line); margin-top: 64px; padding: 40px 0 calc(40px + var(--dock-space, 0px)); font-size: 14px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 240px 1fr; gap: 48px; } }
.pub-footer p { max-width: 46em; }
.pub-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.pub-footer a { color: var(--es-ink-soft); }
.pub-footer a:hover { color: var(--es-action); }
.pub-footer-slim { padding-top: 24px; padding-bottom: calc(24px + var(--dock-space, 0px)); }
.home .pub-footer { margin-top: 0; }

/* ---------- home ---------- */
.eyebrow { font: 760 12px/1.3 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--es-action); }
.eyebrow-signal { color: var(--es-signal); }
.hero { border-bottom: 1px solid var(--es-line); }
.hero-grid { display: grid; max-width: 1440px; margin: 0 auto; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(820px, calc(100dvh - 72px)); } }
.hero-copy { padding: 32px var(--gutter) 48px; align-self: center; width: 100%; max-width: 640px; justify-self: center; }
@media (min-width: 1000px) { .hero-copy { padding: 64px 48px; } }
.hero-copy > * + * { margin-top: 22px; }
.display { font-size: clamp(46px, 7.2vw, 88px); line-height: .94; font-weight: 680; letter-spacing: -0.058em; }
.display-2 { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; font-weight: 450; letter-spacing: -0.045em; }
.lede { font-size: 17px; line-height: 27px; color: var(--es-ink-soft); max-width: 34em; }
@media (min-width: 900px) { .lede { font-size: 19px; line-height: 30px; } }

/* sign-code entry: input and yellow button joined in one blue-ruled field */
.code-entry label { font-size: 14px; font-weight: 760; display: block; }
.code-entry form { display: flex; margin-top: 10px; border: 2px solid var(--es-action); background: var(--es-paper); }
.code-entry input { flex: 1; min-width: 0; border: 0; min-height: 60px; padding-left: 18px; }
.code-entry input:focus-visible { box-shadow: inset 0 0 0 3px var(--es-action); }
.code-entry .btn { flex: none; min-height: 60px; padding: 0 22px; border: 0; }
.code-entry .help { margin-top: 8px; }
@media (max-width: 479px) {
  .code-entry form { flex-direction: column; }
  .code-entry .btn { width: 100%; }
}
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--es-ink-soft); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; color: var(--es-action); }
.hero-owner { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--es-line); }

/* right half: blue panel holding the sample, cards lifted on yellow blocks */
.hero-panel { margin: 0; background: var(--es-action); color: var(--es-on-action); padding: 40px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1000px) { .hero-panel { padding: 56px clamp(32px, 4vw, 72px); } }
.showcase figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--es-on-action-soft); margin-bottom: 22px; }
.showcase .sc, .showcase figcaption, .showcase .sc-note { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.sample-badge { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--es-ink); background: var(--es-signal); padding: 3px 6px; }
.sc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); grid-template-areas: "sign phone" "alert alert"; gap: 32px 34px; align-items: center; }
.sc-sign { grid-area: sign; position: relative; background: var(--es-paper); border: 5px solid var(--es-paper); box-shadow: var(--offset); color: var(--es-ink); text-align: center; }
.sc-sign::after { content: ""; position: absolute; top: 40%; right: -39px; width: 34px; height: 3px; background: var(--es-signal); }
.sc-sign-top { background: var(--es-action); color: var(--es-on-action); border-bottom: 4px solid var(--es-signal); padding: 12px 10px; display: flex; align-items: center; gap: 10px; text-align: left; }
.sc-mark { width: 34px; height: 34px; flex: none; }
.sc-sign-top b { display: block; font-size: 15px; font-weight: 760; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.sc-sign-top span { display: block; font-size: 12px; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; color: var(--es-signal); }
.sc-sign-qr { width: 62%; margin: 14px auto 10px; border: 2px solid var(--es-ink); padding: 4px; background: #fff; }
.sc-sign-code { margin: 0 8px 8px; background: var(--es-ink-deep); color: var(--es-on-action); padding: 6px 8px 8px; }
.sc-sign-code span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sc-sign-code b { display: block; margin-top: 4px; background: var(--es-signal); color: var(--es-ink); font: 600 17px/1.5 var(--mono); letter-spacing: .04em; }
.sc-phone { grid-area: phone; position: relative; background: var(--es-paper); color: var(--es-ink); border: 7px solid var(--es-ink); border-radius: var(--radius-device); box-shadow: var(--shadow-3); overflow: hidden; }
.sc-photo { position: relative; }
.sc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-photo .pill { position: absolute; top: 10px; left: 10px; height: 24px; font-size: 11px; }
.sc-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.sc-title { font-size: 16px; font-weight: 720; }
.sc-price { font-size: 22px; font-weight: 760; color: var(--es-action); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sc-facts { font-size: 12px; color: var(--es-ink-soft); }
.sc-dock { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--es-line); }
.sc-dock span { display: grid; place-items: center; height: 38px; font-size: 12px; font-weight: 700; }
.sc-dock .p { background: var(--es-action); color: var(--es-on-action); }
.sc-dock .s { background: var(--es-signal); }
.sc-alert { grid-area: alert; position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--es-paper); color: var(--es-ink); padding: 14px 16px; box-shadow: var(--offset); font-size: 14px; margin-right: 14px; }
.sc-alert::before { content: ""; position: absolute; bottom: 100%; right: 26%; width: 3px; height: 32px; background: var(--es-signal); }
.sc-alert > svg { width: 22px; height: 22px; color: var(--es-action); flex: none; margin-top: 2px; }
.sc-alert b { display: block; font-size: 15px; }
.sc-alert span { display: block; }
.sc-alert .source { display: inline-block; margin-top: 6px; }
.sc-note { margin-top: 24px; font-size: 13px; color: var(--es-on-action-soft); }
.sc-note a { color: inherit; }
@media (max-width: 559px) {
  .sc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sign" "phone" "alert"; gap: 32px; }
  .sc-sign, .sc-phone { width: 100%; max-width: 280px; justify-self: center; }
  .sc-sign { max-width: 210px; }
  .sc-sign::after { top: 100%; right: auto; left: 50%; width: 3px; height: 33px; margin-top: 19px; }
  .sc-alert::before { right: auto; left: 50%; }
}

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section + .section { border-top: 1px solid var(--es-line); }
.section-title { font-size: 26px; line-height: 31px; letter-spacing: -0.03em; }
@media (min-width: 900px) { .section-title { font-size: 34px; line-height: 39px; } }
.split-head { display: grid; gap: 16px; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1fr 2fr; align-items: center; gap: 48px; } }
.steps { list-style: none; display: grid; margin-top: 48px; counter-reset: s; border-top: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); margin-top: 64px; } }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 4px 8px; padding: 28px 20px 36px; border-top: 1px solid var(--es-line); }
.steps li:first-child { border-top: 0; }
@media (min-width: 560px) {
  .steps li:nth-child(2) { border-top: 0; }
  .steps li:nth-child(even) { border-left: 1px solid var(--es-line); }
}
@media (min-width: 1000px) {
  .steps li { border-top: 0; }
  .steps li + li { border-left: 1px solid var(--es-line); }
}
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 12px/1.9 var(--mono); color: var(--es-action); grid-row: span 2; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--es-ink-soft); font-size: 15px; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cat-list { list-style: none; margin-top: 16px; }
.cat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--es-line); }

.cta-band-wrap { padding: 0 0 96px; }
.cta-band { background: var(--es-action); color: var(--es-on-action); border-top: 6px solid var(--es-signal); padding: 48px 24px; display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 72px 64px; gap: 48px; } }
.cta-band > div > * + * { margin-top: 18px; }
.cta-band p:not(.eyebrow) { color: var(--es-on-action-soft); font-size: 17px; max-width: 36em; }
.cta-band :focus-visible { outline-color: var(--es-signal); }

/* ---------- public listing ---------- */
.preview-bar { background: var(--es-ink); color: var(--es-paper); font-size: 14px; }
.preview-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.preview-bar a { color: var(--es-signal); }
.listing { padding-top: 24px; background: var(--es-paper); }
.listing:has(.gallery-wrap) { padding-top: 0; }
@media (min-width: 1120px) {
  .listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
}
.listing-main { max-width: 760px; }

/* gallery: swipeable full-bleed strip on phones, cover plus two on larger screens */
.gallery-wrap { position: relative; max-width: 1440px; margin: 0 auto 24px; }
.gallery { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--es-ink); }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 88%; scroll-snap-align: start; display: block; }
.gallery-one .g-item { flex-basis: 100%; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-status { position: absolute; top: 14px; left: 14px; }
.g-count { position: absolute; bottom: 14px; right: 14px; }
@media (min-width: 900px) {
  .gallery-wrap { padding: 24px var(--gutter) 0; margin-bottom: 32px; }
  .gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(340px, 40vw, 540px); overflow: hidden; border-radius: var(--radius-md); background: none; }
  .g-item:first-child { grid-row: 1 / span 2; }
  .g-item:nth-child(n+4) { display: none; }
  .g-item img { aspect-ratio: auto; transition: opacity var(--t-std); }
  .g-item:hover img { opacity: .92; }
  .gallery-one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery-two { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .gallery-two .g-item:first-child { grid-row: auto; }
  .g-status { top: 40px; left: calc(var(--gutter) + 16px); }
  .g-count { bottom: 16px; right: calc(var(--gutter) + 16px); }
}

.l-head { padding-bottom: 8px; }
.l-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.listing:has(.gallery-wrap) .l-status .pill-action { display: none; } /* already on the photo */
.l-title { font-size: 32px; line-height: 35px; font-weight: 700; letter-spacing: -0.045em; margin-top: 12px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .l-title { font-size: 52px; line-height: 54px; } }
.l-price { color: var(--es-action); font-size: 30px; line-height: 36px; font-weight: 740; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
@media (min-width: 900px) { .l-price { font-size: 40px; line-height: 46px; } }
.l-loc { display: flex; align-items: center; gap: 6px; color: var(--es-ink-soft); margin-top: 8px; overflow-wrap: anywhere; }
.l-loc svg { width: 18px; height: 18px; flex: none; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 24px; height: 24px; color: var(--es-ink-soft); }
.facts b { font-size: 19px; font-weight: 720; font-variant-numeric: tabular-nums; }
.facts span { color: var(--es-ink-soft); }
.l-updated { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--es-ink-soft); }
.l-updated svg { width: 18px; height: 18px; color: var(--es-action); }
.l-sec { padding: 28px 0; border-bottom: 1px solid var(--es-line); }
.l-sec h2 { font-size: 20px; line-height: 26px; margin-bottom: 12px; }
@media (min-width: 900px) { .l-sec h2 { font-size: 23px; line-height: 28px; } }
.l-sec p + p { margin-top: 12px; }
.l-source { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
/* listing map: a stored image that hands off to the phone's maps app */
.l-map { position: relative; display: block; border: 1px solid var(--es-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--es-line); }
.l-map img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.l-map-open {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm); background: var(--es-paper); color: var(--es-ink); font-weight: 620; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.l-map:hover .l-map-open { text-decoration: underline; }
.l-map:focus-visible { outline: 3px solid var(--es-action); outline-offset: 2px; }
.l-map-attr { margin-top: 6px; font-size: 12px; color: var(--es-ink-soft); }
.l-map-attr a { color: inherit; }
.l-map-links { margin-top: 12px; flex-wrap: wrap; }
.prose { font-size: 17px; line-height: 27px; overflow-wrap: anywhere; }
.feat { list-style: none; columns: 2 220px; column-gap: 24px; }
.feat li { padding: 6px 0 6px 20px; position: relative; break-inside: avoid; }
.feat li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; background: var(--es-signal); border: 1px solid var(--es-signal-dark); border-radius: 2px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; }
.dl dt, .dl dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--es-line); }
.dl dt { color: var(--es-ink-soft); }
.dl dd { font-weight: 600; }
.who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; background: var(--es-action-tint); color: var(--es-action); display: grid; place-items: center; font-weight: 720; font-size: 19px; flex: none; }
.provenance { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--es-ink-soft); }
.trace-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trace-row::before { content: ""; width: 4px; align-self: stretch; background: var(--es-signal); border-radius: 1px; }

.rail { display: none; }
@media (min-width: 1120px) {
  .rail { display: block; position: sticky; top: 24px; margin-right: 14px; background: var(--es-paper); border: 1px solid var(--es-ink); padding: 24px; box-shadow: var(--offset); }
  .rail h2 { font-size: 19px; line-height: 25px; }
}
.rail-actions { display: grid; gap: 10px; margin-top: 16px; }
.rail-actions .btn { min-height: 54px; font-size: 17px; }

/* mobile action dock: three flush blocks, like the sign's colour bands */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--es-paper); box-shadow: var(--shadow-1);
  padding: 0 0 env(safe-area-inset-bottom);
}
.dock-inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.dock .btn { min-height: 64px; padding: 0 6px; border: 0; border-radius: 0; flex-direction: column; gap: 4px; font-size: 14px; }
.dock .btn svg { width: 22px; height: 22px; }
.dock .btn-secondary { border-left: 1px solid var(--es-line); border-right: 1px solid var(--es-line); }
.dock .btn:focus-visible { outline-offset: -4px; }
.has-dock { --dock-space: calc(var(--dock-h) + env(safe-area-inset-bottom)); padding-bottom: var(--dock-space); }
@media (min-width: 1120px) { .dock { display: none; } .has-dock { padding-bottom: 0; --dock-space: 0px; } }

/* inquiry: inline section, becomes a sheet/dialog with JS */
.inquire { background: var(--es-paper); border: 1px solid var(--es-line); border-radius: var(--radius-sm); padding: 20px var(--gutter); margin-top: 24px; scroll-margin-top: 16px; }
.inquire h2 { font-size: 21px; }
dialog.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; background: var(--es-paper); color: var(--es-ink); border-radius: var(--radius-sheet); box-shadow: var(--shadow-2); position: fixed; inset: auto 0 0 0; overflow: auto; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(20, 24, 32, 0.45); }
dialog.sheet .inquire { border: 0; margin: 0; border-radius: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
dialog.sheet[open] { animation: sheet-in 260ms ease-out; }
@media (min-width: 768px) {
  dialog.sheet { inset: 0; margin: auto; max-width: 560px; max-height: 88dvh; border-radius: var(--radius-md); }
  dialog.sheet[open] { animation: fade-in 180ms ease-out; }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-grip { width: 40px; height: 4px; background: var(--es-line-strong); border-radius: 2px; margin: 0 auto 12px; }
@media (min-width: 768px) { .sheet-grip { display: none; } }
.close-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; background: none; border-radius: var(--radius-sm); cursor: pointer; color: var(--es-ink); }
.close-btn:hover { border-color: var(--es-line); }
.reply-field { margin: 8px 0 0 0; }
.js .reply-field[data-off] { display: none; }
.js .times-field[data-off] { display: none; }
.success { text-align: left; }
.success-mark { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--es-success-tint); color: var(--es-success); display: grid; place-items: center; }

.center-page { padding-top: 48px; padding-bottom: 48px; }
.center-page .read { margin: 0 auto; }
.legal h2 { margin-top: 32px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal-fill { font-family: var(--mono); font-size: .9em; background: var(--es-warning-tint); padding: 0 4px; border-radius: var(--radius-xs); }

/* ---------- home planner (/calculator) ---------- */
.calc { padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 900px) { .calc { padding-top: 56px; } }
.calc-head { display: grid; gap: 20px; align-items: end; margin-bottom: 32px; }
.calc-head > div > * + * { margin-top: 14px; }
@media (min-width: 1000px) { .calc-head { grid-template-columns: 1fr auto; } }
.calc-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .calc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; } }
.calc-results { display: grid; gap: 24px; min-width: 0; }
.calc-panel { background: var(--es-paper); border: 1px solid var(--es-line); padding: 20px; min-width: 0; }
@media (min-width: 768px) { .calc-panel { padding: 28px; } }
.calc-inputs { border-color: var(--es-ink); }
@media (min-width: 1000px) { .calc-inputs { position: sticky; top: 24px; } }
.calc-h { font-size: 21px; line-height: 27px; }
/* Phones and tablets: results sit below the inputs, so a slim bar keeps the
   payment in view while the inputs are on screen (no script needed). */
.calc-mini { position: sticky; top: 0; z-index: 3; margin: -20px -20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--es-ink-deep); color: var(--es-on-action); border-bottom: 3px solid var(--es-signal); }
.calc-mini p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; min-width: 0; }
.calc-mini b { font-size: 24px; line-height: 30px; font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-mini small { font-size: 14px; color: var(--es-on-action-soft); }
.calc-mini-dti { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--es-on-action-soft); }
.calc-mini .dot { width: 8px; height: 8px; flex: none; background: var(--es-signal); }
.calc-mini .dot.m-ok { background: var(--es-success-tint); }
.calc-mini a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--es-on-action); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .calc-mini { margin: -28px -28px 0; padding: 10px 28px; } }
@media (max-width: 999px) { .calc-inputs :is(input, select) { scroll-margin-top: 96px; } }
@media (min-width: 1000px) { .calc-mini { display: none; } }
.calc-panel > * + * { margin-top: 16px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.calc-fields .field + .field { margin-top: 0; }
.affix { display: flex; align-items: center; border: 1px solid var(--es-line-strong); background: var(--es-paper); }
.affix:hover { border-color: var(--es-ink-soft); }
.affix:focus-within { border-color: var(--es-action); box-shadow: 0 0 0 3px var(--es-paper), 0 0 0 5px var(--es-action); }
.affix input, .affix input:hover, .affix input:focus-visible { border: 0; box-shadow: none; min-width: 0; flex: 1; font-variant-numeric: tabular-nums; }
.affix .pre, .affix .suf { color: var(--es-ink-soft); font-weight: 600; padding: 0 0 0 14px; }
.affix .suf { padding: 0 14px 0 0; }
.affix.has-pre input { padding-left: 6px; }
.calc-note { font-size: 14px; line-height: 1.5; background: var(--es-action-tint); color: var(--es-ink); padding: 12px 14px; border-left: 3px solid var(--es-action); }
.calc-assume { border-top: 1px solid var(--es-line); padding-top: 16px; }
.calc-assume summary { font-weight: 720; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.calc-assume summary::before { content: "+"; font: 600 18px var(--mono); color: var(--es-action); width: 16px; }
.calc-assume[open] summary::before { content: "−"; }

.calc-pay { background: var(--es-ink-deep); color: var(--es-on-action); padding: 24px 20px; box-shadow: var(--offset); margin-right: 14px; }
@media (min-width: 768px) { .calc-pay { padding: 32px; } }
.calc-pay-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc-pay-label { font-size: 15px; font-weight: 650; color: var(--es-on-action-soft); }
.calc-pay-amt { margin-top: 6px; font-size: clamp(48px, 7vw, 76px); line-height: 1; font-weight: 760; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.calc-pay-amt small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--es-on-action-soft); }
.calc-pay-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.calc-status { font: 720 13px/1 var(--font); padding: 8px 10px; background: var(--es-on-action-hover); }
.calc-status-ok { background: var(--es-success-tint); color: var(--es-success); }
.calc-status-over, .calc-status-warn { background: var(--es-signal); color: var(--es-ink); }
.calc-loantype { border: 2px solid var(--es-signal); padding: 8px 14px; font-weight: 760; font-size: 18px; text-align: center; }
.calc-loantype small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--es-signal); }
.calc-meter { width: 100%; height: 10px; margin-top: 28px; }
.m-track { fill: var(--es-on-action-hover); }
.m-fill { fill: var(--es-signal); }
.m-target { fill: var(--es-on-action); }
.calc-meter-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--es-on-action-soft); }
.calc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 0; border-top: 1px solid var(--es-on-action-hover); }
@media (min-width: 640px) { .calc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-stats div { padding: 14px 12px 0 0; }
.calc-stats dt { font-size: 13px; color: var(--es-on-action-soft); }
.calc-stats dd { margin: 4px 0 0; font-size: 19px; font-weight: 740; font-variant-numeric: tabular-nums; }
.calc-stats dd.short { color: var(--es-signal); }

.calc-bar { width: 100%; height: 14px; display: block; background: var(--es-line); }
.b-pi { fill: var(--es-action); background: var(--es-action); }
.b-tax { fill: var(--es-danger); background: var(--es-danger); }
.b-ins { fill: var(--es-signal); background: var(--es-signal); }
.b-mi { fill: var(--es-success); background: var(--es-success); }
.b-hoa { fill: var(--es-ink-soft); background: var(--es-ink-soft); }
.calc-parts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; }
.calc-parts li { display: grid; grid-template-columns: 12px 1fr; gap: 0 8px; align-items: center; font-size: 14px; color: var(--es-ink-soft); }
.calc-parts .key { width: 10px; height: 10px; }
.calc-parts b { grid-column: 2; color: var(--es-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.calc-warn { list-style: none; }
.calc-warn li + li { margin-top: 4px; }
.calc-goal { background: var(--es-action-tint); border-color: var(--es-action-tint); }
.calc-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.calc-cards li { background: var(--es-paper); border: 1px solid var(--es-line); padding: 16px; display: grid; gap: 4px; align-content: start; }
.calc-cards .eyebrow { color: var(--es-ink-soft); font-size: 11px; }
.calc-cards b { font-size: 21px; font-weight: 740; letter-spacing: -0.02em; }
.calc-cards span { font-size: 13px; color: var(--es-ink-soft); }
.calc-saved { margin-top: 24px; }
.calc-save { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.calc-save .field { flex: 1 1 260px; }
.calc-list { list-style: none; }
.calc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--es-line); }
.calc-list a { font-weight: 650; overflow-wrap: anywhere; }
.calc-disclaimer { margin-top: 32px; font-size: 13px; line-height: 1.6; color: var(--es-ink-soft); max-width: 72em; }
.calc-disclaimer strong { color: var(--es-ink); }

/* auth */
.auth { max-width: 460px; margin: 32px auto 48px; background: var(--es-paper); border: 1px solid var(--es-ink); padding: 28px 20px; box-shadow: var(--offset); }
@media (min-width: 768px) { .auth { margin-top: 64px; padding: 36px 32px; } }
@media (max-width: 499px) { .auth { margin-right: 14px; } }
.auth h1 { font-size: 34px; line-height: 36px; letter-spacing: -0.04em; }
.auth form { margin-top: 24px; }
.auth .btn-block { margin-top: 24px; }
.auth-alt { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--es-line); font-size: 15px; }

/* ======================= workspace ======================= */
.app { min-height: 100dvh; }
.app-shell { display: block; }
@media (min-width: 1024px) { .app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; } }
.rail-nav { display: none; }
@media (min-width: 1024px) {
  .rail-nav { display: flex; flex-direction: column; gap: 24px; background: var(--es-paper); border-right: 1px solid var(--es-line); position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 20px 16px; }
  .rail-nav nav, .rail-tools { display: flex; flex-direction: column; gap: 2px; }
  .rail-nav nav a, .rail-tools a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; color: var(--es-ink); text-decoration: none; font-weight: 560; font-size: 15px; border-left: 4px solid transparent; }
  .rail-nav nav a:hover, .rail-tools a:hover { background: var(--es-canvas); color: var(--es-ink); }
  .rail-nav nav a[aria-current="page"] { background: var(--es-signal-tint); border-left-color: var(--es-signal); font-weight: 720; }
  .rail-nav svg { width: 18px; height: 18px; flex: none; }
  .rail-nav .count { margin-left: auto; font: 600 12px var(--mono); background: var(--es-action); color: var(--es-on-action); padding: 1px 6px; }
  .rail-tools { border-top: 1px solid var(--es-line); padding-top: 16px; }
  .rail-label { font-size: 11px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; color: var(--es-ink-soft); padding: 0 16px 6px; }
  .rail-foot { margin-top: auto; border-top: 1px solid var(--es-line); padding: 16px 16px 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--es-ink-soft); overflow-wrap: anywhere; }
  .rail-foot strong { color: var(--es-ink); }
  .rail-foot .linkish { color: var(--es-ink); }
}
.app-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--gutter); background: var(--es-paper); border-bottom: 1px solid var(--es-line); position: sticky; top: 0; z-index: 20; }
@media (min-width: 1024px) { .app-top { display: none; } }
.app-main { padding: 20px var(--gutter) calc(96px + env(safe-area-inset-bottom)); min-width: 0; }
@media (min-width: 1024px) { .app-main { padding: 32px 40px 64px; } }
.app-main > .inner { max-width: 1200px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.crumb { font-size: 14px; margin-bottom: 6px; display: inline-flex; align-items: center; min-height: 32px; }
.crumb a { color: var(--es-ink-soft); }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--es-paper); border-top: 1px solid var(--es-line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a, .bottom-nav summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 12px; font-weight: 600; color: var(--es-ink-soft); text-decoration: none; position: relative; cursor: pointer; list-style: none; }
.bottom-nav summary::-webkit-details-marker { display: none; }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"], .bottom-nav details[data-current] summary { color: var(--es-ink); }
.bottom-nav a[aria-current="page"]::before, .bottom-nav details[data-current] summary::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--es-signal-dark); }
.bottom-nav .count { position: absolute; top: 6px; left: calc(50% + 6px); font: 600 11px var(--mono); background: var(--es-action); color: #fff; padding: 0 5px; border-radius: var(--radius-xs); }
.more-menu { position: absolute; right: 8px; bottom: calc(100% + 8px); background: var(--es-paper); border: 1px solid var(--es-line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-2); min-width: 220px; padding: 6px; }
.more-menu a, .more-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; font: 600 15px var(--font); color: var(--es-ink); text-decoration: none; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; flex-direction: row; text-align: left; }
.more-menu a:hover, .more-menu button:hover { background: var(--es-canvas); }

/* operational rows */
.panel { background: var(--es-paper); border: 1px solid var(--es-line); border-radius: var(--radius-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--es-line); flex-wrap: wrap; }
.panel-head h2 { font-size: 19px; line-height: 24px; letter-spacing: -0.02em; }
.panel-raised { border-color: var(--es-ink); box-shadow: 10px 10px 0 var(--es-signal); margin-right: 10px; }
@media (min-width: 768px) { .panel-raised { box-shadow: var(--offset); margin-right: 14px; } }
.panel-body { padding: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 620; color: var(--es-ink-soft); padding: 10px 16px; border-bottom: 1px solid var(--es-line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--es-line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #faf9f4; }
.table .primary { font-weight: 620; color: var(--es-ink); text-decoration: none; }
.table .primary:hover { color: var(--es-action); text-decoration: underline; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.unread .primary::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--es-action); margin-right: 8px; vertical-align: 1px; }

/* mobile records: restructured rows instead of squeezed tables */
.records { list-style: none; }
.records li { border-bottom: 1px solid var(--es-line); }
.records li:last-child { border-bottom: 0; }
.records a.rec { display: block; padding: 14px 16px; text-decoration: none; color: var(--es-ink); }
.records a.rec:hover { background: #faf9f4; }
.rec-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rec-title { font-weight: 620; overflow-wrap: anywhere; }
.rec-meta { margin-top: 4px; font-size: 14px; color: var(--es-ink-soft); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.desk-only { display: none; }
@media (min-width: 900px) { .desk-only { display: table; } .mob-only { display: none; } }

.empty { padding: 32px 16px; text-align: left; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--es-ink-soft); margin-top: 6px; max-width: 46em; }
.empty .btn { margin-top: 16px; }

.grid-2 { display: grid; gap: 20px; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); overflow: hidden; }
.metrics > div { padding: 12px 16px; box-shadow: 1px 0 0 var(--es-line), 0 1px 0 var(--es-line); }
.metrics b { display: block; font: 600 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.metrics span { font-size: 13px; color: var(--es-ink-soft); }

.checklist { list-style: none; }
.checklist li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--es-line); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: var(--radius-xs); border: 2px solid var(--es-line-strong); flex: none; display: grid; place-items: center; margin-top: 1px; }
.checklist .done .tick { background: var(--es-success); border-color: var(--es-success); color: #fff; }
.checklist .done .t { text-decoration: line-through; color: var(--es-ink-soft); }
.checklist .t { font-weight: 600; }

.feed { list-style: none; }
.feed li { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--es-line); font-size: 14px; align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed time { margin-left: auto; color: var(--es-ink-soft); white-space: nowrap; font-size: 13px; }
.feed .dot { width: 8px; height: 8px; border-radius: 1px; background: var(--es-signal-dark); flex: none; transform: translateY(-1px); }
.feed .dot.inq { background: var(--es-action); }

/* redesigned workspace: the public site's headline, offset card and dark numbers panel */
.ws-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: 28px; }
.ws-head-copy { max-width: 780px; }
.ws-head-copy > * + * { margin-top: 12px; }
.ws-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; font-weight: 740; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.ws-stack > * + * { margin-top: 32px; }
.ws-h2 { font-size: 26px; line-height: 30px; letter-spacing: -0.03em; }
.spread:has(> .ws-h2) { margin-bottom: 16px; }
.ws-split { display: grid; gap: 32px; }
@media (min-width: 1100px) { .ws-split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } }
.btn-ink { border: 2px solid var(--es-ink); }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.row-s { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.lead-rows { list-style: none; }
.lead-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border-bottom: 1px solid var(--es-line); }
.lead-rows li:last-child { border-bottom: 0; }
.lead-dot { width: 10px; height: 10px; background: var(--es-action); flex: none; }
.lead-who { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lead-who a { font-size: 18px; font-weight: 720; color: var(--es-ink); text-decoration: none; }
.lead-who a:hover { text-decoration: underline; }
.lead-who span { font-size: 15px; color: var(--es-ink-soft); overflow-wrap: anywhere; }
.lead-where { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; min-width: 0; }
.intent { font-size: 12px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; white-space: nowrap; }
.intent-showing { background: var(--es-action); color: var(--es-on-action); }
.intent-message { border: 2px solid var(--es-ink); padding: 3px 7px; }

.numbers { background: var(--es-ink-deep); color: var(--es-on-action); padding: 24px 20px; }
@media (min-width: 768px) { .numbers { padding: 28px 32px; } }
.numbers h2 { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--es-on-action-soft); }
.numbers .spread > span { font-size: 14px; color: var(--es-on-action-soft); }
.numbers dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 16px 0 0; border-top: 1px solid var(--es-on-action-hover); }
.numbers dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 16px 16px 0 0; }
.numbers dd { margin: 0; font-size: 40px; line-height: 1; font-weight: 740; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.numbers dt { font-size: 14px; color: var(--es-on-action-soft); }
.numbers .hl dd { color: var(--es-signal); }

.card-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card-grid > li { min-width: 0; }
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.l-card { background: var(--es-paper); border: 1px solid var(--es-line); display: flex; flex-direction: column; height: 100%; }
.l-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--es-canvas); overflow: hidden; }
.l-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-card-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--es-ink-soft); font-size: 14px; font-weight: 600; }
.l-card-ph svg { width: 28px; height: 28px; }
.l-card-media .status { position: absolute; top: 12px; left: 12px; }
.l-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.l-card-title { font-size: 19px; font-weight: 720; letter-spacing: -0.02em; color: var(--es-ink); text-decoration: none; overflow-wrap: anywhere; }
.l-card-title:hover { color: var(--es-ink); text-decoration: underline; }
.l-card-price { font-size: 21px; font-weight: 740; color: var(--es-action); font-variant-numeric: tabular-nums; }
.l-card-stats { color: var(--es-ink-soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.l-card .text-link { min-height: 36px; }
.status { display: inline-block; font-size: 12px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; background: var(--es-warning-tint); color: var(--es-warning); }
.status-active { background: var(--es-success-tint); color: var(--es-success); }
.status-draft { background: var(--es-signal-tint); color: var(--es-ink); }

.sign-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sign-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--es-paper); border: 1px solid var(--es-line); color: var(--es-ink); text-decoration: none; height: 100%; }
.sign-card:hover { border-color: var(--es-ink); color: var(--es-ink); }
.sign-card.unlinked { border: 1px dashed var(--es-line-strong); }
.sign-card-code { font: 600 20px var(--mono); background: var(--es-signal); padding: 8px 10px; white-space: nowrap; }
.unlinked .sign-card-code { background: var(--es-canvas); color: var(--es-ink-soft); }
.sign-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

.tabs { display: flex; flex-wrap: wrap; margin-bottom: 20px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--es-line-strong); margin-left: -1px; background: var(--es-paper); color: var(--es-ink); font-weight: 650; text-decoration: none; }
.tab:first-child { margin-left: 0; }
.tab:hover { color: var(--es-ink); border-color: var(--es-ink); position: relative; }
.tab[aria-current="page"] { background: var(--es-ink); border-color: var(--es-ink); color: var(--es-paper); position: relative; }

/* public page editor */
.color-field { display: flex; gap: 12px; align-items: center; }
.color-field input[type=color] { width: 64px; height: 48px; padding: 2px; border: 1px solid var(--es-line-strong); background: var(--es-paper); cursor: pointer; }
.logo-now { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--es-line); background: var(--es-paper); }
.bp-preview-hero { background: var(--brand); color: var(--on-brand); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 10px 10px 0 var(--accent); margin-right: 10px; }
.bp-preview-hero img { width: 56px; height: 56px; object-fit: contain; background: var(--es-paper); padding: 4px; }
.bp-preview-hero strong { font-size: 26px; line-height: 1.05; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.bp-preview-hero span { font-size: 15px; overflow-wrap: anywhere; }
.bp-preview-hero .bp-preview-btn { align-self: flex-start; margin-top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 720; }
.bp-preview > p { margin-top: 20px; }

/* editor */
.editor { display: grid; gap: 20px; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.form-sec { padding: 20px 16px; border-bottom: 1px solid var(--es-line); }
.form-sec:last-of-type { border-bottom: 0; }
.form-sec h2 { font-size: 17px; margin-bottom: 4px; }
.form-sec > .help { margin-bottom: 16px; }
.cols { display: grid; gap: 16px; }
.cols .field + .field { margin-top: 0; }
@media (min-width: 640px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: 1fr 1fr 1fr; } .cols-addr { grid-template-columns: 2fr 1fr 1fr; } }
.save-bar { position: sticky; bottom: 0; background: var(--es-paper); border-top: 1px solid var(--es-line); padding: 12px 16px; display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
@media (max-width: 1023px) { .save-bar { bottom: calc(60px + env(safe-area-inset-bottom)); } }
.side { display: grid; gap: 20px; }
@media (min-width: 1100px) { .side { position: sticky; top: 24px; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--es-line); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--es-ink-soft); }

/* listing photos in the editor */
.editor-main { display: grid; gap: 20px; min-width: 0; }
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.photo-grid li { border: 1px solid var(--es-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--es-canvas); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px; flex-wrap: wrap; }
.photo-actions .pill { margin-left: 8px; }
.photo-actions .btn { padding: 0 8px; font-size: 13px; }
.photo-actions .btn svg { width: 16px; height: 16px; }
.photo-upload { border-top: 1px solid var(--es-line); }
input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--es-line-strong); border-radius: var(--radius-sm); background: var(--es-paper); font: 430 15px var(--font); min-height: 48px; }
input[type=file]::file-selector-button { font: 650 14px var(--font); margin-right: 12px; padding: 8px 14px; border: 1px solid var(--es-line-strong); border-radius: var(--radius-sm); background: var(--es-paper); color: var(--es-ink); cursor: pointer; }

/* sign */
.sign-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.big-code { font: 600 40px/1 var(--mono); letter-spacing: .06em; }
.qr-box { width: 168px; flex: none; border: 1px solid var(--es-line); background: #fff; border-radius: var(--radius-xs); }
.trace { display: grid; gap: 0; }
.trace > div { padding: 12px 16px 12px 28px; position: relative; border-bottom: 1px solid var(--es-line); }
.trace > div::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--es-signal-dark); }
.trace > div::after { content: ""; position: absolute; left: 10px; top: 18px; width: 10px; height: 10px; background: var(--es-paper); border: 2px solid var(--es-signal-dark); border-radius: 1px; }
.trace > div:last-child { border-bottom: 0; }
.trace .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--es-ink-soft); font-weight: 620; }

/* lead */
.msg { font-size: 17px; line-height: 27px; padding: 16px; background: var(--es-canvas); border-left: 3px solid var(--es-line-strong); border-radius: var(--radius-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-grid { display: grid; gap: 0; }
.answer-grid > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--es-line); font-size: 15px; }
.answer-grid > div > span:first-child { color: var(--es-ink-soft); font-size: 14px; }
.answer-grid > div:last-child { border-bottom: 0; }

/* ======================= owner brand page (/p/{handle}) ======================= */
/* --brand and --accent come from /p/{handle}/brand.css; --on-* are black or white
   for contrast. These defaults apply before a page has been saved. */
.brandpage { --brand: var(--es-action); --on-brand: #ffffff; --accent: var(--es-signal); --on-accent: var(--es-ink); }
body.brandpage { background: var(--es-canvas); }
.bp-owner { background: var(--es-signal-tint); border-bottom: 1px solid var(--es-signal-dark); font-size: 14px; }
.bp-owner .wrap { min-height: 44px; }
.bp-owner a { font-weight: 720; color: var(--es-ink); }
.bp-top { background: var(--es-paper); border-bottom: 1px solid var(--es-line); }
.bp-top .wrap { min-height: 64px; }
.bp-name { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 740; letter-spacing: -0.02em; color: var(--es-ink); text-decoration: none; overflow-wrap: anywhere; }
.bp-name:hover { color: var(--es-ink); }
.bp-name img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.bp-btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.bp-btn-accent:hover { background: var(--accent); color: var(--on-accent); filter: brightness(.94); }
.bp-btn-line { background: transparent; color: var(--on-brand); border: 2px solid currentColor; }
.bp-btn-line:hover { color: var(--on-brand); background: rgba(127, 127, 127, .14); }
.bp-hero { background: var(--brand); color: var(--on-brand); padding: 48px 0 56px; }
@media (min-width: 900px) { .bp-hero { padding: 88px 0 96px; } }
.bp-hero-in { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.bp-logo { width: 120px; height: 120px; object-fit: contain; background: var(--es-paper); padding: 12px; box-shadow: 10px 10px 0 var(--accent); flex: none; }
@media (min-width: 900px) { .bp-logo { width: 168px; height: 168px; box-shadow: 14px 14px 0 var(--accent); } }
.bp-hero-copy { flex: 1 1 300px; min-width: 0; }
.bp-hero-copy > * + * { margin-top: 14px; }
.bp-hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -0.05em; font-weight: 740; overflow-wrap: anywhere; }
.bp-eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.bp-eyebrow svg { width: 16px; height: 16px; }
.bp-tagline { font-size: 19px; line-height: 1.45; max-width: 36em; }
.bp-hero .bp-actions { margin-top: 28px; }
.bp-sec { padding: 56px 0; }
@media (min-width: 900px) { .bp-sec { padding: 80px 0; } }
.bp-sec + .bp-sec { padding-top: 0; }
.bp-about .prose { max-width: 44em; margin-top: 16px; font-size: 18px; line-height: 1.65; }
.bp-about .prose p + p { margin-top: 1em; }
.bp-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.bp-card { display: flex; flex-direction: column; height: 100%; background: var(--es-paper); border: 1px solid var(--es-line); border-top: 4px solid var(--brand); color: var(--es-ink); text-decoration: none; }
.bp-card:hover { border-color: var(--es-ink); border-top-color: var(--brand); color: var(--es-ink); }
.bp-grid > li { min-width: 0; }
.bp-card img, .bp-card-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bp-card-ph { display: grid; place-items: center; background: var(--es-canvas); color: var(--es-ink-soft); }
.bp-card-ph svg { width: 32px; height: 32px; }
.bp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.bp-card-offer { font-size: 12px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; color: var(--es-ink-soft); }
.bp-card strong { font-size: 19px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bp-card-price { font-size: 21px; font-weight: 740; font-variant-numeric: tabular-nums; }
.bp-contact { max-width: 640px; background: var(--es-paper); border: 1px solid var(--es-ink); box-shadow: 10px 10px 0 var(--accent); margin-right: 10px; padding: 28px 24px; }
@media (min-width: 768px) { .bp-contact { box-shadow: 14px 14px 0 var(--accent); margin-right: 14px; padding: 36px 32px; } }
.bp-contact-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.bp-contact-list li { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 18px; overflow-wrap: anywhere; min-width: 0; }
.bp-contact-list svg { width: 20px; height: 20px; color: var(--es-ink-soft); flex: none; }
.bp-contact-list a { color: var(--es-ink); font-weight: 650; }
.bp-foot { background: var(--es-paper); border-top: 1px solid var(--es-line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--es-ink-soft); }
.bp-foot nav { gap: 4px 16px; }
.bp-foot a { color: var(--es-ink-soft); display: inline-flex; align-items: center; min-height: 44px; }
.bp-foot .bp-made { gap: 8px; font-weight: 720; color: var(--es-ink); text-decoration: none; }
.bp-foot .brand-mark { width: 24px; height: 24px; }
/* listing page: link back to the owner's brand page */
.brand-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--es-line); background: var(--es-paper); color: var(--es-ink); text-decoration: none; }
.brand-link:hover { border-color: var(--es-ink); color: var(--es-ink); }
.brand-link img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-link .ico { width: 20px; height: 20px; margin-left: auto; flex: none; }

/* print test sheet */
.print-sheet { max-width: 720px; margin: 24px auto; background: #fff; padding: 32px; border: 1px solid var(--es-line); }
.print-sheet .qr { width: 320px; max-width: 100%; margin: 24px 0; }
.print-sheet .qr svg { display: block; width: 100%; height: auto; }
@media (max-width: 520px) { .print-sheet { margin: 0; padding: 20px 16px; border: 0; } }
.print-brand { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; }
.print-brand .brand-mark { width: 44px; height: 44px; }
.print-brand b { display: block; font-size: 24px; letter-spacing: -0.035em; color: var(--es-action); }
.print-brand span span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--es-ink-soft); }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-sheet { border: 0; margin: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* utilities */
.mt { margin-top: 8px; }
.mt-l { margin-top: 20px; }
.page-title { font-size: 28px; line-height: 32px; }
@media (min-width: 900px) { .page-title { font-size: 34px; line-height: 38px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.provenance details { margin-top: 4px; }
.provenance details[open] summary { margin-bottom: 8px; }
.dev-mail { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.js .js-hide { display: none; }
.ico { width: 20px; height: 20px; flex: none; }
.row > .ico { color: var(--es-ink-soft); }
label .help, .switch .help, label .opt { font-weight: 470; }
.empty h2 { font-size: 17px; line-height: 22px; }
.switch { min-height: 44px; align-items: center; }

/* demo: tour page, notes on demo pages, read-only bar in the workspace */
.demo-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.demo-step { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-step-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1 1 260px; }
.demo-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--es-ink); color: var(--es-paper); font-weight: 700; font-size: 15px;
}
.demo-qr { width: 168px; flex: none; padding: 8px; background: var(--es-paper); border: 1px solid var(--es-line); }
.demo-qr svg { display: block; width: 100%; height: auto; }
.demo-note { margin: 16px 0 0; padding: 10px 14px; border-left: 4px solid var(--es-signal); background: var(--es-paper); font-size: 14px; line-height: 1.45; }
.demo-bar {
  display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px;
  padding: 14px 16px; background: var(--es-ink); color: var(--es-paper);
}
.demo-bar p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1 1 260px; }

/* demo flyer: one US Letter page; on screen it sits on the canvas like a sheet of paper */
.flyer-page { background: var(--es-canvas); }
.fly-toolbar { max-width: 8.5in; margin: 16px auto 0; padding: 0 16px; display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.flyer {
  width: 8.5in; min-height: 11in; margin: 16px auto 32px; display: flex; flex-direction: column;
  background: var(--es-paper); color: var(--es-ink); box-shadow: 0 2px 18px rgba(20, 24, 32, .16);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.fly-head { background: var(--es-action); color: var(--es-on-action); padding: .4in .6in .34in; border-bottom: .09in solid var(--es-signal); }
.fly-brand { display: flex; align-items: center; gap: 12px; }
.fly-mark { width: 46px; height: 46px; flex: none; }
.fly-mark .bm-tile { fill: var(--es-on-action); }
.fly-brand b { display: block; font-size: 25px; font-weight: 760; letter-spacing: -0.035em; }
.fly-brand span span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--es-signal); }
.fly-title { margin: .24in 0 0; font-size: 50px; line-height: .98; font-weight: 760; letter-spacing: -0.045em; }
.fly-lede { margin: .14in 0 0; max-width: 6in; font-size: 17px; line-height: 1.45; color: var(--es-on-action-soft); }

.fly-try { display: grid; grid-template-columns: 2.4in 1fr; gap: .45in; align-items: center; padding: .28in .6in .26in; }
.fly-sign { background: var(--es-paper); border: 5px solid var(--es-ink); box-shadow: 10px 10px 0 var(--es-signal); text-align: center; }
.fly-sign-top { background: var(--es-action); color: var(--es-on-action); border-bottom: 5px solid var(--es-signal); padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.fly-sign-mark { width: 40px; height: 40px; flex: none; }
.fly-sign-mark .bm-tile { fill: var(--es-on-action); }
.fly-sign-top b { display: block; font-size: 19px; font-weight: 780; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.fly-sign-top span { display: block; font-size: 14px; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; color: var(--es-signal); }
.fly-sign-qr { width: 76%; margin: 12px auto 10px; padding: 6px; border: 2px solid var(--es-ink); background: var(--es-paper); }
.fly-sign-qr svg { display: block; width: 100%; height: auto; }
.fly-sign-code { margin: 0 10px 10px; padding: 7px 10px 10px; background: var(--es-ink-deep); color: var(--es-on-action); }
.fly-sign-code span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fly-sign-code b { display: block; margin-top: 5px; background: var(--es-signal); color: var(--es-ink); font: 600 24px/1.45 var(--mono); letter-spacing: .05em; }
.fly-eyebrow { margin: 0; font-size: 13px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; color: var(--es-action); }
.fly-steps ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: fly; }
.fly-steps li { counter-increment: fly; position: relative; padding-left: 46px; font-size: 15.5px; line-height: 1.42; overflow-wrap: anywhere; }
.fly-steps li::before {
  content: counter(fly); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--es-ink); color: var(--es-paper); font-weight: 760; font-size: 16px;
}
.fly-steps b { font-weight: 720; }

.fly-cols { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 .6in; border-top: 2px solid var(--es-ink); }
.fly-cols > div { padding: .18in .22in .2in 0; }
.fly-cols > div + div { padding-left: .22in; border-left: 1px solid var(--es-line); }
.fly-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--es-signal); color: var(--es-ink); }
.fly-ico svg { width: 20px; height: 20px; }
.fly-cols h2 { margin: 8px 0 3px; font-size: 18px; font-weight: 740; letter-spacing: -0.01em; }
.fly-cols p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--es-ink-soft); }

.fly-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: .2in .6in; background: var(--es-ink); color: var(--es-paper); }
.fly-foot span { font-size: 15px; font-weight: 600; color: var(--es-signal); text-transform: uppercase; letter-spacing: .08em; }
.fly-foot b { font-size: 26px; font-weight: 760; letter-spacing: -0.02em; overflow-wrap: anywhere; }

@media screen and (max-width: 860px) {
  .flyer { width: auto; min-height: 0; margin: 12px 0 0; box-shadow: none; }
  .fly-head, .fly-try, .fly-foot { padding-left: 16px; padding-right: 16px; }
  .fly-title { font-size: 40px; }
  .fly-try { grid-template-columns: 1fr; justify-items: center; }
  .fly-sign { width: 100%; max-width: 280px; }
  .fly-cols { grid-template-columns: 1fr; margin: 0 16px; }
  .fly-cols > div, .fly-cols > div + div { padding: 18px 0; border-left: 0; }
  .fly-cols > div + div { border-top: 1px solid var(--es-line); }
}
@media print {
  @page { size: letter; margin: 0; }
  .flyer-page { background: var(--es-paper); }
  .flyer { width: 8.5in; height: 11in; min-height: 0; margin: 0; box-shadow: none; overflow: hidden; }
}
