/* ==========================================================================
   PilotPad — app
   ========================================================================== */

.view[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.signal { color: var(--signal); font-size: 12px; }

/* ---------- Inputs ---------- */
.input { display: grid; gap: 8px; min-width: 0; }
.input > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.input input, .input textarea, .input select, .chat__form select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.input input::placeholder, .input textarea::placeholder { color: rgba(220, 216, 255, 0.28); }
.input input:focus, .input textarea:focus, .input select:focus {
  border-color: rgba(139, 123, 255, 0.7);
  background: rgba(10, 10, 24, 0.5);
  box-shadow: 0 0 0 4px rgba(110, 91, 255, 0.16);
}
.input input[type="date"] { color-scheme: dark; }
.input--short { max-width: 260px; }
.row { display: grid; gap: 14px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--logo { grid-template-columns: 1.1fr 1fr; align-items: end; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025);
  transition: all 0.25s var(--ease);
}
.seg button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.seg button.on {
  color: #fff; border-color: rgba(139, 123, 255, 0.7);
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.4), rgba(110, 91, 255, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 20px -8px rgba(110, 91, 255, 0.8);
}

.drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 1px dashed rgba(139, 123, 255, 0.4); background: rgba(110, 91, 255, 0.05); transition: background 0.2s;
}
.drop:hover { background: rgba(110, 91, 255, 0.1); }
.drop b { display: block; font-weight: 550; font-size: 14.5px; }
.drop span { font-size: 12.5px; color: var(--text-3); }
.drop__preview {
  width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); color: var(--lavender);
}
.drop__preview img { width: 100%; height: 100%; object-fit: cover; }

.swatches { display: flex; gap: 10px; }
.swatches label {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}
.swatches input { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); border: 0; padding: 0; cursor: pointer; background: none; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter);
}

/* ---------- Intake ---------- */
.intake {
  max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 80px;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start;
}
.intake__aside { position: sticky; top: 40px; display: grid; gap: 18px; }
.intake__aside h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.05em; }
.intake__aside > p { color: var(--text-2); max-width: 380px; }
.stepper { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.stepper li { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; cursor: pointer; transition: background 0.3s; }
.stepper li:hover { background: rgba(255, 255, 255, 0.03); }
.stepper i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3); border: 1px solid var(--line-2); transition: all 0.3s;
}
.stepper b { display: block; font-weight: 550; font-size: 14.5px; color: var(--text-2); }
.stepper span { font-size: 12.5px; color: var(--text-3); }
.stepper li.is-on { background: rgba(110, 91, 255, 0.1); }
.stepper li.is-on i { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 0 20px -2px var(--indigo); }
.stepper li.is-on b { color: var(--text); }
.stepper li.is-done i { border-color: var(--signal); color: var(--signal); }

.intake__card { --glass-r: 28px; padding: 36px; overflow: hidden; }
.intake__progress { position: absolute !important; top: 0; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.05); }
.intake__progress i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--indigo), var(--signal)); transition: width 0.6s var(--ease-out); box-shadow: 0 0 12px var(--signal); }
.fstep { border: 0; margin: 0; padding: 0; display: none; gap: 20px; min-width: 0; }
.fstep.is-on { display: grid; animation: stepIn 0.6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fstep legend { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; padding: 0; margin-bottom: 22px; }
.intake__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.intake__err { color: var(--rose); font-size: 13.5px; flex: 1; text-align: right; }

/* ---------- Analysis ---------- */
.view--analysis { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); }
.analysis { width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.scan { position: relative; width: 200px; height: 200px; margin-bottom: 16px; }
.scan__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.scan__track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 3; }
.scan__val { fill: none; stroke: url(#scanG); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease-out); filter: drop-shadow(0 0 8px rgba(110, 91, 255, 0.8)); }
.scan__dash { fill: none; stroke: rgba(139, 123, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 100px 100px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan__core { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; }
.scan__core img { filter: drop-shadow(0 0 24px rgba(110, 91, 255, 0.8)); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.scan__core strong { font-size: 13px; color: var(--lavender); font-weight: 500; }
.analysis h2 { font-size: clamp(28px, 4vw, 40px); }
.analysis__sub { color: var(--text-2); min-height: 26px; }
.dims { list-style: none; margin: 18px 0 0; padding: 18px 22px; width: 100%; display: grid; gap: 12px; text-align: left; }
.dims li { display: grid; grid-template-columns: 160px 1fr 34px; align-items: center; gap: 14px; font-size: 14px; color: var(--text-3); transition: color 0.3s; }
.dims li.on { color: var(--text); }
.dims i { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.dims b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--signal)); transition: width 0.8s var(--ease-out); }
.dims li.done b { width: var(--w); }
.dims em { font-style: normal; text-align: right; color: var(--lavender); }
.agents-boot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 8px; }
.boot {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; --glass-r: 14px;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--d) * 110ms);
}
.boot.on { opacity: 1; transform: none; }
.boot .icon { color: var(--c); width: 18px; height: 18px; }
.boot .live-dot { margin-left: auto; }

