/* SuperAppAnalytics — installer sign-in (the page the coding agent opens). */

body.connect { min-height: 100vh; min-height: 100dvh; }
.c-aura { position: fixed; height: 760px; transition: opacity 1.4s ease; }
body.is-connected .c-aura { opacity: 1; }
.c-backdrop {
  position: fixed; right: -10vw; bottom: -30vh; z-index: 0;
  width: 70vw; height: 70vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--deep), .22), transparent);
  filter: blur(40px);
  opacity: .5;
  pointer-events: none;
  transition: opacity 1.6s ease, transform 2s var(--ease-out);
}
body.is-connected .c-backdrop { opacity: 1; transform: scale(1.15); }

.c-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: 0 auto;
  padding: 22px 0 6px;
}
.c-top-right { display: flex; align-items: center; gap: 10px; }
.preview-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.preview-pill[hidden] { display: none; }
.c-top .theme-toggle { width: 40px; height: 40px; }

.c-main {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 580px);
  justify-content: space-between; align-items: center;
  gap: 64px;
  width: min(100% - 2 * var(--gutter), 1180px);
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  margin: 0 auto;
  padding: 0 0 36px;
}
.c-col { display: flex; flex-direction: column; }
.c-chart { height: 104px; margin: 0 -6px 2px; }

.rise { animation: c-rise .75s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes c-rise { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

.c-title { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(32px, 8.4vw, 42px); line-height: 1.05; font-weight: 700; letter-spacing: -.032em; text-wrap: balance; }
.c-lede { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--text-2); }

/* Progress: Run installer → Sign in → Back to terminal */
.c-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 18px; padding: 0; list-style: none; }
.c-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--text-2); transition: color .4s ease; }
.c-step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 1px; background: var(--hairline-2); transition: background .5s ease; }
.c-step.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--text-2), var(--hairline-2)); }
.c-dot {
  position: relative; display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  border: 1.5px solid var(--hairline-2);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text-2);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .5s ease;
}
.c-dot svg { display: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.c-step.is-current { color: var(--text); }
.c-step.is-current .c-dot { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 4px rgba(var(--primary), .16), 0 0 20px rgba(var(--glow), .5); }
.c-step.is-done .c-dot { background: var(--text); border-color: var(--text); color: var(--bg); }
.c-step.is-done .c-dot svg { display: block; }
.c-step.is-done .c-num { display: none; }

/* Card */
.c-card { padding: 20px; }
@media (min-width: 400px) { .c-card { padding: 24px; } }
.c-view[hidden] { display: none; }
.c-view-in { animation: c-rise .55s var(--ease) both; }
.c-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0 0 20px; }
.c-seg .seg-btn { width: 100%; height: 38px; }
.c-field { display: grid; gap: 8px; margin: 0 0 14px; }
.c-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.c-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.c-hint { font-size: 12px; color: var(--text-2); }
.c-hint[hidden], .c-link[hidden] { display: none; }
.c-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: color .2s ease; }
.c-link:hover { color: var(--text); }
.c-input {
  width: 100%; height: 52px; padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--hairline-2);
  background: var(--fill);
  color: var(--text);
  font: inherit; font-size: 16px; letter-spacing: -.005em;
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease, opacity .2s ease;
}
.c-input::placeholder { color: var(--text-3); }
.c-input:hover { background: var(--fill-2); }
.c-input:focus { border-color: var(--text-2); box-shadow: 0 0 0 4px rgba(var(--glow), .13), 0 0 28px rgba(var(--primary), .14); }
.c-input[aria-invalid="true"] { border-color: rgba(var(--negative), .65); }
.c-input:disabled { opacity: .55; }
.c-input:-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 100000s ease 0s; }
.c-pw { position: relative; }
.c-pw .c-input { padding-right: 54px; }
.c-pw-toggle {
  position: absolute; top: 6px; right: 6px;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 10px;
  background: none; color: var(--text-2);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.c-pw-toggle:hover { color: var(--text); background: var(--fill-2); }
.c-pw-toggle .i { font-size: 20px; }
.c-pw-toggle .i-hide, .c-pw-toggle[aria-pressed="true"] .i-show { display: none; }
.c-pw-toggle[aria-pressed="true"] .i-hide { display: block; }

.c-error { display: grid; grid-template-rows: 0fr; margin: 0; opacity: 0; transition: grid-template-rows .28s var(--ease), opacity .2s ease, margin .28s var(--ease); }
.c-error.is-visible { grid-template-rows: 1fr; margin: 2px 0 14px; opacity: 1; }
.c-error-clip { min-height: 0; overflow: hidden; }
.c-error-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--negative), .1);
  border: 1px solid rgba(var(--negative), .24);
  font-size: 14px; line-height: 1.4;
}
.c-error-row > svg { flex: none; width: 18px; height: 18px; color: rgb(var(--negative)); }
.c-error-action {
  display: block; margin-top: 4px; padding: 0;
  border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px;
  cursor: pointer;
}
.c-error-action[hidden] { display: none; }
.c-submit { width: 100%; margin-top: 6px; height: 54px; font-size: 16px; }
.c-submit:disabled { cursor: progress; opacity: .88; }
.c-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: c-spin .7s linear infinite; }
.c-submit[aria-busy="true"] .c-spinner { display: block; }
@keyframes c-spin { to { transform: rotate(360deg); } }
.c-noscript { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--negative), .1); border: 1px solid rgba(var(--negative), .24); font-size: 14px; }

