/* Be Chosen brand stylesheet.
   Served by the runner at /static/brand.css and linked from the GHL embeds and the scorecard page.
   Everything is scoped under .bc so it never restyles the rest of a GHL page.
   Fonts: load Inter 400/600/700 from Google Fonts alongside this file. */

/* --- Tokens --------------------------------------------------------------- */
.bc {
  /* Brand palette */
  --evergreen: #0A1F17;      /* primary: text, dark panels */
  --green: #22C55E;          /* Chosen Green: buttons, progress, highlights */
  --sage: #84C89B;           /* secondary accents */
  --warm-grey: #F3F5F2;      /* backgrounds */
  --white: #FFFFFF;          /* surfaces */

  /* Roles */
  --ink: var(--evergreen);
  --ink-2: #4A5D54;          /* secondary text */
  --rule: #E2E8E3;
  --paper: var(--white);
  --paper-2: var(--warm-grey);
  --mint: #E9F7EE;           /* light green tint for highlights */
  --green-ink: #15803D;      /* green dark enough for small text and focus rings on white */
  --chosen: #15803D;         /* "was named" */
  --missed: #B42318;         /* "was not named" */
  --on-green: var(--evergreen);
  --shadow: 0 2px 8px rgba(10, 31, 23, .06);
  --r-control: 12px;         /* inputs, buttons */
  --r-panel: 16px;           /* panels, cards */
  --r-bubble: 18px;          /* chat bubbles */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark mode only where the page is ours end to end (the scorecard: <body class="bc bc-auto">).
   Embeds sit on GHL pages, so they keep the light palette whatever the visitor's system setting is. */
@media (prefers-color-scheme: dark) {
  .bc.bc-auto {
    --ink: #F3F5F2;
    --ink-2: #A9BBB1;
    --rule: #1F3A2E;
    --paper: #0A1F17;
    --paper-2: #10291F;
    --mint: #12301F;
    --green-ink: #4ADE80;
    --chosen: #4ADE80;
    --missed: #F58A7B;
  }
}

/* --- Base ----------------------------------------------------------------- */
.bc {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
.bc [hidden] { display: none !important; }
body.bc { margin: 0; background: var(--paper-2); }

.bc-col { max-width: 580px; margin: 0 auto; padding: 32px 20px 80px; }
.bc-embed { max-width: 580px; }
.bc-embed.bc-page { margin: 0 auto; padding: 48px 20px 80px; }   /* results page: its own centred column in a full-width section */

.bc h1, .bc .bc-h1 { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; }
.bc h2, .bc .bc-h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 12px; }
.bc p { margin: 0 0 16px; max-width: 62ch; }
.bc a { color: var(--green-ink); font-weight: 600; }
.bc b, .bc strong { font-weight: 600; }
.bc .bc-small, .bc small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.bc .bc-sub { color: var(--ink-2); }
.bc .bc-num { font-variant-numeric: tabular-nums; }
.bc .bc-hl { color: var(--green); }
.bc .bc-eyebrow { display: block; margin: 0 0 10px; font-size: 12px; line-height: 1.3; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }

.bc :focus-visible { outline: 3px solid var(--green-ink); outline-offset: 2px; }

/* --- Logo bar: the reversed logo (white "Be") needs the Evergreen ground ------ */
.bc .bc-brandbar { display: flex; align-items: center; justify-content: center; margin: 0 0 32px; padding: 16px 20px;
  background: var(--evergreen); border-radius: 16px; text-decoration: none; }
.bc .bc-brandbar img { display: block; height: 40px; width: auto; max-width: 100%; }
@media (max-width: 480px) { .bc .bc-brandbar { padding: 14px 16px; } .bc .bc-brandbar img { height: 34px; } }

/* --- Wordmark (text stand-in until the logo files are added) ---------------- */
.bc .bc-logo { display: inline-block; margin: 0 0 28px; font-size: 22px; line-height: 1; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.bc .bc-logo span { color: var(--green); }

/* --- Verdict colours ------------------------------------------------------ */
.bc .bc-verdict { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 24px; }
.bc .bc-chosen { color: var(--chosen); }
.bc .bc-missed { color: var(--missed); }

/* --- Buttons: Chosen Green with Evergreen text ------------------------------ */
.bc .bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px;
  font: 700 17px/1.2 var(--font);
  color: var(--on-green); background: var(--green);
  border: 0; border-radius: var(--r-control);
  text-decoration: none; cursor: pointer;
}
/* Glow, an arrow that nudges on hover, and a slow shine every few seconds (same as the landing page buttons) */
.bc .bc-btn{position:relative;isolation:isolate;overflow:hidden;gap:10px;
  background:linear-gradient(180deg,#3DDC78 0%,#22C55E 55%,#1CB553 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 4px rgba(10,31,23,.12),0 10px 24px -8px rgba(34,197,94,.6);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.bc .bc-btn::after{content:"";flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .18s ease}
.bc .bc-btn::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%);
  transform:translateX(-120%);animation:bc-sheen 6s ease-in-out 1.5s infinite}
.bc .bc-btn:hover{transform:translateY(-2px);filter:saturate(1.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 8px rgba(10,31,23,.14),0 16px 32px -10px rgba(34,197,94,.75)}
.bc .bc-btn:hover::after{transform:translateX(4px)}
.bc .bc-btn:active{transform:translateY(0)}
.bc .bc-btn:disabled,.bc .bc-btn[aria-disabled="true"]{transform:none}
.bc .bc-btn:disabled::before,.bc .bc-btn[aria-disabled="true"]::before{animation:none;opacity:0}
@keyframes bc-sheen{0%{transform:translateX(-120%)}22%,100%{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.bc .bc-btn,.bc .bc-btn::after{transition:none} .bc .bc-btn::before{animation:none;opacity:0} .bc .bc-btn:hover{transform:none}}
.bc .bc-btn:disabled, .bc .bc-btn[aria-disabled="true"] { opacity: .6; cursor: wait; }
.bc .bc-btn-block { display: flex; width: 100%; }
.bc .bc-panel-ink :focus-visible { outline-color: var(--green); }
@media (max-width: 480px) { .bc .bc-btn { display: flex; width: 100%; } }

/* --- Forms ---------------------------------------------------------------- */
.bc .bc-field { margin: 0 0 16px; }
.bc label { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0 0 6px; }
.bc input:not([type="checkbox"]):not([type="radio"]), .bc select, .bc textarea {
  display: block; width: 100%;
  font: 400 17px/1.3 var(--font); color: var(--ink);
  padding: 14px 15px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-control);
  appearance: none; -webkit-appearance: none;
}
.bc input::placeholder, .bc textarea::placeholder { color: var(--ink-2); opacity: .7; }
.bc input:focus, .bc select:focus, .bc textarea:focus { border-color: var(--green-ink); outline: 3px solid rgba(34, 197, 94, .35); outline-offset: 0; }
.bc select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5D54' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
/* Search-as-you-type (business type and town fields) */
.bc .bc-combo { position: relative; }
.bc .bc-combo-pop { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 30; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-control); box-shadow: 0 8px 24px rgba(10, 31, 23, .10); overflow: hidden; }
.bc .bc-combo-pop ul { list-style: none; margin: 0; padding: 6px 0; }
.bc .bc-combo-pop li { padding: 10px 15px; cursor: pointer; line-height: 1.35; }
.bc .bc-combo-pop li span { color: var(--ink-2); }
.bc .bc-combo-pop li[aria-selected="true"], .bc .bc-combo-pop li:hover { background: var(--mint); }
.bc .bc-combo-credit { margin: 0; padding: 6px 15px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--rule); }
.bc .bc-combo-credit:empty { display: none; }
.bc .bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
/* Mobile number with its country code in front */
.bc .bc-phone { display: flex; gap: 8px; }
.bc .bc-phone select { flex: none; width: auto; padding-right: 28px; }
.bc .bc-phone input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .bc .bc-row { grid-template-columns: 1fr; } }
.bc .bc-error { color: var(--missed); font-size: 15px; margin: 12px 0 0; }
/* Results page: first name and email, asked under the verdict */
.bc .bc-details { max-width: 520px; margin: -8px auto 28px; padding: 20px; border: 1px solid var(--rule);
  border-radius: var(--r-panel); background: var(--paper-2); text-align: left; }