/* ---------- Command center ---------- */
.view--command { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
body.chat-open .view--command { grid-template-columns: 264px 1fr 400px; }

.side {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 14, 26, 0.7), rgba(8, 8, 16, 0.7));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; z-index: 30;
}
.side__brand { padding: 4px 8px 6px; }
.token-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.token-card__logo {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 40%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px -8px var(--c1);
}
.token-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.token-card__meta { min-width: 0; }
.token-card strong { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-card span { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.side__nav { display: grid; gap: 2px; }
.side__label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 6px; }
.side__nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 14px;
  color: var(--text-2); transition: background 0.2s, color 0.2s; position: relative;
}
.side__nav a .icon { width: 18px; height: 18px; color: var(--text-3); transition: color 0.2s; }
.side__nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.side__nav a.on {
  color: var(--text);
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.2), rgba(110, 91, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(139, 123, 255, 0.25);
}
.side__nav a.on .icon { color: var(--c); }
.side__nav .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.side__foot { margin-top: auto; }
.ai-status { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 13px; }
.ai-status b { display: block; font-weight: 550; }
.ai-status span.mono { font-size: 11px; color: var(--text-3); }
.ai-status a { font-size: 12px; color: var(--lavender); }
.dot-off { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }

.main { min-width: 0; padding: 0 28px 80px; }
.mainbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 72px; margin: 0 -28px 8px; padding: 0 28px;
  background: linear-gradient(180deg, rgba(5, 5, 11, 0.9), rgba(5, 5, 11, 0.6));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mainbar__title { font-family: var(--font-display); font-size: 18px; font-weight: 550; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainbar__title .mono { font-size: 13px; color: var(--text-3); font-weight: 400; }
.mainbar__right { display: flex; align-items: center; gap: 10px; }
.mainbar__menu { display: none; width: 40px; padding: 0; }
.countdown .tag { height: 32px; padding: 0 12px; }

.content { padding-top: 18px; }
.content.enter > * { animation: rise 0.7s var(--ease-out) both; }
.content.enter > *:nth-child(2) { animation-delay: 60ms; }
.content.enter > *:nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .content.enter > * { animation: none; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid > .card { animation: rise 0.7s var(--ease-out) both; }
.span-2 { grid-column: span 2; }

.page-head { margin: 8px 0 22px; }
.page-head h2 { font-size: 34px; }
.page-head p { margin-top: 8px; max-width: 640px; }

/* Cards */
.card { padding: 22px; min-width: 0; }
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card__head h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card__head h3 .icon { width: 16px; height: 16px; }
.card__head > :last-child:not(h3) { margin-left: auto; }
.card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 14.5px; color: var(--text-2); }
.card__body p { line-height: 1.6; }
.card__body > .btn, .card__body > .row-btns { justify-self: start; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: all 0.2s;
}
.iconbtn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.iconbtn .icon { width: 15px; height: 15px; }
.card--ai { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(59, 232, 200, 0.18), 0 30px 80px -30px rgba(59, 232, 200, 0.25); }

/* Welcome */
.welcome { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding: 32px; --glass-r: 26px; overflow: hidden; }
.welcome::after { background: radial-gradient(60% 120% at 100% 0%, rgba(110, 91, 255, 0.22), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%); }
.welcome__txt { display: grid; gap: 12px; max-width: 640px; }
.welcome h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.04em; line-height: 1.1; }
.welcome p { color: var(--text-2); font-size: 15px; }
.welcome__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.welcome__score { display: grid; justify-items: center; gap: 10px; flex: none; }
.welcome__score > .mono { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Ring */
.ring { position: relative; width: var(--s, 96px); height: var(--s, 96px); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; }
.ring .ring__v { stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring svg { filter: drop-shadow(0 0 8px rgba(59, 232, 200, 0.3)); overflow: visible; }
.ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--s, 96px) * 0.26); font-weight: 500; color: var(--text); }

