/* A2B's dark site look, from the agreed mock-up (A2B-Client-Portal-Mockup-2026-10-15.html). Shared by the
   client onboarding and the team's pages. */
:root {
  --ink: #2F2F2F; --panel: #383838; --panel-2: #414142; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #F4F4F5; --text-2: #CFCFD4; --muted: #A1A1AA; --pink: #FB6F92; --pink-deep: #B8365C; --pink-soft: rgba(251,111,146,.14);
  --good: #13CBAD; --warn: #F0A35E; --bad: #F0607A; --track: #4A4A4C;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif; --body: 'Poppins', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.12; } h2 { font-size: 22px; line-height: 1.2; } h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; } a { color: var(--pink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(47,47,47,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.top a { text-decoration: none; color: var(--text-2); font-size: 13px; font-weight: 600; }
.logo { height: 24px; display: block; }
main { padding-block: 32px 72px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.stack { display: grid; gap: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--pink); color: #2F2F2F; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); font-weight: 600; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--good); background: rgba(19,203,173,.13); } .pill.warn { color: var(--warn); background: rgba(240,163,94,.13); }
.pill.bad { color: var(--bad); background: rgba(240,96,122,.13); } .pill.idle { color: var(--muted); background: rgba(255,255,255,.06); }
.pill.pink { color: var(--pink); background: var(--pink-soft); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; }
input[type=checkbox], input[type=radio] { width: auto; }
.ai-fill { border-color: rgba(251,111,146,.45); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid2 > .full { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: transparent; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); color: var(--text); }
.note { border-left: 3px solid var(--pink); background: var(--pink-soft); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); }
.note.warn { border-color: var(--warn); background: rgba(240,163,94,.1); }
.note.bad { border-color: var(--bad); background: rgba(240,96,122,.1); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 10px 10px; }
td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td a { color: var(--text); font-weight: 600; text-decoration: none; }
.scroll-x { overflow-x: auto; }
.list { display: grid; gap: 0; }
.list > div { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding-block: 12px; border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; padding-top: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(19,203,173,.15); color: var(--good); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.progress div { height: 100%; background: var(--pink); width: 0; transition: width .4s; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }

/* The team view is light by default, like the client command centre; "Dark mode" in the top bar switches back.
   The client onboarding stays dark (the agreed mock-up). */
body.light {
  --ink: #F4F3F6; --panel: #FFFFFF; --panel-2: #F1EFF4; --line: #E6E3EA; --line-2: #D6D2DC;
  --text: #1E1E22; --text-2: #3A3A40; --muted: #6E6C75; --pink: #B8365C; --pink-soft: rgba(251,111,146,.12);
  --good: #0E7F6C; --warn: #9A5A0E; --bad: #C0294A; --track: #E6E3EA; color-scheme: light;
}
body.light .top { background: rgba(255,255,255,.94); }
body.light .card { box-shadow: 0 1px 2px rgba(30,30,34,.04); }
body.light .btn:not(.ghost) { background: #FB6F92; color: #2F2F2F; }
body.light input, body.light select, body.light textarea { background: #FFFFFF; }
body.light .pill.good { background: #E2F5F1; } body.light .pill.warn { background: #FCEFDF; }
body.light .pill.bad { background: #FDE7EC; } body.light .pill.idle { background: #EFEDF2; }
body.light .tabbar button[aria-selected="true"] { background: #2F2F2F; color: #FFFFFF; }
body.light .note.warn { background: #FCEFDF; }
.logo-light { display: none; } body.light .logo-light { display: block; } body.light .logo-dark { display: none; }
.theme { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }

/* onboarding */
.ob { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: transparent; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; color: var(--text-2); }
.steps button[aria-current="step"] { background: var(--panel-2); color: var(--text); }
.steps button:disabled { cursor: default; opacity: .55; }
.dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line-2); color: var(--muted); }
.done .dot { background: var(--good); border-color: var(--good); color: #1f2a28; }
[aria-current="step"] .dot { border-color: var(--pink); color: var(--pink); }
.steps .t { font-size: 14px; font-weight: 600; } .steps .m { font-size: 12px; color: var(--muted); }
.stepbody { display: grid; gap: 18px; }
.stepnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; align-items: center; }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.howto li { counter-increment: h; position: relative; padding-left: 40px; min-height: 26px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.howto li b { color: var(--text); }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--pink); }
.sublab { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.other-in { margin-top: 10px; }
.copyrow { display: flex; gap: 8px; align-items: center; background: var(--ink); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 8px 8px 14px; font-size: 14px; flex-wrap: wrap; }
.copyrow code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.platforms button { border: 1px solid var(--line-2); background: var(--ink); border-radius: 12px; padding: 14px 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.platforms button[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); }
.platforms button.wide { grid-column: 1 / -1; }
.msgbox { background: var(--ink); border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { border: 1px solid var(--line-2); background: var(--ink); border-radius: 10px; padding: 10px 6px; cursor: pointer; font-size: 13px; }
.slots button[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); }
.choice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.choice .btn[aria-pressed="true"] { outline: 2px solid var(--good); outline-offset: 2px; }
.files { display: grid; gap: 4px; margin-top: 6px; }
.files div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.files button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.upbtn { position: relative; overflow: hidden; }
.upbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.saved { font-size: 12px; color: var(--muted); }
.err { color: var(--bad); font-size: 13px; }

/* team */
.guide summary { cursor: pointer; list-style-position: outside; }
.flow { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); align-items: start; }
.flow li:first-child { border-top: 0; }
.flow .pill { justify-self: start; margin-top: 2px; }
.flow p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
@media (max-width: 560px) { .flow li { grid-template-columns: 1fr; gap: 6px; } }
.tabbar { display: flex; gap: 2px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; width: max-content; max-width: 100%; }
.tabbar button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabbar button[aria-selected="true"] { background: var(--pink); color: #2F2F2F; }
.tabbar button:disabled { opacity: .4; cursor: default; }
.tabpanel .card { background: var(--ink); }
.build > div { display: grid; grid-template-columns: 30px 120px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); }
.build > div:first-child { border-top: 0; }
.build .pill { justify-self: start; }
.build .n { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.build form { margin: 0; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.doc { line-height: 1.6; } .doc h1 { font-size: 26px; margin-bottom: 10px; } .doc h2 { margin: 26px 0 10px; font-size: 19px; }
.doc ol { padding-left: 22px; } .doc li { margin: 6px 0; } .doc p { margin: 10px 0; }
pre.log { white-space: pre-wrap; font-size: 12px; color: var(--muted); background: var(--ink); border-radius: 10px; padding: 12px; max-height: 340px; overflow: auto; }

@media (max-width: 900px) {
  .ob { grid-template-columns: 1fr; }
  .steps { display: flex; overflow-x: auto; }
  .steps button { grid-template-columns: 28px auto; min-width: 150px; }
  .steps .m2 { display: none; }
}
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; }
  .build > div { grid-template-columns: 24px 1fr; } .build > div > :nth-child(n+3) { grid-column: 2; } }
@media (max-width: 560px) {
  .grid2, .platforms { grid-template-columns: 1fr 1fr; }
  .grid2 > div:has(textarea) { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.now ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.now h3 { margin-top: -6px; }
