/* ---------- brand + app icon ---------- */
.brand-group { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 100px; height: 18px; }
.product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.product img { width: 30px; height: 30px; border-radius: 9px; transition: transform .5s var(--spring); }
.product:hover img { transform: rotate(-8deg) scale(1.1); }

.hero-app-icon {
  width: clamp(76px, 9vw, 104px);
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 26px #3182f659);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img { width: 84px; height: 15px; }

/* ---------- live run ---------- */
.live {
  border-radius: var(--radius-visual);
  background: var(--fill);
  padding: clamp(16px, 2.6vw, 32px);
}
.live-ask { display: flex; justify-content: center; margin-bottom: clamp(16px, 2.2vw, 26px); }
.live-q {
  max-width: 100%;
  min-height: 3.1em;
  padding: 14px 22px;
  border-radius: 22px 22px 6px 22px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.5;
}
.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: currentColor; }

.live-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }

/* steps */
.live-rail { display: grid; gap: 6px; }
.rail-step {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .3s;
}
.rail-step:hover { background: #ffffff8c; }
.rail-step.is-now { background: #fff; box-shadow: 0 6px 20px #191f280a; }
.rail-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e5ea;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  transition: background .3s, color .3s;
}
.rail-step.is-now .rail-num { background: var(--accent); color: #fff; }
.rail-step.is-done .rail-num {
  color: #0000;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 82% no-repeat;
}
.rail-text { min-width: 0; }
.rail-text strong { display: block; color: var(--subtle); font-size: 1.04rem; letter-spacing: -.03em; transition: color .3s; }
.rail-text small { display: block; margin-top: 2px; color: var(--subtle); font-size: .86rem; line-height: 1.45; }
.rail-step.is-now strong, .rail-step.is-done strong { color: var(--ink); }
.rail-step.is-now small { color: var(--muted); }

/* canvas */
.live-canvas {
  position: relative;
  min-width: 0;
  height: 580px;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}
.act { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 30px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.act.is-on { opacity: 1; visibility: visible; }
.act-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.act-head h3 { font-size: clamp(1.16rem, 1.8vw, 1.38rem); letter-spacing: -.035em; }
.act-head p { color: var(--subtle); font-size: .82rem; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 700;
}
.avatar--blue { background: #e8f3ff; color: #1b64da; }
.avatar--green { background: #e3f7ee; color: #06905a; }
.avatar--orange { background: #fff1dd; color: #c96a00; }
.avatar--purple { background: #f3e9fb; color: #8a35b5; }
.avatar--red { background: #ffeaec; color: #d92f3f; }
.avatar--teal { background: #e0f5f5; color: #0f8a8a; }
.avatar--ink { background: var(--ink); color: #fff; }

/* scene 1: search */
.finders { display: grid; flex: 1; align-content: space-evenly; gap: 6px; }
.finder { display: flex; gap: 14px; padding: 14px 0; }
.finder + .finder { border-top: 1px solid var(--fill); }
.finder-main { flex: 1; min-width: 0; }
.finder-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finder-name strong { font-size: 1.02rem; letter-spacing: -.03em; }
.finder-state { color: var(--subtle); font-size: .82rem; font-weight: 600; }
.finder.is-run .finder-state { color: var(--accent-ink); }
.finder.is-done .finder-state { color: #06905a; }
.finder-line { display: grid; margin-top: 6px; min-height: 36px; align-items: center; }
.finder-line > * { grid-area: 1 / 1; transition: opacity .35s, translate .45s var(--ease); }
.finder-query {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  max-width: 100%;
  height: 36px;
  padding: 0 14px 0 11px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
}
.finder-query::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238b95a1' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.6 10.6L14 14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.finder.is-run .finder-query { opacity: 1; }
.finder-found { color: var(--muted); font-size: .98rem; opacity: 0; translate: 0 8px; }
.finder-found b { color: var(--ink); font-weight: 700; }
.finder.is-done .finder-found { opacity: 1; translate: none; }
.finder-sources { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-top: 8px; }
.finder-sources li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  opacity: 0;
  scale: .8;
  transition: opacity .3s, scale .4s var(--spring);
}
.finder-sources li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.finder-sources li.is-in { opacity: 1; scale: 1; }

/* scene 2: debate */
.thread { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; margin-inline: -6px; padding-inline: 6px; overflow-y: auto; scrollbar-width: none; }
.thread::-webkit-scrollbar { display: none; }
.talk { display: none; gap: 12px; align-items: flex-start; }
.talk.is-in { display: flex; }
.talk > div { min-width: 0; }
.talk .avatar { width: 36px; height: 36px; font-size: .88rem; }
.talk-name { margin-bottom: 4px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.talk-text {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 6px 18px 18px 18px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: .96rem;
  line-height: 1.55;
}
.talk-text b { color: var(--ink); font-weight: 700; }
.talk--lead .talk-text { background: var(--tint); color: var(--deep); }
.talk--lead .talk-text b { color: var(--accent-ink); }
.talk.is-typing .talk-text { display: inline-flex; gap: 5px; align-items: center; height: 44px; font-size: 0; }
.talk.is-typing .talk-text::before, .talk.is-typing .talk-text::after, .talk.is-typing .talk-text b:first-child {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0b8c1;
}
.talk.is-typing .talk-text b:not(:first-child) { display: none; }

/* scene 3: report */
.result { flex: 1; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; min-height: 0; }
.result-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 250 / 330;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #f2f5f9;
  box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px #191f2859;
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.result-preview:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 34px 54px -24px #3182f680; }
.result-preview iframe { position: absolute; left: 0; top: 0; width: 850px; height: 1122px; border: 0; transform: scale(var(--fit, .294)); transform-origin: 0 0; pointer-events: none; }
.result-type { color: var(--accent-ink); font-size: .86rem; font-weight: 700; }
.result-title { margin: 4px 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.3; }
.result-thesis { color: var(--muted); font-size: 1.04rem; }
.result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.result dl > div { padding: 12px 14px; border-radius: 16px; background: var(--fill); }
.result dt { color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.result dd { font-size: 1.2rem; font-weight: 750; letter-spacing: -.03em; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.result-replay { margin-left: 4px; padding: 8px; border: 0; background: none; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.result-replay:hover { color: var(--accent-ink); }
.result-note { margin-top: 14px; color: var(--subtle); font-size: .84rem; }

.live-note { margin-top: 18px; color: var(--subtle); font-size: .86rem; text-align: center; }

/* without script every scene is simply listed */
html:not(.js) .live-canvas { height: auto; }
html:not(.js) .act { position: static; opacity: 1; visibility: visible; }
html:not(.js) .talk { display: flex; }
html:not(.js) .finder-found, html:not(.js) .finder-sources li { opacity: 1; translate: none; scale: 1; }

/* ---------- easy report ---------- */
.easy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; margin-bottom: clamp(48px, 7vw, 96px); }
.easy-compare { display: grid; gap: 10px; padding: clamp(18px, 2.6vw, 30px); border-radius: var(--radius-visual); background: var(--fill); }
.easy-before, .easy-after { padding: 20px 22px; border-radius: 22px; background: #fff; }
.easy-label { margin-bottom: 6px; color: var(--subtle); font-size: .84rem; font-weight: 650; }
.easy-before p:last-child { color: var(--subtle); font-size: 1rem; line-height: 1.55; }
.easy-after { box-shadow: 0 14px 34px -18px #3182f680; }
.easy-after .easy-label { color: var(--accent-ink); }
.easy-after p:last-child { font-size: clamp(1.2rem, 2.3vw, 1.62rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.35; }
.easy-arrow { justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-block: -4px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.easy-compare figcaption { margin-top: 4px; color: var(--muted); font-size: .88rem; text-align: center; }
.easy-compare figcaption button { padding: 0; border: 0; background: none; color: var(--accent-ink); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.easy-points { display: grid; gap: 12px; }
.easy-points li { display: grid; align-content: center; gap: 4px; padding: 22px 24px; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.easy-points strong { font-size: 1.14rem; letter-spacing: -.03em; }
.easy-points span { color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .easy { grid-template-columns: 1fr; } .easy-points li { padding: 18px 20px; } }

/* modal */
.report-modal {
  width: min(920px, calc(100vw - 24px));
  height: min(90vh, 1100px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 60px 120px -30px #000a;
}
.report-modal[open] { display: flex; flex-direction: column; }
.report-modal::backdrop { background: #0b0f18b8; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.report-modal header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.report-modal header p { flex: 1; min-width: 0; overflow: hidden; font-weight: 700; font-size: .95rem; white-space: nowrap; text-overflow: ellipsis; }
.report-modal header a, .report-modal header button {
  flex: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink-2);
  font-weight: 650;
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
}
.report-modal header a:hover, .report-modal header button:hover { background: var(--tint); color: var(--accent-ink); }
.report-modal iframe { flex: 1; width: 100%; border: 0; background: #f2f5f9; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .is-typing::after { animation: blink .8s steps(1) infinite; }
  .act.is-on .act-head { animation: act-in .5s var(--ease) both; }
  .talk.is-in { animation: act-in .45s var(--ease) both; }
  .talk.is-typing .talk-text::before { animation: dot 1s ease-in-out infinite; }
  .talk.is-typing .talk-text b:first-child { animation: dot 1s ease-in-out .15s infinite; }
  .talk.is-typing .talk-text::after { animation: dot 1s ease-in-out .3s infinite; }
  .act.is-on .result-preview { animation: act-in .7s var(--ease) both; }
  .act.is-on .result-main > * { animation: act-in .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms + 120ms); }
  .result-main > :nth-child(2) { --n: 1; }
  .result-main > :nth-child(3) { --n: 2; }
  .result-main > :nth-child(4) { --n: 3; }
  .result-main > :nth-child(5) { --n: 4; }
  .result-main > :nth-child(6) { --n: 5; }
  .hero-app-icon { animation: pop .9s var(--spring) both, drift 6s ease-in-out 1s infinite; }
  .report-modal[open] { animation: act-in .4s var(--ease) both; }
}
@keyframes act-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .live-body { grid-template-columns: 1fr; }
  .live-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rail-step { flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; text-align: center; }
  .rail-text small { display: none; }
  .rail-text strong { font-size: .95rem; }
}
@media (max-width: 700px) {
  .brand-group { gap: 10px; }
  .brand img { width: 84px; height: 15px; }
  .product { padding-left: 10px; }
  .product span { display: none; }
  .navbar nav { font-size: .82rem; }
  .navbar nav a { padding: 9px 5px; }
  .live { border-radius: 30px; padding: 14px; }
  .live-q { padding: 12px 16px; font-size: .98rem; }
  .live-canvas { height: 540px; border-radius: 22px; }
  .act { padding: 18px 16px; }
  .act-head { margin-bottom: 10px; }
  .finder { gap: 11px; padding: 11px 0; }
  .avatar { width: 36px; height: 36px; }
  .finder-found { font-size: .92rem; }
  .talk-text { font-size: .92rem; padding: 10px 13px; }
  .result { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .result-preview { width: 132px; aspect-ratio: 132 / 150; margin-inline: auto; }
  .result-main { text-align: center; }
  .result dl { gap: 6px; margin: 14px 0; text-align: left; }
  .result dl > div { padding: 9px 10px; border-radius: 13px; }
  .result dt { font-size: .75rem; }
  .result dd { font-size: 1rem; }
  .result-actions { justify-content: center; }
  .result-replay { flex-basis: 100%; margin: 0; }
  .result-note { margin-top: 6px; }
  .report-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .report-modal header .modal-pdf { display: none; }
}

/* ---------- github ---------- */
.gh { flex: none; margin-right: 8px; }
.button--small .gh { width: 16px; height: 16px; margin-right: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button--ghost { background: #ffffff26; color: #fff; }
.button--ghost:hover { background: #ffffff40; box-shadow: none; }
@media (max-width: 700px) { .cta-actions { flex-direction: column; } }

/* ---------- toss connection ---------- */
.eyebrow--accent { background: var(--tint); box-shadow: none; color: var(--accent-ink); }
.toss-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.toss-visual { position: relative; padding: clamp(22px, 4vw, 48px) clamp(18px, 3.4vw, 44px) 18px; border-radius: var(--radius-visual); background: linear-gradient(165deg, #eef4ff, #d6e5ff); overflow: hidden; }
.toss-visual > img { position: absolute; right: -9%; bottom: -4%; width: 42%; filter: drop-shadow(0 20px 22px #1b52c133); pointer-events: none; }
.toss-visual figcaption { position: relative; margin-top: 16px; color: #4a5f85; font-size: .84rem; text-align: center; }
.account { position: relative; z-index: 1; padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -30px #1b52c166; }
.account-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; font-weight: 650; }
.account-head em { padding: 2px 9px; border-radius: 99px; background: var(--fill); color: var(--subtle); font-size: .74rem; font-style: normal; }
.account-total { margin: 6px 0 14px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; letter-spacing: -.04em; }
.account-total small, .account-list .up { color: #f04452; }
.account-total small { margin-left: 6px; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.account-list .down { color: #3182f6; }
.account-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fill); }
.account-list li > span:nth-child(2) { flex: 1; display: grid; }
.account-list strong { font-size: 1rem; }
.account-list small { color: var(--subtle); font-size: .8rem; }
.account-list b { font-weight: 700; font-variant-numeric: tabular-nums; }
.account-cash { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 13px 16px; border-radius: 16px; background: var(--tint); color: var(--accent-ink); font-size: .92rem; font-weight: 650; }
.account-cash strong { font-size: 1.08rem; }
.toss-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.toss-points li { display: grid; align-content: start; gap: 4px; padding: 20px 22px; border-radius: var(--radius-card); background: #fff; }
.toss-points strong { font-size: 1.08rem; letter-spacing: -.03em; }
.toss-points span { color: var(--muted); font-size: .94rem; }
.toss-safe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toss-safe li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 99px; background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.toss-safe li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
.toss-more { margin-top: 14px; color: var(--subtle); font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .toss-visual.is-in .account-list li, .toss-visual.is-in .account-cash { animation: act-in .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 110ms + 350ms); }
  .account-list li:nth-child(2) { --n: 1; }
  .account-list li:nth-child(3) { --n: 2; }
  .account-cash { --n: 3; }
}
@media (max-width: 900px) { .toss-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .toss-points { grid-template-columns: 1fr; gap: 8px; } .toss-points li { padding: 16px 18px; } .account { padding: 18px; } }
@media (max-width: 700px) { .toss-visual > img { display: none; } }

/* ---------- hero: toss connection ---------- */
.hero-toss {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px 18px 8px 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 1px #3182f633, 0 14px 30px -16px #3182f680;
  color: var(--ink-2);
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hero-toss:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #3182f666, 0 18px 34px -14px #3182f6; }
.hero-toss-tag { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 700; }
.hero-toss-text strong { color: var(--ink); font-weight: 700; }
.hero-toss-go { color: var(--accent-ink); font-weight: 700; transition: translate .25s var(--ease); }
.hero-toss:hover .hero-toss-go { translate: 4px 0; }
@media (prefers-reduced-motion: no-preference) { .hero-toss { animation: fade-up .8s var(--ease) .75s both; } }
@media (max-width: 700px) {
  .hero-toss { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 22px; font-size: .94rem; }
  .hero-toss-go { display: none; }
}
@media (max-width: 700px) { h1 { font-size: clamp(1.5rem, 8.1vw, 2.5rem); } }

/* Mobile tap targets for the header logos. */
@media (max-width: 700px) {
  .brand, .product { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Commands wrap between arguments, never inside one. */
code .nb, .command--install code .nb { margin: 0; color: inherit; font: inherit; white-space: nowrap; }
.drive-stack b, .drive-stack span { white-space: nowrap; }
@media (max-width: 400px) {
  code:has(.nb) { font-size: .76rem; }
  .tool-card h3 { font-size: 1rem; letter-spacing: -.04em; }
  .drive-stack li { font-size: .9rem; }
}
@media (max-width: 360px) {
  .result dl > div { padding: 9px 7px; }
  .result dt { font-size: .7rem; letter-spacing: -.04em; }
  .result dd { font-size: .92rem; }
}
@media (max-width: 360px) {
  .result-preview { width: 104px; aspect-ratio: 104 / 96; }
  .result-type { font-size: .76rem; letter-spacing: -.03em; }
}

/* AX LABS in the menu and footer. */
.navbar nav .nav-ext { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; color: var(--ink); font-weight: 700; white-space: nowrap; }
.navbar nav .nav-ext:hover { color: var(--accent-ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 48px 64px; padding-block: 56px 40px; }
.footer-logo { display: inline-flex; }
.footer-logo img { width: 112px; height: 20px; }
.footer-about p { max-width: 30em; margin-top: 12px; color: var(--muted); font-size: .95rem; line-height: 1.65; word-break: keep-all; }
.footer-about .footer-lead { margin-top: 20px; color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.footer-actions .button { gap: 6px; }
.footer-cta { color: var(--accent-ink); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links h2 { margin-bottom: 8px; color: var(--ink); font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.footer-links a { padding: 6px 0; color: var(--muted); font-size: .92rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-block: 22px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.7; }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 32px; }
}
@media (max-width: 700px) {
  .navbar nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .navbar nav::-webkit-scrollbar { display: none; }
  .navbar nav a { flex: none; }
  .navbar nav .nav-ext { margin-left: 2px; padding-left: 10px; }
  .footer-links { gap: 20px 12px; }
  .footer-links a { padding: 8px 0; }
}

.navbar nav a { white-space: nowrap; }
.footer-links a, .footer-bottom p { word-break: keep-all; }
.footer-bottom .nb { white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1040px) {
  .navbar { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 8px; }
  .navbar nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 4px; margin-inline: -12px; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 700px) {
  .navbar nav { font-size: .85rem; }
  .navbar nav a { padding: 9px 7px; }
  .navbar nav .nav-ext { padding-left: 9px; }
}

@media (max-width: 700px) {
  .navbar nav { justify-content: space-between; overflow: visible; font-size: .88rem; }
  .navbar nav a { padding: 9px 8px; }
  .navbar nav .nav-long { display: none; }
  .navbar nav .nav-ext { margin-left: 0; padding-left: 12px; }
}
@media (max-width: 360px) {
  .navbar nav { font-size: .82rem; }
  .navbar nav a { padding: 9px 5px; }
  .navbar nav .nav-ext { padding-left: 8px; gap: 3px; }
}

/* AI hedge fund firm and data connections. */
.firm-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; margin: 0 auto 28px; padding: 0; list-style: none; }
.firm-flow li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.firm-flow b { padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.firm-flow li + li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: #c9d2dc; }
.desk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.desk { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 22px; border-radius: var(--radius-card); background: #fff; }
.desk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.desk-count { color: var(--muted); font-size: .86rem; font-weight: 600; }
.desk h3 { font-size: 1.22rem; letter-spacing: -.03em; }
.desk > p:not(.desk-top):not(.desk-ask) { color: var(--muted); font-size: .96rem; line-height: 1.6; word-break: keep-all; }
.desk-ask { margin-top: auto; padding-top: 14px; color: var(--accent-ink); font-size: .92rem; font-weight: 600; word-break: keep-all; }
.firm-note { margin-top: 22px; color: var(--muted); font-size: .88rem; text-align: center; word-break: keep-all; }
.data-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.data-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-card); background: var(--fill); }
.data-card--lead { background: var(--tint); }
.data-tag { color: var(--accent-ink); font-size: .82rem; font-weight: 700; }
.data-card h3 { font-size: 1.18rem; letter-spacing: -.03em; }
.data-card > p:not(.data-tag) { color: var(--muted); font-size: .94rem; line-height: 1.6; word-break: keep-all; }
.data-card a { margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.data-command { max-width: 560px; margin-inline: auto; }
@media (max-width: 1000px) {
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .desk-grid, .data-grid { grid-template-columns: 1fr; gap: 10px; }
  .desk { padding: 20px 20px 18px; }
  .data-card { padding: 20px; }
  .firm-flow { gap: 6px 4px; margin-bottom: 20px; }
  .firm-flow li { font-size: .82rem; }
  .firm-flow b { padding: 6px 10px; }
  .firm-flow li + li::before { width: 8px; }
}
@media (max-width: 700px) { .firm-flow li + li::before { display: none; } }

/* Team characters on the desk cards. */
.desk { padding: 0 0 22px; overflow: hidden; }
.desk > :not(.desk-figure) { padding-inline: 26px; }
.desk h3 { margin-top: 12px; }
.desk-figure { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 190px; margin: 0 0 6px; background: var(--tone, var(--tint)); }
.desk-figure img { width: 180px; height: 180px; object-fit: contain; object-position: bottom; transition: transform .6s var(--spring); }
.desk:hover .desk-figure img { transform: translateY(-4px) scale(1.04); }
.desk-figure .desk-count { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: #ffffffd9; color: var(--ink); font-size: .8rem; }
.desk-figure--us { --tone: #e8f3ff; } .desk-figure--kr { --tone: #e3f7ee; } .desk-figure--futures { --tone: #fff1dd; }
.desk-figure--quant { --tone: #f3e9fb; } .desk-figure--risk { --tone: #ffeaec; } .desk-figure--pm { --tone: #e9edf5; }
@media (max-width: 700px) {
  .desk { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 0; align-content: start; padding: 0; }
  .desk > :not(.desk-figure) { grid-column: 2; padding-inline: 16px; }
  .desk-figure { grid-row: 1 / span 4; height: 100%; min-height: 168px; margin: 0; align-items: flex-end; }
  .desk-figure img { width: 108px; height: 108px; }
  .desk-figure .desk-count { top: 10px; left: 10px; right: auto; padding: 4px 9px; font-size: .74rem; }
  .desk h3 { margin-top: 16px; font-size: 1.1rem; }
  .desk-ask { padding-bottom: 16px; }
}

/* Report catalogue. */
.report-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-group { padding: 26px 26px 14px; border-radius: var(--radius-card); background: var(--fill); }
.report-group h3 { margin-bottom: 10px; color: var(--accent-ink); font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.report-group ul { margin: 0; padding: 0; list-style: none; }
.report-group li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.report-group li:first-child { border-top: 0; }
.report-group strong { font-size: 1.08rem; letter-spacing: -.03em; }
.report-group span { color: var(--muted); font-size: .92rem; word-break: keep-all; }
.desk-figure--strategy { --tone: #e6f1fb; } .desk-figure--sector { --tone: #fdf3d6; } .desk-figure--editor { --tone: #e0f5f5; }
@media (max-width: 1000px) { .report-groups { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 700px) { .report-group { padding: 20px 20px 8px; } .report-group li { padding: 12px 0; } }
.report-ask { margin: 26px auto 0; }
.report-ask b { background: var(--tint); color: var(--accent-ink); }

/* Wiki team. */
.wiki-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.wiki-choice li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #fff; }
.wiki-choice strong { font-size: 1.02rem; letter-spacing: -.03em; }
.wiki-choice span { color: var(--muted); font-size: .88rem; word-break: keep-all; }
.wiki-visual { position: relative; }
.wiki-person { position: absolute; left: 2%; bottom: 96px; width: 34%; height: auto; filter: drop-shadow(0 18px 24px #191f2826); }
@media (max-width: 700px) { .wiki-choice { grid-template-columns: 1fr; gap: 8px; } .wiki-person { width: 38%; bottom: 84px; } }

/* First questions in the setup section. */
.first-asks { margin-top: 18px; padding: 26px; border-radius: var(--radius-card); background: var(--tint); text-align: center; }
.first-asks h3 { font-size: 1.12rem; letter-spacing: -.03em; }
.first-asks ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 12px; padding: 0; list-style: none; }
.first-asks li { padding: 9px 15px; border-radius: 999px; background: #fff; color: var(--accent-ink); font-size: .94rem; font-weight: 600; }
.first-asks p { color: var(--muted); font-size: .9rem; word-break: keep-all; }
.setup-notes code { overflow-wrap: anywhere; }
@media (max-width: 700px) { .first-asks { padding: 20px 16px; } .first-asks li { font-size: .88rem; padding: 8px 12px; } }

/* Tax section, verdict strip, six-tool grid. */
.tax-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tax-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-card); background: #fff; }
.tax-ask { color: var(--muted); font-size: .92rem; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.tax-answer { display: grid; gap: 4px; }
.tax-answer strong { color: var(--accent-ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.tax-answer span { color: var(--ink); font-size: .92rem; word-break: keep-all; }
.tax-note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; word-break: keep-all; }
#tax .data-command { margin-top: 20px; }
.verdicts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; padding: 0; list-style: none; }
.verdicts li { display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--fill); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; word-break: keep-all; }
.verdicts b { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.verdicts li:nth-child(-n+2) b { color: var(--accent-ink); }
.recipe-foot { margin-top: 14px; color: var(--muted); font-size: .84rem; word-break: keep-all; }
.card-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-figure--broadcast { --tone: #ffece4; } .desk-figure--tax { --tone: #e9f5ec; } .desk-figure--oss { --tone: #eceff3; } .desk-figure--wiki { --tone: #eef4fd; }
@media (max-width: 1000px) { .tax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tax-grid { grid-template-columns: 1fr; gap: 10px; }
  .tax-card { padding: 20px; gap: 10px; }
  .tax-answer strong { font-size: 1.5rem; }
  .verdicts { gap: 6px; } .verdicts li { padding: 10px 4px; font-size: .74rem; }
}

/* star request before ZIP download */
.star-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 32px 28px 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 60px 120px -30px #000a;
}
.star-modal::backdrop { background: #0b0f18b8; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.star-modal .star-icon { margin: 0 0 8px; font-size: 2.4rem; line-height: 1; }
.star-modal h2 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.35; }
.star-modal p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; word-break: keep-all; }
.star-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.star-actions .button { width: 100%; justify-content: center; border: 0; font-family: inherit; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .star-modal[open] { animation: act-in .4s var(--ease) both; } }
