/* Make App Ads — app + marketing styles. Clean, modern SaaS look. */
:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --ink: #0f1222;
    --ink-soft: #444a63;
    --muted: #7a8194;
    --line: #e7e9f0;
    --line-soft: #eef0f6;
    --brand: #5b4bff;
    --brand-d: #4536e6;
    --brand-soft: #efecff;
    --green: #11a36b;
    --red: #e0345a;
    --amber: #c97a00;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16,18,34,.04), 0 8px 24px rgba(16,18,34,.06);
    --shadow-lg: 0 12px 40px rgba(16,18,34,.14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
img { max-width: 100%; }

/* ---- Topbar ---- */
/* Solid (no backdrop-filter): a filter on a position:sticky element breaks the
   stickiness in WebKit/Chrome — the bar detaches and scrolls away. */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1140px; margin: 0 auto; padding: 11px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); font-size: 15px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.nav-link.muted { color: var(--muted); font-weight: 500; }
.token-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-soft); color: var(--brand-d); font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 99px; }
.token-pill:hover { text-decoration: none; background: #e7e2ff; }
.token-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---- Layout ---- */
.page { max-width: 1140px; margin: 0 auto; padding: 32px 22px 64px; }
.page-narrow { max-width: 720px; }
.page-tight { max-width: 480px; }
.stack > * + * { margin-top: 16px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 650; font-size: 14.5px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .12s, box-shadow .12s, transform .04s, border-color .12s; white-space: nowrap; background: #fff; color: var(--ink); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(91,75,255,.25); }
.btn-primary:hover { background: var(--brand-d); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #cfd3e0; background: #fafaff; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #f3cdd6; }
.btn-danger:hover { background: #fff5f7; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-pad-sm { padding: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Forms ---- */
label { display: block; font-weight: 650; font-size: 13.5px; margin: 0 0 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select {
    width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field + .field { margin-top: 16px; }
.help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.input-error { border-color: var(--red); }

/* ---- Alerts ---- */
.alert { border-radius: 10px; padding: 12px 15px; font-size: 14px; margin: 0 0 18px; border: 1px solid; }
.alert-error { background: #fff5f7; border-color: #f3cdd6; color: #ab1f43; }
.alert-success { background: #effaf3; border-color: #bfe8d2; color: #0c7a4f; }
.alert-info { background: #eef4ff; border-color: #cfe0ff; color: #2a4fa0; }
.alert-warn { background: #fff8ec; border-color: #f3e0bb; color: #8a5a00; }

/* ---- Badges / chips ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--line-soft); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.badge-brand { background: var(--brand-soft); color: var(--brand-d); }
.badge-green { background: #e6f7ef; color: var(--green); }

/* ---- Token / cost hint ---- */
.cost-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--brand-d); background: var(--brand-soft); padding: 3px 10px; border-radius: 99px; }

/* ---- Apps list (dashboard) ---- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; transition: box-shadow .15s, transform .06s; }
.app-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--line-soft); flex: none; border: 1px solid var(--line); }
.app-card h3 { margin: 0 0 2px; color: var(--ink); }

/* ---- Ad grid ---- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ad-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ad-media { position: relative; width: 100%; aspect-ratio: 1/1; background: var(--line-soft); display: flex; align-items: center; justify-content: center; }
.ad-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-media-empty { flex-direction: column; gap: 12px; color: var(--muted); padding: 20px; text-align: center; }
.ad-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ad-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad-hook { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ad-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.ad-copy-block { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; }
.ad-copy-block summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.copy-row { display: flex; gap: 6px; margin: 6px 0; }
.copy-row input { font-size: 12.5px; padding: 7px 9px; }
.copy-row button { flex: none; }

/* ---- Spinner / skeleton ---- */
.spinner { width: 30px; height: 30px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { display: inline-block; background: linear-gradient(90deg, #eef0f6 25%, #f6f7fb 37%, #eef0f6 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---- Wizard ---- */
.wizard { max-width: 640px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.wizard-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.wizard-step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--line-soft); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.wizard-step.active { color: var(--ink); }
.wizard-step.active .dot { background: var(--brand); color: #fff; }
.wizard-step.done .dot { background: var(--green); color: #fff; }
.wizard-step .bar { width: 26px; height: 2px; background: var(--line); }

/* analyzing state */
.analyzing { text-align: center; padding: 40px 20px; }
.analyzing .spinner { margin: 0 auto 18px; }
.analyzing-log { text-align: left; max-width: 380px; margin: 18px auto 0; font-size: 13.5px; }
.analyzing-log li { color: var(--muted); padding: 4px 0; transition: color .3s; }
.analyzing-log li.done { color: var(--ink); }
.analyzing-log li.done::before { content: "✓ "; color: var(--green); font-weight: 800; }
.analyzing-log li.pending::before { content: "○ "; }

/* ---- Screenshots strip ---- */
.shots-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.shot-thumb { position: relative; width: 78px; height: 138px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-soft); flex: none; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb .rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.shot-add { width: 78px; height: 138px; border-radius: 10px; border: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--muted); cursor: pointer; font-size: 12px; }
.shot-add:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Mode cards (Default vs UGC) ---- */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; background: #fff; }
.mode-card:hover { border-color: #cfd3e0; }
.mode-card.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.mode-card .mode-title { font-weight: 700; font-size: 14.5px; }
.mode-card .mode-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
@media (max-width: 520px) { .mode-cards { grid-template-columns: 1fr; } }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(8,10,20,.88); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; overscroll-behavior: contain; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 720px); max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: calc(env(safe-area-inset-right, 0px) + 16px); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(15,17,28,.62); color: #fff; font-size: 18px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(15,17,28,.85); }
body.lb-open { overflow: hidden; }

/* ---- Public ad preview page (/preview/{token}) ---- */
.preview-ad { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 44px; align-items: start; max-width: 920px; margin: 0 auto; }
.preview-cta-row { text-align: center; margin-top: 34px; }
.preview-cta-row .btn-lg { min-width: 300px; }
@media (max-width: 760px) { .preview-ad { grid-template-columns: 1fr; gap: 26px; max-width: 420px; } .preview-cta-row .btn-lg { min-width: 0; width: 100%; max-width: 420px; } }

/* Gentle attention pulse for a primary CTA (motion-safe) */
@keyframes cta-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.pulse-cta { animation: cta-pulse 1.7s ease-in-out infinite; will-change: transform; }
.pulse-cta:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pulse-cta { animation: none; } }

/* Instagram in-feed mockup — the main creative on the preview page */
.ig-mock { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); cursor: zoom-in; }
.ig-mock-img { display: block; width: 100%; height: auto; }
.ig-cta { display: flex; align-items: center; justify-content: space-between; background: #1877f2; color: #fff; font-weight: 650; font-size: 15px; padding: 13px 16px; }
.ig-cta .ig-chev { font-size: 18px; line-height: 1; opacity: .9; }
.ig-bar { display: block; width: 100%; height: auto; }
.ig-caption { padding: 10px 14px 16px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.ig-caption strong { font-weight: 650; margin-right: 6px; }

/* ---- Onboarding paywall "why am I seeing this" note ---- */
.paywall-why { max-width: 620px; margin: 22px auto 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; text-align: left; }
.paywall-why strong { color: var(--ink); }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,18,34,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 26px; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 9px 16px; font-weight: 650; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.active { color: var(--ink); border-bottom-color: var(--brand); }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
/* Push the CTA to the bottom so buttons align across cards of different heights
   (e.g. a card with a bonus banner is taller than one without). */
.price-card > form:last-child,
.price-card > .btn-block:last-child { margin-top: auto; }
.price-card form { margin-top: auto; }
.price-card form .btn-block { margin-top: 0; }
.price-amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0; }
.price-card li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.bonus-note { display: flex; align-items: center; gap: 9px; background: #e6f7ef; color: #0c7a4f; padding: 8px 12px; border-radius: 9px; margin: 10px 0 2px; line-height: 1.2; }
.bonus-note .b-ico { font-size: 16px; flex: none; }
.bonus-note .b-label { display: block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.bonus-note .b-amt { font-weight: 800; font-size: 13.5px; }

/* ---- Marketing / hero ---- */
.hero { text-align: center; padding: 72px 22px 24px; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 46px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 18px; }
.hero-paren { color: inherit; }
/* Vertical word rotator: professional <-> natural UGC, in brand blue.
   3 stacked slots [professional, natural UGC, professional] slide up by one
   slot each step; the 3rd == the 1st so the loop is seamless. */
.word-rotate {
  display: inline-flex; overflow: hidden;
  height: 1.05em; vertical-align: bottom;
  color: var(--brand);
}
.word-rotate-track {
  display: flex; flex-direction: column;
  animation: word-rotate 5s cubic-bezier(.7,0,.3,1) infinite;
}
.word-rotate-track > span { height: 1.05em; line-height: 1.05em; white-space: nowrap; }
@keyframes word-rotate {
  0%, 28%   { transform: translateY(0); }
  38%, 66%  { transform: translateY(-1.05em); }
  76%, 100% { transform: translateY(-2.10em); }
}
@media (prefers-reduced-motion: reduce) { .word-rotate-track { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 600px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { max-width: 1000px; margin: 0 auto; padding: 40px 22px; }

/* ---- Hero ad marquee (full-bleed, 3 rows scrolling opposite ways) ---- */
.ad-marquee {
  position: relative; left: 50%; right: 50%;
  width: 100vw; margin-left: -50vw; margin-right: -50vw;
  overflow: hidden; padding: 8px 0 40px;
  display: flex; flex-direction: column; gap: 14px;
  /* fade the left/right edges into the page background */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ad-marquee-top { padding: 16px 0 8px; }
.marquee-row { overflow: hidden; }
.marquee-img { cursor: zoom-in; transition: transform .12s; }
.marquee-img:hover { transform: scale(1.04); }
.marquee-row:hover .marquee-track { animation-play-state: paused; }

/* ---- Founder "why I built this" panel (full-bleed white) ---- */
.founder {
  position: relative; left: 50%; right: 50%;
  width: 100vw; margin-left: -50vw; margin-right: -50vw;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 64px 22px;
}
.founder-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.founder-inner .eyebrow { margin-bottom: 14px; }
.founder-lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); margin: 0 auto 18px; }
.founder-lead em { color: var(--ink); font-style: italic; }
.founder-by { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; text-align: left; }
.founder-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.founder-by-text { display: flex; flex-direction: column; line-height: 1.3; }
.founder-name { font-weight: 750; color: var(--ink); }
.founder-role { font-size: 14px; color: var(--muted); }

/* ---- FAQ (static Q&A list) ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item h3 { font-size: 17px; font-weight: 750; margin-bottom: 7px; }
.faq-item p { font-size: 15.5px; line-height: 1.6; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
/* equal trailing margin (not gap) so the duplicated set joins seamlessly at -50% */
.marquee-track img {
  flex: 0 0 auto; width: 180px; height: 180px; margin-right: 14px;
  border-radius: 16px; object-fit: cover; box-shadow: var(--shadow);
  background: var(--surface);
}
.marquee-left  .marquee-track { animation: marquee-l 110s linear infinite; }
.marquee-right .marquee-track { animation: marquee-r 130s linear infinite; }
.marquee-left-slow .marquee-track { animation: marquee-l 150s linear infinite; }
@keyframes marquee-l { from { transform: translateX(0); }     to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); }  to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none !important; } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 750; color: var(--brand); margin-bottom: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 24px; margin-bottom: 8px; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps3 .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps3 .step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* ---- Site footer ---- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.site-footer-inner { max-width: 1140px; margin: 0 auto; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-soft); }

/* ---- Misc ---- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.grow { flex: 1; }

@media (max-width: 640px) {
    h1 { font-size: 25px; }
    .hero h1 { font-size: 33px; }
    .page { padding: 22px 16px 48px; }
    .topbar-inner { padding: 10px 14px; gap: 10px; }
    .brand { font-size: 15px; gap: 6px; }
    .brand-mark { font-size: 13px; }
    .topnav { gap: 12px; }
    .nav-link { font-size: 13px; }
    .token-pill { font-size: 12px; padding: 5px 10px; gap: 5px; }
    .btn-sm { padding: 6px 11px; font-size: 12.5px; }
    .hide-mobile { display: none; }
}
@media (max-width: 400px) {
    .topbar-inner { gap: 8px; }
    .topnav { gap: 9px; }
    .brand { font-size: 14px; }
    .nav-link, .token-pill { font-size: 12px; }
    .token-pill { padding: 4px 9px; }
}
