/* Self-serve funnel pages: /b/<build>, /manage/<token>, /s/<slug>.
 *
 * Deliberately a separate stylesheet from site.css. That file dresses a
 * marketing page and a personalized prospect page; these are product screens
 * where someone is waiting on a job to finish, and they share only the design
 * tokens. Importing the whole marketing sheet to reuse six variables would
 * couple two things that will change for different reasons.
 */
@import url('/css/site.css');

.app { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
.app-wide { max-width: 60rem; }

.app h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6rem; }
.app h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 2.4rem 0 .85rem; }
.app p.sub { color: var(--slate); font-size: 1.06rem; line-height: 1.6; margin: 0 0 1.8rem; }

.card { border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--paper); padding: 1.4rem; margin: 0 0 1.15rem; }
.card.tight { padding: 1rem 1.15rem; }

/* Progress. Steps are named rather than a percentage bar: a bar that sits at
 * 40% for twenty seconds reads as broken, while "Reading the site" reads as
 * work. Same wait, different feeling. */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.steps li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: var(--slate); font-size: .96rem; transition: color .25s ease; }
.steps li .bullet { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .7rem; line-height: 1; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active .bullet { border-color: var(--signal); animation: pulse 1.5s ease-in-out infinite; }
.steps li.done { color: var(--ink); }
.steps li.done .bullet { border-color: var(--signal); background: var(--signal); color: var(--primary-foreground); }
.steps li .detail { color: var(--slate); font-weight: 400; font-size: .88rem; margin-left: .35rem; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15,114,104,.35); } 50% { box-shadow: 0 0 0 5px rgba(15,114,104,0); } }
@media (prefers-reduced-motion: reduce) { .steps li.active .bullet { animation: none; } }

/* Battery report. The whole differentiator, so it is shown as evidence with
 * the actual probe names, not summarised into a badge. */
.report { display: grid; gap: .4rem; }
.probe { display: flex; align-items: baseline; gap: .6rem; font-size: .93rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.probe:last-child { border-bottom: 0; }
.probe .mark { flex: none; width: 1.1rem; font-weight: 700; }
.probe.pass .mark { color: var(--signal); }
.probe.fail .mark { color: #C4562F; }
.probe .name { flex: 1; }
.probe .tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }

.score { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .9rem; }
.score .n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.score .of { color: var(--slate); font-size: .95rem; }

.snippet { font-family: var(--font-mono); font-size: .82rem; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-medium); padding: .8rem .9rem; overflow-x: auto; white-space: pre; margin: 0 0 .6rem; }

.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: var(--radius-medium); background: var(--signal); color: var(--primary-foreground); font: 600 .97rem/1 var(--font-sans); padding: .78rem 1.2rem; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.quiet { background: transparent; color: var(--slate); border: 0; text-decoration: underline; padding: .4rem 0; font-weight: 400; }

.field { display: flex; gap: .55rem; flex-wrap: wrap; }
.field input { flex: 1 1 16rem; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-medium); padding: .78rem .9rem; font: 400 1rem/1.3 var(--font-sans); background: var(--paper); color: var(--ink); }
.field input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }

.muted { color: var(--slate); font-size: .9rem; line-height: 1.55; }
.err { color: #C4562F; font-size: .93rem; margin: .5rem 0 0; }
.pill { display: inline-block; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; }
.pill.live { color: var(--signal); border-color: var(--signal); }

/* Preview chat. Same interaction as the embeddable widget, styled for our own
 * page rather than an unknown host. */
.chat { border: 1px solid var(--line); border-radius: var(--radius-large); overflow: hidden; display: flex; flex-direction: column; height: 27rem; background: var(--paper); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.chat-msg { max-width: 84%; padding: .6rem .85rem; border-radius: 12px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.them { background: var(--wash); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.me { background: var(--signal); color: var(--primary-foreground); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-foot { border-top: 1px solid var(--line); padding: .7rem; }
.chat-foot form { display: flex; gap: .5rem; }
.chat-foot input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-medium); padding: .6rem .75rem; font: 400 .95rem var(--font-sans); background: var(--paper); color: var(--ink); }
.chat-foot input:focus { outline: none; border-color: var(--signal); }
.dots { display: flex; gap: 4px; padding: .7rem; }
/* display:flex outranks the hidden attribute, so idle dots rendered as a
 * permanent "typing" state on first load. */
.dots[hidden], [hidden] { display: none !important; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: b 1.3s infinite; }
.dots i:nth-child(2) { animation-delay: .18s; } .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes b { 0%,60%,100% { opacity:.28; transform: translateY(0);} 30% { opacity:1; transform: translateY(-3px);} }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .5; } }

.leads { display: grid; gap: .7rem; }
.lead { border: 1px solid var(--line); border-radius: var(--radius-medium); padding: .8rem .95rem; }
.lead .who { font-weight: 650; }
.lead .when { color: var(--slate); font-size: .82rem; }
.lead .need { margin-top: .35rem; font-size: .93rem; line-height: 1.5; }
.lead.urgent { border-color: #C4562F; }

.factlist { margin: 0; padding-left: 1.1rem; }
.factlist li { margin: .3rem 0; font-size: .94rem; line-height: 1.5; }
