/* Canyon Swap — styles (Base blue, mobile-first) */
:root {
  --base-blue: #0052FF; --base-blue-dark: #0038b5; --ink: #0b0f19; --muted: #6b7280;
  --line: #e5e7eb; --card: #ffffff; --bg: #f6f8ff; --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); margin: 0; background: var(--bg); line-height: 1.5; }
a { color: var(--base-blue); text-decoration: none; }
code { background: #eef2ff; border-radius: 4px; padding: 1px 5px; font-size: 0.9em; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.mark { color: var(--base-blue); font-size: 22px; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.connect-btn { padding: 10px 16px; font-size: 14px; font-weight: 700; border: 1px solid var(--base-blue); color: var(--base-blue); background: #fff; border-radius: 999px; cursor: pointer; }
.connect-btn:hover { background: #eef2ff; }
.wallet-status { font-size: 12px; color: var(--muted); }

.hero { background: radial-gradient(1200px 400px at 10% -20%, rgba(0,82,255,0.14), transparent), linear-gradient(180deg, #eef5ff 0%, var(--bg) 100%); padding: 48px 18px 28px; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); letter-spacing: -0.02em; margin: 0 0 10px; }
.accent { color: var(--base-blue); }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; max-width: 560px; }
.price-strip { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 12px; color: var(--muted); padding: 2px 0; max-width: 100%; }
.price-strip::-webkit-scrollbar { display: none; }
.price-strip .chip { display: inline-flex; align-items: baseline; gap: 5px; background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.price-strip .chip b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-strip .chip i { font-style: normal; color: var(--muted); font-size: 11px; }

main { max-width: 720px; margin: 0 auto; padding: 8px 18px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,82,255,0.05); }
.card-title { font-weight: 700; font-size: 17px; margin-bottom: 12px; }

.swap-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.input-wrap { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 14px; background: #f9fafb; }
.input-wrap:focus-within { border-color: var(--base-blue); box-shadow: 0 0 0 3px rgba(0,82,255,0.12); }
.input-wrap input { flex: 1; border: 0; outline: 0; font-size: 18px; padding: 10px 0; background: transparent; min-width: 0; }
.input-wrap select { border: 0; outline: 0; background: #fff; border-radius: 10px; padding: 10px 8px; font-size: 14px; font-weight: 600; max-width: 150px; }
.swap-arrow { text-align: center; font-size: 20px; color: var(--base-blue); }

.cta { margin-top: 16px; width: 100%; padding: 16px; font-size: 16px; font-weight: 700; background: var(--base-blue); color: #fff; border: 0; border-radius: 14px; cursor: pointer; transition: background 0.15s ease; }
.cta:hover:not(:disabled) { background: var(--base-blue-dark); }
.cta:disabled { opacity: 0.5; cursor: default; }
.cta.secondary { background: #fff; color: var(--base-blue); border: 1px solid var(--base-blue); }
.cta[hidden] { display: none; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.widget-slot { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; margin-top: 14px; }
.x-card { display: flex; align-items: center; gap: 14px; }
.x-mark { width: 42px; height: 42px; border-radius: 12px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex: none; }
.x-card .x-name { font-weight: 700; font-size: 15px; }
.x-card .x-cta { margin-left: auto; background: #000; color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.x-card .x-cta:hover { opacity: 0.85; }
.lifi-note { margin-top: 10px; text-align: center; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 18px 40px; border-top: 1px solid var(--line); background: #fff; }
footer a { font-weight: 600; }

@media (min-width: 640px) {
  .swap-grid { grid-template-columns: 1fr 44px 1fr; align-items: end; }
  .swap-arrow { padding-bottom: 12px; }
  .card { padding: 24px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .input-wrap select { max-width: 118px; font-size: 13px; padding: 10px 6px; }
  #lifi-widget { height: 470px; }
  .x-card { flex-wrap: wrap; }
  .x-card .x-cta { margin-left: 0; }
}