.bc .bc-details-head { margin: 0 0 14px; font-weight: 700; font-size: 17px; text-align: center; }
.bc .bc-details .bc-error { text-align: center; }
.bc .bc-details-done { max-width: 520px; margin: -8px auto 28px; padding: 14px 18px; border-radius: var(--r-panel);
  background: var(--mint); color: var(--green-ink); font-weight: 600; }
/* The check form: messages and small print centred; field labels and inputs stay left-aligned */
.bc[data-bc-form] .bc-small, .bc[data-bc-form] .bc-sub, .bc[data-bc-form] .bc-error { text-align: center; margin-left: auto; margin-right: auto; }
.bc .bc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --- Tables --------------------------------------------------------------- */
.bc table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.bc th, .bc td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bc th { font-weight: 600; }
.bc th.bc-n, .bc td.bc-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px; }
.bc td.bc-chosen, .bc td.bc-missed { font-weight: 600; }

/* --- Panels --------------------------------------------------------------- */
.bc .bc-panel { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 16px; margin: 0 0 20px; background: var(--paper); box-shadow: var(--shadow); }
.bc .bc-panel-soft { background: var(--mint); border-radius: var(--r-panel); padding: 20px; }
/* Evergreen panel with a soft Chosen Green glow and the sparkle */
.bc .bc-panel-ink {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(34, 197, 94, .30), rgba(34, 197, 94, 0) 55%), #0A1F17;
  color: #FFFFFF; border: 1px solid rgba(34, 197, 94, .22); border-radius: var(--r-panel);
  padding: 28px 24px; margin: 40px 0 0;
}
.bc .bc-panel-ink h2 { margin-top: 0; color: #FFFFFF; padding-right: 36px; }
.bc .bc-panel-ink p { color: rgba(255, 255, 255, .86); }
.bc .bc-panel-ink .bc-cause { margin: 0 auto 4px; color: rgba(255, 255, 255, .86); }
/* Stat that says why the top 3 matters */
.bc .bc-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 22px auto 0; padding: 18px 16px;
  border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); max-width: 440px; }
