/* AskBot AI: uniswap layout. Generated file. */

:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f7f7f8; --soft: #ffe8f3; --soft-hover: #ffd6ea;
  --ink: #131313; --ink-hover: #333333; --ink-2: #6f6f73; --ink-3: #a3a3a8;
  --line: #ececee; --line-strong: #dcdce0;
  --accent: #f0368f; --accent-hover: #d92a7c; --accent-shade: #a01d5a; --accent-ink: #ffffff; --accent-text: #e0267f;
  --pop: #ffe8f3; --pop-soft: #fff3f9; --pop-line: #ffc1de;
  --ok: #1fa35b; --bad: #d92d20; --focus: rgba(240, 54, 143, 0.15); --shadow: rgba(0, 0, 0, 0.12);
  --font-display: "Onest", system-ui, sans-serif; --font-body: "Onest", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500; --display-tracking: -0.03em; --display-stretch: 100%;
  
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--soft); padding: 0.12em 0.4em; border-radius: 6px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pop); color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hand { font-family: "Caveat", cursive; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 200; }
.skip:focus { left: 12px; }

h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-stretch: var(--display-stretch, 100%); line-height: 1.05; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ink.connected { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-mono); font-size: 0.85rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 var(--accent-shade); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line-strong); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch, 100%); letter-spacing: var(--display-tracking); font-size: 1.2rem; text-decoration: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.net { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-2); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-links:empty ~ .nav-actions .menu-btn { display: none !important; }

/* ---------- utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo span { white-space: nowrap; }
.footer-links { flex-wrap: wrap; }
.foot-mono { font-family: var(--font-mono); }

/* ---------- tool core ---------- */
.setup-banner { margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--pop-soft); color: var(--ink); font-size: 0.95rem; border: 1.5px dashed var(--pop-line); }
.setup-banner code { background: rgba(0, 0, 0, 0.06); }
.field-label { display: block; font-weight: 700; margin-bottom: 10px; }
.field {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--field-bg, var(--bg));
  border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 15px 16px; resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.field { min-height: 128px; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 12px 0 20px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.examples-label { font-size: 0.85rem; color: var(--ink-3); margin-right: 2px; }
.example-chip { font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); transition: background-color 0.15s; }
.example-chip:hover { background: var(--soft-hover); }
.char-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); padding-top: 6px; flex-shrink: 0; }
.fine { margin-top: 12px; font-size: 0.86rem; color: var(--ink-2); text-align: center; }
.fine a { font-weight: 600; margin-left: 4px; }
.live-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line); font-size: 0.86rem; color: var(--ink-2); }
.live-stats b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--pop-soft); color: var(--ink); font-size: 0.9rem; }

