/* =========================================================
   GO GREEN — BNI Score Optimizer (Candid Digital)
   White + Candid green. BNI zone colours for familiarity.
   Mobile-first: base styles are for ~360px phones.
   ========================================================= */

:root {
  --green: #1FAE5C;
  --green-dark: #13773F;
  --green-mid: #8FD9AE;
  --green-soft: #E3F5EA;
  --green-softer: #F2FAF5;

  --z-grey: #8C8C8C;
  --z-red: #CF2030;
  --z-amber: #F2A900;
  --z-green: #1FAE5C;

  --red-text: #B0172A;
  --red-bg: #FDECEE;

  --wa: #25D366;
  --wa-dark: #128C4B;

  --text: #10201A;
  --text-2: #4A5A52;
  --text-3: #7C8A83;
  --border: #E3ECE7;
  --border-2: #CFE0D6;
  --bg-soft: #F6FAF8;
  --track: #E6ECE8;

  --font-h: 'Outfit', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --sticky-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: #fff; color: var(--text);
  font-family: var(--font-b); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Header ============ */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px);
}
.app-header__inner { max-width: 720px; margin: 0 auto; height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.brand-mark__logo { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand-mark__text { font-family: var(--font-h); font-weight: 700; font-size: 16px; color: var(--text); }
.brand-mark__accent { color: var(--green); }
.tagline { text-align: right; line-height: 1.05; }
.tagline__main { font-family: var(--font-h); font-weight: 800; font-size: 20px; color: var(--green); letter-spacing: .02em; }
.tagline__sub { font-size: 10.5px; font-weight: 700; color: var(--z-red); letter-spacing: .04em; text-transform: uppercase; }

/* ============ Layout & Animations ============ */
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.97) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-main { max-width: 720px; margin: 0 auto; padding: 12px 10px 20px; display: flex; flex-direction: column; gap: 12px; }
.card { 
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px 12px; 
  box-shadow: 0 1px 3px rgba(16,32,26,.05), 0 6px 16px rgba(16,32,26,.04); 
  animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* ============ Hero & Upload ============ */
.home-view { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 16px; }
.home__intro { text-align: left; }
.home-view h2 { font-family: var(--font-h); font-weight: 800; color: var(--green-dark); font-size: 22px; line-height: 1.2; }
.home-view p.subtitle { color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* Two big app-style action tiles, side by side, always above the fold */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 112px; padding: 14px; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--border-2);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  -webkit-user-select: none; user-select: none;
}
.action svg { width: 26px; height: 26px; color: var(--green-dark); }
.action b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.action small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.action:active { transform: scale(.97); }
.action:hover { border-color: var(--green); }
.action--primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; box-shadow: 0 6px 16px -6px rgba(19,119,63,.55); }
.action--primary svg { color: #fff; }
.action--primary small { color: rgba(255,255,255,.8); }
.action--primary:hover { background: #0F5F32; border-color: #0F5F32; }
.action.drag-over { outline: 3px dashed var(--green); outline-offset: 3px; }

.loading { flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.loading .spinner { width: 22px; height: 22px; border-width: 3px; }
.loading p { font-size: 13px; font-weight: 600; color: var(--green-dark); }

.demo-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.demo-line strong { color: var(--text-2); }
.demo-line__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.stats { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.stat--plan { background: var(--green-softer); border-color: var(--border-2); }
.stat__label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.stat__value { font-family: var(--font-h); font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat--plan .stat__value { font-size: 34px; }
.stat__zone { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.stat__zone i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Target slider (track = BNI zones) */
.target { margin-bottom: 10px; }
.target__track-wrap { position: relative; padding-top: 16px; }
.today-marker {
  --p: 41; position: absolute; top: 0; left: calc(var(--p) * (100% - 30px) / 100 + 15px);
  transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--text-2); white-space: nowrap;
}
.today-marker::after { content: ''; position: absolute; left: 50%; top: 13px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--text-2); }
.target-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; touch-action: pan-y; margin: 0; }
.target-slider::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(to right, var(--z-grey) 0 30%, var(--z-red) 30% 50%, var(--z-amber) 50% 70%, var(--z-green) 70% 100%); }
.target-slider::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(to right, var(--z-grey) 0 30%, var(--z-red) 30% 50%, var(--z-amber) 50% 70%, var(--z-green) 70% 100%); }
.target-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.target-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--text); }
.zone-scale { display: grid; grid-template-columns: 30fr 20fr 20fr 30fr; margin-top: -6px; font-size: 11px; font-weight: 700; color: var(--text-3); text-align: center; padding: 0 15px; }

