/* Nexus Voice website: download, sign in, account and 404. */

.page-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 50% 0%, rgba(29, 78, 216, 0.16), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(12, 166, 120, 0.07), transparent 70%),
    radial-gradient(30% 30% at 80% 10%, rgba(232, 89, 12, 0.07), transparent 70%);
}
main { position: relative; isolation: isolate; }
.btn-block { width: 100%; }

/* ================================================================== download */
.dl-hero { padding: 64px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dl-hero .app-icon { width: 120px; height: 120px; margin: 0 0 18px; filter: drop-shadow(0 24px 40px rgba(61, 220, 132, 0.12)); }
.dl-hero .eyebrow + h1 { margin-top: 14px; }
.dl-hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.dl-meta { margin-top: 18px; min-height: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; color: var(--ink-2); font-size: 16px; }
.dl-meta .ver {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 600 13.5px/1 var(--font); color: var(--accent-2);
  background: rgba(59, 130, 246, 0.12); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}
.dl-meta .ver::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); }
.skel { display: inline-block; height: 14px; width: 220px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.11), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.plat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.pcard { display: flex; flex-direction: column; padding: 28px; transition: box-shadow 200ms, transform 400ms var(--spring); }
.pcard.mine {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 80px -40px rgba(29, 78, 216, 0.6);
  order: -1;
}
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard .glyph {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pcard .glyph svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pcard .yours {
  display: none; height: 26px; padding: 0 10px; border-radius: 999px; align-items: center;
  font: 600 12px/1 var(--font); letter-spacing: 0.02em; color: var(--accent-2); background: rgba(59, 130, 246, 0.16);
}
.pcard.mine .yours { display: inline-flex; }
.pcard h2 { margin-top: 22px; font-size: 24px; letter-spacing: -0.02em; font-weight: 650; }
.pcard .file { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.pcard ul { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.pcard li { position: relative; padding-left: 16px; }
.pcard li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.pcard .btn { margin-top: auto; }
.pcard .na { margin-top: auto; font-size: 14px; color: var(--ink-3); text-align: center; padding: 12px 0; }
.dl-alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 900px) { .plat-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } }

/* private beta / waitlist */
.beta { margin: 48px auto 0; max-width: 640px; padding: 48px 40px 40px; text-align: center; overflow: hidden; }
.beta .island-badge {
  display: flex; width: fit-content; align-items: center; gap: 8px; height: 30px; padding: 0 16px; border-radius: 0 0 15px 15px;
  margin: -48px auto 32px; background: #000; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  font: 600 12px/1 var(--font); color: var(--ink);
}
.beta .island-badge .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.beta h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.beta > p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.beta form { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; text-align: left; }
.beta form .btn { grid-column: 1 / -1; --h: 52px; }
.beta form .input { border-radius: 14px; }
.beta .status { margin-top: 14px; text-align: left; }
.beta .waitlist-done { margin-top: 30px; }
.beta .fine { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 560px) {
  .beta { padding: 44px 20px 28px; }
  .beta .island-badge { margin-top: -44px; }
  .beta form { grid-template-columns: minmax(0, 1fr); }
}

/* first launch */
.launch { margin-top: 112px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.launch .section-head { margin-bottom: 0; }
.launch .section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hair); margin-bottom: 18px; }
.tabs [role="tab"] {
  height: 36px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font: 600 14px/1 var(--font); color: var(--ink-2); transition: background 200ms, color 200ms;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.tabpanel { padding: 30px 32px; }
.tabpanel[hidden] { display: none; }
.tabpanel ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.tabpanel li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.tabpanel li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font: 700 13px/1 var(--font); color: var(--accent-2); background: rgba(59, 130, 246, 0.14); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}
.tabpanel li b { color: var(--ink); font-weight: 600; }
.tabpanel code { font: 500 0.9em/1 var(--mono); color: var(--accent-2); background: rgba(59, 130, 246, 0.1); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.tabpanel .why { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 900px) { .launch { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 88px; } }
@media (max-width: 480px) { .tabpanel { padding: 24px 20px; } .tabs [role="tab"] { padding: 0 13px; } .tabpanel code { white-space: normal; word-break: break-all; } }

.reqs { margin-top: 88px; }
.reqs h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; }
.req-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.req { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--hair); }
.req b { display: block; font-size: 15px; font-weight: 650; }
.req span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .req-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== auth */
.auth { min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: center; padding: 72px var(--gutter) 40px; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 36px 34px; }
.auth-card .crest { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-card .crest img { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 30px -10px rgba(0, 0, 0, 0.8), 0 10px 40px -12px rgba(61, 220, 132, 0.35); }
.auth-step { text-align: center; }
.auth-step[hidden] { display: none; }
.auth-step.enter { animation: step-in 480ms var(--spring-calm) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px) scale(0.985); filter: blur(3px); } }
.auth-step h1 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.15; }
.auth-step > p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.auth-step > p b { color: var(--ink); font-weight: 600; word-break: break-all; }
.auth-step form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.auth-step .status { text-align: left; }
.auth-foot { margin-top: 22px; max-width: 440px; text-align: center; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.auth-foot a { color: var(--ink-2); }
.auth-busy { display: grid; place-items: center; min-height: 200px; color: var(--ink-3); font-size: 14px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); border-top-color: rgba(255,255,255,0.8); animation: spin 700ms linear infinite; }
@media (max-width: 480px) {
  .auth { padding-top: 40px; }
  .auth-card { padding: 32px 22px 26px; }
}

