/* Shared look for the broker pages and the portal. Copied from referral-site/src/page.html so both sites match. */
/* Layout: a personal introduction, read like a note from your agent. Faces first, then the adviser, then the form; Nexpad sits quietly at the foot. */
:root {
  /* Nexpad's brand: the green and near-black of its logo. Green text uses a darker shade so it stays readable. */
  --ink: #1a1a1a;
  --ink-soft: #5b6360;
  --paper: #f7f8f7;
  --card: #ffffff;
  --line: #e0e3e1;
  --accent: #55c37a;
  --accent-ink: #1a1a1a;
  --accent-text: #1d7a45;
  --accent-soft: #e6f6eb;
  --glow: #1a1a1a;
  --whatsapp: #1a8f4c;
  --danger: #b3261e;
  --focus: #1d7a45;
  --notice: #f9eeda;
  --notice-ink: #6b4a12;
  --display: "Literata", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 12px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #ececec; --ink-soft: #a9b0ad; --paper: #141514; --card: #1e201f; --line: #333735;
  --accent: #55c37a; --accent-ink: #1a1a1a; --accent-text: #6fd394; --accent-soft: #1d3325; --glow: #3a3d3b;
  --whatsapp: #3fc27a; --danger: #ff8a80; --focus: #6fd394; --notice: #3a2f1b; --notice-ink: #f3d9a8; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #ececec; --ink-soft: #a9b0ad; --paper: #141514; --card: #1e201f; --line: #333735;
  --accent: #55c37a; --accent-ink: #1a1a1a; --accent-text: #6fd394; --accent-soft: #1d3325; --glow: #3a3d3b;
  --whatsapp: #3fc27a; --danger: #ff8a80; --focus: #6fd394; --notice: #3a2f1b; --notice-ink: #f3d9a8; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
.wrap { max-width: 580px; margin: 0 auto; padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 26px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 5.6vw, 2.2rem); }
h2 { font-size: 1.3rem; }
p { margin: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }
.notice { background: var(--notice); color: var(--notice-ink); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; display: flex; flex-direction: column; gap: 10px; }
.notice a { color: inherit; }

/* Who's introducing whom */
.agentbar { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.agentbar b { color: var(--ink); font-weight: 600; }
.face { border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--accent-ink); overflow: hidden; flex: none;
  background: var(--accent); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.agent { background: var(--glow); color: #fff; }
.face.s { width: 36px; height: 36px; font-size: .85rem; }
.face.l { width: 84px; height: 84px; font-size: 1.6rem; border: 3px solid var(--paper); }
.pair { display: flex; align-items: center; }
.pair .face + .face { margin-left: -18px; }
.hero { display: flex; flex-direction: column; gap: 16px; }
.note { font-family: var(--display); font-size: 1.08rem; line-height: 1.5; font-style: italic; color: var(--ink);
  border-left: 3px solid var(--glow); padding-left: 14px; max-width: 60ch; margin: 0; }
.note cite { display: block; font-family: var(--body); font-style: normal; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

.broker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.broker .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-self: center; }
.broker .role { font-size: .85rem; color: var(--ink-soft); }
.broker .role b { color: var(--accent-text); font-weight: 600; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }
.powered .mark { font-weight: 600; color: var(--ink); letter-spacing: 0; }
.powered .mark span { color: var(--accent); } /* the green x, as in Nexpad's logo */

/* Form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label, legend { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
input[type=text], input[type=tel], input[type=email], textarea, select {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; width: 100%; }
textarea { resize: vertical; min-height: 70px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .92rem; cursor: pointer; }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; font-weight: 400; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.err { color: var(--danger); font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: var(--r); padding: 14px 18px; cursor: pointer; text-align: center;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:disabled { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 8px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .93rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
code.sel { user-select: all; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: .9rem; overflow-wrap: anywhere; }
.card a:not(.btn) { color: var(--accent-text); }

/* Disclaimer in white on Nexpad's near-black, as HLP asked (2026-10-28) */
.legal { font-size: .78rem; color: #fff; background: #1a1a1a; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px; }
.legal a { color: #fff; }
.legal .warn { color: #fff; font-weight: 600; font-size: .85rem; display: flex; flex-direction: column; gap: 2px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); padding: 12px 14px; }

/* Agent toolkit */
.qr { width: 200px; max-width: 100%; aspect-ratio: 1; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.agent-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl { display: flex; flex-direction: column; gap: 8px; }
.tpl pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: .9rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
/* The signature shows as it will look in an email: white, whatever the page's theme. */
.sig { background: #fff; color: #1f2a30; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.sig a { color: #2d5f73; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: .9rem; }
@media (max-width: 480px) {
  .row, .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .broker { grid-template-columns: minmax(0, 1fr); }
  .card, .broker { padding: 18px; }
}
@media (prefers-reduced-motion: no-preference) { .card, .broker { animation: rise .35s ease-out both; } }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }

/* Broker portal */
.post { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post h3 { margin: 0; font-size: 1.05rem; }
.post ul { margin: 0; padding-left: 20px; font-size: .92rem; }
.tag { display: inline-block; align-self: flex-start; font-size: .78rem; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.team a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.team .area { font-size: .82rem; color: var(--ink-soft); }
select.who { max-width: 320px; }

.preview-banner { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #5c4400; font-weight: 700; font-size: .9rem; }

/* Customer pages: the broker leads, Nexpad backs them (2026-10-31 design). */
.broker { display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; color: #fff;
  background: #1b1b1b url(/img/houses.jpg) center / cover no-repeat; border: 0; }
.broker::before { content: ""; position: absolute; inset: 0; background: rgba(12, 14, 13, .55); }
.broker > * { position: relative; }
.broker .who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.broker .face.l { border: 3px solid var(--accent); }
.broker h2 { margin: 0; font-family: var(--body); font-size: clamp(1.7rem, 6.5vw, 2.3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.broker .role { margin: 0; font-size: .95rem; font-weight: 600; color: #7dd59a; }
.broker .powered { margin: 0; gap: 8px; color: #e8ebe9; font-size: .78rem; }
.broker .powered img { width: 96px; height: auto; display: block; }
@media (max-width: 480px) { .broker { display: flex; } }