.bc .bc-stat-num { font-size: 40px; line-height: 1; font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.bc .bc-stat-text { color: #FFFFFF; font-weight: 600; line-height: 1.4; }
.bc .bc-stat-source { font-size: 12px; color: rgba(255, 255, 255, .6); }
.bc .bc-panel-ink .bc-promise { margin: 22px auto 14px; font-size: 20px; font-weight: 700; color: #FFFFFF; }
/* "See the other 5 answers": a quiet button that opens the rest of the answers */
.bc .bc-more { margin: 0 0 20px; }
.bc .bc-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.bc .bc-more > summary::-webkit-details-marker { display: none; }
.bc .bc-more > summary::after { content: "+"; color: var(--green-ink); font-size: 18px; line-height: 1; }
.bc .bc-more[open] > summary { margin-bottom: 16px; }
.bc .bc-more[open] > summary::after { content: "\2212"; }
.bc .bc-instead { margin: 20px auto 0; }
/* Results page and scorecard: centred, with the chat cards and table kept readable */
.bc.bc-center, .bc-center .bc-col { text-align: center; }
.bc.bc-center p, .bc-center .bc-col p { margin-left: auto; margin-right: auto; }
.bc.bc-center .bc-panel, .bc-center .bc-col .bc-panel, .bc.bc-center table, .bc-center .bc-col table,
.bc.bc-center .bc-steps, .bc-center .bc-col .bc-steps, .bc.bc-center details .bc-raw { text-align: left; }
.bc.bc-center .bc-panel p { margin-left: 0; }
.bc.bc-center .bc-more, .bc-center .bc-col .bc-more { text-align: center; }
.bc.bc-center .bc-panel-ink h2, .bc-center .bc-col .bc-panel-ink h2 { padding: 0 36px; }   /* room for the sparkle on both sides keeps it centred */
.bc .bc-spark { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; color: var(--green); }

/* --- Chat exchange -------------------------------------------------------- */
.bc .bc-q { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.bc .bc-q span { background: var(--ink); color: var(--paper); padding: 10px 15px; border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble); max-width: 85%; font-size: 16px; line-height: 1.4; }
.bc .bc-a { background: var(--paper-2); padding: 13px 15px; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 6px; font-size: 16px; line-height: 1.45; }
.bc .bc-a ol { margin: 6px 0 0; padding-left: 22px; font-variant-numeric: tabular-nums; }
.bc .bc-a li { margin: 2px 0; }
.bc .bc-a li.bc-me { font-weight: 700; }
.bc .bc-status { display: block; margin: 12px 0 0; font-weight: 600; }

/* --- Progress ------------------------------------------------------------- */
.bc .bc-progress { height: 8px; background: var(--mint); border-radius: 4px; overflow: hidden; margin: 20px 0 0; }
.bc .bc-progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width 400ms ease; }
@media (prefers-reduced-motion: reduce) { .bc .bc-progress i { transition: none; } }

/* --- Loading checklist ---------------------------------------------------- */
.bc .bc-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.bc .bc-steps li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.bc .bc-steps li:last-child { border-bottom: 0; }
.bc .bc-step-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rule); color: var(--evergreen);
  display: inline-flex; align-items: center; justify-content: center; }
