/* My Porchlight brand system — palette from Guidance/yo.png + mockups. */
:root {
  --navy: #1A1B25;
  --purple-deep: #392061;
  --purple: #822E81;
  --rose: #AA6373;
  --pale: #F0F2A6;
  /* Brand "gold" = the kit's pale yellow (F0F2A6) family — matches the logo rim.
     No saturated metallic gold exists in the kit. */
  --gold: #E9EA90;       /* button/fill yellow (navy text on top) */
  --gold-bright: #F0F2A6; /* exact brand pale yellow — bright accents on dark */
  --gold-ink: #7C7A33;   /* darkened brand yellow — readable accents on light */
  --tint: #f3f1f8;       /* faint lavender section background (from indigo) */

  --ink: #1A1B25;
  --paper: #FBFAF7;
  --muted: #615a70;          /* purple-gray, derived from indigo */
  --line: #e7e3ee;           /* faint lavender border */
  --on-navy: #dcd6e8;        /* light lavender text on navy bars */
  --on-navy-dim: #b8b1c9;    /* dim lavender on navy — kept at AA (>=4.5:1) on --navy */

  --radius: 14px;
  --maxw: 1080px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Display serif for headings (loaded in base.html); Georgia is the fallback. */
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Photos can never overflow their container: the width/height ATTRIBUTES on
   <img> (kept for layout stability) become a hard size without this — on a
   phone a width="1536" photo blows out the card. Classed rules (.agent-avatar,
   .cat-tile img, ...) still win on specificity. */
img, video { max-width: 100%; height: auto; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--paper); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Anchored sections clear the sticky header when scrolled to. */
section[id] { scroll-margin-top: 150px; }
/* Lighter, more editorial headings — serif at regular weight. */
h1, h2, h3, h4 { font-weight: 500; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 28px; background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: block; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; color: #fff; letter-spacing: .2px; }
.brand-name strong { font-weight: 700; color: inherit; }
.brand-tld { color: var(--rose); }
.brand-name.small { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--on-navy); font-size: 14px; }
.site-nav a:hover { color: #fff; }
.site-nav a.active, .site-nav .nav-dd > summary.active { color: #fff; font-weight: 600; }
/* Surface tag next to the wordmark ("Dash") — same slot on every surface. */
.brand .surface-tag { font-style: normal; font: 600 10px var(--font); letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-bright); align-self: flex-end; margin: 0 0 7px 2px; }
/* Nav dropdown (native <details>) — one implementation for every surface's header. */
.site-nav .nav-dd { position: relative; }
.site-nav .nav-dd > summary { list-style: none; cursor: pointer; user-select: none;
  color: var(--on-navy); font-size: 14px; }
.site-nav .nav-dd > summary:hover { color: #fff; }
.site-nav .nav-dd > summary::-webkit-details-marker { display: none; }
.site-nav .nav-dd > summary::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .8; }
.site-nav .nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px;
  background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16); display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.site-nav .nav-dd-menu a { color: #2a2140; padding: 8px 12px; border-radius: 7px; white-space: nowrap; font-weight: 400; }
.site-nav .nav-dd-menu a:hover { background: #f3f1f8; text-decoration: none; }
.site-nav .nav-drawer-link { display: block; width: 100%; border: 0; background: none; color: #2a2140;
  padding: 8px 12px; border-radius: 7px; text-align: left; font: inherit; cursor: pointer; white-space: nowrap; }
.site-nav .nav-drawer-link:hover { background: #f3f1f8; }
/* Mobile stacked nav: render the menu inline, not an overlay — and keep the
   desktop white hover OUT of it (light-on-navy text + #f3f1f8 hover was
   white-on-white on tap). */
.site-header.nav-open .site-nav .nav-dd-menu { position: static; box-shadow: none; border: 0;
  background: transparent; padding: 4px 0 4px 14px; min-width: 0; }
.site-header.nav-open .site-nav .nav-dd-menu a { color: var(--on-navy); }
.site-header.nav-open .site-nav .nav-dd-menu a:hover,
.site-header.nav-open .site-nav .nav-dd-menu a:active {
  background: rgba(255,255,255,.14); color: #fff; }
.site-header.nav-open .site-nav .nav-drawer-link { color: var(--on-navy); }
.site-header.nav-open .site-nav .nav-drawer-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.header-center { display: flex; gap: 28px; }
.header-center a { color: #fff; font-size: 15px; font-weight: 600; }
.header-center a:hover { color: var(--gold-bright); text-decoration: none; }
/* Mobile hamburger: below 760px the nav collapses into a toggled dropdown. */
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-center, .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 12px;
    background: inherit; padding: 16px 28px; border-top: 1px solid rgba(255,255,255,.12);
  }
  .site-header.nav-open .header-center, .site-header.nav-open .site-nav { display: flex; }
  .site-nav .btn { width: 100%; text-align: center; }
}
.inline { display: inline; margin: 0; }
button.link { background: none; border: none; color: var(--on-navy); cursor: pointer; font-size: 14px; }

.site-footer { padding: 52px 28px 0; background: var(--navy); color: var(--on-navy); }
.foot-grid {
  max-width: 1120px; margin: 0 auto; display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr; padding-bottom: 40px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo {
  width: 56px; height: 56px; border-radius: 50%; display: block;
  background: #f7f5ef; padding: 3px;               /* light chip = contrast ring on navy */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);  /* subtle halo so the chip reads crisp */
}
.site-footer p { max-width: 320px; color: var(--on-navy-dim); font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--on-navy-dim); font-size: 14px; text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-col address { color: var(--on-navy-dim); font-size: 14px; font-style: normal; line-height: 1.5; }
.foot-heading {
  color: var(--on-navy); font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; margin: 0 0 4px; opacity: .85;
}
.foot-bottom {
  max-width: 1120px; margin: 0 auto; padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.foot-bottom p { margin: 0; font-size: 13px; color: var(--on-navy-dim); }
.foot-legal { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot-legal a { color: var(--on-navy-dim); font-size: 13px; text-decoration: none; }
.foot-legal a:hover { color: #fff; }
.foot-legal span { color: var(--on-navy-dim); font-size: 13px; opacity: .8; }
.auth-logo { width: 88px; height: 88px; border-radius: 50%; display: block; margin: 0 auto 18px; }


/* Layout */
.site-main { min-height: 60vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
/* Navy outline + bold text keeps the pale-yellow button crisp on light AND dark.
   `.btn.btn-gold` outranks `.site-nav a` so the navy text isn't overridden to light. */
.btn.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; border-color: var(--navy); }
.btn.btn-gold:hover { background: var(--gold-bright); color: var(--navy); border-color: var(--navy); text-decoration: none; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover, a.btn-purple:hover { background: var(--purple-deep); color: var(--gold-bright); text-decoration: none; }

/* The shared primary action: a calm, unmistakable lantern signal. Keep this
   on a paper, navy, or indigo field; never place it on a gray pill. */
.btn-next-step {
  position: relative; isolation: isolate; overflow: visible;
  background: var(--gold); color: var(--navy);
  border: 1px solid var(--navy); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(240,242,166,.18),
              0 8px 24px rgba(233,234,144,.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn-next-step::before {
  content: ""; position: absolute; z-index: -1; inset: -7px -10px;
  border-radius: inherit; background: var(--gold-bright); opacity: .28;
  filter: blur(10px); transform: scale(.9);
  animation: next-step-glow 2.8s ease-in-out infinite;
}
.btn-next-step::after {
  content: ""; position: absolute; z-index: 1; inset: 1px;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,.42) 48%, transparent 68%);
  transform: translateX(-130%); animation: next-step-shimmer 3.8s ease-in-out infinite;
}
.btn-next-step:hover {
  color: var(--navy); background: var(--gold-bright);
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(240,242,166,.34),
              0 12px 30px rgba(233,234,144,.34);
}
.btn-next-step:focus-visible {
  outline: 3px solid var(--gold-bright); outline-offset: 3px;
}
@keyframes next-step-glow {
  0%, 100% { opacity: .2; transform: scale(.88); }
  50% { opacity: .48; transform: scale(1.04); }
}
@keyframes next-step-shimmer {
  0%, 55%, 100% { transform: translateX(-130%); }
  72% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-next-step::before, .btn-next-step::after { animation: none; }
  .btn-next-step::before { opacity: .3; transform: scale(1); }
}

/* Hero */
.hero {
  background: radial-gradient(120% 120% at 80% -10%, var(--purple-deep) 0%, var(--navy) 55%);
  color: #fff; padding: 80px 0;
}
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.06; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 .gold { color: var(--gold-bright); font-style: italic; }
.hero p.lede { font-size: 19px; color: var(--on-navy); max-width: 560px; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero with a photo backdrop (legible via dark overlay). */
.hero.hero--photo { position: relative; overflow: hidden; }
.hero--photo .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero--photo .hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,27,37,.93) 0%, rgba(26,27,37,.80) 42%, rgba(57,32,97,.55) 100%); }
.hero--photo .wrap { position: relative; z-index: 1; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--purple); font-weight: 700; }
h2.section-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.3px; }
.card h3 { font-weight: 600; }
.muted { color: var(--muted); }

/* Image helpers — break up long text blocks. */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media-row.flip .media-text { order: 2; }
.media-row img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(26,27,37,.16); }
.img-banner { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(26,27,37,.14); }
figure.framed { margin: 0; }
figure.framed figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Brand icons (gold line icons; see templates/icons/_icons.html). */
.icon { display: inline-flex; color: var(--gold); line-height: 0; }
.icon svg { width: 28px; height: 28px; }
.icon.badge { width: 50px; height: 50px; border-radius: 50%;
  background: rgba(233,234,144,.14); align-items: center; justify-content: center; }
.icon.badge svg { width: 26px; height: 26px; }
.card .icon.badge, .tool-card .icon.badge { margin-bottom: 12px; }

/* "What we help with" category row */
.cat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.cat { text-align: center; }
.cat .icon { margin-bottom: 10px; }
.cat h4 { margin: 0 0 4px; font-size: 15px; }
.cat p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .cat-row { grid-template-columns: repeat(2, 1fr); } }

/* Plan cards */
.plan { display: flex; flex-direction: column; }
.plan .lvl { font-size: 12px; color: var(--rose); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan .price { font-size: 30px; font-weight: 600; margin: 6px 0; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .promise { font-style: italic; color: var(--purple-deep); }
.plan ul { padding-left: 18px; color: var(--muted); font-size: 14px; }
.plan.featured { border-color: var(--gold); box-shadow: 0 6px 28px rgba(233,234,144,.18); }

/* ===== Dashboard console (dash.myporchlight.us) ===== */
body.dash { background: var(--tint); }
/* (The dash header is the shared .site-header, keyed rose — see the surface
   rules further down. The old .dash-header/.dash-nav chrome is gone.) */
.dash-main { padding: 32px 0 64px; }
.dash-h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 22px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .n { font-size: 26px; font-weight: 700; color: var(--navy); }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi--gold { background: linear-gradient(150deg, var(--gold-bright), var(--gold)); border-color: var(--gold); }
.kpi--gold .n, .kpi--gold .l { color: var(--navy); }

.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.dash-card h3 { margin: 0 0 10px; font-size: 16px; }

.dash-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dash-table th, .dash-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dash-table th { background: #efedf6; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table.compact th, .dash-table.compact td { padding: 7px 10px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--pale); font-size: 12px; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cards { grid-template-columns: 1fr; }
}

/* Local-only dev preview bar (hidden on deploy) */
.devbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 16px; background: #11121a; border-top: 2px solid var(--gold);
  font-size: 13px; color: var(--on-navy);
}
.devbar a { color: var(--gold-bright); font-weight: 600; }
.devbar a:hover { color: #fff; text-decoration: none; }
.devbar-label { font-weight: 700; color: var(--gold); }
.devbar-sep { color: var(--on-navy-dim); margin-left: 8px; }
.devbar-out { color: var(--on-navy-dim); }

/* Impersonation banner */
.imp-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 20px; background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 600; position: sticky; top: 0; z-index: 40;
}
.imp-banner .btn { padding: 5px 14px; font-size: 13px; background: var(--navy); color: #fff; }
.imp-banner .btn:hover { background: var(--purple-deep); }
body.impersonation-mode { box-shadow: inset 0 0 0 3px var(--gold); }

/* Hero USA line */
.usa-line { margin-top: 22px; font-size: 14px; color: var(--on-navy); }

/* Remote / Local service-area toggle */
.area-toggle { display: inline-flex; gap: 6px; margin-top: 24px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.area-toggle button { display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent;
  cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); line-height: 1.2; }
.area-toggle button small { font-weight: 400; font-size: 12px; color: var(--muted); }
.area-toggle button.active { background: var(--purple-deep); color: #fff; }
.area-toggle button.active small { color: var(--on-navy); }

/* Show the price for the selected service area */
.plans-grid .amt-local { display: none; }
.plans-grid[data-area="local"] .amt-remote { display: none; }
.plans-grid[data-area="local"] .amt-local { display: inline; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
textarea { min-height: 90px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.error { background: #f6e7eb; border: 1px solid #dcaeb8; color: #8a2f43; padding: 10px 14px; border-radius: 10px; }
.notice { background: var(--pale); border: 1px solid var(--gold); padding: 12px 16px; border-radius: 10px; }

.next-step-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 22px 0 18px; padding: 12px 14px 12px 16px;
  background: var(--navy); color: #fff; border: 1px solid rgba(240,242,166,.42);
  border-radius: var(--radius); box-shadow: 0 10px 26px rgba(26,27,37,.12);
}
.next-step-bar .eyebrow { margin: 0 0 2px; color: var(--gold-bright); }
.next-step-bar p { margin: 0; color: var(--on-navy); font-size: 14px; }
.next-step-bar .btn-next-step { flex: none; }
@media (max-width: 560px) {
  .next-step-bar { align-items: stretch; flex-direction: column; }
  .next-step-bar .btn-next-step { width: 100%; text-align: center; }
}

.financial-details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 18px; box-shadow: 0 1px 0 rgba(26,27,37,.02);
}
.financial-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; padding: 16px 0; color: var(--purple-deep); font-weight: 700;
}
.financial-details summary::after { content: '+'; color: var(--purple); font-size: 22px; line-height: 1; }
.financial-details[open] summary::after { content: '\2013'; }
.financial-details-body { padding: 0 0 18px; }

.personal-profile { margin-top: 18px; }
.personal-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.personal-profile-heading h3 { margin: 0 0 3px; }
.personal-profile-heading p { margin: 0; }
.personal-profile-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.profile-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--pale); color: var(--navy); font-size: 28px; font-weight: 700; }
.personal-profile-form { max-width: none; margin-top: 16px; }
.personal-profile-form textarea { min-height: 76px; }
.personal-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.profile-photo-input { color: var(--purple); cursor: pointer; }
.profile-photo-input input { display: block; margin-top: 5px; font-weight: 400; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 18px; }
.calendar-view-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.calendar-view-switch a { padding: 7px 15px; border-radius: 999px; color: var(--purple-deep); font-size: 14px; font-weight: 700; }
.calendar-view-switch a:hover { text-decoration: none; }
.calendar-view-switch a.active { background: var(--purple-deep); color: #fff; }
.calendar-month-nav { display: inline-flex; align-items: center; gap: 15px; color: var(--purple-deep); }
.calendar-month-nav a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 18px; }
.calendar-month-nav a:hover { background: var(--pale); text-decoration: none; }
.calendar-month-wrap { overflow-x: auto; }
.calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 650px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-weekday { padding: 9px 10px; background: var(--tint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.calendar-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day.is-empty { background: #f8f7fa; }
.calendar-day-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 5px; border-radius: 50%; color: var(--purple-deep); font-size: 13px; font-weight: 700; }
.calendar-day.today .calendar-day-number { background: var(--gold); color: var(--navy); }
.calendar-event { overflow: hidden; margin-top: 4px; padding: 5px 6px; border-left: 3px solid var(--gold-ink); border-radius: 4px; background: var(--tint); color: var(--purple-deep); font-size: 12px; line-height: 1.25; }
.calendar-event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event small { display: block; color: var(--muted); font-size: 10px; }
.calendar-more { display: block; margin-top: 5px; color: var(--purple); font-size: 11px; font-weight: 700; }
.calendar-list { margin-top: 2px; }
@media (max-width: 760px) {
  .calendar-month { overflow: visible; }
  .calendar-month-wrap { overflow-x: auto; }
  .personal-profile-actions .btn { width: 100%; text-align: center; }
}

/* Auth + toolkit centering */
.panel { max-width: 460px; margin: 48px auto; }
.panel-wide { max-width: 760px; margin: 40px auto; }

/* Toolkit */
.toolkit-grid { grid-template-columns: repeat(2, 1fr); }
.tool-card { display: flex; flex-direction: column; gap: 6px; }
.tool-card .tool-icon { font-size: 22px; }
.upsell {
  background: linear-gradient(180deg, var(--purple-deep), var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.upsell p { margin: 0; color: var(--on-navy); }
.upsell form { margin: 0; }

table.records { width: 100%; border-collapse: collapse; }
table.records th, table.records td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
tr.done td { color: var(--muted); text-decoration: line-through; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--pale); font-size: 12px; }

/* ===== LegalZoom-style marketing components (Angi-style imagery) ===== */
.section--tint { background: var(--tint); }
/* CTA bands: indigo→navy gradient so they're distinct from the flat-navy footer
   and flow straight into it (no gap). */
.section--navy { background: linear-gradient(155deg, var(--purple-deep) 0%, var(--navy) 92%); color: #fff; }
.section--navy .section-title, .section--navy h2 { color: #fff; }
.center { text-align: center; }
.lead-sub { font-size: 18px; color: var(--muted); max-width: 660px; }
.center .lead-sub { margin-left: auto; margin-right: auto; }

/* Hero: text + warm photo */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; padding: 76px 0 64px; }
.hero-split h1 { font-family: var(--serif); font-weight: 400; font-size: 50px; line-height: 1.07; letter-spacing: -.5px; margin: 0 0 18px; }
.hero-split h1 .accent { color: var(--gold-ink); font-style: italic; }
.hero-split .lead-sub { font-size: 19px; color: var(--muted); }
/* height:auto beats the <img> height attribute — without it the attribute
   fixes the pixel height and the responsive width crushes the crop. */
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 26px 60px rgba(26,27,37,.20); }

/* Trust strip */
.trustbar { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; padding: 18px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.trustbar span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar b { color: var(--gold-ink); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.cat-tile { display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,27,37,.14); text-decoration: none; }
.cat-tile img { width: 100%; height: 132px; object-fit: cover; display: block; }
.cat-tile .body { padding: 14px 16px; }
.cat-tile h4 { margin: 0 0 4px; font-size: 15px; }
.cat-tile p { margin: 0; font-size: 13px; color: var(--muted); }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--purple-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.path { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: #fff; display: flex; flex-direction: column; }
.path.featured { border-color: var(--gold); box-shadow: 0 12px 34px rgba(233,234,144,.18); }
.path h3 { font-size: 22px; margin: 6px 0; }
.path ul { padding-left: 18px; color: var(--muted); font-size: 14px; }
.path .btn { margin-top: auto; align-self: flex-start; }

/* Pull quote */
.quote { max-width: 780px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.42; margin: 0 0 12px; }

/* FAQ */
.faq { max-width: 780px; margin: 28px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { color: var(--muted); margin: 10px 0 0; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; padding: 40px 0; gap: 28px; }
  .hero-split h1 { font-size: 38px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid-3, .grid-4, .toolkit-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row.flip .media-text { order: 0; }
  .hero h1 { font-size: 38px; }
  .site-nav { gap: 12px; flex-wrap: wrap; }
}

/* Local waitlist chip (sits in the area toggle in place of the Local button) */
.area-waitlist { display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--line);
  color: var(--muted); font-weight: 600; font-size: 15px; }
.area-waitlist small { font-weight: 400; font-size: 12px; color: var(--rose); }
.area-waitlist:hover { border-color: var(--rose); text-decoration: none; }

/* ===== Choose-your-Agent picker ===== */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-card { display: flex; flex-direction: column; position: relative; }
.agent-card.is-example { background: #faf9fc; border-style: dashed; }
.agent-card.chosen { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple) inset; }
.agent-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.agent-badge.open { background: var(--pale); color: var(--gold-ink); }
.agent-badge.chosen { background: var(--purple); color: #fff; }
.agent-badge.sample { background: var(--line); color: var(--muted); }
.agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-right: 70px; }
.agent-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-avatar.initials { display: flex; align-items: center; justify-content: center;
  background: var(--purple-deep); color: var(--gold-bright); font-weight: 700; font-size: 20px; }
.agent-headline { font-weight: 600; color: var(--purple-deep); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--pale); color: var(--gold-ink); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; }
.agent-meta { display: flex; gap: 22px; margin: 8px 0 14px; }
.agent-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.agent-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.agent-action { margin-top: auto; padding-top: 6px; }

/* Profile editor extras */
form.stack .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.stack label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
form.stack label.check input { width: auto; }

@media (max-width: 860px) {
  .agent-grid { grid-template-columns: 1fr; }
}

/* ── OAuth sign-in (Google) ─────────────────────────────────────────────── */
.btn-oauth {
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
}
.btn-oauth:hover { background: #f7f8f8; text-decoration: none; }
.oauth-mark { width: 18px; height: 18px; display: inline-block; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e6e6e6; }
.oauth-note { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.auth-promo { margin: 6px 0 0; }
.auth-choice-title { text-align: center; font-size: 16px; margin: 26px 0 14px; }

/* ── Signup promo banner (anonymous visitors) ───────────────────────────── */
.promo-banner {
  display: block; text-align: center; background: var(--navy); color: #fff;
  padding: 9px 16px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.promo-banner:hover { background: var(--purple-deep); color: #fff; text-decoration: none; }
.promo-card { border: 1px solid var(--gold); background: var(--pale); border-radius: 12px; padding: 18px 20px; }

/* ── Meet your Agent — portrait placeholder until a real photo is provided ── */
.agent-portrait-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1/1; width: 100%; max-width: 360px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pale), var(--gold));
  color: var(--navy); font-size: 96px; font-weight: 800; font-family: Georgia, serif;
  border: 1px solid var(--gold);
}
/* img.agent-portrait: matches .media-row img's specificity so the square wins. */
img.agent-portrait { width: 100%; max-width: 440px; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }

/* ── Delivered recommendation document (print/PDF-friendly) ─────────────── */
.rec-doc { max-width: 720px; line-height: 1.6; }
.rec-doc h1 { font-size: 28px; margin: 0 0 8px; }
.rec-doc h2 { font-size: 20px; margin: 24px 0 8px; color: var(--navy); }
.rec-doc h3 { font-size: 17px; margin: 18px 0 6px; }
.rec-doc ul { padding-left: 20px; }
.rec-doc li { margin: 4px 0; }
.rec-doc p { margin: 10px 0; }
@media print { .site-header, .site-footer, .promo-banner { display: none; } }

/* Ghost/secondary button on light surfaces (one clear primary per view). */
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--pale); text-decoration: none; }

/* ── Accessibility: visible keyboard focus + h1 sizing ──────────────────── */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
h1.section-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.3px; }

/* Client value score pill (dash/clients). */
.score-pill { display: inline-block; min-width: 34px; text-align: center; padding: 3px 9px;
  border-radius: 999px; background: var(--pale); color: var(--navy); font-weight: 700; font-size: 13px; }

/* Footer business hours. */
.foot-hours { color: var(--on-navy-dim); font-size: 14px; margin: 4px 0 0; line-height: 1.5; }

/* Footer: brand + contact together on the left, links on the right. */
.foot-brand { max-width: 340px; }

/* ===== Unified surface refresh ===========================================
   The same Porchlight is present on every host. Marketing can be warm and
   editorial; the member portal and Workbench use the same tokens with tighter
   geometry and denser information. Dash owns a calmer utility layer in
   dash.css. ================================================================= */
:root {
  --navy: #1A1B25;
  --purple-deep: #392061;
  --purple: #822E81;
  --rose: #AA6373;
  --rose-deep: #6E3B49;  /* darkened brand rose — the dash's header bar (white/lavender text stays AA) */
  --pale: #F0F2A6;
  --gold: #E9EA90;
  --gold-bright: #F0F2A6;
  --gold-ink: #6E6B26;
  --tint: #F5F1F7;
  --ink: #1A1B25;
  --paper: #FBFAF7;
  --muted: #625C6E;
  --line: #DED9E5;
  --on-navy: #F2EFF7;
  --on-navy-dim: #C9C2D5;
  --radius: 8px;
  --shadow-soft: 0 12px 30px rgba(26, 27, 37, .10);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { font-family: var(--font); background: var(--paper); color: var(--ink); }
h1, h2, h1.section-title, h2.section-title, .hero-split h1 { font-family: var(--serif); letter-spacing: 0; }
a { color: var(--purple-deep); }
a:hover { color: var(--purple); }
.site-header { min-height: 68px; padding: 10px 36px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.10); }
.brand { gap: 11px; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { font-size: 22px; letter-spacing: 0; }
.header-center { gap: 26px; }
.header-center a, .site-nav a { transition: color .16s ease; }
.site-nav { gap: 18px; }
.site-nav a { font-size: 13.5px; }
.site-nav .btn { color: var(--navy); }
.site-nav .btn-next-step { color: var(--navy); }
.site-nav .btn-next-step:hover { color: var(--navy); }
.section { padding: 72px 0; }
.wrap { max-width: 1180px; padding-left: 32px; padding-right: 32px; }
.hero-split { gap: 68px; padding: 96px 0 88px; }
.hero-split h1 { font-size: clamp(48px, 6vw, 72px); line-height: 1.03; }
.hero-split .lead-sub { max-width: 570px; }
.hero-photo img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(26,27,37,.18); }
.section-title { line-height: 1.12; }
.btn { border-radius: 6px; padding: 12px 18px; font-size: 14px; letter-spacing: .01em; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-purple { background: var(--purple-deep); }
.btn-ghost { border-color: var(--purple-deep); color: var(--purple-deep); }
.card, .path, .cat-tile, .promo-card { border-radius: var(--radius); box-shadow: 0 1px 0 rgba(26,27,37,.02); }
.card { padding: 24px; }
.card:hover { border-color: #C8BED3; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); }
.eyebrow { color: var(--purple); letter-spacing: .14em; }
.lead-sub { font-size: 17px; line-height: 1.62; }
.trustbar { padding: 20px 32px; color: var(--purple-deep); }
.trustbar b { color: var(--purple); }
.cat-grid { gap: 14px; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cat-tile img { height: 144px; }
.cat-tile .body { padding: 16px; }
.steps { gap: 38px; }
.step .num { width: 40px; height: 40px; border-radius: 6px; background: var(--purple-deep); font-size: 16px; }
.paths { gap: 16px; }
.path { padding: 28px; }
.quote blockquote { font-size: 30px; }
.site-footer { padding-top: 64px; }
.site-footer a { transition: color .16s ease; }
.foot-bottom { padding-bottom: 28px; }

/* Members and Workbench share a practical reading rhythm. */
.surface-portal .site-main, .surface-agent .site-main { background: #F7F4F0; }
.surface-portal .section, .surface-agent .section { padding: 48px 0 64px; }
.surface-portal .card, .surface-agent .card { background: #fff; }
.surface-portal h2.section-title, .surface-agent h2.section-title { font-size: 36px; }
.surface-portal .site-header, .surface-agent .site-header { box-shadow: 0 2px 12px rgba(26,27,37,.08); }
/* Dash wears the SAME header — keyed rose instead of navy so you always know
   which door you're standing in (portal/agent stay navy). */
.surface-dash .site-header, body.dash .site-header { background: var(--rose-deep); }
/* Dash nav sits on rose, where the default lavender (--on-navy) reads as purple.
   Whiten only the TOP-LEVEL links (direct children), dropdown summaries, and
   log-out. The dropdown *menu* items live in a white popup — they keep their base
   dark text (see .nav-dd-menu a), so '> a' here must not reach into the popup. */
body.dash .site-nav > a,
body.dash .site-nav .nav-dd > summary,
body.dash .site-nav button.link { color: rgba(255, 255, 255, .9); }
body.dash .site-nav > a:hover,
body.dash .site-nav > a.active,
body.dash .site-nav .nav-dd > summary:hover,
body.dash .site-nav .nav-dd > summary.active,
body.dash .site-nav button.link:hover { color: #fff; }
body.dash .site-nav > span { color: rgba(255, 255, 255, .72) !important; }  /* email (inline-styled) */
/* Mobile drawer: dropdown items drop onto the rose bar too — keep them white. */
body.dash .site-header.nav-open .site-nav .nav-dd-menu a,
body.dash .site-header.nav-open .site-nav .nav-drawer-link { color: rgba(255, 255, 255, .9); }
.surface-portal .eyebrow, .surface-agent .eyebrow { color: var(--purple-deep); }
/* The Next Best Step bar sits on navy — its eyebrow must stay gold on every
   surface (the portal-wide indigo eyebrow above is illegible there). */
.next-step-bar .eyebrow,
.surface-portal .next-step-bar .eyebrow,
.surface-agent .next-step-bar .eyebrow { color: var(--gold-bright); }

/* Read-only personal profile: pretty fields behind a dropdown until Edit. */
.profile-view { margin-top: 4px; }
.profile-view summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; padding: 10px 0; color: var(--purple-deep); font-weight: 700;
  list-style: none;
}
.profile-view summary::-webkit-details-marker { display: none; }
.profile-view summary::after { content: '+'; color: var(--purple); font-size: 22px; line-height: 1; }
.profile-view[open] summary::after { content: '\2013'; }
.profile-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 22px; margin: 6px 0 2px; padding: 14px 0 4px; border-top: 1px solid var(--line);
}
.profile-facts .fact dt {
  text-transform: uppercase; letter-spacing: .1em; font-size: 11px;
  color: var(--muted); font-weight: 700; margin: 0 0 3px;
}
.profile-facts .fact dd { margin: 0; white-space: pre-wrap; }
.profile-facts .fact dd.empty { color: var(--muted); font-style: italic; }
.profile-facts .fact--wide { grid-column: 1 / -1; }
.surface-agent .section > .wrap > h3, .surface-agent .section > .wrap > h2 { color: var(--purple-deep); }
.surface-agent .card { border-color: #DCD4E1; }
.surface-agent table.records { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.surface-agent table.records th { background: var(--tint); color: var(--purple-deep); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.surface-agent table.records th, .surface-agent table.records td { padding: 13px 14px; }
.surface-agent .stat { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 6px; padding: 11px 14px; min-height: 52px; }
.surface-agent .stat-h { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.surface-agent .notice { background: #FFFCE0; border-color: #DED970; border-radius: 6px; }
.surface-agent .tag, .surface-portal .tag { border: 1px solid #D8D27C; background: #FFFDE3; color: var(--gold-ink); border-radius: 5px; }
.surface-portal .card { box-shadow: 0 1px 0 rgba(26,27,37,.02); }

/* Selectable account avatars. A photo always takes precedence in the templates. */
.avatar{display:inline-flex;align-items:center;justify-content:center}
.account-avatar-card{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:18px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.avatar-picker{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.avatar-choice{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#f7f4fb;font-size:20px;line-height:1;cursor:pointer}
.avatar-choice:hover,.avatar-choice.selected{border-color:var(--purple);box-shadow:0 0 0 2px rgba(130,46,129,.14)}
.avatar-choice--small{width:28px;height:28px;font-size:15px}
.avatar-lg{width:48px;height:48px;border-radius:50%;background:#f7f4fb;font-size:22px;flex:none}
.member-avatar-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:5px 0 12px 60px;border-bottom:1px solid var(--line)}
.photo-choice{cursor:pointer;font-size:13px}.photo-choice input{display:none}

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select { border-radius: 6px; border-color: #CFC8D7; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(130,46,129,.13); outline: none; }
table.records th, table.records td { border-bottom-color: var(--line); }
.promo-banner { background: var(--purple-deep); }
.promo-banner:hover { background: var(--purple); color: #fff; }

@media (max-width: 760px) {
  .site-header { padding: 10px 20px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 52px 0; }
  .hero-split { gap: 36px; padding: 62px 0 54px; }
  .hero-split h1 { font-size: 48px; }
  .site-nav { gap: 12px; }
  .surface-agent table.records { display: block; overflow-x: auto; white-space: nowrap; }
}


/* Auth/panel pages stay narrow + centered (the later .wrap max-width was
   flattening them wide, leaving the form hugging the left edge). */
.wrap.panel { max-width: 460px; }
.wrap.panel-wide { max-width: 760px; }
/* Project detail: to-dos need real width — a wide page, 60/40 split. */
.wrap.panel-project { max-width: 1080px; margin: 40px auto; }
.proj-grid { display: grid; gap: 24px; grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }
