/* ── Altair loan application — Lemonade-style flow prototype ─────────── */

:root {
  --ink: #333333;            /* primary text */
  --ink-soft: #6b6b6b;       /* secondary text */
  --navy: #232838;           /* Altair logo navy (checked boxes) */
  --accent: #0f8b70;         /* Altair green (Lemonade uses pink here) */
  --accent-tint: #f0faf6;    /* selected-card wash */
  --border: #dcdcdc;
  --chip-bg: #f1f1f1;
  --btn-w: 208px;
  --col-left: 33vw;          /* content column left edge (Lemonade metric) */
  --col-w: 684px;            /* transcript column width (question + chips) */
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 34px 44px 0 44px;
  min-height: 72px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }

.menu-wrap { margin-left: auto; position: relative; }
.dots-btn {
  border: none; background: none; color: #9a9a9a; cursor: pointer;
  padding: 8px; border-radius: 50%; display: inline-flex;
  transition: color .15s ease, background .15s ease;
}
.dots-btn:hover { color: var(--ink); background: #f5f5f5; }

/* Lemonade-style dropdown */
.menu {
  position: absolute; top: 44px; right: 0; z-index: 50;
  width: 232px; background: #fff;
  border: 1px solid #e6e6e6; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  padding: 20px 22px;
  animation: menuIn .18s ease-out;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu.hidden { display: none; }
.menu-section + .menu-section { margin-top: 20px; }
.menu-heading { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 6px 0; width: 100%; text-align: left; text-decoration: none;
}
.menu-item:hover { color: var(--accent); }
.menu-item svg { color: #8a8a8a; flex: 0 0 auto; }
.menu-item:hover svg { color: var(--accent); }

/* ── Answer chip (last answer, top-right of the transcript column) ───── */
.chip-slot {
  position: absolute;
  left: min(calc(var(--col-left) + var(--col-w)), calc(100vw - 120px));
  transform: translateX(-100%);
  top: 26px;
  display: flex;
  justify-content: flex-end;
}
.answer-chip {
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  white-space: nowrap;
  animation: chipIn .28s ease-out;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ── Flow column ─────────────────────────────────────────────────────── */
.flow-wrap {
  margin: 76px 24px 60px var(--col-left);
  width: var(--col-w);
  max-width: calc(100vw - var(--col-left) - 48px);
}

.step-content { opacity: 1; }
.step-content.step-in { animation: stepIn .34s ease-out; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.step-content.step-out {
  opacity: 0; transform: translateY(-12px);
  transition: opacity .18s ease-in, transform .18s ease-in;
}
/* ── Address confirm phase (map appears after selection) ─────────────── */
.addr-map {
  display: block;
  width: 340px;
  max-width: 100%;
  height: auto;
  margin-top: 48px;
  border-radius: 10px;
}
.addr-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink);
}
.addr-line svg { color: var(--accent); flex: 0 0 auto; }
.addr-line .link-btn { margin-left: 6px; }
.addr-selected .fx-row { margin-top: 20px; }
.addr-selected.hidden, .addr-search.hidden { display: none; }

/* Question text */
.q-block { max-width: 560px; }
.q-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.q-text + .q-text { margin-top: 30px; }
.q-sub {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 30px;
}
.q-note { font-weight: 400; color: var(--ink-soft); font-size: 16px; margin-top: 14px; line-height: 1.5; }
.q-text + .q-text.q-tight { margin-top: 2px; }

/* Typing (Lemonade chat-style): paragraphs hide until their turn,
   controls stay hidden until the bot finishes "typing". */
[data-type].is-typing-pending { display: none; }
.reveal { transition: opacity .35s ease, transform .35s ease; }
/* transition:none here = hiding is INSTANT (no fade-out flash at step start);
   un-hiding picks up .reveal's transition and fades in. */
.reveal.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; transition: none; }

/* ── Answer buttons (stacked) ────────────────────────────────────────── */
.answer-stack {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.answer-btn, .cta-btn {
  width: var(--btn-w);
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.answer-btn:hover, .cta-btn:hover:not(:disabled) {
  box-shadow: 0 5px 14px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.answer-btn:active, .cta-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.answer-btn:focus-visible, .cta-btn:focus-visible, .offer-card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
/* previously-picked option (e.g. FICO band when re-editing) */
.answer-btn.is-sel { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* Continue/Next — same look; disabled = flat gray (Lemonade) */
.cta-btn { margin-top: 64px; font-weight: 400; }
.cta-btn:disabled {
  background: #f3f3f3;
  border-color: #f3f3f3;
  color: #ababab;
  box-shadow: none;
  cursor: default;
}

/* Primary (hot) CTA — Lemonade's pink button, in Altair green */
.cta-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15,139,112,.35);
}
.cta-btn.is-primary:hover { box-shadow: 0 8px 22px rgba(15,139,112,.45); }

/* ── Offer cards (product select) ────────────────────────────────────── */
.offer-grid {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 560px;
}
.offer-card {
  width: 153px;
  min-height: 209px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 18px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.offer-card:hover { box-shadow: 0 5px 14px rgba(0,0,0,.10); }
.offer-card.is-selected {
  background: var(--accent-tint);
  border-color: #cdeade;
  box-shadow: none;
}
.offer-icon { height: 100px; display: flex; align-items: center; color: #4a4a4a; }
.offer-icon svg { display: block; }
.offer-icon svg .icon-acc { fill: transparent; transition: fill .18s ease; }
.offer-card.is-selected .offer-icon { color: var(--accent); }
.offer-card.is-selected .offer-icon svg .icon-acc { fill: currentColor; }

/* Non-selected options gray out + lock (Lemonade behavior) */
.offer-card.is-disabled { pointer-events: none; }
.offer-card.is-disabled .offer-icon { color: #c9c9c9; }
.offer-card.is-disabled .offer-label { color: #a5a5a5; }
.offer-card.is-disabled .offer-check { border-color: #dedede; }
.offer-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  margin-top: 10px;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.offer-check {
  width: 22px; height: 22px;
  border: 1.5px solid #c4c4c4;
  border-radius: 5px;
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.offer-card.is-selected .offer-check {
  background: var(--navy);
  border-color: var(--navy);
}
.offer-check svg { opacity: 0; color: #fff; }
.offer-card.is-selected .offer-check svg { opacity: 1; }

/* ── Progress sidebar (Lemonade's About you / Your home / … rail) ────── */
.side-nav {
  position: fixed;
  left: max(24px, calc(var(--col-left) - 300px));
  top: 178px;
  width: 220px;
}
.side-nav.hidden { display: none; }
.sn-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}
/* connecting line between dots */
.sn-item + .sn-item::before {
  content: "";
  position: absolute;
  left: 6.5px;
  top: -16px;
  height: 22px;
  width: 1.5px;
  background: #d9d9d9;
}
.sn-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #c9c9c9;
  background: #fff;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.sn-item.is-active .sn-dot { border-color: var(--accent); }
.sn-item.is-active .sn-dot::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.sn-item.is-done .sn-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sn-dot svg { width: 8px; height: 8px; }
.sn-label { font-size: 15px; font-weight: 700; color: #9a9a9a; }
.sn-item.is-active .sn-label { color: var(--ink); }
.sn-item.is-done .sn-label { color: var(--ink-soft); }

/* ── Text inputs (Lemonade outlined fields) ──────────────────────────── */
.fx-row { display: flex; gap: 18px; margin-top: 56px; flex-wrap: wrap; }
.fx-row + .fx-row { margin-top: 18px; }
.fx-input {
  width: var(--btn-w);
  padding: 15px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease;
}
.fx-input.wide { width: 320px; max-width: 100%; }
.fx-input::placeholder { color: #9f9f9f; }
.fx-input:focus { border-color: #8b8b8b; }
.fx-hint { font-size: 13.5px; color: #9a9a9a; margin-top: 18px; line-height: 1.5; }
.fx-demo { font-style: italic; }
.fx-error { color: #d64545; font-size: 14px; margin-top: 16px; }
.fx-error.hidden, .hidden { display: none; }
.link-btn {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: 13.5px;
  color: var(--accent); text-decoration: underline;
}

/* ── SMS consent (A2P/TCPA) ──────────────────────────────────────────── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--navy);
  cursor: pointer;
}
.consent-row a { color: var(--accent); }
/* Small single-line checkbox (Section 8, etc.) */
.consent-row.check-sm { font-size: 15px; color: var(--ink); align-items: center; margin-top: 20px; }
.consent-row.check-sm input[type="checkbox"] { margin-top: 0; }

/* ── SMS code boxes ──────────────────────────────────────────────────── */
.code-row { display: flex; gap: 10px; margin-top: 56px; }
.code-box {
  width: 48px; height: 58px;
  text-align: center;
  font-family: var(--font);
  font-size: 24px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease;
}
.code-box:focus { border-color: var(--accent); }
.code-row.is-checking .code-box { opacity: .55; }
.code-row.is-error .code-box { border-color: #d64545; animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ── Co-borrower list ────────────────────────────────────────────────── */
.cob-list { margin-top: 40px; max-width: 460px; }
.cob-list:empty { margin-top: 0; }
.cob-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fafafa;
}
.cob-who { font-weight: 700; font-size: 15px; }
.cob-meta { font-size: 13px; color: var(--ink-soft); flex: 1; }
.cob-remove {
  border: none; background: none; cursor: pointer;
  color: #b0b0b0; padding: 4px; display: inline-flex; border-radius: 6px;
}
.cob-remove:hover { color: #d64545; background: #fff; }
.ghost-btn {
  display: block;
  margin-top: 22px;
  border: none; background: none; padding: 0;
  font-family: var(--font); font-size: 14.5px;
  color: var(--accent); cursor: pointer;
}
.ghost-btn:disabled { color: #b9b9b9; cursor: default; }

/* ── Phase 2: property questions ─────────────────────────────────────── */
/* Two-column stack for longer option lists (property type) */
.answer-stack.answer-grid {
  flex-direction: row;
  flex-wrap: wrap;
  max-width: calc(var(--btn-w) * 2 + 22px);
  gap: 18px;
}

/* Lemonade-style icon pick cards (single-select, auto-advance) */
.pick-grid {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 560px;
}
.pick-card {
  width: 153px;
  min-height: 138px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 8px 14px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.pick-card:hover {
  box-shadow: 0 5px 14px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.pick-card:active { transform: translateY(0); }
.pick-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-icon { height: 62px; display: flex; align-items: center; color: #4a4a4a; }
.pick-icon svg .icon-acc { fill: transparent; }
.pick-card:hover .pick-icon { color: var(--accent); }
.pick-card:hover .pick-icon svg .icon-acc { fill: currentColor; }
.pick-label {
  font-size: 14.5px;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  margin-top: 8px;
}

/* Mock address autocomplete */
.addr-wrap { position: relative; margin-top: 56px; width: 320px; max-width: 100%; }
.addr-wrap .fx-input { width: 100%; }
.addr-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  padding: 6px;
  z-index: 30;
  animation: menuIn .15s ease-out;
}
.addr-menu.hidden { display: none; }
.addr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
}
.addr-item:hover { background: #f6f6f6; }
.addr-item svg { color: #a0a0a0; flex: 0 0 auto; }
.addr-manual { margin-top: 8px; }
.addr-manual .fx-row { margin-top: 18px; }
.fx-input.sm { width: 95px; }

/* Property-conditions multiselect chips */
.cond-grid {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
}
.cond-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cond-chip:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.cond-chip svg { display: none; }
.cond-chip.is-on {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.cond-chip.is-on svg { display: block; }

/* ── "Already have an account?" footer ───────────────────────────────── */
.login-footer {
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: #9a9a9a;
  z-index: 20;
}
.login-footer .link-btn { font-size: 14px; }
.login-footer.hidden { display: none; }

/* ── "I don't understand this question" ──────────────────────────────── */
.help-wrap { margin-top: 40px; max-width: 560px; }
.help-link {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: 13.5px;
  color: #9a9a9a; text-decoration: underline;
}
.help-link:hover { color: var(--ink); }
.help-box {
  margin-top: 12px;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line; /* option-by-option explainers use line breaks */
  animation: stepIn .25s ease-out;
}
.help-box.hidden { display: none; }

/* ── Edit answers (transcript) ───────────────────────────────────────── */
.ea-list { margin-top: 44px; max-width: 480px; }
.ea-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}
.ea-txt { flex: 1; min-width: 0; }
.ea-q { font-size: 12.5px; color: #9a9a9a; margin-bottom: 3px; }
.ea-a { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-edit {
  border: none; background: none; cursor: pointer;
  color: #a0a0a0; padding: 7px; border-radius: 8px; display: inline-flex;
  transition: color .15s ease, background .15s ease;
}
.ea-edit:hover { color: var(--accent); background: #f2f8f5; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --col-left: 8vw; }
  .chip-slot { left: auto; right: 88px; transform: none; }
  .side-nav { display: none; }
}
@media (max-width: 640px) {
  .top-bar { padding: 22px 20px 0 20px; }
  .logo img { height: 24px; }
  :root { --col-left: 0vw; }
  .flow-wrap { margin: 56px 20px 48px 20px; width: auto; max-width: none; }
  .chip-slot { right: 64px; top: 18px; }
  .offer-grid { gap: 12px; }
  .offer-card { width: calc(50% - 6px); }
}

/* ── Phase 5: Review & submit ────────────────────────────────────────── */
.review-wrap { margin-top: 44px; max-width: 520px; }
.rv-section { margin-bottom: 28px; }
.rv-title {
  font-size: 12.5px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.review-wrap .cta-btn { margin-top: 20px; width: 100%; }
.review-wrap .fx-demo { margin-top: 14px; }

.submit-hero { color: var(--accent); margin-bottom: 26px; }
.next-steps { margin-top: 40px; max-width: 480px; }
.ns-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ns-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ns-txt { font-size: 15px; color: var(--ink); padding-top: 3px; line-height: 1.5; }
.next-steps + .fx-hint { margin-top: 26px; }
.next-steps + .fx-hint a { color: var(--accent); font-weight: 700; }

/* Labeled input fields (e.g. the lease screen) */
.fx-field { display: flex; flex-direction: column; flex: 1 1 200px; max-width: 320px; min-width: 180px; }
.fx-label { font-size: 12.5px; color: #9a9a9a; margin-bottom: 7px; }
.fx-field .fx-input { width: 100%; }

/* ── Account page (Lemonade-style dashboard) ─────────────────────────── */
.acct-body { background: #fff; }
.acct-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 44px 0 44px;
}
.acct-topbar-right { display: flex; align-items: center; gap: 28px; }
.acct-invite-link { color: var(--accent); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.acct-invite-link:hover { text-decoration: underline; }
.acct-user-wrap { position: relative; }
.acct-user-btn {
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px;
}
.acct-user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.acct-caret { font-size: 11px; color: #8a8a8a; }
.acct-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: #fff; border: 1px solid #e4e4e4; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10); padding: 6px; min-width: 210px;
}
.acct-user-menu.hidden { display: none; }
.acct-menu-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 7px; cursor: pointer;
}
.acct-menu-item:hover { background: #f4f4f2; }

.acct-main { padding: 30px 44px 80px 44px; max-width: 1460px; margin: 0 auto; }
.acct-serif { font-family: "Zilla Slab", Georgia, serif; font-weight: 600; color: #4a4a4a; }
.acct-welcome { font-size: 52px; margin: 26px 0 8px 8px; }

/* Invite banner */
.acct-banner {
  display: flex; align-items: center; gap: 18px;
  max-width: 940px; margin: 36px auto 8px auto;
  background: #fff; border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 6px 26px rgba(0,0,0,.09);
}
.acct-banner-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #f5f4f1;
  display: inline-flex; align-items: center; justify-content: center; color: #6d6d6d; flex-shrink: 0;
}
.acct-banner-txt { flex: 1; min-width: 0; }
.acct-banner-title { font-size: 13.5px; font-weight: 900; letter-spacing: .04em; color: var(--ink); }
.acct-banner-sub { font-size: 13.5px; color: #8a8a8a; margin-top: 4px; }
.acct-banner-btn {
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 900; letter-spacing: .08em;
  padding: 12px 34px; border-radius: 6px; flex-shrink: 0;
}
.acct-banner-btn:hover { filter: brightness(1.06); }
.acct-banner-close {
  border: none; background: none; cursor: pointer; color: #b5b5b5;
  padding: 8px; border-radius: 50%; flex-shrink: 0;
}
.acct-banner-close:hover { color: #6d6d6d; background: #f4f4f2; }

/* Product cards */
.acct-cards {
  display: flex; justify-content: center; align-items: flex-start; gap: 8px;
  margin-top: 46px; flex-wrap: wrap;
}
.acct-card {
  width: 288px; padding: 30px 22px 88px 22px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.acct-card.has-apps { background: #f7f6f4; }
.acct-card-title { font-size: 15px; font-weight: 900; letter-spacing: .05em; color: var(--ink); }
.acct-card-sub { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #b0b0b0; margin-top: 5px; }
.acct-card-icon { color: #7c7c7c; margin: 26px 0 10px 0; }
.acct-card-desc { font-size: 14px; color: #6f6f6f; line-height: 1.55; max-width: 240px; margin-top: 14px; }
.acct-plus {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(15,139,112,.35); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.acct-plus:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 26px rgba(15,139,112,.42); }

/* Per-product applications dropdown */
.acct-apps { width: 100%; max-width: 236px; margin-top: 14px; }
.acct-apps-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--ink); background: #fff; border-radius: 8px 8px 0 0;
  padding: 12px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.acct-apps-caret { color: var(--accent); display: inline-flex; transition: transform .18s ease; }
.acct-apps.open .acct-apps-caret { transform: rotate(180deg); }
.acct-apps-list { display: none; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 6px 16px rgba(0,0,0,.08); overflow: hidden; }
.acct-apps.open .acct-apps-list { display: block; }
.acct-app-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--ink); padding: 11px 14px; text-align: left;
  border-top: 1px solid #f0efec;
}
.acct-app-row:hover { background: #faf9f7; }
.acct-app-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.acct-app-street { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-app-chev { color: #b5b5b5; display: inline-flex; }
.acct-note { font-size: 12px; color: #9a9a9a; padding: 9px 14px; border-top: 1px solid #f0efec; background: #fff; }

/* Sign-in views */
.acct-login { max-width: 460px; margin: 12vh auto 0 auto; text-align: center; }
.acct-login-logo { height: 34px; margin-bottom: 42px; }
.acct-login .acct-serif { font-size: 40px; margin-bottom: 14px; }
.acct-subtle { font-size: 15px; color: #7a7a7a; margin-bottom: 26px; }
.acct-login-card { display: flex; flex-direction: column; gap: 14px; }
.acct-input {
  font: inherit; font-size: 13px; letter-spacing: .05em;
  border: 1px solid #ddd; border-radius: 4px; padding: 15px 16px; outline: none;
}
.acct-input:focus { border-color: #8b8b8b; }
.acct-primary {
  border: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 900;
  letter-spacing: .1em; color: #fff; background: var(--accent);
  padding: 16px; border-radius: 4px; transition: filter .15s ease;
}
.acct-primary:hover:not(:disabled) { filter: brightness(1.06); }
.acct-primary:disabled { background: #e2e2e2; cursor: default; }
.acct-error { font-size: 13.5px; color: #c0392b; }
.acct-error a { color: var(--accent); font-weight: 700; }
.acct-code { justify-content: center; margin-bottom: 10px; }
.acct-login .fx-hint { margin-top: 18px; }

/* Assistant chat (bottom-right) */
.acct-chat-wrap { position: fixed; right: 28px; bottom: 26px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.acct-chat-fab {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: #6d6d6d; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.acct-chat-fab:hover { color: var(--accent); }
.acct-chat {
  width: 300px; height: 420px; background: #fff; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden;
}
.acct-chat.hidden { display: none; }
.acct-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f0efec; }
.acct-chat-ava {
  width: 34px; height: 34px; border-radius: 50%; background: #f5f4f1; color: #6d6d6d;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.acct-chat-name { font-size: 13.5px; font-weight: 900; color: var(--ink); }
.acct-chat-role { font-size: 11.5px; color: #9a9a9a; }
.acct-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.acct-chat-msg { background: #f1f0ee; border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink); max-width: 85%; }
.acct-chat-msg.me { background: var(--accent); color: #fff; align-self: flex-end; }
.acct-chat-input { border: none; border-top: 1px solid #f0efec; padding: 13px 14px; font: inherit; font-size: 13px; outline: none; }

@media (max-width: 1000px) {
  .acct-welcome { font-size: 38px; }
  .acct-main, .acct-topbar { padding-left: 22px; padding-right: 22px; }
}

/* Password field with show/hide toggle */
.acct-pass-wrap { position: relative; display: flex; }
.acct-pass-wrap .acct-input { flex: 1; width: 100%; padding-right: 48px; }
.acct-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: #a2a2a2;
  padding: 9px; border-radius: 6px; display: inline-flex; align-items: center;
}
.acct-eye:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   Account dashboard — design handoff ("Lemonade Dashboard.dc.html").
   The rules below are copied VERBATIM from the design file's <style> block
   (only the bare `a` selectors are scoped to body.is-dash so they can't
   bleed into the intake app, which shares this stylesheet). The page
   markup itself carries the design's inline styles untouched — do not
   restyle or resize here without a new design handoff.
   ═══════════════════════════════════════════════════════════════════════ */
/* The design renders in the browser DEFAULT box model; neutralize this
   project's global `* { box-sizing: border-box }` inside the dashboard so
   the design's widths mean exactly what they meant in the handoff file.
   (Elements that want border-box declare it inline, as in the design.)   */
body.is-dash, body.is-dash * { box-sizing: content-box; }
body.is-dash { margin: 0; font-family: 'Nunito Sans', sans-serif; color: #4b4b52; }
body.is-dash .acct-main { padding: 0; max-width: none; margin: 0; }
body.is-dash a { color: #ff0083; text-decoration: none; }
body.is-dash a:hover { color: #d80070; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.45); opacity: 0.25; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes twinkleSpin {
  0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1) rotate(90deg); opacity: 1; }
}
.prod { transition: background 0.2s ease; }
/* !important because the design's inline background:transparent otherwise
   wins over a class :hover rule in plain CSS (the design runtime resolves
   this itself — its own .pcircle hover rules use !important the same way). */
.prod:hover { background: #f0f0f2 !important; }
.pcircle { transition: width 0.24s ease, box-shadow 0.2s ease; }
.plabel { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.24s ease, opacity 0.16s ease, margin-left 0.24s ease; }
.prod:hover .pcircle { width: 192px !important; box-shadow: 0 16px 30px -6px rgba(27,33,49,0.45) !important; }
.prod:hover .plabel { max-width: 150px; opacity: 1; margin-left: 9px; }
.dchev { transition: transform 0.2s ease; }
[data-appsopen="true"] .dchev { transform: rotate(180deg); }

/* ── Page chrome around the design artboard (not part of the handoff):
   top bar account menu, assistant chat panel, and the temporary
   application-row note. ─────────────────────────────────────────────── */
body.is-dash .acct-topbar { padding: 22px 40px 0 40px; }
.dash-invite { color: #ff0083; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.dash-invite:hover { color: #d80070; }
.dash-user-wrap { position: relative; }
.dash-user-btn {
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #4b4b52;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px;
}
.dash-user-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fce9b; }
.dash-caret { font-size: 11px; color: #a2a2aa; }
.dash-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border: 1px solid #ededed; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; min-width: 220px;
  box-sizing: border-box;
}
.dash-user-menu.hidden { display: none; }
.dash-menu-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  font: inherit; font-size: 14px; color: #4b4b52; text-decoration: none;
  padding: 11px 13px; border-radius: 8px; cursor: pointer; box-sizing: border-box;
}
.dash-menu-item:hover { background: #f7f7f8; color: #4b4b52; }

.dash-chat {
  position: fixed; right: 26px; bottom: 92px; width: 320px; max-height: 60vh; z-index: 70;
  background: #fff; border: 1px solid #ededed; border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden; box-sizing: border-box;
}
.dash-chat.open { display: flex; }
.dash-chat-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid #f1f1f3; }
.dash-chat-ava { width: 38px; height: 38px; border-radius: 50%; background: #1B2131; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.dash-chat-name { font-size: 14.5px; font-weight: 700; color: #3f3f47; }
.dash-chat-role { font-size: 12.5px; color: #9a9aa2; }
.dash-chat-msgs { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.dash-chat-msg { align-self: flex-start; background: #f1f1f3; color: #4b4b52; font-size: 14px; padding: 9px 13px; border-radius: 13px; max-width: 80%; }
.dash-chat-msg.me { align-self: flex-end; background: #ff0083; color: #fff; }
.dash-chat-input { border: none; border-top: 1px solid #f1f1f3; padding: 15px 18px; font: inherit; font-size: 14px; outline: none; }

.acct-note { font-size: 12.5px; color: #8b8b93; padding: 10px 16px; border-top: 1px solid #f2f2f4; }

/* ── Entity-member guarantor chip (tap to toggle) ─────────────────────── */
.em-guar-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid #d9d7d2; border-radius: 999px;
  background: #fff; color: var(--ink-soft);
  font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 4px 11px; cursor: pointer; white-space: nowrap;
}
.em-guar-chip:hover { border-color: var(--accent); color: var(--accent); }
.em-guar-chip.is-on { border-color: var(--accent); background: var(--accent); color: #fff; }
.em-guar-chip.is-on svg { display: block; }
.em-guar-chip.is-inel { opacity: 0.45; cursor: not-allowed; }
.em-guar-chip.is-inel:hover { border-color: #d9d7d2; color: var(--ink-soft); }
.em-guar-row { margin-top: 12px; }
.em-guar-row input[type="checkbox"]:disabled + span { opacity: 0.45; }

/* Pull-back callout: most-experienced member must guarantee */
.guar-fix-note { color: #b45309; font-weight: 600; }

/* Member-row edit affordance + editing state */
.cob-edit {
  border: none; background: none; color: #9b9b9b; cursor: pointer;
  padding: 4px; border-radius: 6px; display: inline-flex;
}
.cob-edit:hover { color: var(--accent); background: #fff; }
.cob-item.is-editing { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.em-editing-tag { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Country-of-citizenship dropdown (native select in the fx-input skin) */
select.fx-input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml;charset=utf-8,%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='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
select.fx-input:invalid { color: #9b9b9b; }

/* Credit/background event-screen blocking message (hint vs hard error) */
.ev-msg { color: var(--ink-soft); font-size: 14px; margin: 12px 0 0; }
.ev-msg.is-err { color: #d64545; }

/* Google Places autocomplete: fallback message + attribution */
.addr-msg { padding: 12px 14px; font-size: 14px; color: var(--ink-soft); }
.addr-powered { color: #b9b9b9; font-size: 12px; margin-top: 10px; }