.bc .bc-step-mark svg { display: none; width: 14px; height: 14px; }
.bc .bc-step-text { flex: 1; }
.bc .bc-step-count { flex: none; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bc .bc-steps li.is-active { color: var(--ink); font-weight: 600; }
.bc .bc-steps li.is-active .bc-step-mark { border-color: var(--green); }
.bc .bc-steps li.is-done { color: var(--ink); }
.bc .bc-steps li.is-done .bc-step-mark { border-color: var(--green); background: var(--green); }
.bc .bc-steps li.is-done .bc-step-mark svg { display: block; }
.bc .bc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Details / fine print ------------------------------------------------- */
.bc details { margin: 16px 0 0; }
.bc summary { cursor: pointer; color: var(--ink-2); font-size: 15px; }
.bc .bc-raw { border-left: 2px solid var(--sage); padding: 8px 12px; margin: 12px 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; color: var(--ink-2); }
.bc .bc-raw b { color: var(--ink); }
.bc .bc-fine { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 40px 0 0; }
.bc .bc-tagline { display: block; margin: 28px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* Loading screen: spinning ring on steps in progress, and a live line that fades between messages */
.bc .bc-steps li.is-active .bc-step-mark { border-color: var(--mint); border-top-color: var(--green); animation: bc-spin 0.9s linear infinite; }
@keyframes bc-spin { to { transform: rotate(360deg); } }
.bc .bc-live { display: block; min-height: 48px; margin: 12px auto 0; text-align: center;
  font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 520px; }
/* the dot sits just before the first word, so it stays with the text when a long question wraps */
.bc .bc-live-dot { display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin: -3px 8px 0 0; border-radius: 50%;
  background: var(--green); animation: bc-pulse 1.4s ease-in-out infinite; }
@keyframes bc-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.bc .bc-live-text.is-in { animation: bc-fade-in 0.45s ease; }
@keyframes bc-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bc .bc-progress i { transition: width 250ms linear; }
@media (prefers-reduced-motion: reduce) {
  .bc .bc-steps li.is-active .bc-step-mark, .bc .bc-live-dot, .bc .bc-live-text.is-in { animation: none; }
}

/* Results offer panel: today vs the goal, their own question answered with them in the names, and the guarantee */
.bc .bc-goal { max-width: 440px; margin: 22px auto 0; }
.bc .bc-goal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; }
.bc .bc-goal-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.bc .bc-goal-chip.is-today { background: rgba(255, 255, 255, .1); color: #FCA5A5; border: 1px solid rgba(252, 165, 165, .35); }
.bc .bc-goal-chip.is-target { background: var(--green); color: var(--evergreen); }
.bc .bc-goal-arrow { color: rgba(255, 255, 255, .6); font-weight: 700; }
.bc .bc-goal-card { background: #FFFFFF; color: var(--ink); border-radius: 16px; padding: 14px; text-align: left;
  box-shadow: 0 12px 30px -12px rgba(34, 197, 94, .45); }
.bc .bc-goal-q { margin: 0 0 10px auto; max-width: 88%; width: fit-content; padding: 9px 13px; border-radius: 14px 14px 4px 14px;
  background: var(--evergreen); color: #FFFFFF; font-size: 14px; line-height: 1.35; }
.bc .bc-goal-list { list-style: none; counter-reset: goal; margin: 0; padding: 0; display: grid; gap: 6px; }
.bc .bc-goal-list li { counter-increment: goal; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--warm-grey); font-size: 15px; color: var(--ink-2); }
.bc .bc-goal-list li::before { content: counter(goal) "."; font-weight: 700; color: var(--ink-2); min-width: 16px; }
.bc .bc-goal-list li.is-you { background: var(--mint); border: 2px solid var(--green); color: var(--evergreen); font-weight: 700; }
.bc .bc-goal-list li.is-you::before { color: var(--green-ink); }
.bc .bc-goal-name { flex: 1; min-width: 0; }
.bc .bc-goal-you { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--green); color: var(--evergreen); font-size: 12px; font-weight: 700; }
.bc .bc-panel-ink .bc-guarantee-line { display: block; max-width: 34ch; margin: -6px auto 16px; text-align: center;
  font-size: 15px; font-weight: 600; line-height: 1.45; color: #FFFFFF; }
.bc .bc-guarantee-line svg { display: inline-block; vertical-align: -4px; width: 19px; height: 19px; margin-right: 6px; color: var(--green); }
.bc .bc-panel-ink .bc-stat-line { max-width: 46ch; margin: 16px auto 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
