/* ALU Leads: one stylesheet for the dashboard and the public pages. */
:root {
  --bg: #0B0B0C; --panel: #121213; --panel2: #1b1b1d; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #fff; --muted: rgba(255,255,255,.6); --accent: #4FC3F7; --accent-ink: #0B0B0C;
  --good: #3ddc84; --warn: #FBBF24; --bad: #F87171; --info: #4FC3F7; --violet: #A76EFF;
  --r: 15px; --r-sm: 9px;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.btn, .side nav a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }
.muted { color: var(--muted); }
small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 6px; }
em.ok { font-style: normal; color: var(--good); font-size: 12px; margin-left: 6px; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: rgba(255,255,255,.3); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tile:focus-visible, .tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.primary { background: #fff; border-color: #fff; color: #0B0B0C; }
.btn.primary:hover { background: #e9e9ec; }
.btn.start { background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.42); color: #3ddc84; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: #5b2020; color: #ff8a8a; }
.btn.big { min-height: 48px; font-size: 16px; width: 100%; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }
.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
select option { background: #1b1b1d; color: #fff; }
textarea { min-height: 0; resize: vertical; line-height: 1.5; }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: #3ddc84; flex: none; }
input[readonly] { color: var(--muted); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: #ff8a8a; font-weight: 700; min-height: 20px; margin: 2px 0 10px; font-size: 14px; }
.copyrow { display: flex; gap: 8px; margin-bottom: 4px; }
.copyrow input { min-width: 0; }
.stack { display: grid; gap: 10px; }
.row { display: grid; gap: 10px; margin-bottom: 14px; }

/* start-up, login, setup */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.auth h1 { margin: 6px 0 8px; }
.auth p { margin-bottom: 18px; }
.logo { font-weight: 900; letter-spacing: -.01em; font-size: 18px; text-transform: uppercase; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: #fff; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* shell */
.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--line); background: #0B0B0C; }
.side .logo { padding: 4px 8px; }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: 700; }
.side nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side nav a.on { background: var(--panel2); color: var(--text); }
.who { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.who b { display: block; font-size: 14px; }
.who span { color: var(--muted); font-size: 12.5px; text-transform: capitalize; }
.who .btn { grid-column: 1 / -1; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 900; flex: none; }
main { padding: 26px 28px 60px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head p { margin-top: 4px; }
.page-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tabs button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--text); color: #000; border-color: var(--text); }
.tabs i { font-style: normal; margin-left: 7px; opacity: .7; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.list { display: grid; gap: 10px; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line2); border-radius: var(--r); padding: 34px 20px; text-align: center; display: grid; gap: 6px; }
.empty span { color: var(--muted); }

.card { background: rgba(255,255,255,.022); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--line2); }
.card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.when b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.when span { color: var(--muted); font-size: 13px; }
.sub { color: var(--muted); margin-top: -8px; }
.card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.card dl > div { min-width: 0; }
.card dl .wide { grid-column: 1 / -1; }
.card dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); }
.chip.dim { color: var(--muted); }
.chip.good { color: #3ddc84; border-color: rgba(61,220,132,.36); background: rgba(61,220,132,.1); }
.chip.info { color: #4FC3F7; border-color: rgba(79,195,247,.32); background: rgba(79,195,247,.1); }
.chip.open { color: #3ddc84; border-color: rgba(61,220,132,.34); background: transparent; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.card .acts { margin-top: 2px; }

.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; background: var(--panel2); border: 1px solid var(--line2); white-space: nowrap; }
.pill.booked, .pill.c-sent { color: rgba(255,255,255,.8); }
.pill.soon { color: #FBBF24; border-color: rgba(251,191,36,.36); background: rgba(251,191,36,.1); }
.pill.live { color: #3ddc84; border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.12); }
.pill.need, .pill.no_show { color: #F87171; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.1); }
.pill.c-viewed, .pill.not_fit { color: #A76EFF; border-color: rgba(167,110,255,.36); background: rgba(167,110,255,.11); }
.pill.reschedule { color: #FBBF24; border-color: rgba(251,191,36,.36); background: rgba(251,191,36,.1); }
.pill.follow_up { color: #4FC3F7; border-color: rgba(79,195,247,.32); background: rgba(79,195,247,.1); }
.pill.cancelled, .pill.c-void { color: var(--muted); }
.pill.closed, .pill.c-signed, .pill.c-paid { color: #3ddc84; border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.12); }
.card.s-no_show { border-top-color: var(--bad); }
.card.s-reschedule { border-top-color: var(--warn); }
.card.s-follow_up { border-top-color: var(--info); }
.card.s-not_fit { border-top-color: var(--violet); }
.card.s-closed { border-top-color: var(--good); }
.card.open { border-color: rgba(61,220,132,.34); }
.card.s-cancelled { opacity: .6; }
/* your own reserved call turns white, as on the Win Leads board */
.card.mine { background: linear-gradient(180deg, #fff, #f4f4f6); color: #0B0B0C; border-top-color: #fff; box-shadow: 0 0 34px -6px rgba(255,255,255,.42); }
.card.mine .when span, .card.mine .sub, .card.mine dt { color: rgba(11,11,12,.6); }
.card.mine a { color: #0B0B0C; text-decoration: underline; }
.card.mine .btn { background: rgba(11,11,12,.06); border-color: rgba(11,11,12,.2); color: #0B0B0C; }
.card.mine .btn.primary { background: #0B0B0C; border-color: #0B0B0C; color: #fff; text-decoration: none; }
.card.mine .btn.start { background: rgba(21,128,61,.1); border-color: rgba(21,128,61,.5); color: #15803d; }
.card.mine .chip { background: rgba(11,11,12,.06); border-color: rgba(11,11,12,.16); color: #0B0B0C; }
.card.mine .pill { background: rgba(11,11,12,.07); border-color: rgba(11,11,12,.2); color: #0B0B0C; }
select.mini { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; font-weight: 700; }

.rowcard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.rowcard .grow { flex: 1 1 180px; min-width: 0; }
.rowcard .col { flex: 0 1 190px; display: grid; gap: 4px; justify-items: start; }
.rowcard b { display: block; overflow-wrap: anywhere; }
.rowcard span { color: var(--muted); font-size: 13px; }
.rowcard .col b { text-transform: capitalize; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; max-width: 860px; }
.panel h2 { margin-bottom: 6px; }
.panel > .muted { margin-bottom: 16px; }
.block { border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 14px; margin-bottom: 12px; background: rgba(255,255,255,.02); }

/* modal, toast */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .66); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 20px; overflow-y: auto; }
.modal-card { width: 100%; max-width: 520px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; }
.modal-card header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px; }
.modal-body > .muted { margin-bottom: 14px; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--text); font-size: 20px; cursor: pointer; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile { min-height: 64px; border-radius: var(--r-sm); border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; }
.tile.booked { background: #3a3a41; } .tile.no_show { background: #b91c1c; } .tile.reschedule { background: #b45309; }
.tile.follow_up { background: #1d6fa8; } .tile.not_fit { background: #6d3fd1; } .tile.closed { background: #15803d; }
.tile.on { border-color: #fff; }
.notes { display: grid; gap: 10px; }
.note { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.note span { color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.note p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; background: #fff; color: #000; font-weight: 800; padding: 11px 16px; border-radius: 999px; max-width: calc(100vw - 32px); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: opacity .3s; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; }

/* public pages */
.pub { max-width: 620px; margin: 0 auto; padding: 34px 18px 70px; }
.pub .logo { margin-bottom: 26px; }
.pub h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.08; margin-bottom: 10px; }
.pub .lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.boxed { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.calframe { width: 100%; height: 720px; border: 0; border-radius: var(--r); background: #fff; margin-top: 16px; }

/* agreement */
.doc { background: #fff; color: #111; border-radius: 16px; padding: 26px 24px; }
.doc a { color: #1d4ed8; }
.doc-wait { padding: 40px 16px; text-align: center; color: var(--muted); }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid #111; margin-bottom: 16px; }
.doc-brand { font-weight: 900; font-size: 20px; text-transform: uppercase; }
.doc-meta span { color: #555; margin-right: 8px; }
.doc-body h3 { margin: 20px 0 6px; font-size: 16px; }
.doc-body h3:first-child { font-size: 22px; margin-top: 0; }
.doc-body p { margin: 0 0 10px; color: #222; line-height: 1.6; }
.doc-sign { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ddd; }
.doc-sign h3 { margin-bottom: 12px; }
.doc .fld > span { color: #444; }
.doc input:not([type=checkbox]) { background: #fff; color: #111; border-color: #bbb; }
.doc .chk span { color: #222; }
.doc .err { color: #b91c1c; }
.sig-wrap { position: relative; }
.sig { display: block; width: 100%; height: 170px; background: #fafafa; border: 1.5px dashed #999; border-radius: 12px; touch-action: none; cursor: crosshair; }
.sig-clear { position: absolute; right: 8px; top: 8px; background: #fff !important; color: #111 !important; border-color: #bbb !important; }
.doc .btn.ghost { color: #111; border-color: #bbb; }
.doc-done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #ecfdf3; border: 1px solid #a7f3c4; border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.doc-done b { display: block; }
.doc-done span { color: #444; font-size: 14px; }
.doc-done .btn { margin-left: auto; width: auto; }
.tick { width: 36px; height: 36px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.doc-sigbox { display: flex; align-items: flex-end; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ddd; }
.doc-sigbox img { width: 240px; max-width: 60%; border-bottom: 1.5px solid #111; }
.doc-sigbox span { display: block; color: #555; font-size: 13px; }
.doc-foot { margin-top: 16px; }

/* agreement step after the slideshow */
.signflow { max-width: 760px; width: 100%; margin: 0 auto; padding: 10px 18px 60px; }
.signflow h1 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 8px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { display: flex; overflow-x: auto; flex: 1 1 100%; order: 3; }
  .side nav a { flex: none; padding: 8px 10px; }
  .who { margin: 0 0 0 auto; padding: 0; border: 0; grid-template-columns: auto; }
  .who > div, .who .av { display: none; }
  main { padding: 18px 16px 60px; }
  .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; }
  .pub { padding: 0; max-width: none; }
  .pub .logo, .doc-foot, .doc-done .btn, .deck-top, .deck-bar { display: none !important; }
  .doc { padding: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* inline Cal.com calendar on the application page */
.cal-inline { width: 100%; min-height: 520px; margin-top: 16px; }
.pay-note { margin: 0 0 14px; font-weight: 700; color: #15803d; }

[hidden] { display: none !important; }

/* buttons inside the white agreement sheet */
.doc .btn.primary { background: #0B0B0C; border-color: #0B0B0C; color: #fff; }
.doc .btn.primary:hover { background: #26262a; }

.sf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 22px; }
a.rowcard { text-decoration: none; color: inherit; }
a.rowcard:hover { border-color: var(--line2); }
/* client-facing pages use orange and white; the dashboard stays black and white */
.theme-orange { --accent: #FF9900; }
.theme-orange .acc { color: #FF9900; }
.theme-orange .btn.primary { background: #FF9900; border-color: #FF9900; color: #0B0B0C; }
.theme-orange .btn.primary:hover { background: #ffad33; }
.theme-orange input:focus-visible, .theme-orange select:focus-visible { outline-color: #FF9900; }
.theme-orange .logo { letter-spacing: .04em; }
.theme-orange .doc .btn.primary { background: #FF9900; border-color: #FF9900; color: #0B0B0C; }
.theme-orange .doc-head { border-bottom-color: #FF9900; }
.theme-orange .spin { border-top-color: #FF9900; }

/* the ALU logo: white in the dashboard, orange on client pages and on the agreement sheet */
.logo-img { height: 26px; width: auto; display: block; }
.auth .logo-img { height: 34px; margin-bottom: 14px; }
.side .logo-img { height: 26px; margin: 4px 8px 2px; }
.doc-brand img { height: 34px; width: auto; display: block; }
@media (max-width: 860px) { .side .logo-img { height: 22px; margin: 0 4px; } }
