/* onboarding.growthdept.ai: Growth Dept tokens (growthdept docs/DESIGN.md). */
:root {
  --ink: #0B0F14; --paper: #FBFBF9; --slate: #5B6470; --line: #E3E4DE; --dept: #0A2FD6; --dept-deep: #061F8C;
  --dept-tint: #E9EEFF; --midnight: #0B1226; --live: #1C9E5B; --pending: #E0A100; --paused: #D9483B; --card: #FFFFFF;
  --radius: 10px; --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--dept); }
a:hover { color: var(--dept-deep); }
img, video { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.for-brand { font-family: var(--mono); font-size: 13px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 40px 0 96px; }
nav.steps { position: sticky; top: 96px; align-self: start; }
nav.steps ol { list-style: none; margin: 0; padding: 0; }
nav.steps li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--slate); text-decoration: none; font-size: 15px; }
nav.steps li a:hover { background: var(--dept-tint); color: var(--ink); }
nav.steps li.current a { background: var(--ink); color: #fff; }
nav.steps .dot { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 999px; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font-size: 11px; font-family: var(--mono); background: #fff; color: var(--slate); }
nav.steps li.done .dot { background: var(--live); border-color: var(--live); color: #fff; }
nav.steps li.skipped .dot { background: #fff; border-color: var(--pending); color: var(--pending); }
nav.steps li.current .dot { border-color: #fff; background: transparent; color: #fff; }
.progress { margin: 18px 10px 0; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.bar { height: 4px; background: var(--line); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--dept); }
.eyebrow { font-stretch: 78%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--dept); margin: 0 0 8px; }
h1 { font-weight: 700; font-stretch: 105%; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(30px, 4vw, 42px); margin: 0 0 16px; }
h2 { font-weight: 700; letter-spacing: -0.02em; font-size: 22px; margin: 36px 0 12px; line-height: 1.2; }
h3 { font-weight: 650; font-size: 17px; margin: 0 0 4px; }
p.lead { font-size: 18px; color: var(--ink); max-width: 720px; margin: 0 0 20px; }
p.muted, .muted { color: var(--slate); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 16px 0; }
.card.tint { background: var(--dept-tint); border-color: #d3dcff; }
.card.dark { background: var(--midnight); color: #e7ebf7; border-color: var(--midnight); }
.card.dark .muted { color: #a8b1c7; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
label .hint { display: block; font-weight: 400; color: var(--slate); font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfd2ca; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(10,47,214,.25); outline-offset: 1px; border-color: var(--dept); }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; background: #fff; cursor: pointer; font-weight: 400; }
.choice:hover { border-color: #b9c3ef; }
.choice input { margin-top: 4px; accent-color: var(--dept); width: 18px; height: 18px; flex: 0 0 18px; }
.choice strong { display: block; font-weight: 650; }
.choice:has(input:checked) { border-color: var(--dept); background: var(--dept-tint); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 10px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--dept); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 16px; border-radius: 999px; padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: #222a35; color: #fff; }
.btn.primary { background: var(--dept); border-color: var(--dept); }
.btn.primary:hover { background: var(--dept-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cfd2ca; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.actions .right { display: flex; gap: 12px; flex-wrap: wrap; }
.saved { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.people { display: grid; gap: 10px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-wrap: wrap; }
.person code, code.addr { font-family: var(--mono); font-size: 14px; background: var(--dept-tint); color: var(--dept-deep); padding: 3px 8px; border-radius: 6px; word-break: break-all; }
.copy { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.copy.ok { border-color: var(--live); color: var(--live); }
.group { margin: 28px 0 8px; }
.group > h3 { font-stretch: 78%; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--slate); margin-bottom: 8px; }
.plat { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px 16px; margin: 8px 0; }
.plat-head { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 12px; align-items: start; }
.plat-name { font-weight: 650; }
.plat .where { font-size: 14px; color: var(--slate); }
.plat .why { font-size: 14px; margin-top: 4px; }
.plat .more { display: none; margin-top: 10px; }
.plat.show-more .more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plat .acct { margin-top: 10px; }
.plat .acct label { margin-top: 0; font-size: 14px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--dept-tint); color: var(--dept-deep); }
.pill.ok { background: #e3f5ea; color: #136b3e; } .pill.warn { background: #fff4d6; color: #7a5800; } .pill.bad { background: #fde8e6; color: #a1281d; }
.rows .row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 180px auto; align-items: end; margin: 8px 0; }
.rows .row.two { grid-template-columns: 1fr 1fr auto; }
.rows .row label { margin: 0 0 4px; font-size: 13px; }
.rm { font: inherit; border: none; background: none; color: var(--slate); cursor: pointer; padding: 10px; }
.secure { border: 1px dashed #b9c3ef; background: #f7f9ff; }
.secure .lock, p.lock { font-family: var(--mono); font-size: 12px; color: var(--dept-deep); }
.secure-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.secure-head h3 { margin: 0; }
.secure .addr { font-family: var(--mono); font-size: 14px; margin: 4px 0 12px; overflow-wrap: anywhere; }
.notice { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: 15px; }
.notice.ok { background: #e3f5ea; color: #0f5131; } .notice.err { background: #fde8e6; color: #7d1d14; } .notice.info { background: var(--dept-tint); color: var(--dept-deep); }
.video { aspect-ratio: 16/9; background: var(--midnight); border-radius: var(--radius); overflow: hidden; margin: 8px 0 24px; display: grid; place-items: center; color: #c9d1e8; }
.video video { width: 100%; height: 100%; display: block; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.facts div { background: #fff; padding: 16px; }
.facts dt { font-stretch: 78%; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--slate); }
.facts dd { margin: 4px 0 0; font-weight: 650; }
ol.todo { padding-left: 22px; } ol.todo li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-stretch: 78%; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--slate); font-weight: 600; }
td.num { font-family: var(--mono); white-space: nowrap; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; margin: 10px 0; }
.app .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg label:has(input:checked) { border-color: var(--dept); background: var(--dept-tint); }
.review-step { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#payment-element { margin: 16px 0; }
.mono { font-family: var(--mono); font-size: 13px; }
footer.foot { border-top: 1px solid var(--line); padding: 24px 0 48px; color: var(--slate); font-size: 13px; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .layout > * { min-width: 0; }
  nav.steps { position: static; min-width: 0; }
  nav.steps ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  nav.steps li a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  nav.steps li:not(.current) .label { display: none; }
  .progress { margin: 8px 0 0; }
  .grid2, .grid3, .facts, .plat-head, .app, .plat.show-more .more { grid-template-columns: 1fr; }
  .rows .row, .rows .row.two { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .right { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
}
h3.sub { margin-top: 28px; }
.amazon-api ol { padding-left: 20px; }
.amazon-api ol li { margin: 4px 0; }
.amazon-api .secure { margin-top: 12px; padding: 16px 18px; border-radius: 12px; }
.linkbtn { font: inherit; background: none; border: none; padding: 0; color: var(--dept-deep); text-decoration: underline; cursor: pointer; }
.app.partner { border-style: dashed; }
ul.covers { padding-left: 20px; } ul.covers li { margin: 6px 0; }
.value table { width: 100%; border-collapse: collapse; font-size: 15px; }
.value td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.value td.num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.value tr.sub td { font-weight: 600; }
.value tr.total td { font-weight: 700; border-top: 2px solid var(--midnight); }
.value tr.plan td { font-weight: 700; color: var(--dept-deep); }
.value tr.save td { font-weight: 700; color: #136b3e; background: #e3f5ea; }
@media (max-width: 640px) { .value td .muted { display: block; } }
.human-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.human-head h3 { margin: 0 0 2px; }
.human-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--dept-tint); }
.human-photo.initials { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--dept-deep); }
.human .video { margin-bottom: 0; }

/* Agreement edition (review demo only): the Growth Dept Agreement inside the steps. */
.ag-card { border-left: 3px solid var(--dept); }
.ag-terms summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.ag-text { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px; margin: 12px 0; background: var(--paper); font-size: 15px; }
.ag-text h2, .ag-doc h2 { font-size: 17px; margin: 18px 0 6px; }
.ag-text table, .ag-doc table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 14px; }
.ag-text td, .ag-text th, .ag-doc td, .ag-doc th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: normal; }
.ag-blank { background: #FFF6D6; border-bottom: 1px dashed var(--pending); padding: 0 3px; color: var(--slate); }
.ag-withheld { background: var(--dept-tint); border-radius: 8px; padding: 10px 14px; color: var(--slate); }
.ag-page { max-width: 860px; padding-top: 32px; padding-bottom: 96px; }
.ag-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; overflow-wrap: break-word; }
.ag-empty { color: var(--slate); }
.ag-doc h1 { font-size: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--dept); font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) { .ag-doc { padding: 18px 16px; } .ag-text { padding: 2px 12px; } }
@media print { header.top, .noprint { display: none !important; } .ag-doc { border: 0; padding: 0; } body { background: #fff; } }

/* Platform picker (agreement edition): logo tiles, then access rows for the picked platforms only. */
.unpicked { display: none !important; }
.pick-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-stretch: 78%; margin: 22px 0 8px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.logo-tile { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.25; position: relative; }
.logo-tile:hover { border-color: #c9cede; }
.logo-tile input { position: absolute; opacity: 0; pointer-events: none; }
.logo-tile img, .logo-tile .letter-tile { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; object-fit: contain; }
.letter-tile { display: inline-grid; place-items: center; background: var(--dept-tint); color: var(--dept-deep); font-weight: 750; font-size: 16px; }
.logo-tile:has(input:checked) { border-color: var(--dept); background: var(--dept-tint); }
.logo-tile:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 9px; color: var(--dept); font-size: 13px; font-weight: 800; }
.logo-tile:has(input:focus-visible) { outline: 2px solid var(--dept); outline-offset: 2px; }
.pick-next { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pick-summary { background: var(--dept-tint); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.ag-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #FFF1C2; color: #7A5600; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ai-tool .tool-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ai-tool .tool-head img { width: 28px; height: 28px; border-radius: 6px; }
.ai-tool .tool-head h3 { margin: 0; }
@media (max-width: 640px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-tile { font-size: 13px; padding: 9px 10px; } }
#pick[hidden], #access-part[hidden], .pick-summary[hidden] { display: none !important; }
.plan-pick { margin: -2px 0 12px 32px; }
.plan-pick .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.filtered-out { display: none !important; }
.pick-search { max-width: 420px; margin: 4px 0 6px; }
.pick-add { display: flex; gap: 10px; margin-top: 10px; max-width: 520px; }
.pick-add input { flex: 1; }
.logo-tile.custom { border-color: var(--dept); background: var(--dept-tint); padding-right: 34px; }
.logo-tile .tile-rm { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; background: none; color: var(--slate); cursor: pointer; font-size: 14px; padding: 4px; }
.logo-tile.custom:has(input:checked)::after { content: none; }

/* Signing (agreement edition): checklist, final box, signature pad. */
.ag-checklist { list-style: none; padding: 0; margin: 6px 0 14px; }
.ag-checklist li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ag-checklist .mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; margin-right: 6px; }
.ag-checklist li.ok .mark { background: #E3F5EA; color: var(--live); }
.ag-checklist li.todo .mark { background: #FDE8E6; color: var(--paused); }
.ag-final { align-items: flex-start; background: var(--dept-tint); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.ag-final input { margin-top: 3px; flex: 0 0 18px; }
.sig { margin: 6px 0 14px; }
.sig-canvas { display: block; width: 100%; max-width: 560px; height: 160px; background: #fff; border: 1.5px dashed #b8bfcc; border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-typed-input { max-width: 560px; }
.sig-typed-preview, .ag-sig-typed { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-size: 34px; line-height: 1.2; color: #0B0F14; }
.sig-typed-preview { min-height: 48px; padding: 6px 2px; }
.sig-modes { margin-bottom: 8px; }
.sig-current { display: flex; align-items: center; gap: 16px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; max-width: 560px; }
.sig-current img { max-height: 80px; max-width: 360px; }
.ag-doc img.ag-sig { max-height: 70px; max-width: 260px; display: block; }

/* ---- onboarding v3 (templates/v3) ---- */
.req { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--dept-deep); background: var(--dept-tint); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
nav.steps li.locked .navlink { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: #a3a8af; font-size: 15px; cursor: not-allowed; }
nav.steps li.locked .dot { font-size: 9px; border-style: dashed; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tool-head h3 { margin: 0; }
.tool-logo { width: 32px; height: 32px; border-radius: 7px; object-fit: contain; flex: 0 0 32px; background: #fff; }
.tool-logo.letter { display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.choice .tool-logo { width: 24px; height: 24px; flex-basis: 24px; float: left; margin-right: 10px; }
.card.tool { padding: 20px 22px; }
.card.tool .choice { margin: 8px 0; }
.card.product { display: block; border-color: #c9d3ff; background: linear-gradient(180deg, #fff, #f6f8ff); }
.card.warn { background: #fff8e6; border-color: #f0dca3; }
.nested { margin: 4px 0 14px 30px; padding-left: 16px; border-left: 2px solid var(--dept-tint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--dept); background: var(--dept-tint); }
.chip .tool-logo { width: 18px; height: 18px; flex-basis: 18px; border-radius: 4px; }
.rows .row-head, .rows .row-line { display: grid; gap: 8px; align-items: center; }
.rows .row-head span { font-size: 12px; color: var(--slate); font-family: var(--mono); }
.rows .row-line { margin-bottom: 8px; }
.prose p { max-width: 760px; }
.prose ul { padding-left: 20px; }
.fld { margin: 6px 0; }
h3.sub { margin: 22px 0 4px; }
.review-sec .facts { grid-template-columns: repeat(2, 1fr); margin: 12px 0 0; }
.review-sec .facts dd { font-weight: 500; overflow-wrap: anywhere; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; }
.narrow { max-width: 760px; }
@media (max-width: 760px) {
  .nested { margin-left: 8px; }
  .review-sec .facts { grid-template-columns: 1fr; }
  .rows .row-head { display: none; }
  .rows .row-line { grid-template-columns: 1fr !important; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
}
.choice strong .tool-logo { float: none; display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.card .small > p:first-child, .prose > p:first-child { margin-top: 0; }
.card .small > p:last-child { margin-bottom: 0; }
.choice code.addr, .card code.addr { white-space: nowrap; }
.review-sec .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