/* Bars */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 150px 1fr 30px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--ultraviolet)); animation: grow 1.2s var(--ease-out) both; transform-origin: left; }
.bar--hi b { background: linear-gradient(90deg, var(--indigo), var(--signal)); }
.bar--lo b { background: linear-gradient(90deg, #8a4b6a, var(--rose)); }
.bar em { font-style: normal; text-align: right; color: var(--text); font-size: 12.5px; }
@keyframes grow { from { transform: scaleX(0); } }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.check:hover { background: rgba(255, 255, 255, 0.03); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.22); display: grid; place-items: center; flex: none; margin-top: 1px; transition: all 0.25s; color: transparent; }
.check i .icon { width: 13px; height: 13px; }
.check input:checked + i { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 0 14px -2px var(--indigo); }
.check input:checked ~ span { color: var(--text-3); text-decoration: line-through; }
.check input:focus-visible + i { outline: 2px solid var(--ultraviolet); outline-offset: 2px; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.feed a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background 0.2s; }
.feed a:hover { background: rgba(255, 255, 255, 0.04); }
.feed i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed div { min-width: 0; flex: 1; }
.feed b { font-size: 13px; color: var(--text); font-weight: 550; }
.feed p { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .icon { width: 15px; height: 15px; color: var(--text-3); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 20px; line-height: 1.55; }
.list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--ultraviolet); transform: rotate(45deg); }
.list b { color: var(--text); font-weight: 550; }
.olist { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: o; display: grid; gap: 10px; }
.olist li { counter-increment: o; display: flex; gap: 12px; align-items: baseline; }
.olist li::before { content: counter(o, decimal-leading-zero); font-family: var(--font-mono); font-size: 11.5px; color: var(--lavender); }

/* Agent hero */
.agent-hero {
  display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 16px; --glass-r: 24px; flex-wrap: wrap;
}
.agent-hero::after { background: radial-gradient(50% 140% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%); }
.agent-hero__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--c); flex: none;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%), rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 32px -12px var(--c);
}
.agent-hero__icon .icon { width: 26px; height: 26px; }
.agent-hero__txt { flex: 1; min-width: 220px; }
.agent-hero__txt > span { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--signal); }
.agent-hero h2 { font-size: 28px; margin: 6px 0 4px; }
.agent-hero p { color: var(--text-2); font-size: 14.5px; }
.agent-hero__act { display: flex; gap: 8px; flex-wrap: wrap; }
.agent-hero + .card { margin-bottom: 16px; }

