/* Wealth Builders Agent Operations Portal
   Black & gold luxury theme. Operations documentation — styling only,
   no marketing. System sans for body, display serif for headings.
   Mobile-first, no image assets (all accents are CSS). */

:root {
  --bg: #0b0b0d;
  --panel: #141417;
  --panel-2: #101013;
  --ink: #e9e5db;          /* body text (warm near-white) */
  --head: #faf6ec;         /* headings (bright cream) */
  --muted: #a7a196;        /* secondary text */
  --line: #26262b;         /* neutral hairline */
  --gold: #c9a24a;
  --gold-bright: #e7cf8b;
  --gold-line: rgba(201, 162, 74, 0.22);
  --gold-soft: rgba(201, 162, 74, 0.45);
  --focus: #e7cf8b;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 900px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(201, 162, 74, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(201, 162, 74, 0.30); color: #fff; }

a { color: var(--gold-bright); }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header + nav */
.site-header {
  border-bottom: 1px solid var(--gold-line);
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 16px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--head);
  text-decoration: none;
  margin-right: auto;
  line-height: 1.2;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 3px;
}
.nav a.navlink {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  transition: color 0.18s ease;
}
.nav a.navlink:hover { color: var(--head); }
.nav a.navlink[aria-current="page"] { color: var(--gold-bright); }
.nav a.btn { margin-left: 4px; }

/* Buttons — gold pill */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #c6a24a 0%, #e7cf8b 52%, #c6a24a 100%);
  color: #16110a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(231, 207, 139, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(201, 162, 74, 0.28);
}
.btn.block { display: block; text-align: center; width: 100%; padding: 15px 24px; font-size: 1.05rem; }

/* Main content */
main { padding: 44px 0 64px; }
h1 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--head);
  font-size: 2.3rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
h2 { font-family: var(--serif); font-weight: 600; color: var(--head); font-size: 1.42rem; margin: 40px 0 12px; }
h3 { font-family: var(--serif); font-weight: 600; color: var(--head); font-size: 1.12rem; margin: 22px 0 6px; }
p { margin: 0 0 15px; }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0 0 10px;
}

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 6px 0; }
ul li::marker { color: var(--gold); }
ol li::marker { color: var(--gold-bright); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--gold-line); margin: 36px 0; }

/* Panels / cards */
.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 18px;
}
.panel h2, .panel h3 { margin-top: 0; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--gold-line) inset;
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.card a.resource { font-weight: 600; text-decoration: none; color: var(--gold-bright); }
.card a.resource:hover { text-decoration: underline; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--head);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold-bright); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin: 14px 0 2px; color: var(--muted); }

/* Login page */
.login-wrap { max-width: 440px; margin: 0 auto; }
.note { font-size: 0.9rem; color: var(--muted); }

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { border-top: 1px solid var(--gold-line); padding-top: 26px; }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal strong { color: var(--head); }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--gold-line);
  background: #08080a;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 34px; }
.foot-name { font-family: var(--serif); color: var(--head); font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; }
.foot-meta { margin: 0 0 12px; line-height: 1.6; }
.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--gold-bright); }
.foot-disclaimer { margin: 0 0 16px; max-width: 66ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; }
.foot-links a { color: var(--gold-bright); text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { margin: 0; font-size: 0.82rem; color: #6f6a60; }

/* Security checklist */
.checklist { list-style: none; padding-left: 0; margin: 26px 0 0; }
.checklist li {
  position: relative;
  padding-left: 40px;
  margin: 16px 0;
  font-size: 1.06rem;
  color: var(--ink);
}
.checklist li::marker { content: ""; }
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Step / path lists */
.steps { margin: 26px 0; padding-left: 24px; }
.steps li { margin: 14px 0; padding-left: 6px; }
.steps li strong { color: var(--head); }
strong { color: var(--head); }

/* Contact rows */
.contact-rows p { margin: 0 0 8px; }
.contact-rows p:last-child { margin: 0; }

/* Onboarding video pages (unlisted) */
.video-page { text-align: center; }
.video-wrap { max-width: 420px; margin: 28px auto 0; }
.video-wrap.wide { max-width: 860px; }
.expired-msg {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 24px 26px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  color: var(--muted);
  text-align: center;
  font-size: 1.02rem;
}

/* Admin login */
.admin-form { max-width: 400px; }
.admin-form label { display: block; font-size: 0.9rem; color: var(--muted); margin: 0 0 6px; }
.admin-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f0f12;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 14px;
}
.admin-form input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--gold-soft); }
.admin-error { color: #e79a9a; margin: 4px 0 0; min-height: 1.2em; font-size: 0.92rem; }
.admin-list ol { margin-top: 18px; }
.admin-list a { word-break: break-all; }

/* Brand emblem (gold ring + peak) — applies on every page via .brand */
.brand::before {
  content: "";
  display: inline-block;
  width: 30px; height: 30px;
  margin-right: 11px;
  vertical-align: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='none' stroke='%23c9a24a' stroke-width='2'/%3E%3Cpath d='M11 26 L20 13 L29 26' fill='none' stroke='%23e7cf8b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Home hero (full-bleed photo) */
main.home { padding-top: 0; }
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: #0b0b0d center/cover no-repeat;
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.80) 42%, rgba(9,9,11,0.42) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 74px 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 8px 0 14px; max-width: 18ch; }
.hero .lead { color: #dcd7cc; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-curve { position: absolute; right: -30px; bottom: -50px; width: min(50%, 540px); height: auto; z-index: 1; opacity: 0.55; pointer-events: none; }

.btn.ghost { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold-soft); }
.btn.ghost:hover { background: rgba(201, 162, 74, 0.12); box-shadow: none; filter: none; }

/* Feature band (image + text) */
.feature { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; margin: 56px auto; }
@media (min-width: 760px) { .feature { grid-template-columns: 1.05fr 1fr; gap: 44px; } }
.feature-img img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.feature-text h2 { margin-top: 6px; }

/* SMS opt-in form */
.optin-form { max-width: 540px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 6px; }
.form-field label .opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.form-field input[type=text],
.form-field input[type=tel] {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #0f0f12; color: var(--ink); font-size: 1rem;
}
.form-field input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--gold-soft); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
.consent input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--gold); }
.consent label { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.consent a { color: var(--gold-bright); }
.form-status { margin: 14px 0 0; min-height: 1.2em; font-size: 0.95rem; }
.form-status.error { color: #e79a9a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.disclosure { font-size: 0.95rem; }
.disclosure a { color: var(--gold-bright); }

/* Skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #16110a; padding: 8px 14px; border-radius: 0 0 6px 0; z-index: 20; font-weight: 600;
}
.skip:focus { left: 0; }