/* 6-digit code: one real input over six painted slots */
.code-wrap { position: relative; height: 62px; }
.code-slots { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.code-slots span {
  display: grid; place-items: center; border-radius: 14px;
  font: 600 26px/1 var(--mono); color: var(--ink);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow 160ms, background 160ms, transform 300ms var(--spring);
}
.code-slots span.filled { background: rgba(255, 255, 255, 0.09); }
.code-wrap.focus .code-slots span.active { box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.9), 0 0 0 4px rgba(59, 130, 246, 0.2); }
.code-wrap.focus .code-slots span.active:empty::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-wrap.bad .code-slots span { box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.7); }
.code-wrap.shake { animation: shake 380ms cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-6px); } }
.code-wrap.ok .code-slots span { box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.7); background: rgba(61, 220, 132, 0.08); }
.code-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent;
  font: 600 26px/1 var(--mono); letter-spacing: 1em; padding: 0 0 0 12px;
  -webkit-text-fill-color: transparent;
}
.code-input::selection { background: transparent; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 380px) { .code-slots { gap: 5px; } .code-slots span { font-size: 22px; border-radius: 12px; } }

.affix { position: relative; }
.affix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font: 500 16px/1 var(--font); pointer-events: none; }
.affix .input { padding-left: 34px; }
.affix .state { left: auto; right: 14px; width: 20px; height: 20px; }
.check-ok, .check-bad, .check-wait { display: none; }
.affix[data-state="ok"] .check-ok, .affix[data-state="bad"] .check-bad, .affix[data-state="wait"] .check-wait { display: block; }
.check-ok svg, .check-bad svg { width: 20px; height: 20px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check-ok svg { stroke: var(--go); }
.check-bad svg { stroke: var(--stop-ink); }
.check-wait .spinner { width: 16px; height: 16px; margin: 2px; }
.opt { color: var(--ink-3); font-weight: 500; }
.skip-link { text-align: center; font-size: 14px; color: var(--ink-3); }

/* ================================================================== account */
.acct { max-width: 780px; margin: 0 auto; padding: 64px var(--gutter) 0; }
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.acct-head h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.035em; font-weight: 700; line-height: 1.05; }
.acct-head p { margin-top: 8px; color: var(--ink-2); font-size: 16px; word-break: break-word; }
.acct-who { display: flex; align-items: center; gap: 18px; }
.avatar {
  --c: #6b7cff; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center;
  font: 650 22px/1 var(--font); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 60%, var(--c) 0, color-mix(in oklab, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px color-mix(in oklab, var(--c) 22%, transparent), 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
.avatar.has-photo { overflow: hidden; }
.avatar > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.acct-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.acard { padding: 8px 28px; }
.acard > h2 { font-size: 13px; font-family: var(--font); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 22px 0 6px; }
.arow { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.arow:last-child { border-bottom: 0; }
.arow .k { flex: 0 0 140px; color: var(--ink-2); font-size: 15px; }
.arow .v { flex: 1; min-width: 0; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.arow .v .muted { color: var(--ink-3); }
.arow .v small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.arow .act { flex: 0 0 auto; display: flex; gap: 8px; }
.arow.editing { flex-wrap: wrap; align-items: flex-start; }
.edit-form { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; }
.edit-form .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
.edit-form .input { height: 46px; }
@media (max-width: 560px) {
  .acard { padding: 4px 18px; }
  .arow { flex-wrap: wrap; gap: 6px 12px; }
  .arow .k { flex-basis: 100%; font-size: 13.5px; }
  .arow .v { flex: 1 1 0; }
}

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 10px; padding: 16px 18px; border-radius: 16px;
  background: rgba(59, 130, 246, 0.09); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}
.code-box code { font: 600 clamp(16px, 4.2vw, 21px)/1.2 var(--mono); letter-spacing: 0.06em; color: #dbeafe; overflow-wrap: anywhere; }
.pc-card .lead { padding: 10px 0 4px; color: var(--ink-2); font-size: 15px; }
.pc-card .empty-pc { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0 22px; }
.pc-card .empty-pc .glyph { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pc-card .empty-pc svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pc-card .empty-pc b { display: block; font-size: 16px; font-weight: 600; }
.pc-card .empty-pc p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.pc-card .empty-pc .btn { margin-top: 14px; }
.pc-card .note { padding: 0 0 22px; color: var(--ink-3); font-size: 14px; }

.sessions { list-style: none; margin: 0; padding: 0; }
.sess { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.sess:last-child { border-bottom: 0; }
.sess .glyph { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hair-2); }
.sess .glyph svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sess .t { flex: 1; min-width: 0; }
.sess .t b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.sess .t > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.badge-here { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11.5px/1 var(--font); color: #b9f5d3; background: rgba(61, 220, 132, 0.14); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.3); }
.sess.leaving { animation: sess-out 320ms var(--ease-out) forwards; }
@keyframes sess-out { to { opacity: 0; transform: translateX(12px); } }
.sess-empty { padding: 16px 0 22px; color: var(--ink-3); font-size: 15px; }

.danger { box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04); background: linear-gradient(180deg, rgba(255, 90, 95, 0.05), rgba(255, 90, 95, 0.015)); }
.danger > h2 { color: #ff9a9d; }
.danger .lead { padding: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.danger form { padding: 18px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.danger .confirm-row { display: flex; gap: 10px; }
.danger .confirm-row .input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) { .danger .confirm-row { flex-direction: column; } }

.acct-signout { display: flex; justify-content: center; margin-top: 28px; }
.gone { max-width: 520px; margin: 40px auto 0; padding: 44px 32px; text-align: center; }
.gone h1 { font-size: 30px; letter-spacing: -0.03em; font-weight: 700; }
.gone p { margin-top: 12px; color: var(--ink-2); }
.gone .btn { margin-top: 26px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 0;
  padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: rgba(30, 32, 40, 0.92); color: var(--ink);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 200ms, transform 420ms var(--spring);
  pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: none; }
.toast.err { color: #ffd0d1; box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.4), 0 16px 40px -10px rgba(0, 0, 0, 0.6); }

/* ================================================================== 404 */
.lost { min-height: calc(100vh - 64px - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px var(--gutter) 40px; }
.lost .mini-notch { position: relative; width: 300px; max-width: 100%; height: 34px; margin-bottom: 44px; }
.lost .mini-notch .pill {
  position: absolute; left: 50%; top: 0; translate: -50% 0; height: 34px; width: 300px; max-width: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  border-radius: 0 0 17px 17px; background: #000;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px -14px rgba(0, 0, 0, 0.8);
  font: 600 12.5px/1 var(--font); color: var(--ink);
}
.lost .pill .l { display: flex; align-items: center; gap: 8px; }
.lost .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.lost .pill .r { color: var(--ink-3); font-weight: 500; }
.lost .code404 { font: 700 13px/1 var(--font); letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.lost h1 { margin-top: 14px; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.04em; font-weight: 700; line-height: 1.02; }
.lost p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.lost .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

.keys-nw { white-space: nowrap; }