/* Content blocks */
.quote { font-family: var(--font-display); font-size: 21px; line-height: 1.4; color: var(--text); letter-spacing: -0.02em; }
.pillar { display: flex; gap: 14px; }
.pillar > span { font-size: 11.5px; color: var(--lavender); padding-top: 3px; }
.pillar b, .memo b { color: var(--text); font-weight: 550; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pillar p, .memo p { font-size: 14px; margin-top: 3px; }
.memo { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.memo .signal { display: block; margin-top: 8px; }
.taglines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.taglines li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text); font-family: var(--font-display); font-size: 16px; letter-spacing: -0.015em; }
.taglines li:first-child { border-color: rgba(139, 123, 255, 0.45); background: rgba(110, 91, 255, 0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dodont > div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 13.5px; }
.dodont .mono { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.ok { color: var(--signal); } .no { color: var(--rose); }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.palette div { display: grid; gap: 6px; }
.palette i { height: 64px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.palette span { font-size: 11px; color: var(--text-3); }
.site-copy { padding: 26px; border-radius: 18px; background: radial-gradient(80% 100% at 50% 0%, rgba(110, 91, 255, 0.18), transparent 70%), rgba(0, 0, 0, 0.3); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.site-copy h4 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.site-copy__f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0; width: 100%; }
.site-copy__f div { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.site-copy__f b { color: var(--text); font-weight: 550; font-size: 14px; }
.site-copy__f p { font-size: 13px; margin-top: 4px; }

.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel__s {
  padding: 16px; border-radius: 14px; display: grid; gap: 8px; align-content: start;
  background: linear-gradient(180deg, rgba(110, 91, 255, calc(0.22 - var(--i) * 0.04)), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.funnel__s > span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lavender); }
.funnel__s p { font-size: 13.5px; color: var(--text); }
.funnel__s em { font-style: normal; font-size: 11px; color: var(--signal); }

.table { display: grid; gap: 8px; }
.tr { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.tr .tag { flex: none; min-width: 64px; justify-content: center; }
.tr b { color: var(--text); font-weight: 550; font-size: 14px; }
.tr p { font-size: 13.5px; margin-top: 2px; }
.tr--stack { display: grid; gap: 2px; }

.kpis { display: grid; gap: 6px; }
.kpis__h, .kpis__r { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; align-items: center; }
.kpis__h { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: 0 14px; }
.kpis__r { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 13.5px; }
.kpis__r b { font-weight: 500; color: var(--text); }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal__d { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.cal__d > span.mono { font-size: 10.5px; color: var(--text-3); }
.cal__d .tag { justify-self: start; height: 22px; font-size: 11px; }
.cal__d p { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.cal__d em { font-style: normal; font-size: 10.5px; color: var(--text-3); }

.tweets { display: grid; gap: 10px; }
.tweet { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.55; display: grid; gap: 8px; }
.tweet .mono { font-size: 10.5px; justify-self: end; }
.tweet--lg { font-size: 15px; }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.phase { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.phase.is-now { border-color: rgba(59, 232, 200, 0.4); background: rgba(59, 232, 200, 0.05); box-shadow: 0 0 40px -20px var(--signal); }
.phase.is-past { opacity: 0.55; }
.phase__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase__h b { color: var(--text); font-weight: 600; }
.phase__h .mono { font-size: 11px; color: var(--text-3); }
.phase__h .tag { margin-left: auto; height: 22px; }
.phase .list { gap: 8px; font-size: 13px; }

.brief { display: grid; gap: 8px; }
.brief .mono { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.senti { display: flex; gap: 18px; align-items: center; }
.focus { display: grid; gap: 6px; }
.focus .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.focus strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); letter-spacing: -0.03em; }

/* Markdown */
.md { display: grid; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.md h4 { font-family: var(--font-display); font-size: 17px; color: var(--text); margin-top: 6px; letter-spacing: -0.02em; }
.md ul, .md ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.md strong { color: var(--text); font-weight: 600; }
.md code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.md hr { border: 0; border-top: 1px solid var(--line); width: 100%; }

/* Simulator / charts */
.sliders { display: grid; gap: 22px; }
.slider { display: grid; gap: 10px; }
.slider > div { display: flex; justify-content: space-between; font-size: 13.5px; }
.slider b { color: var(--text); font-weight: 500; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); outline: none; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c2ff 45%, #6e5bff);
  box-shadow: 0 0 0 4px rgba(110, 91, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.slider input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #c9c2ff; box-shadow: 0 0 0 4px rgba(110, 91, 255, 0.25); }
.sim-chart { width: 100%; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: rgba(255, 255, 255, 0.06); }
.chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--text-3); }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }
.sim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sim-stats div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: grid; gap: 4px; }
.sim-stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.sim-stats b { font-size: 22px; font-weight: 500; color: var(--text); }

.pulse-form { display: grid; gap: 14px; }
.empty { display: grid; place-items: center; gap: 10px; padding: 40px 10px; text-align: center; color: var(--text-3); }
.empty .icon { width: 28px; height: 28px; color: var(--lavender); }
.ai-form { display: grid; gap: 14px; max-width: 560px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.danger { color: var(--rose); }
.danger:hover { color: #ff8fa7; }

/* Spinner */
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; }

/* ---------- Chat ---------- */
.chat {
  --glass-r: 0;
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 16, 30, 0.82), rgba(8, 8, 16, 0.86));
  transform: translateX(100%); transition: transform 0.5s var(--ease-out);
  visibility: hidden;
}
.chat.open { transform: none; visibility: visible; }
.chat::before { border-radius: 0; }
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 15px; }
.chat__head span { font-size: 11px; color: var(--signal); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat__intro { margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 20px; color: var(--text-2); font-size: 14px; }
.chat__intro img { filter: drop-shadow(0 0 20px rgba(110, 91, 255, 0.7)); margin-bottom: 6px; }
.chat__intro b { color: var(--text); font-size: 16px; }
.bubble { max-width: 92%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; animation: rise 0.4s var(--ease-out); }
.bubble--me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #7a68ff, #5a45ff); border-bottom-right-radius: 6px; box-shadow: 0 8px 24px -12px rgba(110, 91, 255, 0.9); }
.bubble--ai { align-self: flex-start; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble--ai .md { font-size: 14px; gap: 8px; }
.bubble__who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--c); margin-bottom: 6px; }
.bubble__who .icon { width: 14px; height: 14px; }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__sugg { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 10px; scrollbar-width: none; }
.chat__sugg::-webkit-scrollbar { display: none; }
.chat__sugg .tag { cursor: pointer; flex: none; transition: all 0.2s; }
.chat__sugg .tag:hover { color: var(--text); border-color: rgba(139, 123, 255, 0.5); }
.chat__form { padding: 12px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat__form select { padding: 8px 12px; font-size: 12px; border-radius: 10px; width: auto; justify-self: start; }
.chat__input { display: flex; gap: 8px; align-items: flex-end; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); }
.chat__input:focus-within { border-color: rgba(139, 123, 255, 0.6); box-shadow: 0 0 0 4px rgba(110, 91, 255, 0.14); }
.chat__input textarea { flex: 1; resize: none; border: 0; outline: none; background: none; padding: 8px 0; font-size: 14.5px; max-height: 140px; }
.chat__send { width: 38px; padding: 0; flex: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; --glass-r: 999px;
  padding: 12px 20px; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease-out);
  background: linear-gradient(180deg, rgba(30, 30, 50, 0.85), rgba(16, 16, 30, 0.85));
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  body.chat-open .view--command { grid-template-columns: 264px 1fr; }
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .phases, .funnel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .intake { grid-template-columns: 1fr; gap: 28px; }
  .intake__aside { position: static; }
  .stepper { display: none; }
  .view--command, body.chat-open .view--command { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%);
    transition: transform 0.45s var(--ease-out); background: rgba(10, 10, 20, 0.94);
  }
  .side.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.7); }
  .mainbar__menu { display: inline-flex; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .main { padding: 0 16px 80px; }
  .mainbar { margin: 0 -16px 8px; padding: 0 16px; }
}
@media (max-width: 640px) {
  .row--2, .row--logo { grid-template-columns: 1fr; }
  .intake__card { padding: 24px 18px; }
  .welcome { flex-direction: column-reverse; align-items: flex-start; padding: 24px; }
  .cal { grid-template-columns: 1fr 1fr; }
  .phases, .funnel, .site-copy__f, .dodont { grid-template-columns: 1fr; }
  .bar, .dims li { grid-template-columns: 110px 1fr 28px; font-size: 12.5px; }
  .agents-boot { grid-template-columns: 1fr 1fr; }
  .chat { width: 100%; }
  .mainbar__right .btn span, .countdown { display: none; }
  .kpis__h, .kpis__r { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: 12px; gap: 6px; padding-left: 10px; padding-right: 10px; }
  .sim-stats { grid-template-columns: 1fr; }
  .agent-hero h2 { font-size: 23px; }
  .topbar .btn { font-size: 13px; }
}

