:root {
  --ink: #0D0F1C;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #ECEEF7;
  --ink-soft: #C9CCDD;
  --ink-muted: #8D93AE;

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --line: #E6E8EC;
  --line-2: #D7DAE0;
  --text: #0F1117;
  --muted: #667085;
  --subtle: #98A2B3;

  --brand: #5B5CEB;
  --brand-2: #7A5CFA;
  --brand-soft: #EFEFFE;
  --green: #1F9D55;
  --green-soft: #E7F6EE;
  --amber: #D97706;
  --amber-soft: #FEF3E2;
  --red: #DC4A4A;
  --red-soft: #FDECEC;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --sh-3: 0 30px 80px -24px rgba(13, 15, 28, .35), 0 10px 30px -10px rgba(13, 15, 28, .18);

  /* One fixed look on purpose: the mock has to match Pulse's light product UI, so no dark variant. */
  --canvas-1: #E9EBF1;
  --canvas-2: #DDE0E8;
  color-scheme: light;

}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas-1) linear-gradient(160deg, var(--canvas-1), var(--canvas-2));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.ic { flex: none; display: block; }

/* ---------- Shell ---------- */
.shell {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  height: 100%;
  transition: grid-template-columns .35s cubic-bezier(.2, .8, .2, 1);
}
.shell.hide-notes { grid-template-columns: 0 minmax(0, 1fr); }
.shell.hide-notes .notes { visibility: hidden; }

