/* ============================================================================
 * SFBro — design system
 * Stripe-flavored, light only. Approved in the style tile.
 * One accent (#635BFF), navy ink (#0A2540), generous whitespace.
 * ========================================================================== */

:root {
  color-scheme: light;

  /* ground */
  --white: #ffffff;
  --soft: #f6f9fc;
  --soft-2: #eef2f8;

  /* ink */
  --ink: #0a2540;
  --ink-soft: #425466;
  --ink-faint: #8792a2;

  /* line */
  --line: #e6e9ee;
  --line-strong: #d5dbe4;

  /* accent */
  --primary: #635bff;
  --primary-hi: #7a73ff;
  --primary-ink: #ffffff;
  --primary-soft: #efeffe;
  --primary-border: #e2e0ff;

  /* semantic */
  --green: #0e9f6e;
  --green-soft: #e6f6ef;
  --green-border: #c9ecdd;
  --amber: #b7791f;
  --amber-soft: #fdf6e3;
  --red: #e02424;
  --red-soft: #fdecec;
  --blue: #1d4ed8;
  --blue-soft: #e7eefc;
  --teal: #0f766e;
  --teal-soft: #dcf5f0;

  /* shadow */
  --sh-sm: 0 1px 2px rgba(10, 37, 64, 0.08);
  --sh-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 1px 3px rgba(10, 37, 64, 0.06);
  --sh-lg: 0 14px 34px rgba(10, 37, 64, 0.12);
  --ring: 0 0 0 4px rgba(99, 91, 255, 0.16);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --maxw: 1120px;
  --nav-h: 64px;
}

/* deliberately single-theme: hold the light world even if viewer forces dark */
:root[data-theme="dark"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── layout helpers ────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 780px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.tight { padding: clamp(32px, 5vw, 56px) 0; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack > * + * { margin-top: 16px; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ink-faint); margin: 0 0 14px;
}
.grid { display: grid; gap: 18px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── type scale ────────────────────────────────────────────────────────── */
.display { font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; letter-spacing: -0.032em; line-height: 1.04; margin: 0; }
h1.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 10px; }
h2.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.022em; margin: 0 0 10px; }
h3 { letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 0; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: var(--r-sm); padding: 10px 17px; cursor: pointer;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 7px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap; text-align: center; justify-content: center;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  color: var(--primary-ink); border: none;
  background: linear-gradient(180deg, var(--primary-hi), var(--primary));
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99, 91, 255, 0.32); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { background: var(--white); color: var(--red); border: 1px solid var(--red-soft); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── chips / pills / badges ────────────────────────────────────────────── */
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 8px 15px; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .13s ease;
}
.chip:hover { border-color: var(--primary); color: var(--ink); }
.chip .ic { opacity: .7; font-size: 12px; }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.active .ic { opacity: 1; }

.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-pkg { color: var(--blue); background: var(--blue-soft); }
.badge-saas { color: var(--teal); background: var(--teal-soft); }
.badge-primary { color: var(--primary); background: var(--primary-soft); }
.badge-green { color: var(--green); background: var(--green-soft); }
.badge-amber { color: var(--amber); background: var(--amber-soft); }
.badge-neutral { color: var(--ink-soft); background: var(--soft-2); }

.tagx { font-size: 11px; color: var(--ink-faint); background: var(--soft); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }

/* ── header / nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { color: var(--primary); font-size: 15px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: color .12s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-menu-btn { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
}

/* dropdown menu (avatar) */
.menu {
  position: absolute; top: 54px; right: clamp(16px, 4vw, 32px); z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-lg); min-width: 220px; padding: 8px; animation: pop .16s ease;
}
.menu .menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .menu-head .nm { font-weight: 700; font-size: 14px; }
.menu .menu-head .em { font-size: 12.5px; color: var(--ink-faint); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.menu a:hover, .menu button:hover { background: var(--soft); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 68px);
  background:
    radial-gradient(58% 80% at 12% 0%, rgba(99, 91, 255, 0.10), transparent 55%),
    radial-gradient(52% 72% at 92% 8%, rgba(255, 122, 162, 0.09), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(45, 212, 191, 0.06), transparent 60%),
    var(--white);
}
.hero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero .display .accent { color: var(--primary); }
.hero .lead { max-width: 46ch; margin: 16px auto 30px; }

/* search bar */
.searchbar {
  display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px 6px 6px 16px; box-shadow: var(--sh-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.searchbar:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.searchbar .ico { color: var(--ink-faint); font-size: 18px; }
.searchbar input {
  flex: 1; border: none; outline: none; background: transparent; font: inherit;
  font-size: 15px; color: var(--ink); padding: 11px 0;
}
.searchbar input::placeholder { color: var(--ink-faint); }
.suggests { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-faint); }
.suggests .chip { padding: 5px 13px; font-size: 13px; }

/* logo strip */
.logostrip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; opacity: .9; }
.logostrip .lg { font-size: 14px; font-weight: 600; color: var(--ink-faint); }