/* Timeline — segmented control */
.timeline { margin-bottom: 12px; }
.months { 
  display: flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 99px; padding: 3px;
  position: relative;
}
.month {
  flex: 1; min-height: 40px; border: none; background: transparent; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; line-height: 1.1;
  position: relative; z-index: 2;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.month small { display: block; font-size: 9.5px; font-weight: 600; color: var(--text-3); transition: color 0.3s ease; }
.month[aria-checked="true"] { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(31,174,92,.35); }
.month[aria-checked="true"] small { color: rgba(255,255,255,.85); }

@supports selector(:has(*)) {
  .months::before {
    content: '';
    position: absolute;
    top: 3px; bottom: 3px;
    width: calc((100% - 6px) / 6);
    background: var(--green);
    border-radius: 99px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(31,174,92,.35);
    z-index: 1;
  }
  .months:has(.month[data-m="1"][aria-checked="true"])::before { transform: translateX(0%); }
  .months:has(.month[data-m="2"][aria-checked="true"])::before { transform: translateX(100%); }
  .months:has(.month[data-m="3"][aria-checked="true"])::before { transform: translateX(200%); }
  .months:has(.month[data-m="4"][aria-checked="true"])::before { transform: translateX(300%); }
  .months:has(.month[data-m="5"][aria-checked="true"])::before { transform: translateX(400%); }
  .months:has(.month[data-m="6"][aria-checked="true"])::before { transform: translateX(500%); }
  
  .month[aria-checked="true"] {
    background: transparent;
    box-shadow: none;
  }
}

/* Status */
.status { border-radius: 14px; padding: 11px 12px; background: var(--green-soft); border: 1.5px solid var(--green); }
.status__head { display: flex; align-items: center; gap: 8px; }
.status__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.status__title { font-family: var(--font-h); font-size: 17px; font-weight: 800; color: var(--green-dark); line-height: 1.2; }
.status__detail { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.status__detail:empty { display: none; }
.status__detail strong { color: var(--text); }
.status.is-bad { background: var(--red-bg); border-color: var(--z-red); }
.status.is-bad .status__icon { background: var(--z-red); }
.status.is-bad .status__title { color: var(--red-text); }
.status.flash { animation: flash .5s ease; }
@keyframes flash { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.todo { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.todo:empty { display: none; }
.todo li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13.5px; background: #fff; border-radius: 10px; padding: 7px 10px; }
.todo__what { font-weight: 700; }
.todo__what small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.todo__month { font-weight: 800; color: var(--green-dark); white-space: nowrap; text-align: right; }
.todo__month small { display: block; font-weight: 600; font-size: 11px; color: var(--text-3); }

/* ============ Activities ============ */
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.act-head h2 { font-family: var(--font-h); font-size: 18px; font-weight: 800; }
.key { display: flex; gap: 10px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.key span { display: inline-flex; align-items: center; gap: 4px; }
.key i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.key__have { background: var(--green-dark); }
.key__add { background: var(--green-mid); }
.act-hint { font-size: 12.5px; color: var(--text-3); margin: 2px 0 8px; }

.seg-list { display: flex; flex-direction: column; gap: 4px; }
.seg { 
  padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 10px; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.seg:nth-child(1) { animation-delay: 0.15s; }
.seg:nth-child(2) { animation-delay: 0.22s; }
.seg:nth-child(3) { animation-delay: 0.29s; }
.seg:nth-child(4) { animation-delay: 0.36s; }
.seg:nth-child(5) { animation-delay: 0.43s; }
.seg:nth-child(6) { animation-delay: 0.50s; }
.seg:last-child { border-bottom: none; }
.seg:hover { background-color: #f8fafc; transform: translateX(4px) translateY(-1px); box-shadow: -4px 4px 12px rgba(0,0,0,0.04); border-color: transparent; }
.seg.is-off .seg__name, .seg.is-off .bar, .seg.is-off .seg__pts { opacity: .45; }
.seg.is-needed .seg__name::after { content: 'needed'; margin-left: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--z-red); padding: 1px 6px; border-radius: 99px; vertical-align: 2px; font-family: var(--font-b); }

.seg__head { display: flex; align-items: center; gap: 8px; }
.seg__name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.2; }
.seg__pts { flex-shrink: 0; font-family: var(--font-h); font-weight: 800; white-space: nowrap; font-size: 17px; }
.seg__pts .arrow { color: var(--text-3); font-size: 13px; margin: 0 2px; }
.seg__pts .plan { color: var(--green); }
.seg__pts .max { font-family: var(--font-b); font-size: 12px; font-weight: 600; color: var(--text-3); }

/* On/off switch — 44px touch area */
.switch { flex-shrink: 0; position: relative; width: 50px; height: 44px; background: none; border: none; cursor: pointer; margin-right: -4px; }
.switch::before { content: ''; position: absolute; left: 3px; top: 10px; width: 44px; height: 24px; border-radius: 99px; background: #C9D1CC; transition: background .2s; }
.switch::after { content: ''; position: absolute; left: 6px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch[aria-checked="true"]::before { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Level bar with − / + */
.bar-row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.step {
  flex-shrink: 0; width: 40px; height: 44px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.step span {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-2); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--green-dark); line-height: 1;
}
.step:disabled { cursor: default; }
.step:disabled span { color: #C6CFCA; border-color: var(--border); }
.step:not(:disabled):active span { background: var(--green-soft); }

.bar { flex: 1; min-width: 0; padding: 0 4px; }
.bar__segs { display: flex; gap: 3px; height: 10px; }
.bar__seg { flex: 1; background: var(--track); border-radius: 2px; transition: background .2s; }
.bar__seg:first-child { border-radius: 99px 2px 2px 99px; }
.bar__seg:last-child { border-radius: 2px 99px 99px 2px; }
.bar__seg:only-child { border-radius: 99px; }
.bar__seg.is-have { background: var(--green-dark); }
.bar__seg.is-add { background: var(--green-mid); }
.bar__labels { display: flex; justify-content: space-between; margin-top: 4px; }
.bar__labels span { width: 0; display: flex; justify-content: center; font-size: 10.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.bar__labels span.is-now { color: var(--text); font-weight: 800; }
.bar__labels span.is-plan { color: var(--green-dark); font-weight: 800; }

.seg__req { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.seg__req b { color: var(--text); }
.seg__req .do { color: var(--green-dark); font-weight: 700; }
.seg__req .ok { color: var(--green-dark); font-weight: 600; }
.seg__req .warn { color: var(--red-text); font-weight: 700; }
.seg__req .muted { color: var(--text-3); }
.seg__req .undo { background: none; border: none; color: var(--text-2); text-decoration: underline; font-size: 12.5px; cursor: pointer; padding: 4px 2px; }

.footnote { font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.reset-btn { display: block; margin: 6px auto 0; background: rgba(220, 38, 38, 0.1); border: 1px solid transparent; color: #dc2626; font-size: 13px; font-weight: 700; text-decoration: none; min-height: 44px; border-radius: 12px; padding: 0 24px; cursor: pointer; transition: all 0.2s ease; }
.reset-btn:hover { background: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); transform: translateY(-1px); }
.reset-btn:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2); }

.start-over-btn { background: rgba(220, 38, 38, 0.1); border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer; color: #dc2626; transition: all 0.2s ease; }
.start-over-btn:hover { background: #dc2626; color: #fff; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); transform: translateY(-1px); }
.start-over-btn:active { transform: translateY(0); }

/* ============ Contact ============ */
.contact { text-align: center; background: linear-gradient(170deg, var(--green-soft), #fff 65%); border-color: var(--border-2); }
.contact__logo { width: 44px; height: 44px; border-radius: 11px; display: block; margin: 2px auto 8px; }
.contact h2 { font-family: var(--font-h); font-size: 20px; font-weight: 800; }
.contact__copy { font-size: 13.5px; color: var(--text-2); margin: 2px 0 12px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.c-btn {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px;
  border-radius: 14px; border: 1.5px solid var(--border-2); background: #fff; text-decoration: none; color: var(--text);
  transition: all .2s;
}
.c-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -3px rgba(0,0,0,0.1);
}
.c-btn:active { transform: scale(.98); }
.c-btn__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--green-dark); }
.c-btn span { min-width: 0; line-height: 1.2; }
.c-btn b { display: block; font-size: 14px; }
.c-btn small { display: block; font-size: 11px; color: var(--text-3); overflow-wrap: anywhere; }
.c-btn--wa, .c-btn--wide { grid-column: 1 / -1; justify-content: center; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.c-btn--wa { 
  background: var(--wa); border-color: var(--wa); color: #fff; 
  animation: pulseRing 2.5s infinite;
}
.c-btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(37, 211, 102, 0.4);
  animation: none; /* stop pulse on hover */
}
.c-btn--wa b { font-size: 16px; }
.c-btn--wa .c-btn__icon { color: #fff; }
.c-btn--wa small { color: rgba(255,255,255,.9); }

/* ============ Footer ============ */
.app-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 18px 14px 20px; text-align: center; }
.app-footer__logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.app-footer__sep { width: 1px; height: 36px; background: var(--border-2); }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo__img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.footer-logo__text { font-family: var(--font-h); font-weight: 700; font-size: 16px; color: var(--text); }
.footer-logo__accent { color: var(--green); }
.bni-logo-svg { width: 84px; height: auto; display: block; }
.app-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-bottom: 8px; }
.app-footer__links a { font-size: 13px; font-weight: 600; color: var(--green-dark); text-decoration: none; padding: 6px 0; }
.app-footer__credit { font-size: 12px; color: var(--text-3); }
.app-footer .heart { color: var(--green); }

/* ============ Wider screens ============ */
@media (min-width: 600px) {
  .app-main { padding: 18px 16px 28px; gap: 16px; }
  .card { padding: 18px; }
  .stat__value { font-size: 34px; }
  .stat--plan .stat__value { font-size: 40px; }
  .contact__grid { grid-template-columns: repeat(4, 1fr); }
  .c-btn--wa, .c-btn--wide { grid-column: auto; }
  .c-btn { flex-direction: column; text-align: center; justify-content: center; padding: 12px 8px; }
}
@media (min-width: 600px) {
  .home-view { padding: 24px 22px 20px; }
  .home-view h2 { font-size: 26px; }
  .action { min-height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============ Web Camera and Modals ============ */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spinner { border: 3px solid var(--border); border-top: 3px solid var(--green); border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; }
.webcam-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.webcam-modal.active { display: flex; }
.webcam-content { background: #fff; width: 100%; max-width: 400px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.webcam-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.webcam-body { position: relative; background: #000; width: 100%; height: 300px; display: flex; align-items: center; justify-content: center; }
.webcam-footer { padding: 15px; display: flex; justify-content: center; background: var(--bg-soft); border-top: 1px solid var(--border); }

/* ============ Custom Alert ============ */
.custom-alert { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-100px); background: rgba(207,32,48,0.95); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0; pointer-events: none; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; font-size: 14px; max-width: 90%; text-align: center; }
.custom-alert.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.alert-icon { width: 20px; height: 20px; flex-shrink: 0; }

#home-view, #dashboard-view { transition: opacity 0.3s ease; }


/* ============ Screenshot guide ============ */
/* Checklist on the left, example screenshot always visible on the right */
.guide {
  width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 28%, 112px); gap: 12px; align-items: center;
  text-align: left; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
}
.guide__text { min-width: 0; }
.guide__title { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.guide__list { list-style: none; counter-reset: g; display: flex; flex-direction: column; gap: 10px; }
.guide__list li { counter-increment: g; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; font-size: 14px; line-height: 1.25; }
.guide__list li::before {
  content: counter(g); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--z-red); color: #fff;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.guide__list b { color: var(--text); font-weight: 700; }
.guide__list span { grid-column: 2; color: var(--text-3); font-size: 12px; }
.guide__tip { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.guide__shot { position: relative; display: block; width: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); background: #fff; box-shadow: 0 4px 12px -4px rgba(16,32,26,.18); }
.guide__shot img { display: block; width: 100%; height: auto; }
.guide__shot span {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 99px;
  background: rgba(16,32,26,.78); color: #fff; font-size: 10.5px; font-weight: 700;
}
@media (min-width: 600px) { .guide { grid-template-columns: minmax(0, 1fr) 150px; } }

/* Demo mode banner (only on ?id=demo) */
.demo-banner {
  display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px;
  background: #FFF4D6; color: #6B4A00; font-size: 12.5px; border: 1px solid #F5DD9B;
}
.demo-banner[hidden], .btn-ghost[hidden] { display: none; }
.demo-banner b { background: var(--z-amber); color: #2B1D00; padding: 1px 8px; border-radius: 99px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }

/* ============ Demo button ============ */
.btn-ghost {
  align-self: center; margin-top: -6px;
  background: none; border: none; cursor: pointer; min-height: 44px; padding: 8px 12px;
  font-size: 13px; color: var(--text-2); border-radius: 10px;
}
.btn-ghost b { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { background: var(--green-softer); }

/* ============ Hire Candid Digital pitch ============ */
.pitch {
  background: linear-gradient(160deg, #10201A 0%, #13392A 100%); color: #fff; border: none;
  padding: 20px 18px;
}
.pitch__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-mid); }
.pitch__title { font-family: var(--font-h); font-size: 21px; font-weight: 800; line-height: 1.2; margin: 4px 0 8px; }
.pitch__copy { font-size: 13.5px; color: rgba(255,255,255,.85); }
.pitch__list { list-style: none; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.pitch__list li { position: relative; padding-left: 22px; font-size: 13.5px; font-weight: 600; }
.pitch__list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-mid); font-weight: 800; }
.pitch__cta {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 12px; background: var(--green-dark); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.pitch__cta svg { width: 20px; height: 20px; }
.pitch__cta { box-shadow: inset 0 0 0 1px rgba(143,217,174,.35); }
.pitch__cta:hover { background: #0F5F32; transform: translateY(-1px); }
.pitch__person { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.pitch__person img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.pitch__person b { display: block; font-size: 15px; }
.pitch__person small { display: block; font-size: 12px; color: var(--green-mid); }
.pitch__person + .pitch__cta { margin-top: 12px; background: #0E7A40; }
.pitch__person + .pitch__cta:hover { background: #0B6534; }
.pitch__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pitch__links a {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
}
.pitch__links a:hover { background: rgba(255,255,255,.12); }
.pitch__links svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-mid); }
.pitch__links a { gap: 7px; padding: 8px; font-size: 12.5px; }
.pitch__links span { min-width: 0; white-space: nowrap; line-height: 1.2; }
.pitch__links small { display: block; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }
