/* Setup wizard. Shares tokens with barecost.css. */

.setup-body { background: var(--ink); }
.setup { max-width: 720px; padding-block: clamp(32px, 5vw, 56px) 96px; }

.nav .who { font-size: 13.5px; color: var(--dim); }
.linkbtn {
  background: none; border: 0; color: var(--muted); font-family: inherit;
  font-size: 14px; cursor: pointer; padding: 6px 4px; text-decoration: underline;
  text-underline-offset: 2px; min-height: 44px;
}
.linkbtn:hover { color: var(--lime); }

.pane h1, .pane h2 { margin: 0; }
.pane .display { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.pane .lede { color: var(--muted); font-size: 16px; margin: 0 0 26px; }

/* --- fields --------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 7px; }
/* Field labels sat at --dim (0.56) against near-black while every other
   label on the same card is lime. They read as disabled rather than as
   headings. */
.field > span { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.field > span .dim { text-transform: none; letter-spacing: 0; }
.field input {
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--rule);
  background: oklch(0.13 0 0); color: var(--text); font-family: inherit; font-size: 15px;
}
.field input:focus { border-color: var(--lime); outline: none; }

.msg { font-size: 14px; font-weight: 600; min-height: 20px; margin: 10px 0 0; }
.msg.ok { color: var(--lime); }
.msg.err { color: var(--danger); }
.msg.working { color: var(--muted); }

/* --- rail ----------------------------------------------------------------- */

.steps-rail {
  list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 0; margin: 0 0 28px; flex-wrap: wrap;
}
.steps-rail li { display: flex; align-items: center; gap: 9px; }
.steps-rail li + li::before {
  content: ''; width: 26px; height: 1px; background: var(--rule); margin-right: 8px;
}
.steps-rail .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: oklch(0.22 0 0); color: var(--dim); flex-shrink: 0;
}
.steps-rail .lbl { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.steps-rail li.current .dot { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.steps-rail li.current .lbl { color: var(--text); }
.steps-rail li.done .dot { background: oklch(0.28 0.09 128); color: var(--lime); }
@media (max-width: 620px) {
  .steps-rail .lbl { display: none; }
  .steps-rail li + li::before { width: 16px; margin-right: 4px; }
}

/* --- card ----------------------------------------------------------------- */

.card {
  border: 1px solid var(--rule); border-radius: 16px; background: var(--surface);
  padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px;
}
.eyebrow { font-size: 11px; letter-spacing: 0.09em; color: var(--lime); margin: 0; }
.card h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.blurb { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.card hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.body { min-height: 210px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.body[hidden] { display: none; }
.body.done { align-items: center; text-align: center; }
.body.done .big { font-size: 17px; font-weight: 600; margin: 0; }

.reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.reasons li {
  font-size: 13.5px; line-height: 1.55; color: oklch(0.86 0 0);
  padding-left: 26px; position: relative;
}
.reasons li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--lime); font-weight: 700;
}

.rowcard {
  padding: 15px; background: oklch(0.22 0 0); border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.rowcard.column { flex-direction: column; align-items: stretch; gap: 8px; }
.rowcard .between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rowcard strong { display: block; font-size: 13.5px; }
.rowcard .dim { font-size: 12.5px; line-height: 1.55; display: block; }

.reassure {
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 10px; padding: 13px; margin: 0;
}
.label-sm { font-size: 11px; letter-spacing: 0.07em; color: var(--dim); margin: 0; }

.caps { display: flex; gap: 8px; }
.cap {
  flex-grow: 1; padding: 13px 0; border-radius: 9px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; min-height: 44px;
  background: oklch(0.24 0 0); color: oklch(0.80 0 0); border: 1px solid var(--rule);
}
.cap[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); font-weight: 700; border-color: var(--lime); }

.actions { display: flex; align-items: center; gap: 12px; }
.actions .spacer { flex-grow: 1; }
.counter { font-size: 12.5px; }
.btn:disabled { opacity: 0.4; cursor: default; }

.foot { text-align: center; margin-top: 22px; font-size: 13px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--lime); }

/* Custom spend limit — presets stay primary, the field is for the rest. */
.cap-custom { flex-grow: 0; padding-inline: 16px; font-family: inherit; font-size: 13.5px; }
.cap-custom-field { margin-top: 12px; max-width: 220px; }
.cap-custom-field[hidden] { display: none; }
.cap-custom-field input { font-family: 'JetBrains Mono', monospace; }

/* The fal handoff. Explicit, because it cannot be framed and should not be. */
.todo { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.todo li { font-size: 13px; line-height: 1.6; color: var(--muted); }
.todo strong { color: var(--text); font-weight: 600; }

/* Consent checkbox. Deliberately not styled to disappear - a waiver the eye
   slides past is not informed consent, whatever the timestamp says. */
.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: oklch(0.75 0 0);
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: oklch(0.87 0.22 128);
  cursor: pointer;
}
.check strong { color: oklch(0.96 0 0); }

/* Second-provider form actions. */
.row-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.row-actions .linkish { font-size: 13px; color: oklch(0.87 0.22 128); text-underline-offset: 3px; }

/* Provider choice. Two cards, because there are two and a dropdown would hide
   the difference that matters - what each one costs to start with. */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pickp {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px;
  text-align: left;
  border: 1.5px solid oklch(0.28 0 0);
  border-radius: 12px;
  background: oklch(0.15 0 0);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pickp:hover { border-color: oklch(0.42 0 0); }
.pickp[aria-pressed="true"] { border-color: oklch(0.87 0.22 128); background: oklch(0.18 0.03 128); }
.pickp .pn { font-weight: 700; font-size: 15px; }
.pickp .pb { font-size: 13px; line-height: 1.45; color: oklch(0.66 0 0); }

.substeps { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.substeps li { font-size: 14px; line-height: 1.5; }

/* The scope warning. Atlas keys carry full account permissions and their own
   console says so; softening it here would be choosing our convenience over
   the customer's understanding. */
.reassure.warn {
  border-left: 2px solid oklch(0.8 0.16 85);
  padding-left: 12px;
  color: oklch(0.8 0.1 85);
}

/* Language model list on the account page. */
.llm-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.llm {
  padding: 14px;
  border: 1px solid oklch(0.24 0 0);
  border-radius: 12px;
  background: oklch(0.14 0 0);
}
.llm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.llm-head strong { font-size: 15px; }
.tagcost {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tagcost.free { background: oklch(0.87 0.22 128 / 0.16); color: oklch(0.87 0.22 128); }
.tagcost.paid { background: oklch(0.3 0 0); color: oklch(0.72 0 0); }
.llm-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: oklch(0.8 0 0); }
.llm-note { color: oklch(0.87 0.22 128); margin: 4px 0 0; }
.llm-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.llm-form .field { margin: 0; }

/* Where a brief is processed. On the badge row beside free/paid, because it
   is the same kind of fact: something you should know before choosing, not
   after. */
.tagregion {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: oklch(0.22 0 0);
  color: oklch(0.68 0 0);
}

/* Show/hide on password fields. The button sits inside the field's box rather
   than beside it, so the field keeps its full width on a phone. */
.reveal { position: relative; display: block; }
.reveal > input { width: 100%; padding-right: 46px; }
.reveal-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 0; border-radius: 8px; background: transparent;
  color: oklch(0.66 0 0);
}
.reveal-btn:hover { color: oklch(0.92 0 0); background: oklch(0.24 0 0); }
.reveal-btn:focus-visible { outline: 2px solid oklch(0.87 0.22 128); outline-offset: 1px; }

/* Sign in / Create account. Both do the same thing, and the page says so;
   the pair exists because a lone "Sign in" heading turns a first-time
   visitor away looking for a button that was never going to be there. */
.authtabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px;
  border: 1px solid var(--rule); border-radius: 999px; }
/* 44px minimum, like .linkbtn above. These two are the first thing a phone
   user taps on the way to an account, and at 35px they were under the size a
   thumb reliably hits. Centred rather than padded taller so the pill keeps
   its shape. */
.authtab { border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13.5px; padding: 7px 16px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted); }
.authtab[aria-selected="true"] { background: var(--lime); color: oklch(0.11 0 0);
  font-weight: 600; }
.authtab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Deliberately loud. Somebody staring at an empty inbox is thirty seconds from
   deciding the site does not work, and the answer is almost always a filter. */
.spam-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.5;
  color: var(--warn, #f5a524);
  border: 1px solid color-mix(in oklch, var(--warn, #f5a524) 45%, transparent);
  background: color-mix(in oklch, var(--warn, #f5a524) 10%, transparent); }
.spam-note strong { color: var(--warn, #f5a524); }

/* Signed in with nothing bought. Two ways on, neither compulsory. */
.ready-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.bought-note { margin: 0 0 20px; padding: 13px 15px; border-radius: 11px;
  font-size: 14px; line-height: 1.5;
  color: oklch(0.87 0.22 128);
  border: 1px solid color-mix(in oklch, oklch(0.87 0.22 128) 40%, transparent);
  background: color-mix(in oklch, oklch(0.87 0.22 128) 9%, transparent); }

/* A question about a likely typo. Amber: it is a question, not a refusal,
   and the address may well be right. */
.msg.warn { color: var(--warn, #f5a524); }
.msg.warn .linkish { color: inherit; font-weight: 700; background: none;
  border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