/* ---------- Notes panel ---------- */
.notes {
  background:
    radial-gradient(900px 420px at -20% -10%, rgba(91, 92, 235, .28), transparent 60%),
    var(--ink);
  color: var(--ink-text);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.notes-head { padding: 24px 28px 4px max(28px, env(safe-area-inset-left, 0px)); }
.notes-brand { display: flex; gap: 10px; align-items: center; }
.notes-brand strong { display: block; font-size: 14px; }
.notes-brand span { display: block; font-size: 12px; color: var(--ink-muted); }

.logo {
  width: 30px; height: 30px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.step-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.step-list button {
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; gap: 8px; text-align: left; color: var(--ink-muted);
}
.step-list i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .25s; }
.step-list span { font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-list button.done i { background: var(--brand-2); }
.step-list button.active i { background: #fff; }
.step-list button.active span { color: #fff; }
.step-list button:hover span { color: var(--ink-soft); }

.notes-body { flex: 1; overflow: auto; padding: 36px 28px 24px max(28px, env(safe-area-inset-left, 0px)); }
.notes-body.in > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.notes-body.in > *:nth-child(2) { animation-delay: .04s; }
.notes-body.in > *:nth-child(3) { animation-delay: .08s; }
.notes-body.in > *:nth-child(4) { animation-delay: .12s; }
.notes-body.in > *:nth-child(5) { animation-delay: .16s; }

.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ABA8FF; font-weight: 600; }
.notes-body h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 22px; font-weight: 700; color: #fff; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: pt; }
.points li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); counter-increment: pt; }
.points li::before {
  content: counter(pt);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.points strong { color: #fff; font-weight: 600; }
.points a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: #ABA8FF; text-underline-offset: 3px; }
.points a:hover { color: #ABA8FF; }

.say {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px;
  background: rgba(122, 92, 250, .14); border: 1px solid rgba(122, 92, 250, .32);
  font-size: 16px; line-height: 1.45; color: #fff; font-weight: 500;
}
.say span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ABA8FF; font-weight: 600; margin-bottom: 6px; }
.tip { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); display: flex; gap: 8px; align-items: flex-start; }
.tip .ic { margin-top: 2px; }

.notes-nav { display: flex; gap: 10px; padding: 16px 28px 24px max(28px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--ink-line); }
.nbtn {
  height: 46px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  padding: 0 18px; font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, opacity .15s, transform .1s;
}
.nbtn:active { transform: translateY(1px); }
.nbtn.ghost { background: transparent; color: var(--ink-text); border-color: rgba(255, 255, 255, .16); width: 52px; padding: 0; font-size: 18px; }
.nbtn.ghost:hover { background: rgba(255, 255, 255, .06); }
.nbtn.primary { flex: 1; background: #fff; color: var(--ink); }
.nbtn.primary:hover { background: #E9EAF6; }
.nbtn:disabled { opacity: .3; cursor: default; }

/* ---------- Browser frame ---------- */
.stage { padding: 20px max(20px, env(safe-area-inset-right, 0px)) 20px 20px; min-width: 0; min-height: 0; display: flex; }
.browser {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden; background: var(--bg);
  box-shadow: var(--sh-3); border: 1px solid rgba(13, 15, 28, .08);
}
.chrome { flex: none; height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #FBFBFC; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; width: 120px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.urlbar {
  flex: 1; max-width: 480px; margin: 0 auto; height: 28px; border-radius: 8px;
  background: #EEF0F3; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); min-width: 0;
}
.urlbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-toggle { width: 120px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; height: 28px; padding: 0 10px; cursor: pointer; }
.notes-toggle:hover { color: var(--text); }
.viewport { flex: 1; overflow: auto; min-height: 0; position: relative; }

.screen { display: none; min-height: 100%; }
.screen.active { display: block; animation: fade .4s ease both; }

/* ---------- App chrome ---------- */
.appbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 20px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.appbar[hidden] { display: none; }
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.app-brand strong { display: block; font-size: 14px; }
.app-brand div > span { display: block; font-size: 12px; color: var(--muted); }
.ask {
  flex: 1; max-width: 620px; height: 38px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  color: var(--subtle); font-size: 14px; background: #fff; min-width: 0;
}
.ask span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask kbd { margin-left: auto; font: inherit; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: #F7F8FA; }
.ws { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; font-weight: 500; background: #fff; margin-left: auto; white-space: nowrap; }
.ws-ico { width: 16px; height: 12px; border-radius: 3px; background: linear-gradient(#5D6170, #3D404C); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #3BA7A0, #2C7DA0); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }

.page { max-width: 1120px; margin: 0 auto; padding: 28px 32px 64px; }
.greet { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.greet h2 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.date { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: #fff; color: var(--text);
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.btn:hover { background: #F7F8FA; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(91, 92, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn.primary:hover { background: #4D4EDC; }
.btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn.dark:hover { background: #2A2D38; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; height: 48px; font-size: 15px; }
.ghost-btn { border-color: transparent; background: transparent; color: var(--muted); }

.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: #067647; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 8px; }

/* ---------- 1. Sign up ---------- */
#screen-signup.active { display: flex; flex-direction: column; }
.signup { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; }
.signup-pitch {
  position: relative; overflow: hidden; padding: 44px 52px; color: #fff;
  background:
    radial-gradient(600px 400px at 110% 110%, rgba(122, 92, 250, .55), transparent 60%),
    radial-gradient(500px 300px at -10% 0%, rgba(59, 130, 246, .25), transparent 60%),
    linear-gradient(160deg, #14162F 0%, #24236A 60%, #3E36B0 100%);
  display: flex; flex-direction: column;
}
.pitch-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.signup-pitch h1 { font-size: 42px; line-height: 1.06; letter-spacing: -.035em; margin: 56px 0 18px; font-weight: 700; max-width: 15ch; }
.signup-pitch h1 em { font-style: normal; background: linear-gradient(90deg, #C9C3FF, #9FD3FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signup-pitch p { color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.55; max-width: 44ch; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: rgba(255, 255, 255, .92); }
.ticks li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.works-with { margin-top: auto; padding-top: 40px; display: flex; align-items: center; gap: 14px; }
.works-with > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.ww-logos { display: flex; gap: 8px; }
.ww-logos span { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.ww-logos svg { width: 26px; height: 26px; }

.signup-form-wrap { display: grid; place-items: center; padding: 48px 40px; background: #fff; }
.signup-form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.signup-form h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; }
.signup-form p { margin: 0; }
.signup-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: #344054; }
.signup-form input, .signup-form select {
  height: 44px; width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px;
  font: inherit; font-size: 15px; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.signup-form input:focus, .signup-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 92, 235, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.paths { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup-form .path { display: block; position: relative; cursor: pointer; }
.path input { position: absolute; opacity: 0; pointer-events: none; }
.path-body {
  display: grid; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.path-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.path-top b { font-size: 14px; color: var(--text); }
.path-top em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand); }
.path-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.path:hover .path-body { border-color: var(--subtle); }
.path input:checked + .path-body { border-color: var(--brand); background: #FAFAFF; box-shadow: 0 0 0 3px rgba(91, 92, 235, .15); }
.path input:focus-visible + .path-body { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: #067647; font-size: 13px; line-height: 1.45; }
.guarantee .ic { margin-top: 1px; }
.guarantee strong { display: block; color: #05603A; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }
.fine a { color: var(--brand); text-decoration: none; font-weight: 500; }

/* ---------- 2. Connect ---------- */
.connect { max-width: 860px; margin: 52px auto 0; text-align: center; }
.connect h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 700; }
.connect > p { margin: 0; font-size: 15px; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; text-align: left; }
.cc {
  display: flex; align-items: center; gap: 16px; padding: 22px; min-height: 108px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1);
  transition: border-color .25s, box-shadow .25s;
}
.cc .lg { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.cc .lg svg { width: 46px; height: 46px; }
.cc h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.cc p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.cc .act { margin-left: auto; }
.cc.connected { border-color: #BFE6CF; box-shadow: 0 0 0 4px var(--green-soft); }
.cc.connected .pill { animation: pop .35s cubic-bezier(.2, .8, .2, 1.4) both; }
.connect-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px;
  padding: 14px 16px 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.connect-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.bar { width: 160px; height: 6px; border-radius: 99px; background: #EEF0F3; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.soon { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.soon span { padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 99px; }

/* ---------- 3. Audit ---------- */
.audit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.audit-head h1 { font-size: 30px; letter-spacing: -.025em; margin: 10px 0 0; line-height: 1.15; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(91, 92, 235, .5); animation: ping 1.4s infinite; }
.eyebrow.done { color: var(--green); }
.eyebrow.done .pulse-dot { background: var(--green); animation: none; }
.audit-stats { display: flex; gap: 10px; }
.audit-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 112px; }
.k { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.audit-stats strong { font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.audit-stats .waste strong { color: var(--red); }
.progress { height: 6px; border-radius: 99px; background: #E6E8EE; margin: 22px 0 22px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s; }
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ag { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-1); }
.ag-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.ag-head svg { width: 24px; height: 24px; }
.ag-head strong { font-size: 15px; }
.ag-state { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ag-state.bad { color: var(--red); }
.ag-state.ok { color: var(--green); }
.chk { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid #F1F2F5; color: var(--subtle); transition: color .2s, background .3s; }
.chk:last-child { border-bottom: 0; }
.chk .st { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.chk .st .spin { width: 14px; height: 14px; color: var(--brand); }
.chk .lbl { min-width: 0; }
.chk .res { margin-left: auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chk.running { color: var(--text); background: #FAFAFF; }
.chk.running .st { border: 0; }
.chk.running .res { color: var(--subtle); font-weight: 500; }
.chk.ok { color: var(--text); }
.chk.ok .st { background: var(--green-soft); color: var(--green); border: 0; animation: pop .3s both; }
.chk.ok .res { color: var(--green); }
.chk.bad { color: var(--text); background: #FFFAFA; }
.chk.bad .st { background: var(--red-soft); color: var(--red); border: 0; animation: pop .3s both; }
.chk.bad .res { color: var(--red); }
.audit-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* ---------- 4. Results ---------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; margin-top: 22px; }
.hero-main {
  border-radius: 16px; padding: 22px 24px; color: #fff;
  background: radial-gradient(400px 200px at 100% 0%, rgba(122, 92, 250, .55), transparent 70%), linear-gradient(135deg, #15173A, #2F2A8E);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.hero-main .k { color: rgba(255, 255, 255, .7); }
.big { font-size: 46px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 18px; font-weight: 500; opacity: .7; letter-spacing: 0; margin-left: 2px; }
.hero-main .sub { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sh-1); }
.stat .v { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin-top: 8px; line-height: 1.1; }
.stat .v.warn { color: var(--red); }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 6px; }

.section-h { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-h h2 { font-size: 22px; margin: 0; letter-spacing: -.015em; }
.section-h .meta { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.section-h .meta b { color: var(--red); font-weight: 600; }
.ch-logo { width: 28px; height: 28px; display: grid; place-items: center; }
.ch-logo svg { width: 26px; height: 26px; }

.ch-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.score { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut .trk { stroke: #ECEEF2; }
.donut .val { stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.donut .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 13px; color: var(--muted); }
.donut .lbl b { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; display: block; }
.legend { display: grid; gap: 16px; }
.legend div { border-left: 3px solid; padding-left: 10px; }
.legend b { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.legend span { font-size: 13px; color: var(--muted); }

.issues { display: grid; gap: 10px; }
.issue { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.issue:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.issue-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
.iico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.iico.red { background: var(--red-soft); color: var(--red); }
.iico.amber { background: var(--amber-soft); color: var(--amber); }
.it { min-width: 0; flex: 1; }
.it b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.it span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.impact { flex: none; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.impact.money { background: var(--red-soft); color: #B42318; }
.impact.tag { background: #F2F4F7; color: #475467; }
.chev { color: var(--subtle); transition: transform .2s; flex: none; }
.issue.open .chev { transform: rotate(90deg); }
.fix { display: none; border-top: 1px dashed var(--line); padding: 14px 16px 16px 72px; position: relative; }
.issue.open .fix { display: block; animation: fade .25s both; }
.fix-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--subtle); margin-bottom: 6px; }
.fix .blur { filter: blur(5px); user-select: none; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.lockover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lockbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px;
  background: var(--text); color: #fff; border: 0; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(15, 17, 23, .5);
}
.lockbtn:hover { background: #2A2D38; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--sh-1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 18px; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid #F1F2F5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.agency { display: flex; align-items: center; gap: 12px; }
.agency .ch-logo { width: 34px; height: 34px; border-radius: 9px; background: #F6F7F9; border: 1px solid var(--line); }
.agency .ch-logo svg { width: 20px; height: 20px; }
.agency b { display: block; font-weight: 600; }
.agency span { display: block; font-size: 12.5px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.activity { display: flex; align-items: center; gap: 14px; }
.activity b { display: block; font-weight: 600; }
.activity span { display: block; font-size: 12.5px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 24px; flex: none; }
.spark i { width: 6px; border-radius: 2px; background: var(--brand); display: block; min-height: 2px; }
.spark.low i { background: #F3A3A3; }
.spark i.zero { background: #E4E7EC; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.verdict.low { background: var(--red-soft); color: #B42318; }
.verdict.ok { background: var(--green-soft); color: #067647; }
.verdict-note { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.foot-note { font-size: 12.5px; color: var(--subtle); margin: 10px 2px 0; }

.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; padding: 0; color: inherit; transition: transform .15s, box-shadow .15s; }
.dash:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.dash .art { height: 124px; position: relative; display: grid; place-items: center; overflow: hidden; }
.dash .art svg.chart { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(1.5px); opacity: .5; }
.dash .lockpill { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, .22); backdrop-filter: blur(4px); }
.dash .dmeta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash .dmeta b { font-size: 14px; font-weight: 600; }
.dash .dmeta span { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--muted); background: #F2F4F7; border-radius: 5px; padding: 3px 7px; white-space: nowrap; }

.upsell {
  position: sticky; bottom: 16px; z-index: 4; margin-top: 36px;
  display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px;
  background: rgba(15, 17, 23, .96); color: #fff; border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(15, 17, 23, .55);
}
.upsell .ic { color: #ABA8FF; }
.upsell div { flex: 1; min-width: 0; }
.upsell strong { display: block; font-size: 14.5px; }
.upsell span { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.upsell .btn.primary { box-shadow: none; }

/* ---------- 5. Plans ---------- */
.plans-head { text-align: center; max-width: 720px; margin: 12px auto 36px; }
.plans-head .eyebrow { justify-content: center; }
.plans-head h1 { font-size: 38px; letter-spacing: -.03em; margin: 10px 0 10px; line-height: 1.1; }
.plans-head p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.plans-head p strong { color: var(--red); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; position: relative; box-shadow: var(--sh-1); }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-2); }
.plan .badge { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plan .tl { font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; line-height: 1.4; min-height: 38px; }
.price { font-size: 38px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.involve { display: flex; align-items: center; gap: 4px; margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.involve i { width: 18px; height: 6px; border-radius: 99px; background: #E9EBF0; }
.involve i.on { background: var(--brand); }
.involve em { font-style: normal; margin-left: 6px; }
.credits { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.credits b { font-weight: 700; font-variant-numeric: tabular-nums; }
.credits-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.credits-note .ic { color: var(--brand); margin-top: 2px; }
.credits-note strong { color: var(--text); }
.plan .ev { font-size: 12.5px; font-weight: 600; margin: 20px 0 0; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.plan li .ic { color: var(--green); margin-top: 2px; }
.plan li.perk { color: var(--brand); font-weight: 500; }
.plan li.perk .ic { color: var(--brand); }
.plan .btn { margin-top: auto; width: 100%; }
.community {
  margin-top: 20px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, #F3F1FF, #EDF4FF); border: 1px solid #E0DCFB;
}
.faces { display: flex; padding-left: 8px; flex: none; }
.faces span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; }
.community .cm-text { flex: 1; min-width: 0; }
.community strong { display: block; font-size: 15px; }
.community p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.community .tags { display: flex; gap: 8px; flex: none; }
.community .tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid #E0DCFB; color: var(--brand); white-space: nowrap; }
.plans-fine { text-align: center; font-size: 13px; color: var(--subtle); margin-top: 18px; }

/* ---------- 6. Founder Club (a screenshot of the real site) ---------- */
#screen-club.active { background: var(--surface); }
.site-shot { display: block; width: 100%; height: auto; }

/* ---------- 7. Model ---------- */
.doc { max-width: 1040px; margin: 0 auto; padding: 40px 40px 72px; }
.doc h1 { font-size: 36px; letter-spacing: -.03em; margin: 10px 0 10px; line-height: 1.1; }
.lede { font-size: 16.5px; color: var(--muted); line-height: 1.55; margin: 0; max-width: 62ch; }
.h2 { font-size: 20px; letter-spacing: -.015em; margin: 48px 0 4px; }
.h2 + .muted { margin: 0 0 18px; font-size: 14px; }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 32px; }
.rung { border-radius: 14px; padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; animation: grow .6s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
.rung b { font-size: 24px; letter-spacing: -.02em; }
.rung strong { font-size: 14px; }
.rung span { font-size: 12.5px; opacity: .82; line-height: 1.35; }
.rung.free { background: #fff; color: var(--text); border: 1.5px dashed var(--line-2); }
.rung.free span { color: var(--muted); opacity: 1; }
.axis { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.axis .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--brand)); position: relative; }
.axis .line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--brand); border-right: 0; }

.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.calc-in { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 18px; box-shadow: var(--sh-1); }
.sl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.sl label { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.sl label i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.sl label small { color: var(--muted); font-weight: 400; font-size: 13px; }
.sl output { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.sl input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); margin: 0; }
.sl.sub { padding-top: 14px; border-top: 1px dashed var(--line); }
.calc-out { background: var(--ink); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.calc-out .k { color: rgba(255, 255, 255, .6); }
.mrr { font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-meta { display: flex; gap: 24px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.calc-meta b { color: #fff; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .1); gap: 2px; }
.stack i { display: block; height: 100%; transition: width .3s; }
.stack-legend { display: grid; gap: 8px; margin-top: auto; }
.stack-legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stack-legend b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-note { font-size: 12px; color: rgba(255, 255, 255, .45); }

.build { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.build > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--sh-1); }
.build h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.build h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.build ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.build li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.build li .ic { margin-top: 2px; }
.build .have .ic { color: var(--green); }
.build .need .ic { color: var(--brand); }

/* ---------- Floating nav (notes hidden) + toast ---------- */
.float-nav {
  position: fixed; z-index: 30;
  right: calc(36px + env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 4px; padding: 5px;
  background: rgba(13, 15, 28, .92); color: #fff; border-radius: 99px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
}
.shell.hide-notes ~ .float-nav { display: flex; }
.float-nav button { height: 36px; min-width: 36px; border-radius: 99px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 15px; }
.float-nav button:hover { background: rgba(255, 255, 255, .12); }
.float-nav span { font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 0 6px; color: rgba(255, 255, 255, .7); }
.float-nav .fn-notes { font-size: 12.5px; padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .15); border-radius: 0 99px 99px 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 16px);
  background: var(--text); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91, 92, 235, .45); } 100% { box-shadow: 0 0 0 8px rgba(91, 92, 235, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .shell { grid-template-columns: 340px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .ch-body { grid-template-columns: 1fr; }
  .signup-pitch h1 { font-size: 36px; }
  .community { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .shell, .shell.hide-notes { display: flex; flex-direction: column; height: auto; min-height: 100%; }
  .shell.hide-notes .notes { visibility: visible; }
  .shell.hide-notes ~ .float-nav { display: none; }
  .notes-toggle { display: none; }
  .notes-head, .notes-body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .notes-body { padding-block: 24px 16px; overflow: visible; }
  .notes-head { padding-block: 18px 0; }
  .notes-body h2 { font-size: 24px; }
  .notes-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  body { padding-bottom: 72px; }
  .stage { padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .browser { border-radius: 12px; }
  .viewport { overflow: visible; }
  .dots { width: auto; }
  .appbar { padding: 0 14px; position: static; }
  .ask, .ws { display: none; }
  .app-brand { min-width: 0; margin-right: auto; }
  .page, .doc { padding: 20px 16px 40px; }
  .signup { grid-template-columns: 1fr; }
  .signup-pitch { padding: 28px 20px; }
  .signup-pitch h1 { font-size: 30px; margin-top: 28px; }
  .signup-form-wrap { padding: 28px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .connect { margin-top: 28px; }
  .connect h1 { font-size: 30px; }
  .connect-grid, .audit-grid, .dash-grid, .calc, .build, .plans { grid-template-columns: 1fr; }
  .cc { padding: 16px; gap: 12px; min-height: 0; }
  .cc .lg { width: 40px; height: 40px; }
  .cc .lg svg { width: 36px; height: 36px; }
  .cc h3 { font-size: 18px; }
  .connect-foot { flex-direction: column; align-items: stretch; }
  .audit-head h1 { font-size: 24px; }
  .audit-stats { width: 100%; }
  .audit-stats > div { flex: 1; min-width: 0; padding: 10px 12px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / -1; }
  .big { font-size: 38px; }
  .score { justify-content: center; }
  .issue-row { flex-wrap: wrap; }
  .impact { margin-left: 56px; }
  .chev { display: none; }
  .fix { padding-left: 16px; }
  .upsell { flex-wrap: wrap; bottom: 84px; }
  .upsell .btn { width: 100%; }
  .plans-head h1, .doc h1 { font-size: 28px; }
  .ladder { grid-template-columns: 1fr; }
  .rung { height: auto !important; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .community .tags { flex-wrap: wrap; }
}
