/*
  Skin for the brand brief (/brief) and creator sign-up (/creator), after dusk.bot:
  a plain white page, tight grotesk type, soft grey rounded panels with no borders,
  black pill buttons, small monospace meta text, and the main form framed in Guahva's
  own pixel sky. Loaded last on both pages; layout and behaviour stay in the page stylesheets.
*/
@font-face {
  font-family: "Inter Sleek";
  src: url("/intake/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --intake-font: "Inter Sleek", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ink: #131316;
  --muted: #44444d;
  --meta: #6b6b74;
  --faint: #a1a1aa;
  --grey: #f5f5f3;
  --grey-2: #ececea;
  --line: #ececea;
  --line-strong: #dcdcd8;
  --paper: #ffffff;
  --panel: #ffffff;
  --stroke: #ececea;
  --wash: #f5f5f3;
  --accent: #131316;
  --sky: #29a9f2;
  --brand-green-ink: #2f6b2f;
  --radius: 28px;
  --shadow: none;
  --lift: 0 24px 50px -30px rgb(10 60 120 / 50%);
  --page: #f2efe7; /* the homepage's beige */
  background: #f2efe7;
  color: var(--ink);
  font-family: var(--intake-font);
  -webkit-font-smoothing: antialiased;
}
html body {
  font: 450 16px/1.55 var(--intake-font);
  letter-spacing: -.012em;
  color: var(--ink);
  background: var(--page) fixed;
  min-height: 100vh;
}
button, input, textarea, select { font-family: var(--intake-font); letter-spacing: inherit; }

/* Beige page, like the homepage; only the pixel-sky frame around the form carries colour. */
.landscape { background: var(--page); }
.landscape::before, .landscape::after { content: none; }

/* Header: no box, brand on the left, quiet links, black pill on the right. */
.site-bar, body > header:not(.site-bar) {
  min-height: 64px;
  padding: 10px 4px;
  border: 0;
  border-radius: 0;
  background: rgb(242 239 231 / 85%);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 500 15px/1.4 var(--intake-font);
}
.site-bar .wordmark, .tools-wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font: 550 18px/1 var(--intake-font); letter-spacing: -.02em;
}
.site-bar .wordmark img, .tools-wordmark img { width: auto !important; height: 32px; }
@media (max-width: 359px) { .site-bar .wordmark img, .tools-wordmark img { height: 28px; } }
.audience-nav { background: var(--grey); border: 0; padding: 3px; border-radius: 999px; }
.audience-nav > * { min-height: 34px; padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; }
.audience-nav [aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(19 19 22 / 8%); }
.site-links { gap: 6px; }
.site-links a { padding: 8px 10px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; }
.site-links a:hover { background: var(--grey); text-decoration: none; }
.site-bar :is(#review-link, .tools-link), body > header .tools-link {
  min-height: 40px; padding: 8px 16px; gap: 6px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  box-shadow: none;
  font: 500 15px/1.2 var(--intake-font);
}
.site-bar :is(#review-link, .tools-link):hover { background: #2b2b30; text-decoration: none; }
#nav-toggle { border: 0 !important; background: var(--grey) !important; border-radius: 999px !important; box-shadow: none !important; }
#nav-toggle span { background: var(--ink) !important; }
@media (max-width: 920px) {
  .site-links { background: #fff; border: 0; border-radius: 24px; box-shadow: 0 20px 50px -20px rgb(19 19 22 / 25%); }
}

/* Type: big, light-weight, tightly tracked headings; muted body. */
main h1, .wide-profile h1, main > section > h1, #profile h1, #niches h1, .bear-title h1, h1,
html body main h1, html body #profile h1, html body #niches h1 {
  font: 500 clamp(32px, 4.2vw, 52px)/1.02 var(--intake-font);
  letter-spacing: -.055em;
  color: var(--ink);
}
h2 { font-weight: 500; letter-spacing: -.035em; color: var(--ink); }
h3 { font-weight: 550; letter-spacing: -.02em; }
.intro, .intro p.subtitle, main > section > .intro, .bear-title p { color: var(--muted); font-size: 17px; line-height: 1.75; }

/* Small meta text in monospace, like dusk's captions. */
.step-count, .step-count span, .hint, .source-pill, footer, #save-status, .panel-head, small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--meta);
}
.hint, small { text-transform: none; }

/* Step bars on both pages: icon + small uppercase label with a thin bar underneath (the brief's style). */
#progress .stage > span, nav[aria-label="Signup steps"] button {
  font: 650 10px/1.2 var(--intake-font);
  letter-spacing: .085em;
  text-transform: uppercase;
}
nav[aria-label="Signup steps"] { gap: 19px; padding: 0; margin: 0 auto 32px; width: fit-content; max-width: 100%; border-radius: 0; background: none; border: 0; box-shadow: none; }
nav[aria-label="Signup steps"] button {
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  min-height: 0; padding: 0 0 9px; border: 0 !important; border-radius: 0 !important;
  background: none; color: var(--faint);
  box-shadow: inset 0 -3px 0 var(--grey-2);
}
nav[aria-label="Signup steps"] button .ui-icon { width: 14px; height: 14px; }
nav[aria-label="Signup steps"] button[aria-current=step] { color: var(--ink); background: none; box-shadow: inset 0 -3px 0 var(--ink); }
nav[aria-label="Signup steps"] button:not(:disabled):hover { color: var(--ink); }
nav[aria-label="Signup steps"] button::after, nav[aria-label="Signup steps"] button::before { content: none !important; }
#progress .stage.active { color: var(--ink); }
#progress .stage.done { color: var(--meta); }
#progress .segments i { background: var(--grey-2); border-radius: 999px; }
#progress .segments :is(.passed, .current) { background: var(--ink); }
#progress .stage-number { border-color: var(--line-strong); background: #fff; }
#progress .stage.active .stage-number { background: var(--ink); border-color: var(--ink); color: #fff; }
#progress .stage.active .stage-number .ui-icon { stroke: #fff; }
@media (max-width: 760px) { nav[aria-label="Signup steps"] { gap: 12px; } }

/* Panels: white with a hairline edge so they still read on the white page; big radius, no shadow. */
.card, article, .profile-card, .competitor-card, .review-card, .brief-panel,
.competitor-grid :is(.empty-research, .competitor-card), .account-evidence {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.edit-dialog { background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgb(19 19 22 / 40%); }
.note, .instagram-import, .metrics {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

/* The main form sits in a white card inside an evenly padded pixel-sky frame, like dusk's blue
   demo window on its white page. Side margins are auto so the framed card stays centred. */
.screen, #accounts, #details { isolation: isolate; }
.form-body:not(.wide-profile .form-body), #read.card, #details > .card {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--lift);
  margin: 40px auto 76px;
}
.wide-profile .form-body { box-shadow: none; }
.form-body:not(.wide-profile .form-body)::before, #read.card::before, #details > .card::before {
  content: "";
  position: absolute;
  inset: -24px -24px -48px;
  z-index: -1;
  border-radius: 36px;
  /* Pastel pixel sunset over green hills. A 300px strip keeps the hills to the bottom band whatever
     the card's height; the top lavender fills above. */
  background: url("/intake/assets/pixel-dusk.png") 50% 100% / auto 300px repeat-x, #b2a0f0;
  image-rendering: pixelated;
  pointer-events: none;
}
@media (max-width: 600px) {
  .form-body:not(.wide-profile .form-body), #read.card, #details > .card { margin: 24px 10px 52px; border-radius: 20px; }
  .form-body:not(.wide-profile .form-body)::before, #read.card::before, #details > .card::before { inset: -10px -10px -32px; border-radius: 28px; }
}

/* Inputs: filled grey on white, white on grey. */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--grey);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgb(19 19 22 / 7%);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
.field > span, legend, label { color: var(--ink); font-weight: 500; }
.url-box { border: 1px solid transparent; border-radius: 999px; padding: 6px 6px 6px 18px; background: var(--grey); box-shadow: none; }
.url-box:focus-within { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(19 19 22 / 7%); }
.url-box input, .url-box input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; }
details { border: 0; border-radius: 14px; background: var(--grey); }

/* Buttons: black pills; secondary is a grey pill. */
.primary, main button:not(.secondary):not(.quiet):not(.back):not(.text-btn):not(.choice):not(.sub):not([data-go]):not(.remove-competitor):not(#platforms button):not(fieldset button):not(.diamond-button):not(.bear-controls button):not(.room-button),
button.next {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
  transition: background .15s, transform .1s;
}
.primary:hover, button.next:hover:not(:disabled), main button:not(.secondary):not(.quiet):not(.back):not(.text-btn):not(.choice):not(.sub):not([data-go]):not(.remove-competitor):not(#platforms button):not(fieldset button):not(.diamond-button):not(.bear-controls button):not(.room-button):hover:not(:disabled) { background: #2b2b30; }
.primary:active, button.next:active { transform: scale(.98); }
.primary .ui-icon { stroke: #fff; }
a.primary { text-decoration: none; }
.secondary, .sub, .empty-research .secondary, .competitor-toolbar .secondary, fieldset button, [data-go]:not(.next) {
  border: 0;
  border-radius: 999px;
  background: var(--grey);
  color: var(--ink);
  font-weight: 500;
  box-shadow: none;
}

.secondary:hover, .sub:hover, fieldset button:hover { background: var(--grey-2); }
.empty-research .secondary { background: var(--ink); color: #fff; }
.back, .quiet, .text-btn { color: var(--meta); }
.back:hover, .quiet:hover, .text-btn:hover { color: var(--ink); }
.actions { border-top: 0; }

/* Choice tiles: grey rows, selected gets a black ring. */
.choice {
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--grey);
  box-shadow: none;
  transition: border-color .15s, background .15s;
}
.choice:hover { background: var(--grey-2); }
.choice[aria-checked=true] { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.choice strong { font-weight: 550; color: var(--ink); letter-spacing: -.015em; }
.choice small { color: var(--muted); font-family: var(--intake-font); font-size: 14px; }
.check { border-color: var(--line-strong); border-radius: 999px; background: #fff; }
.choice[aria-checked=true] .check { background: var(--ink); border-color: var(--ink); }

/* Platform picker on /creator. */
#platforms button {
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background: var(--grey) !important;
  box-shadow: none;
}
#platforms button:hover { background: var(--grey-2) !important; }
#platforms button[aria-pressed=true] { border-color: var(--ink) !important; background: #fff !important; box-shadow: 0 0 0 1px var(--ink); }
fieldset [aria-pressed=true] { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Chips, toast, footer. */
.chip { background: #fff; border: 0; border-radius: 999px; color: var(--ink); font-weight: 500; }
.connected-badge, .chip.ok { color: var(--brand-green-ink); }
.toast { border: 0; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 0 20px 40px -20px rgb(19 19 22 / 50%); }
footer { background: transparent !important; border-top: 0; }
footer a { color: var(--muted); }
.connect-prompt { background: #fff; border: 0; border-radius: 22px; box-shadow: none; }
.connect-prompt button { border-radius: 999px !important; }
.source-pill { background: var(--grey); border: 0; border-radius: 999px; box-shadow: none; }

/* Icons: bare coloured symbols, no tiles (dusk's little coloured bots). */
.ui-icon[data-symbol] { stroke-width: 2; }
:is(.form-section, .review-head h2, .profile-card-heading h2, .panel-head, .brief-panel h2, .choice .icon, .brief-value, .group-heading) .ui-icon[data-symbol],
.form-section [data-icon] .ui-icon[data-symbol] {
  width: 22px; height: 22px; padding: 0;
  border-radius: 0;
  stroke: var(--symbol-color, var(--ink));
  background: none;
  box-shadow: none;
}
.choice .icon .ui-icon[data-symbol] { width: 26px; height: 26px; }
[data-symbol="globe"], [data-symbol="search"], [data-symbol="chart"] { --symbol-color: #2f6bf0; }
[data-symbol="code"] { --symbol-color: #6a4ff0; }
[data-symbol="book"], [data-symbol="clock"] { --symbol-color: #f07a1f; }
[data-symbol="send"], [data-symbol="message"], [data-symbol="phone"] { --symbol-color: #1fa3e0; }
[data-symbol="layers"], [data-symbol="pen"] { --symbol-color: #9b4fe0; }
[data-symbol="spark"], [data-symbol="bag"] { --symbol-color: #e5408a; }
[data-symbol="people"], [data-symbol="leaf"] { --symbol-color: #2f9e4f; }
[data-symbol="megaphone"], [data-symbol="video"] { --symbol-color: #ef4136; }
[data-symbol="box"] { --symbol-color: #a2845e; }
[data-symbol="plus"], [data-symbol="help"] { --symbol-color: #8e8e93; }
/* Plain symbols (step nav, buttons) stay one colour. */
:is(nav, .primary, .secondary, .back, .quiet, .text-btn, .next) .ui-icon[data-symbol] { stroke: currentColor; background: none; box-shadow: none; padding: 0; }
.url-icon .ui-icon[data-symbol] { stroke: #2f6bf0; background: none; padding: 0; }

/* Creator brief: neutral panels, white stat tiles. */
.source-strip { background: var(--grey) !important; border: 0 !important; border-radius: 999px !important; box-shadow: none; color: var(--muted); }
.source-strip button, .panel-head button { color: var(--ink) !important; font-weight: 500; }
.feature-number { background: var(--grey) !important; border: 0; border-radius: 22px !important; }
.ring { --ring-color: #2f9e4f; }
.report-list li, .ranked-posts li { border-color: var(--grey-2) !important; }

/* Brand profile (/brief): neutral text, estimate tag, roomy source pill. */
.wide-profile :is(.profile-card, .competitor-card) { background: #fff; }
.brand-meta dt, .card-footnote, .unconfirmed, .customer-type { color: var(--meta); }
.brand-meta dd { color: var(--ink); }
.brand-identity a { color: var(--muted); }
.unconfirmed { background: none !important; font-style: normal; }
.brand-colors > div span { border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(19 19 22 / 8%); }
.brand-logo { background: #fff; border: 1px solid var(--line) !important; border-radius: 18px !important; }
.estimate { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--grey); color: var(--meta); font: 500 11px/1.4 var(--mono); }
.source-pill { display: inline-flex; align-items: center; gap: 12px; width: auto; max-width: 100%; padding: 8px 8px 8px 18px; background: var(--grey); }
.source-pill button { min-height: 36px; padding: 6px 16px !important; white-space: nowrap; flex: none; border: 0; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important; font: 500 14px/1.2 var(--intake-font) !important; letter-spacing: -.01em; }
.source-pill button:hover { background: var(--grey-2) !important; }
.source-check { color: var(--ink); }
.profile-card-heading h2 { font: 650 12px/1.2 var(--intake-font); letter-spacing: .08em; text-transform: uppercase; }
.positioning-block small { color: inherit; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }

/* Back buttons on every brand step and the loading screen. */
.skip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.confirm-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.confirm-row .back { margin-right: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--meta); font-weight: 500; cursor: pointer; }
.back:hover:not(:disabled) { color: var(--ink); }
.rink-controls .back { min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--grey); color: var(--ink); }

/* Inline errors instead of the browser's default bubble; locked step tabs look locked. */
input[aria-invalid=true] { border-color: #c62828 !important; box-shadow: 0 0 0 4px rgb(198 40 40 / 10%) !important; }
input[aria-invalid=true] ~ .hint { color: #c62828; font-family: var(--intake-font); font-size: 13px; }
nav[aria-label="Signup steps"] button:disabled { opacity: .45; cursor: not-allowed; }
.market-check { border-color: #f0c36d; background: #fff8e8; color: var(--ink); }
.market-check .text-btn { padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.add-price { padding: 0; font: 500 14px/1.4 var(--intake-font); color: var(--meta); }

/* Review: what's still missing, with links to each question. */
.review-missing { display: grid; gap: 6px; border-color: #f0c36d; background: #fff8e8; color: var(--ink); }
.missing-list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.missing-list .text-btn { padding: 0; color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: 3px; font: 500 14px/1.5 var(--intake-font); }
.missing-list.in-card { margin-top: 10px; }
.review-card.incomplete { border-color: #f0c36d; }
.missing-chip { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #fff1d6; color: #8a5a00; font: 600 12px/1.5 var(--intake-font); vertical-align: 2px; }
.actions .hint { margin-right: 12px; }
.primary:disabled { opacity: .45; cursor: not-allowed; }

/* Next steps on the "brief sent" page are not live yet (GUA-73): greyed out, no tick, can't be chosen. */
.rep-line { margin: 0 0 14px; color: var(--ink); font-family: var(--intake-font); font-size: 15px; font-weight: 550; text-align: left; }
.choice.soon { cursor: default; pointer-events: none; user-select: none; padding-right: 16px; }
.choice.soon:hover { background: var(--grey); }
.choice.soon > .icon, .choice.soon > span:not(.soon-badge) { opacity: .45; }
.soon-badge { margin-left: auto; flex: none; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--muted); font-family: var(--intake-font); font-size: 12px; font-weight: 550; white-space: nowrap; }
