/* ============================================================
   PickYour.App design system — light, airy, app-store feel
   ============================================================ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #171a2b;
  --ink-2: #3d4258;
  --muted: #6b7188;
  --faint: #9aa0b4;
  --line: #e6e8f0;
  --line-2: #d7dae6;

  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef0ff;
  --violet: #7c3aed;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #16a34a;
  --emerald: #059669;
  --amber: #d97706;
  --orange: #ea580c;
  --red: #dc2626;
  --rose: #e11d48;
  --blue: #2563eb;
  --purple: #9333ea;
  --indigo: #4f46e5;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(23, 26, 43, .05);
  --sh: 0 4px 18px rgba(23, 26, 43, .07);
  --sh-lg: 0 18px 50px rgba(23, 26, 43, .12);
  --ring: 0 0 0 4px rgba(79, 70, 229, .18);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary-soft); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
.lead { font-size: 1.16rem; color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.mono { font-family: var(--mono); }
.grad-text {
  background: linear-gradient(100deg, var(--primary) 0%, var(--violet) 45%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .32); }
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 10px 26px rgba(79, 70, 229, .4); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262b45; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.btn-soft { background: var(--primary-soft); color: var(--primary-600); }
.btn-soft:hover { background: #e2e5ff; }
.btn-danger-soft { background: #fdecec; color: var(--red); }
.btn-danger-soft:hover { background: #fbdcdc; }
.btn-sm { padding: 7px 14px; font-size: .83rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn svg, .btn-icon svg { width: 17px; height: 17px; }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
}
.badge-ok { background: #e7f7ee; color: var(--green); }
.badge-warn { background: #fdf1e0; color: var(--amber); }
.badge-danger { background: #fdecec; color: var(--red); }
.badge-primary { background: var(--primary-soft); color: var(--primary-600); }
.badge-info { background: #e5f4fd; color: var(--blue); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-verified { background: var(--primary-soft); color: var(--primary-600); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px; font-size: .84rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-600); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-sm);
}
.card-pad { padding: 24px; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }

/* app tiles (letter logos) */
.tile {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .12), 0 4px 10px rgba(23, 26, 43, .14);
}
.tile-sm { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
.region-tile { font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.tile-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.9rem; }
.t-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.t-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.t-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.t-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.t-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.t-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.t-emerald { background: linear-gradient(135deg, #34d399, #047857); }
.t-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.t-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.t-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.t-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.t-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.t-ink { background: linear-gradient(135deg, #4b5169, #171a2b); }

/* app card (store) */
.app-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.app-card .spec {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 3px 9px;
}
.app-card .install { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 11px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; outline: none; font-size: .93rem;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 110px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead th {
  text-align: left; padding: 12px 18px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  border-bottom: 1px solid var(--line); background: var(--surface);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbff; }
td .row-title { color: var(--ink); font-weight: 600; }

/* ---------- stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat .label { font-size: .79rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.stat .delta { font-size: .8rem; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }

/* progress & meters */
.meter { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.meter.ok > span { background: var(--green); }
.meter.warn > span { background: var(--amber); }
.meter.hot > span { background: var(--red); }

.progress-steps { display: flex; align-items: center; gap: 0; }
.progress-steps .pstep { display: flex; align-items: center; gap: 10px; flex: 1; }
.progress-steps .pdot {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  background: var(--surface-2); color: var(--faint); border: 2px solid var(--line-2);
}
.progress-steps .pstep.done .pdot { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-steps .pstep.now .pdot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: var(--ring); }
.progress-steps .pline { flex: 1; height: 2px; background: var(--line-2); margin: 0 10px; }
.progress-steps .pline.done { background: var(--primary); }

/* bar chart */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-bars .bar {
  flex: 1; border-radius: 6px 6px 3px 3px; background: var(--primary-soft);
  position: relative; min-width: 8px; transition: background .15s;
}
.chart-bars .bar:hover { background: var(--primary); }
.chart-bars .bar.hl { background: var(--primary); }
.chart-labels { display: flex; gap: 8px; margin-top: 8px; }
.chart-labels span { flex: 1; text-align: center; font-size: .68rem; color: var(--faint); }

/* ---------- header / nav (public) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 247, 251, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 232, 240, .8);
}
.nav-inner { display: flex; align-items: center; gap: 34px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 19px; height: 19px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -23px; height: 2.5px;
  background: var(--primary); border-radius: 3px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(750px 380px at 12% -10%, rgba(124, 58, 237, .13), transparent 65%),
    radial-gradient(680px 360px at 88% 0%, rgba(14, 165, 233, .12), transparent 62%),
    radial-gradient(520px 300px at 55% 115%, rgba(79, 70, 229, .10), transparent 65%);
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { margin: 18px 0 18px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; margin: 34px auto 0; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 8px 8px 22px; box-shadow: var(--sh-lg);
}
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.02rem; }
.hero-search svg { width: 20px; height: 20px; color: var(--faint); flex: 0 0 auto; }
.popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 26px; margin-top: 44px; color: var(--muted); font-size: .87rem; font-weight: 500;
}
.trust-row .t-item { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--primary); }

/* search results dropdown */
.search-results {
  max-width: 640px; margin: 12px auto 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
  text-align: left; overflow: hidden;
}
.search-results .sr-head {
  padding: 11px 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line);
}
.sr-item { display: flex; align-items: center; gap: 13px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: #fafbff; }
.sr-item .sr-main { flex: 1; min-width: 0; }
.sr-item .sr-name { font-weight: 600; font-size: .92rem; }
.sr-item .sr-desc { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin: 14px 0 14px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

/* step cards (how it works) */
.step-card { position: relative; padding: 30px 26px; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary-600);
}
.step-card:nth-child(2) .step-num { background: #e5f4fd; color: var(--blue); }
.step-card:nth-child(3) .step-num { background: #e7f7ee; color: var(--green); }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.feature-item { display: flex; gap: 13px; align-items: flex-start; }
.feature-item .tick {
  width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto; margin-top: 2px;
  background: var(--primary-soft); color: var(--primary-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .tick svg { width: 13px; height: 13px; }

/* visual mock panel */
.mock-panel {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-bar i:first-child { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #4ade80; }

/* pricing */
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); transition: all .18s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-card.popular { border-color: var(--primary); box-shadow: 0 18px 50px rgba(79, 70, 229, .16); }
.plan-card.popular::before {
  content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
}
.plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); list-style: none; }
.plan-feats svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }
.plan-specs {
  display: flex; justify-content: space-between; padding: 13px 15px;
  background: var(--surface-2); border-radius: var(--r-sm); font-size: .82rem; font-weight: 600;
}
.plan-specs div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plan-specs b { font-size: .98rem; }
.plan-specs .tiny { font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

/* testimonials */
.quote-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote-card p { color: var(--ink-2); font-size: .96rem; line-height: 1.7; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .86rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(115deg, #2a2377 0%, var(--primary) 55%, #6d5df0 100%);
  color: #fff; text-align: center; padding: 66px 32px;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 85% 120%, rgba(255, 255, 255, .18), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .82); }

/* footer */
.footer { background: var(--ink); color: #b7bdcf; padding: 62px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer a { display: block; padding: 5px 0; font-size: .89rem; color: #b7bdcf; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .82rem;
}
.footer .brand { color: #fff; }
.footer .brand-desc { margin: 16px 0; font-size: .9rem; max-width: 270px; line-height: 1.7; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22, 163, 74, .16); color: #6ee7a8;
  padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

/* ============================================================
   App shell (customer / admin dashboards)
   ============================================================ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 325px; flex: 0 0 auto; background: var(--surface);
  border-right: 1px solid var(--line); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 6px 10px 22px; }
.side-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); padding: 16px 12px 7px;
}
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: .91rem; font-weight: 500;
  color: var(--ink-2); transition: all .13s;
}
.side-link svg { width: 18px; height: 18px; color: var(--faint); flex: 0 0 auto; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--primary-soft); color: var(--primary-600); font-weight: 600; }
.side-link.active svg { color: var(--primary); }
.side-link .side-count {
  margin-left: auto; font-size: .71rem; font-weight: 700;
  background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 7px;
}
.side-foot { margin-top: auto; padding: 14px 10px 4px; }
/* .side-links wraps the nav so locked-state pointer-events can be scoped to it. It must
   reproduce the 4px gap the links got when they were direct flex children of .sidebar. */
.side-links { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.side-unlock { background: var(--primary-soft); border: 1px solid var(--line); margin-top: 20px; }
.side-unlock .flex.gap-8.mt-14 { justify-content: space-between; }

/* Locked sidebar (no session): full menu listing stays VISIBLE but faded (transparent-ish
   colour) and inert. pointer-events is scoped to the links/CTA only so the sign-in
   controls inside the sidebar stay clickable — otherwise the menu could never unlock. */
.sidebar-locked .side-links,
.sidebar-locked [data-side-cta] { pointer-events: none; }
.sidebar-locked .side-link {
  color: rgba(61, 66, 88, .38); background: transparent; cursor: not-allowed;
}
.sidebar-locked .side-link svg { color: rgba(154, 160, 180, .5); }
.sidebar-locked .side-link:hover { background: transparent; color: rgba(61, 66, 88, .38); }
.sidebar-locked .side-link.active {
  background: rgba(79, 70, 229, .07); color: rgba(67, 56, 202, .42); font-weight: 600;
}
.sidebar-locked .side-link.active svg { color: rgba(79, 70, 229, .35); }
.sidebar-locked .side-link .side-count { background: rgba(79, 70, 229, .14); color: rgba(67, 56, 202, .42); }
.sidebar-locked [data-side-cta] .btn { opacity: .35; }
.sidebar-locked .side-label { opacity: .55; }

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.topbar-search {
  display: flex; align-items: center; gap: 9px; flex: 0 1 320px;
  background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 14px;
}
.topbar-search input { border: 0; background: none; outline: 0; width: 100%; font-size: .87rem; }
.topbar-search svg { width: 16px; height: 16px; color: var(--faint); flex: 0 0 auto; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.content { padding: 30px 28px 60px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.55rem; }

/* page tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 11px 18px; font-size: .9rem; font-weight: 600; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--primary-600); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* empty state */
.empty {
  text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg); color: var(--muted);
}

/* wizard */
.wizard-steps { display: flex; gap: 0; margin-bottom: 34px; }
.wizard-steps .wstep { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.wizard-steps .wdot {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: .84rem; font-weight: 700;
  background: var(--surface-2); color: var(--faint); border: 2px solid var(--line-2);
}
.wizard-steps .wstep.done .wdot { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-steps .wstep.now .wdot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: var(--ring); }
.wizard-steps .wtext { display: flex; flex-direction: column; min-width: 0; flex: 0 0 auto; }
.wizard-steps .wtext b { font-size: .88rem; white-space: nowrap; }
.wizard-steps .wtext span { font-size: .75rem; color: var(--faint); white-space: nowrap; }
.wizard-steps .wline { flex: .6; height: 2px; background: var(--line-2); margin: 0 14px; min-width: 18px; }
.wizard-steps .wline.done { background: var(--primary); }
.wizard-pane { display: none; }
.wizard-pane.on { display: block; }

/* selectable cards (wizard choices) */
.choice {
  display: flex; align-items: center; gap: 15px; padding: 17px 19px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  cursor: pointer; transition: all .14s;
}
.choice:hover { border-color: var(--primary); }
.choice.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--ring); }
.choice .c-main { flex: 1; min-width: 0; }
.choice .radio {
  width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--line-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.choice.on .radio { border-color: var(--primary); }
.choice.on .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.choice .check {
  width: 21px; height: 21px; border-radius: 7px; border: 2px solid var(--line-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.choice.on .check { border-color: var(--primary); background: var(--primary); }
.choice.on .check::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* deploy log */
.log-box {
  background: #14162a; border-radius: var(--r); padding: 18px 20px;
  font-family: var(--mono); font-size: .8rem; color: #9fe8b8;
  height: 230px; overflow-y: auto; line-height: 1.9;
}
.log-box .t { color: #5b6486; margin-right: 10px; }
.log-box .warn { color: #fbbf24; }
.log-box .dim { color: #7d87ac; }

/* misc utility */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrapflex { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-46 { margin-top: 46px; }
.mb-8 { margin-bottom: 8px; } .mb-14 { margin-bottom: 14px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.nowrap { white-space: nowrap; }

/* toast */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--r); box-shadow: var(--sh-lg); font-size: .9rem;
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; color: #6ee7a8; }

/* modal */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(23, 26, 43, .5);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-back.on { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 520px;
  padding: 28px; box-shadow: var(--sh-lg); max-height: 88vh; overflow-y: auto;
}

/* auth pages */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
  background: linear-gradient(150deg, #241d66 0%, var(--primary) 60%, #7c5cf5 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 90% 110%, rgba(255, 255, 255, .14), transparent 60%);
}
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-quote {
  margin-top: auto; position: relative; z-index: 1;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg); padding: 24px;
}

/* responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .sidebar { position: fixed; z-index: 80; left: -260px; transition: left .22s ease; box-shadow: var(--sh-lg); }
  .sidebar.open { left: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .content { padding: 22px 16px 50px; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  /* wizard's search lives in .topbar-search styling but must stay visible at every width */
  #install-topbar-search { display: flex; flex: 1 1 auto; width: 100%; max-width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-steps .wtext { display: none; }
  .plan-price { font-size: 2.1rem; }
  .hero-search { padding-left: 16px; }
}


/* ============ v2: type pills, mascot, interactivity, responsive ============ */
.badge-type { padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.badge-type-app { background: #eef2ff; color: #4f46e5; }
.badge-type-addon { background: #fae8ff; color: #a21caf; }

.mascot-wrap { position: absolute; right: 7%; top: 13%; width: 172px; z-index: 3; cursor: pointer; animation: mcbob 3.8s ease-in-out infinite; }
.mascot-wrap svg { width: 100%; height: auto; display: block; }
@keyframes mcbob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-13px) rotate(2.5deg); } }
.mascot-wrap.wave .mc-wing { transform-origin: 122px 76px; animation: mcwave .8s ease; }
@keyframes mcwave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 60% { transform: rotate(12deg); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; background: #fff; color: var(--ink, #0f172a); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

button, .chip, .btn { transition: transform .12s ease, background .15s ease, border-color .15s ease; }
button:active, .chip:active, .btn:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .mascot-wrap { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1180px) { .mascot-wrap { width: 132px; right: 2%; top: 8%; } }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 10px; box-shadow: var(--sh-lg); z-index: 90; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; border-radius: 10px; }
  .mascot-wrap { width: 98px; right: 3%; top: 5%; }
  .app-card { padding: 18px; }
  .app-card .tile { width: 42px; height: 42px; font-size: 1.05rem; }
  .app-card .spec svg { width: 13px; height: 13px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hero h1 { font-size: 1.95rem; }
  .lead { font-size: 1.02rem; }
  .grid-auto { grid-template-columns: 1fr; gap: 14px; }
  .app-card .install { flex-wrap: wrap; gap: 8px; }
  .chip { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .value { font-size: 1.45rem; }
  .stat .label { font-size: .72rem; }
  .card table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero-search { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .hero-search input { min-width: 0; width: 100%; }
  .badge-type { font-size: .62rem; padding: 2px 7px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 1.62rem; }
  .mascot-wrap { width: 66px; top: 1%; right: 2%; }
  .hero { padding: 46px 0 38px; }
}

/* ============ v3: stepper, mascot poses, mobile buttons ============ */
.mascot-peek svg { transform: rotate(-6deg); }
.mascot-point svg { transform: rotate(4deg); }
.mascot-fly svg { transform: rotate(8deg); }
.mascot-sit { top: 18% !important; }
.mascot-auth { position: static !important; width: 150px; margin: 0 auto 18px; animation: none; }
.stepper { max-width: 980px; margin: 0 auto; }
.step-tabs { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.step-tab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; color: var(--muted); flex: 1 1 180px; text-align: left; }
.step-tab .step-n { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 800; flex: 0 0 auto; }
.step-tab.on { border-color: #4f46e5; color: var(--ink, #0f172a); box-shadow: 0 10px 26px rgba(79, 70, 229, .12); }
.step-tab.on .step-n { background: #4f46e5; color: #fff; }
.step-progress { position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.step-progress-bar { height: 100%; width: 0; background: #4f46e5; border-radius: 3px; }
.step-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; }
.step-panel.step-anim .step-copy, .step-panel.step-anim .step-mock { animation: stepIn .45s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-mock { background: #f8fafc; border: 1px solid var(--line, #e2e8f0); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-tile { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #c7d2fe, #a5b4fc); flex: 0 0 auto; }
.mock-line { height: 12px; border-radius: 8px; background: #e2e8f0; flex: 1; }
.w30 { max-width: 30%; } .w40 { max-width: 40%; } .w50 { max-width: 50%; } .w60 { max-width: 60%; } .w70 { max-width: 70%; } .w80 { max-width: 80%; }
.mock-pill { padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mock-pill.ok { background: #dcfce7; color: #15803d; }
@media (max-width: 880px) {
  .step-panel { grid-template-columns: 1fr; }
  .step-tab { flex: 1 1 140px; }
}
@media (max-width: 640px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; }
  .app-card .install { flex-direction: column; align-items: stretch; }
  .app-card .install .btn { width: 100%; min-height: 44px; }
  .hero-search .btn { width: 100%; }
  .step-tab { flex: 1 1 100%; padding: 11px 14px; }
  .step-tab .step-t { font-size: .92rem; }
}
@media (max-width: 420px) {
  .nav-actions .btn-ghost { display: none; }
}

/* ============ v4: logo tiles ============ */
.logo-tile { display: flex; align-items: center; justify-content: center; padding: 7px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

/* ============ v4: card badge & chip refinements ============ */
button.chip svg {
    width: 16px;
}

.badge-verified {
    background: var(--primary-soft);
    color: var(--primary-600);
    width: 25px;
    height: 25px;
    padding: 4px;
    display: none;
}


span.badge.badge-verified svg {
    width: 16px;
}

.badge-type-app {
    background: #eef2ff;
    color: #4f46e5;
    display: none;
}

/* ============ v4: GitHub repo card layout fix ============ */
[id$="-gh-list"] .card > .flex.between { flex-wrap: wrap; row-gap: 12px; }
[id$="-gh-list"] .card .text-right { flex: 0 0 auto; margin-left: auto; }
[id$="-gh-list"] .card .flex.wrapflex { max-width: 100%; }
@media (max-width: 640px) {
  [id$="-gh-list"] .card > .flex.between { flex-direction: column; align-items: stretch; }
  [id$="-gh-list"] .card .text-right { display: flex; align-items: center; justify-content: space-between; text-align: left; margin-left: 0; }
  [id$="-gh-list"] .card .text-right .btn { margin-top: 0; min-height: 44px; }
}

/* ============ v6: hide trust row & footer vendor line ============ */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 44px;
    color: var(--muted);
    font-size: .87rem;
    font-weight: 500;
    display: none;
}

div#footer-bottom .muted {
    display: none;
}

.badge-type-addon {
    display: none;
}

.badge-sprout {
    display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-tld {
  font-size: .5em;
  font-weight: 800;
  opacity: .6;
  position: relative;
  top: -.62em;
  margin-left: 0;
  letter-spacing: .02em;
}
.brand-say {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .55;
  margin-top: 2px;
  text-transform: lowercase;
}

/* app-card title links to the dynamic /app/<slug> page */
.app-card h4 a{color:inherit;text-decoration:none}
.app-card h4 a:hover{color:var(--primary)}