/* Reset + notices */
.c-back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 14px -6px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.c-back:hover { color: var(--text); background: var(--fill-2); }
.c-back .i { font-size: 16px; }
.c-view-title { margin: 0 0 8px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.c-view-text { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.c-note { min-height: 0; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.c-note:not(:empty) { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--positive), .08); border: 1px solid rgba(var(--positive), .2); color: var(--text); }
.c-notice-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 2px 0 18px; border-radius: 50%; background: rgba(var(--negative), .1); border: 1px solid rgba(var(--negative), .24); color: rgb(var(--negative)); }
.c-divider { height: 1px; margin: 22px 0 18px; border: 0; background: var(--hairline); }
.c-hint-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.c-cmd { width: 100%; justify-content: space-between; height: 50px; font-size: 13px; padding-left: 16px; }
.c-cmd .copy-btn { height: 38px; }

/* Connected */
.c-success { padding: 10px 2px 4px; text-align: center; }
.c-mark { position: relative; width: 88px; height: 88px; margin: 6px auto 20px; }
.c-mark::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--primary), .38), rgba(var(--glow), .08) 60%, transparent);
  opacity: 0; animation: c-fade .9s ease .35s forwards;
}
@keyframes c-fade { to { opacity: 1; } }
.c-mark svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.c-mark .stop-deep { stop-color: rgb(var(--deep)); }
.c-mark .stop-primary { stop-color: rgb(var(--primary)); }
.c-mark .stop-glow { stop-color: rgb(var(--glow)); }
.c-ring-track { fill: none; stroke: var(--hairline-2); stroke-width: 3; }
.c-ring, .c-check { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-ring { stroke-width: 3; animation: c-draw .95s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.c-check { stroke: var(--text); stroke-width: 3.5; animation: c-draw .45s cubic-bezier(.65, 0, .35, 1) .85s forwards; }
@keyframes c-draw { to { stroke-dashoffset: 0; } }
.c-success h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; outline: none; }
.c-success p { max-width: 320px; margin: 0 auto; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.c-account {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  margin-top: 20px; padding: 8px 14px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--hairline);
  font-size: 13px; color: var(--text-2);
}
.c-account[hidden] { display: none; }
.c-account strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.c-account-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 8px rgb(var(--glow)); }

.c-footer { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 26px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--text-2); }
.c-footer svg { flex: none; margin-top: 2px; }
.c-footer p { max-width: 330px; margin: 0; }

/* Terminal mirror */
.c-side { display: flex; flex-direction: column; gap: 16px; }
.c-term-body { height: 380px; }
.c-side-note { margin: 0; font-size: 13.5px; text-align: center; color: var(--text-2); }

@media (max-width: 980px) {
  .c-main { grid-template-columns: minmax(0, 460px); justify-content: center; align-items: start; padding-top: 8px; }
  .c-side { display: none; }
}

/* A new account: after connecting, the plan step comes next (/plan). */
.c-plan-next { margin-top: 18px; }