/* ── cards ─────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  cursor: pointer; text-align: left;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-border);
}
.icon-tile.lg { width: 60px; height: 60px; font-size: 27px; border-radius: 14px; }
.card h3 { margin: 0 0 5px; font-size: 17px; }
.card .desc { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.connects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); gap: 10px; }
.price { font-size: 14px; font-weight: 700; color: var(--ink); }
.price small { font-weight: 500; color: var(--ink-faint); }
.fav-btn { background: transparent; border: none; cursor: pointer; font-size: 17px; color: var(--ink-faint); line-height: 1; padding: 4px; border-radius: 6px; }
.fav-btn:hover { background: var(--soft); }
.fav-btn.on { color: var(--primary); }

/* feature/generic tiles */
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--sh-sm); }
.tile .icon-tile { margin-bottom: 14px; }
.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.usecase-tile { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.usecase-tile:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--line-strong); }

/* trust band */
.trust { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; }

/* ── forms ─────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color .13s ease, box-shadow .13s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.textarea { min-height: 120px; resize: vertical; }
.input.err, .select.err, .textarea.err { border-color: var(--red); }
.field-err { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.checkbox input { margin-top: 3px; }

/* auth card */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 40px 16px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(99,91,255,0.06), transparent 60%), var(--soft); }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--sh-md); }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-card h1 { font-size: 23px; letter-spacing: -0.02em; margin: 0 0 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-hint { margin-top: 18px; font-size: 12.5px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink-soft); }
.demo-hint code { color: var(--primary); font-size: 12px; }

/* ── product detail ────────────────────────────────────────────────────── */
.pd-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 34px 0; }
.pd-hero .pd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.025em; }
.pd-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pd-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding-bottom: 60px; }
.pd-gallery { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); height: 300px; display: grid; place-items: center; color: var(--ink-faint); font-size: 14px; margin-bottom: 26px; }
.pd-side { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--sh-sm); }
.pd-side .row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pd-side .row:first-of-type { border-top: none; }
.pd-side .row .k { color: var(--ink-faint); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
@media (max-width: 820px) {
  .pd-hero { grid-template-columns: 1fr; text-align: left; }
  .pd-cta { align-items: flex-start; }
  .pd-body { grid-template-columns: 1fr; }
  .pd-side { position: static; }
}

/* ── browse layout ─────────────────────────────────────────────────────── */
.browse-head { padding: 30px 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 8px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-faint); }
.empty .mk { font-size: 40px; opacity: .4; margin-bottom: 8px; }

/* ── dashboard shell ───────────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 244px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.dash-side { border-right: 1px solid var(--line); background: var(--soft); padding: 24px 16px; }
.dash-org { display: flex; align-items: center; gap: 11px; padding: 8px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dash-org .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.dash-org .nm { font-weight: 700; font-size: 14px; line-height: 1.2; }
.dash-org .pl { font-size: 12px; color: var(--ink-faint); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
}
.dash-nav a .ic { width: 18px; text-align: center; opacity: .8; }
.dash-nav a:hover { background: var(--soft-2); color: var(--ink); }
.dash-nav a.active { background: var(--white); color: var(--primary); box-shadow: var(--sh-sm); font-weight: 600; }
.dash-nav .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); padding: 14px 11px 6px; }
.dash-main { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.dash-main h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 4px; }
.dash-role-tag { font-size: 11px; font-weight: 700; }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--line); }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav .lbl { width: 100%; }
}

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-sm); }
.stat .k { font-size: 12px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.stat .d { font-size: 12.5px; margin-top: 4px; }

/* panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--soft); }
.table .strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.person { display: flex; align-items: center; gap: 10px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-faint); background: transparent; border: none; padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button:hover { color: var(--ink); }

/* empty-list note */
.note { background: var(--soft); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 24px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* ── legal / prose ─────────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15px; }
.prose ul { padding-left: 20px; }

/* ── modal ─────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 11, 16, 0.5); backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal { width: min(480px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); animation: pop .2s cubic-bezier(.22,1,.36,1); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--soft); }
.modal-close { border: none; background: transparent; font-size: 22px; color: var(--ink-faint); cursor: pointer; line-height: 1; }

/* ── toasts ────────────────────────────────────────────────────────────── */
#toast-layer { position: fixed; bottom: 22px; right: 22px; z-index: 150; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px; animation: slideUp .22s ease; max-width: 340px; }
.toast .tk { font-weight: 700; }
.toast.ok { background: #0b3b2e; }
.toast.err { background: #4a1420; }

/* ── demo banner ───────────────────────────────────────────────────────── */
.demo-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--ink); color: #e7eaf0;
  font-size: 12.5px; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.demo-banner b { color: #fff; }
.demo-banner button { margin-left: 8px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--soft); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--primary); }
.foot-brand p { color: var(--ink-soft); font-size: 13.5px; max-width: 34ch; margin: 10px 0 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ── animations ────────────────────────────────────────────────────────── */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card { animation: rise .4s ease backwards; }

/* utility */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.hide-sm { } @media (max-width: 640px) { .hide-sm { display: none; } }

.brand-logo{display:block}