.progress { list-style: none; margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line); display: grid; gap: 14px; text-align: left; }
.pstep { display: flex; gap: 14px; opacity: 0.4; transition: opacity 0.2s; }
.pstep strong { display: block; font-size: 0.95rem; }
.pdetail { font-size: 0.86rem; color: var(--ink-2); word-break: break-word; }
.pdetail a { font-weight: 600; }
.pdot { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.pstep.active, .pstep.done, .pstep.error { opacity: 1; }
.pstep.active .pdot { border-color: var(--ink); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.pstep.done .pdot { border-color: var(--ok); background: var(--ok); }
.pstep.done .pdot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pstep.error .pdot { border-color: var(--bad); background: var(--bad); }
.pstep.error .pdetail { color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

.me { display: grid; gap: 9px; font-size: 0.92rem; }
.me div { display: flex; justify-content: space-between; gap: 12px; }
.me dt { color: var(--ink-2); }
.me dd { font-weight: 600; font-family: var(--font-mono); font-size: 0.86rem; text-align: right; }
.history { display: grid; gap: 8px; }
.history-item { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 0.88rem; transition: background-color 0.15s; }
.history-item:hover { background: var(--soft); }
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--ink-3); font-size: 0.76rem; }

.result { animation: rise 0.3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-head h3 { margin: 0; }
.result-body { font-size: 1.02rem; }
.result-body h3, .result-body h4, .result-body h5, .result-body h6 { font-weight: 700; font-size: 1.05rem; margin: 18px 0 6px; }
.result-body p { margin: 8px 0; }
.result-body ul, .result-body ol { margin: 8px 0 8px 1.3em; }
.result-body li { margin: 4px 0; }
.result-body hr { border: 0; border-top: 1.5px solid var(--line); margin: 16px 0; }
.result-meta { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); font-size: 0.86rem; color: var(--ink-2); }
.result-meta a { font-weight: 600; }
.disclaimer { margin-top: 6px; font-size: 0.8rem; color: var(--ink-3); }

/* ---------- modal & toast ---------- */
.modal { margin: auto; width: min(420px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 26px; background: var(--modal-bg, #fff); color: var(--modal-ink, #1a1a1a); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); font-family: var(--font-body); }
.modal::backdrop { background: rgba(10, 10, 20, 0.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; border-radius: 50%; opacity: 0.6; }
.dialog-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.wallet-list { display: grid; gap: 8px; margin-bottom: 14px; }
.wallet-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.04); text-align: left; transition: background-color 0.15s; }
.wallet-option:hover { background: rgba(0, 0, 0, 0.08); }
.wallet-option img { border-radius: 8px; }
.wallet-option small { display: block; opacity: 0.7; font-size: 0.8rem; }
.wallet-option.danger strong { color: #c62828; }
.wallet-icon-fallback { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: #1a1a1a; color: #fff; }
.wallet-empty { display: grid; gap: 10px; text-align: center; }
.wallet-empty .btn-ink { background: #1a1a1a; color: #fff; }
.wallet-empty .btn-ghost { background: #fff; color: #1a1a1a; box-shadow: inset 0 0 0 1.5px #d4d4d8; }
.wallet-empty a:not(.btn) { font-weight: 600; }
.modal-foot { font-size: 0.84rem; opacity: 0.7; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 13px 18px; border-radius: 16px; background: #1a1a1a; color: #fff; font-size: 0.92rem; box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: #c62828; }

/* ---------- shared responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); padding: 6px 20px 14px; box-shadow: 0 12px 24px -16px rgba(0,0,0,0.3); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1.5px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-btn { display: flex; }
  .net { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand > span:last-child { display: none; }
  .nav-actions .js-connect { padding: 8px 16px; min-height: 40px; }
  .field-foot { flex-direction: column; }
  .pending { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ===== AskBot: the ask box is a swap widget (after Uniswap) ===== */
body { font-weight: 485; }
.u-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.u-orb { position: absolute; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: rgba(255,255,255,0.9); filter: blur(var(--b, 6px)); opacity: 0.75; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(var(--dx, 20px), var(--dy, -30px)); } }

.u-nav { display: flex; align-items: center; gap: 28px; padding: 16px 24px; }
.u-nav .logo { font-weight: 600; font-size: 1.15rem; color: var(--accent); }
.u-ai { font-style: normal; margin-left: 5px; padding: 1px 7px 2px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 0.78em; font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px; }
.u-links { margin-right: auto; gap: 24px; }
.u-links a { color: var(--ink-2); font-size: 1rem; }
.u-actions { display: flex; align-items: center; gap: 12px; }
.u-nav .btn-ink { background: var(--accent); color: #fff; border-radius: 14px; min-height: 40px; padding: 8px 16px; font-weight: 600; }
.u-nav .btn-ink:hover { background: var(--accent-hover); }
.u-nav .btn-ink.connected { background: var(--soft); color: var(--accent-text); box-shadow: none; }

.u-hero { display: flex; flex-direction: column; align-items: center; padding: 60px 20px 40px; text-align: center; }
.u-hero h1 { font-family: var(--font-body); font-weight: 485; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 30px; max-width: 13em; }
.u-widget { width: min(100%, 480px); display: grid; gap: 4px; text-align: left; }
.u-widget .setup-banner { margin-bottom: 8px; }
.u-panel { border-radius: 20px; padding: 16px 18px; }
.u-ask { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.u-ask:focus-within { box-shadow: 0 0 0 1px var(--line-strong); }
.u-ask .field-label, .u-label { display: block; font-size: 0.9rem; font-weight: 485; color: var(--ink-2); margin-bottom: 4px; }
.u-ask .field { border: 0; padding: 4px 0; background: transparent; font-size: 1.35rem; min-height: 84px; resize: none; box-shadow: none; }
.u-ask .field::placeholder { color: var(--ink-3); }
.u-ask .field:focus { box-shadow: none; }
.u-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.u-row .char-count { padding: 0; }
.u-token { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); font-weight: 600; font-size: 0.95rem; }
.u-token i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.u-token i::after { content: "?"; color: #fff; font-style: normal; font-size: 0.8rem; font-weight: 700; }
.u-token-hot { background: var(--accent); color: #fff; box-shadow: none; padding: 6px 14px; }
.u-flip { justify-self: center; width: 40px; height: 40px; margin: -20px 0; z-index: 2; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 4px var(--bg); font-size: 1.1rem; }
.u-get { background: var(--surface-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 110px; }
.u-get .u-label { width: 100%; }
.u-get-text { font-size: 1.35rem; color: var(--ink-3); }
.u-widget #run-btn { margin-top: 4px; border-radius: 20px; min-height: 58px; font-size: 1.1rem; font-weight: 600; background: var(--soft); color: var(--accent-text); box-shadow: none; }
.u-widget #run-btn:hover:not(:disabled) { background: var(--soft-hover); }
.u-widget .progress { border-color: var(--line); }
.u-note { margin-top: 22px; color: var(--ink-2); max-width: 30em; }
.u-note em { font-style: normal; color: var(--accent-text); }
.u-suggest { margin-top: 18px; max-width: 560px; }
.u-suggest .examples { justify-content: center; }
.u-suggest .examples-label { display: none; }
.u-suggest .example-chip { background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); padding: 8px 14px; font-weight: 485; }
.u-suggest .example-chip:hover { box-shadow: 0 0 0 1px var(--accent); }
.u-hero .fine { color: var(--ink-3); }

.u-answer { max-width: 640px; margin: 0 auto; padding: 0 20px 20px; }
.u-answer:has(> .result[hidden]) { display: none; }
.u-answer .result { background: var(--surface); border-radius: 24px; padding: 26px 28px; box-shadow: 0 0 0 1px var(--line); }
.u-answer .result-head h3 { font-size: 0.9rem; font-weight: 485; color: var(--ink-2); }
.u-answer .result-body { font-size: 1.08rem; }
.u-answer .result-meta { border-top: 1px solid var(--line); }
.u-answer .btn-ghost { box-shadow: 0 0 0 1px var(--line-strong); }

.u-stats { max-width: 640px; margin: 0 auto; padding: 10px 20px 0; }
.u-stats .live-stats { border-top: 0; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 1px var(--line); margin: 0; }
.u-mine { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.u-box:has(> [hidden]:only-child) { display: none; }
.u-box { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.u-box h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }

.u-why, .u-faq { max-width: 960px; margin: 0 auto; padding: 100px 20px 0; }
.u-why h2, .u-faq h2 { font-family: var(--font-body); font-weight: 485; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 26px; }
.u-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.u-card { border-radius: 24px; padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.u-card:nth-child(1) { background: var(--soft); }
.u-card:nth-child(2) { background: #eaf3ff; }
.u-card:nth-child(3) { background: #eafbf1; }
.u-card h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.u-card p { color: var(--ink-2); }
.u-faq { max-width: 720px; padding-bottom: 100px; }
.u-faq-list details { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 18px 22px; margin-bottom: 10px; }
.u-faq-list summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.u-faq-list summary::-webkit-details-marker { display: none; }
.u-faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.u-faq-list details[open] summary::after { content: "\2212"; }
.u-faq-list details p { margin-top: 8px; color: var(--ink-2); }

.u-foot { padding: 30px 24px 44px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; color: var(--ink-3); font-size: 0.86rem; text-align: center; border-top: 1px solid var(--line); }
.u-foot .footer-links { display: flex; gap: 18px; }
.u-foot a { text-decoration: none; color: var(--ink-2); }

@media (max-width: 760px) {
  .u-nav { padding: 12px 14px; }
  .nav-links.u-links { top: 64px; }
  .u-cards, .u-mine { grid-template-columns: 1fr; }
  .u-card { min-height: 0; gap: 20px; }
}


