:root {
  color-scheme: dark;
  --bg: #070b12;
  --ink: #f6fbff;
  --muted: rgba(246, 251, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --classic: #009688;
  --classic-soft: #dbfbf5;
  --aurora: #b16cff;
  --mint: #4ee9c7;
  --pink: #ff64ce;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 0;
  font: inherit;
}

.research-shell {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 28px clamp(18px, 5vw, 56px) 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(78, 233, 199, 0.16), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(255, 100, 206, 0.14), transparent 32%),
    linear-gradient(145deg, #071019, #06070d 52%, #0a0f17);
}

.top-bar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.back-link {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

/* four equal archived entries — this used to be a compact dropdown of
   three items sitting alongside one featured "current" choice; now
   there's no featured choice, so it's one plain list at page scale. */
.archive-grid {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.archive-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(78, 233, 199, 0.3);
}

.archive-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.archive-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.archive-open {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.archive-open:hover {
  background: rgba(255, 255, 255, 0.18);
}

.archive-note {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.intro {
  width: 100%;
  max-width: 940px;
  margin: 0 auto 22px;
  text-align: center;
}

.tagline {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tagline-accent {
  color: var(--mint);
}

.brand-mark,
.launch-mark {
  width: 76px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(76, 181, 255, 0.22));
}

.eyebrow,
.choice-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.theme-grid {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.choice-card {
  min-width: 0;
  min-height: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.choice-card:hover,
.choice-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(78, 233, 199, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.choice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.choice-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 251, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.ready {
  background: rgba(78, 233, 199, 0.14);
  color: var(--mint);
}

.status-pill.offline {
  background: rgba(255, 194, 102, 0.12);
  color: #ffd18a;
}

.phone-preview {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 460px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-status {
  position: relative;
  z-index: 2;
  height: 34px;
  padding: 11px 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}

.classic-preview {
  background: #edfdfa;
  color: #073d39;
}

.classic-app {
  padding: 16px;
}

.classic-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.classic-tabs span,
.deck-actions span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  font-size: 12px;
}

.classic-tabs span {
  background: rgba(0, 150, 136, 0.08);
  color: rgba(7, 61, 57, 0.68);
  border: 1px solid rgba(0, 150, 136, 0.15);
}

.classic-tabs .active {
  background: #ffffff;
  color: var(--classic);
  box-shadow: 0 12px 28px rgba(0, 150, 136, 0.18);
}

.classic-hero {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 45px rgba(0, 150, 136, 0.14);
}

.classic-hero p {
  margin: 0 0 4px;
  color: var(--classic);
  font-weight: 800;
  font-size: 13px;
}

.classic-hero h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.06;
}

.mini-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--classic);
  color: white;
  font-weight: 900;
}

.classic-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.classic-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 150, 136, 0.12);
}

.classic-list strong,
.classic-list span {
  display: block;
}

.classic-list span {
  margin-top: 3px;
  color: rgba(7, 61, 57, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.simplified-preview {
  background: #08080c;
}

.simplified-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 10%, rgba(125, 76, 219, 0.28), transparent 32%),
    radial-gradient(circle at 78% 68%, rgba(76, 181, 255, 0.2), transparent 30%);
  filter: blur(4px);
}

.simplified-status {
  color: rgba(255, 255, 255, 0.82);
}

.simplified-app {
  position: relative;
  z-index: 1;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simplified-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.simplified-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(125, 76, 219, 0.18);
  border: 1px solid rgba(125, 76, 219, 0.32);
}

.simplified-logo img {
  width: 18px;
  height: auto;
  object-fit: contain;
}

.simplified-ready {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  font-family: ui-monospace, "JetBrains Mono", monospace;
}

.simplified-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 5px 16px 16px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
}

.simplified-bubble-user {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #7d4cdb, #4cb5ff);
  border: none;
  color: #fff;
}

.chat-insights-card {
  margin-top: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px 18px 18px 18px;
  overflow: hidden;
}

.ci-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-head-text {
  flex: 1;
  min-width: 0;
}

.ci-title {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f7;
  letter-spacing: -0.3px;
}

.ci-subtitle {
  font-size: 11px;
  color: rgba(244, 244, 247, 0.45);
  margin-top: 1px;
}

.ci-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7d4cdb, #4cb5ff);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ci-cats {
  padding: 10px 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ci-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.ci-cat i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  font-style: normal;
}

.ci-cat b {
  font-weight: 600;
  color: rgba(244, 244, 247, 0.45);
}

.ci-cat-personal {
  background: #7d4cdb14;
  border: 1px solid #7d4cdb28;
  color: #7d4cdb;
}

.ci-cat-personal i {
  background: #7d4cdb;
}

.ci-cat-transactions {
  background: #4cb5ff14;
  border: 1px solid #4cb5ff28;
  color: #4cb5ff;
}

.ci-cat-transactions i {
  background: #4cb5ff;
}