/* ---------- Trial & billing ---------- */
.topbar__trial { margin-left: auto; }
.mainbar__right .countdown { display: flex; gap: 8px; }
.trial-tag { height: 32px; padding: 0 12px; cursor: pointer; }
.trialbar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.trialbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--signal)); }
.billing-toggle { --glass-r: 999px; display: inline-flex; gap: 4px; padding: 5px; justify-self: start; }
.billing-toggle button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button.on { color: #fff; background: linear-gradient(180deg, rgba(139, 123, 255, .5), rgba(110, 91, 255, .3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.billing-toggle em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; color: #0b0b14; background: var(--signal); }
.yplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yplan { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.yplan--now { border-color: rgba(139, 123, 255, .5); background: rgba(110, 91, 255, .1); }
.yplan > .mono { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.yplan > b { color: var(--text); font-weight: 600; }
.yplan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.yplan__price strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.yplan__price span { color: var(--text-3); font-size: 13px; }
.yplan p { font-size: 12.5px; color: var(--text-3); }
.yplan em { font-style: normal; font-weight: 600; }
[data-cycle][hidden] { display: none !important; }
body.paywalled { overflow: hidden; }
.paywall { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(5, 5, 11, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: rise .5s var(--ease-out); }
.paywall__card { width: 100%; max-width: 760px; padding: 36px; display: grid; gap: 16px; justify-items: center; text-align: center; background: linear-gradient(180deg, rgba(22, 22, 38, .95), rgba(12, 12, 22, .95)); }
.paywall__card img { filter: drop-shadow(0 0 24px rgba(110, 91, 255, .8)); }
.paywall__card h2 { font-size: 32px; }
.paywall__card > p { max-width: 520px; }
.paywall__card .billing-toggle, .paywall__card .row-btns { justify-self: center; }
.paywall__card .yplans { width: 100%; text-align: left; }
@media (max-width: 760px) {
  .yplans { grid-template-columns: 1fr; }
  .paywall__card { padding: 24px 18px; }
  .topbar__trial { display: none; }
}
@media (max-width: 640px) {
  .mainbar__right .countdown { display: flex; }
  .mainbar__right .countdown .tag:not(.trial-tag) { display: none; }
  .trial-tag { font-size: 11px; padding: 0 10px; }
}