.ci-cat-promotions {
  background: #ffce5a14;
  border: 1px solid #ffce5a28;
  color: #ffce5a;
}

.ci-cat-promotions i {
  background: #ffce5a;
}

.ci-messages {
  padding: 8px 6px 6px;
}

.ci-msg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-msg:last-of-type {
  border-bottom: none;
}

.ci-msg-unread {
  background: rgba(255, 255, 255, 0.04);
}

.ci-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.ci-avatar-personal {
  background: #7d4cdb22;
  color: #7d4cdb;
}

.ci-avatar-transactions {
  background: #4cb5ff22;
  color: #4cb5ff;
}

.ci-msg-body {
  flex: 1;
  min-width: 0;
}

.ci-msg-top {
  display: flex;
  align-items: baseline;
  margin-bottom: 2px;
}

.ci-msg-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #f4f4f7;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-msg-unread .ci-msg-name {
  font-weight: 700;
}

.ci-msg-time {
  font-size: 10px;
  color: rgba(244, 244, 247, 0.28);
  flex-shrink: 0;
}

.ci-msg-snippet {
  font-size: 11.5px;
  color: rgba(244, 244, 247, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4cb5ff;
}

.ci-more {
  padding: 6px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(244, 244, 247, 0.45);
}

.simplified-launch {
  background: linear-gradient(135deg, #7d4cdb, #4cb5ff);
  color: #fff;
}

.aurora-preview {
  background: #07080e;
}

.aurora-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 100, 206, 0.22), transparent 30%),
    radial-gradient(circle at 26% 70%, rgba(78, 233, 199, 0.18), transparent 28%);
  filter: blur(4px);
}

.aurora-status {
  color: rgba(255, 255, 255, 0.82);
}

.aurora-app {
  position: relative;
  z-index: 1;
  padding: 14px 16px 18px;
}

.aurora-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aurora-logo {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(78, 233, 199, 0.12);
  color: var(--mint);
  border: 1px solid rgba(78, 233, 199, 0.28);
  letter-spacing: 0;
}

.deck-card {
  min-height: 238px;
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 78% 18%, rgba(255, 100, 206, 0.16), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}

.deck-meta {
  margin: 0 0 28px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.deck-card h3 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.02;
}

.deck-card p:not(.deck-meta) {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  line-height: 1.35;
}

.deck-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.deck-actions span {
  min-width: 100px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #101016;
}

.aurora-nav {
  margin: 20px auto 0;
  width: max-content;
  display: flex;
  gap: 6px;
}

.aurora-nav span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.aurora-nav .active {
  width: 26px;
  background: white;
}

.choice-copy {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 600;
}

.launch-button {
  min-height: 54px;
  margin-top: auto;
  border-radius: 18px;
  background: #ffffff;
  color: #071017;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.13s ease, opacity 0.16s ease;
}

.launch-button:active {
  transform: scale(0.98);
}

.aurora-launch {
  background: linear-gradient(135deg, var(--mint), var(--aurora));
  color: #061016;
}

.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 11, 0.78);
  backdrop-filter: blur(20px);
}

.launch-overlay.active {
  display: grid;
}

.launch-panel {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 22, 0.92);
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46);
}

.launch-panel h2 {
  margin: 0 0 8px;
}

.launch-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .choice-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  .research-shell {
    width: 100vw;
    min-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      14px
      max(22px, env(safe-area-inset-bottom));
  }

  .intro {
    max-width: min(324px, calc(100vw - 34px));
    margin-bottom: 18px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 18px;
    font-size: 24px;
  }

  .eyebrow,
  .choice-kicker {
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  h1 {
    max-width: 300px;
    font-size: 26px;
    line-height: 1.08;
  }

  .intro-copy {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.45;
  }

  .theme-grid {
    display: block;
    max-width: min(348px, calc(100vw - 34px));
  }

  .choice-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 22px;
    padding: 14px;
    gap: 13px;
  }

  .choice-head h2 {
    font-size: 25px;
  }

  .phone-preview {
    max-width: 100%;
    height: 400px;
    border-radius: 26px;
  }

  .classic-app,
  .aurora-app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .classic-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .classic-tabs span {
    min-width: 0;
    min-height: 40px;
    font-size: 10px;
  }

  .classic-hero {
    padding: 16px;
  }

  .classic-hero h3 {
    font-size: 21px;
  }

  .classic-list {
    gap: 8px;
  }

  .classic-list div {
    padding: 12px;
  }

  .choice-copy {
    min-height: 0;
    font-size: 14px;
  }

  .deck-card {
    min-height: 214px;
    padding: 20px 16px;
    transform: rotate(-1deg);
  }

  .deck-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-actions span {
    min-width: 0;
    padding: 0 10px;
  }

  .deck-card h3 {
    font-size: 25px;
  }

  .deck-meta {
    margin-bottom: 22px;
  }

  .launch-button {
    min-height: 52px;
    border-radius: 16px;
  }
}
