:root {
  --bg: #06060a;
  --bg-2: #0b0b12;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #ededf3;
  --muted: #9b9bb0;
  --dim: #6b6b80;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;
  --up: #fb7185;
  --down: #34d399;
  --warn: #fbbf24;
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 120px 0; position: relative; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 18px; font-weight: 700; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }

.grad {
  background: linear-gradient(100deg, #fff 0%, #c4b5fd 30%, var(--brand-2) 60%, var(--brand-3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.bg .b1 { width: 620px; height: 620px; background: var(--brand); top: -260px; left: 8%; }
.bg .b2 { width: 520px; height: 520px; background: #0891b2; top: -160px; right: 2%; animation-delay: -7s; opacity: .4; }
.bg .b3 { width: 420px; height: 420px; background: #db2777; top: 380px; left: 42%; animation-delay: -14s; opacity: .22; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.15); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; border: 1px solid var(--border-2);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5b3cf5); color: #fff; border-color: rgba(255,255,255,.2);
  box-shadow: 0 0 0 1px rgba(124,92,255,.4), 0 10px 40px -8px rgba(124,92,255,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124,92,255,.6), 0 14px 50px -6px rgba(124,92,255,1), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: var(--panel); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255,255,255,.25); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(12, 12, 20, .6); border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.lang { font-family: var(--mono); font-size: .78rem !important; border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.nav .btn { padding: 9px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 60px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); font-size: .85rem; color: var(--muted);
  margin-bottom: 28px; backdrop-filter: blur(10px);
}
.pill b { font-weight: 500; color: var(--text); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: 2px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; white-space: nowrap; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { max-width: 980px; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 18px; }
.note { font-size: .85rem; color: var(--dim); font-family: var(--mono); }

/* Dashboard mock */
.stage { position: relative; margin: 80px auto 0; max-width: 1040px; perspective: 1800px; }
.stage::before {
  content: ""; position: absolute; inset: 10% 5% -10%; background: radial-gradient(closest-side, rgba(124,92,255,.55), transparent);
  filter: blur(40px); z-index: -1;
}
.mock {
  position: relative; text-align: left; border-radius: 22px; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 40%, rgba(124,92,255,.35));
  transform: rotateX(14deg) scale(.97); transform-origin: top center;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.8);
}
.stage.in .mock, .stage:hover .mock { transform: rotateX(0) scale(1); }
.mock-inner { background: linear-gradient(180deg, #11111b, #0a0a12); border-radius: 21px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a38; display: block; }
.mock-bar .url { margin-left: 14px; font-family: var(--mono); font-size: .75rem; color: var(--dim); background: rgba(255,255,255,.04); padding: 4px 12px; border-radius: 8px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.side { border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.side span { font-size: .82rem; color: var(--muted); padding: 8px 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.side span.on { background: rgba(124,92,255,.14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
.side span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .6; }
.main { padding: 22px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.kpi small { display: block; font-size: .72rem; color: var(--dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.kpi em { font-style: normal; font-size: .78rem; margin-left: 6px; }
.mock table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mock th, .mock td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mock th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 500; }
.mock td { color: #d4d4e0; }
.mock tr:last-child td { border-bottom: 0; }
.mock td.num { font-family: var(--mono); font-size: .82rem; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.chip.up { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.25); }
.chip.down { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
.chip.warn { color: var(--warn); background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25); }
.chip.flat { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); }

/* Floating toasts */
.toast {
  position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; text-align: left;
  padding: 12px 16px; border-radius: 16px; font-size: .84rem; max-width: 290px;
  background: rgba(18, 18, 28, .75); border: 1px solid var(--border-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite;
}
.toast .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.toast small { display: block; color: var(--dim); font-family: var(--mono); font-size: .7rem; }
.toast.t1 { top: 70px; left: -70px; }
.toast.t1 .ico { background: rgba(52,211,153,.15); color: var(--down); }
.toast.t2 { bottom: 60px; right: -60px; animation-delay: -3s; }
.toast.t2 .ico { background: rgba(251,191,36,.15); color: var(--warn); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--border); background: rgba(255,255,255,.015); overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .84rem; color: var(--muted); }
.ticker-item b { color: var(--text); font-weight: 500; font-family: var(--font); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 64px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--border); text-align: left; isolation: isolate;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.16), transparent 40%);
}
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.visual { margin: -6px -6px 26px; height: 180px; border-radius: 14px; position: relative; overflow: hidden;
  background: rgba(0,0,0,.25); border: 1px solid var(--border); }

/* chart visual */
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .chart .line { animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .label { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.chart .legend { position: absolute; top: 12px; right: 14px; display: flex; gap: 14px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.chart .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

/* stock visual */
.stock { display: grid; place-items: center; }
.stock-box { font-family: var(--mono); font-size: .8rem; display: grid; gap: 8px; width: 80%; }
.stock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--muted); }
.stock-row.out { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.06); color: var(--text); }

/* new product visual */
.newp { display: grid; place-items: center; }
.newp-card { width: 70%; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px dashed rgba(244,114,182,.45); font-size: .85rem; position: relative; }
.newp-card .chip { position: absolute; top: -11px; right: 12px; color: var(--brand-3); background: #1a0f18; border: 1px solid rgba(244,114,182,.4); }
.newp-card small { display: block; color: var(--dim); font-family: var(--mono); font-size: .72rem; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 8px; }

/* email visual */
.mail { padding: 18px; font-size: .82rem; display: flex; flex-direction: column; gap: 8px; }
.mail-h { display: flex; justify-content: space-between; color: var(--dim); font-family: var(--mono); font-size: .72rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mail-r { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.mail-r b { color: var(--text); font-weight: 500; }

/* big numbers */
.stat { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }
.flags { display: flex; gap: 10px; margin-top: 18px; }
.flags span { font-family: var(--mono); font-size: .8rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent); opacity: .5;
}
.step { text-align: left; padding: 0 8px; }
.step-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--mono); font-size: .95rem; color: var(--text); position: relative;
  background: linear-gradient(180deg, #17172a, #0d0d16); border: 1px solid var(--border-2);
  box-shadow: 0 0 30px -6px rgba(124,92,255,.6);
}
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Compare ---------- */
.compare-wrap { margin-top: 56px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: rgba(255,255,255,.02); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 22px 28px; border-bottom: 1px solid var(--border); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 500; }
.compare th.us { color: var(--text); }
.compare td:first-child { color: var(--muted); }
.compare td:nth-child(2) { color: var(--text); font-weight: 500; background: linear-gradient(90deg, rgba(124,92,255,.1), rgba(124,92,255,.02)); }
.compare td:nth-child(2)::before { content: "✓"; color: var(--down); margin-right: 10px; }
.compare td:nth-child(3) { color: var(--dim); }

/* ---------- Ethics ---------- */
.ethics { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; color: var(--muted); }
.checklist li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .75rem; color: var(--down); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
.checklist a { color: var(--brand-2); }
.terminal { border-radius: var(--radius); border: 1px solid var(--border-2); background: #08080d; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(124,92,255,.4); min-width: 0; }
.terminal .mock-bar { background: rgba(255,255,255,.02); }
.terminal pre { margin: 0; padding: 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.9; color: var(--muted); overflow-x: auto; }
.terminal .c { color: var(--dim); }
.terminal .g { color: var(--down); }
.terminal .y { color: var(--warn); }
.terminal .b { color: var(--brand-2); }
.terminal .p { color: #c4b5fd; }
.cursor { display: inline-block; width: 8px; height: 1em; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.025); padding: 4px 24px; transition: background .2s, border-color .2s; }
.faq details[open] { background: rgba(255,255,255,.05); border-color: var(--border-2); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 18px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 96px 32px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(124,92,255,.35), transparent 60%), #0b0b14;
  border: 1px solid var(--border-2);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta-box > * { position: relative; }
.cta-box .lead { margin: 0 auto 36px; }

footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--dim); font-size: .88rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none; }
  .chart .line { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .ethics { grid-template-columns: 1fr; }
  .toast.t1 { left: -10px; top: -30px; }
  .toast.t2 { right: -10px; bottom: -30px; }
  .nav-links a[href^="#"] { display: none; }
  .nav-links { gap: 14px; }
  section { padding: 88px 0; }
}
@media (max-width: 700px) {
  .mock-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { display: none; }
  .mock th:nth-child(3), .mock td:nth-child(3) { display: none; }
  .toast { display: none; }
  .mock { transform: none; }
}
@media (max-width: 600px) {
  .bento, .steps { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .nav { padding-left: 14px; }
  .nav-links .lang { display: none; }
  .compare th, .compare td { padding: 14px; font-size: .88rem; }
  .card { padding: 24px; }
}

/* ---------- Auth & app ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 16px; }
.auth-card {
  width: 100%; max-width: 420px; padding: 36px; border-radius: 24px;
  background: rgba(14, 14, 22, .7); border: 1px solid var(--border-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -30px rgba(124,92,255,.45);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 28px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; pointer-events: none; }
.msg { margin: 0; font-size: .88rem; padding: 10px 14px; border-radius: 10px; color: var(--up); background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.25); }
.msg.ok { color: var(--down); background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); }
.auth-back { color: var(--dim); font-size: .85rem; }
.auth-back:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }

/* App shell */
body.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
body.app.loading .app-main, body.app.loading .app-nav { visibility: hidden; }
.app-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 32px; padding: 24px 16px;
  border-right: 1px solid var(--border); background: rgba(10,10,16,.6); backdrop-filter: blur(16px);
}
.app-side .logo { padding: 0 8px; }
.app-nav { display: grid; gap: 4px; }
.app-nav a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-size: .92rem; transition: background .2s, color .2s; }
.app-nav a:hover { color: var(--text); background: var(--panel); }
.app-nav a.on { color: var(--text); background: rgba(124,92,255,.14); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
body.onboarding .app-nav { display: none; }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.app-user img { border-radius: 50%; }
.app-user span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { padding: 48px clamp(16px, 4vw, 56px); min-width: 0; max-width: 1200px; }
.app-main h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.app-kpis { margin: 24px 0; }
.app-kpis .kpi strong { font-size: 2rem; }
.card.empty h3 { margin-bottom: 8px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.view-head h1 { margin-bottom: 6px; }
.hint { color: var(--dim); font-size: .88rem; margin: 8px 0; }
.hint:empty { display: none; }
.hint.error { color: var(--up); }

.url-form { display: flex; gap: 10px; margin: 24px 0 8px; max-width: 560px; }
.url-form input, .search {
  flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 12px 20px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.url-form input:focus, .search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.search { display: block; width: 100%; max-width: 420px; margin: 24px 0 16px; border-radius: 12px; }

.table-wrap { border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; background: rgba(255,255,255,.02); }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th, .data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 500; white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data a:hover { color: var(--brand-2); }
.data .right { text-align: right; }

.onboard { max-width: 640px; margin: 8vh auto 0; }
.comp-mini { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.comp-mini li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); }
.comp-mini .mono { color: var(--dim); font-size: .8rem; flex: 1; }

@media (max-width: 800px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .app-side { min-width: 0; }
  .app-nav a { white-space: nowrap; }
  .app-side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .app-nav { display: flex; order: 3; width: 100%; overflow-x: auto; }
  .app-user { margin: 0 0 0 auto; }
  .app-main { padding: 28px 16px; }
  .url-form { flex-direction: column; }
}
.section-title { font-size: 1.4rem; margin: 48px 0 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 12px; }
.tabs.small { margin: 0; }
.tab { font: inherit; font-size: .88rem; color: var(--muted); background: var(--panel); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); border-color: var(--border-2); }
.tab.on { color: var(--text); background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.45); }
.tabs.small .tab { font-size: .8rem; padding: 6px 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pick { display: block; margin-top: 8px; max-width: 320px; width: 100%; font: inherit; font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.pick option { background: #11111b; color: var(--text); }
.nowrap { white-space: nowrap; }
.data .btn-sm { padding: 6px 12px; }
.explain { margin: 20px 0 8px; padding: 20px 24px; }
.explain summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform .25s; }
.explain[open] summary::after { transform: rotate(45deg); }
.explain p { margin-top: 12px; }
.explain ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.explain b { color: var(--text); font-weight: 600; }
.link { color: var(--brand-2); }
/* Matches: make "yours" vs "theirs" obvious */
.match-table th.th-you span, .match-table th.th-them span {
  display: inline-block; font-family: var(--font); font-size: .9rem; font-weight: 600; letter-spacing: 0;
  text-transform: none; padding: 6px 14px; border-radius: 999px;
}
.match-table th.th-you span { color: #c4b5fd; background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.45); }
.match-table th.th-them span { color: #67e8f9; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.4); }
.match-table td:nth-child(1) { border-left: 3px solid rgba(124,92,255,.6); }
.match-table td:nth-child(2) { border-left: 3px solid rgba(34,211,238,.5); }

/* "What to do today" cards */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.insight { border-radius: 18px; padding: 22px 24px; border: 1px solid var(--border-2); background: rgba(255,255,255,.035); }
.insight h3 { font-size: 1.08rem; margin-bottom: 6px; }
.insight p { color: var(--muted); font-size: .9rem; }
.insight ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.insight b { color: var(--text); font-weight: 500; }
.insight.up { border-color: rgba(251,113,133,.35); background: linear-gradient(180deg, rgba(251,113,133,.09), rgba(251,113,133,.02)); }
.insight.down { border-color: rgba(52,211,153,.35); background: linear-gradient(180deg, rgba(52,211,153,.09), rgba(52,211,153,.02)); }
.insight.warn { border-color: rgba(251,191,36,.35); background: linear-gradient(180deg, rgba(251,191,36,.09), rgba(251,191,36,.02)); }
.chip.pos { font-family: var(--font); font-size: .82rem; font-weight: 600; padding: 4px 12px; white-space: nowrap; }

/* ---------- Phones: tables become cards ---------- */
.app-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 700px) {
  .app-main h1 { font-size: 1.7rem; }
  .app-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-kpis .kpi { padding: 12px; }
  .app-kpis .kpi strong { font-size: 1.5rem; }
  .insights { grid-template-columns: 1fr; }
  .insight { padding: 18px; }
  .table-wrap { border: 0; background: none; overflow: visible; }
  .data, .data tbody, .data tr, .data td { display: block; width: 100%; }
  .data thead { display: none; }
  .data tr { margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.035); }
  .data td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .data td[data-label]::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--dim); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-right: auto; }
  .data td.cell-title { display: block; text-align: left; font-weight: 500; font-size: .98rem; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  .data td.cell-chip { display: block; text-align: left; }
  .data td.cell-actions { justify-content: flex-end; padding-top: 10px; }
  .data td.right { text-align: right; }
  .data .hint:only-child { text-align: left; }
  /* Matches: stacked "yours" / "theirs" blocks with their colour */
  .match-table td.cell-you, .match-table td.cell-them { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; border: 0; }
  .match-table td.cell-you { background: rgba(124,92,255,.1); border-left: 3px solid rgba(124,92,255,.7); }
  .match-table td.cell-them { background: rgba(34,211,238,.07); border-left: 3px solid rgba(34,211,238,.6); }
  .match-table td.cell-you::before, .match-table td.cell-them::before { display: block; max-width: none; margin-bottom: 6px; font-weight: 600; }
  .match-table td.cell-you::before { color: #c4b5fd; }
  .match-table td.cell-them::before { color: #67e8f9; }
  .pick { max-width: none; }
  .data .btn-sm { padding: 10px 18px; font-size: .95rem; }
  .view-head .nowrap { white-space: normal; display: flex; gap: 8px; flex-wrap: wrap; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tab { white-space: nowrap; }
  .toolbar { display: block; }
  .explain { padding: 16px; }
}

/* =========================================================
   App polish — softer type, clear "yours vs theirs", depth, motion
   ========================================================= */
body.app {
  --font: "Plus Jakarta Sans", "Geist", system-ui, sans-serif;
  --you: #a78bfa; --you-bg: rgba(139,92,246,.16); --you-line: rgba(139,92,246,.55);
  --them: #5eead4; --them-bg: rgba(45,212,191,.12); --them-line: rgba(45,212,191,.5);
  --text: #f4f4f8; --muted: #b4b4c6; --dim: #8a8aa0;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -18px rgba(0,0,0,.7);
  letter-spacing: -0.005em;
}
body.app h1, body.app h2, body.app h3 { letter-spacing: -0.025em; font-weight: 700; }
body.app .app-main h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
body.app .lead { font-size: 1.05rem; color: var(--muted); }
body.app .section-title { font-size: 1.35rem; margin: 52px 0 18px; }
body.app .hint { color: var(--dim); }

/* Numbers: aligned digits, same friendly font (no typewriter look) */
body.app .mono, body.app .data td, body.app .kpi strong { font-family: var(--font); font-variant-numeric: tabular-nums; }

/* Sidebar */
.app-side { background: rgba(12,12,20,.72); box-shadow: 1px 0 0 rgba(255,255,255,.04); }
.app-side .logo { font-weight: 800; font-size: 1.15rem; }
.app-nav { gap: 6px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-weight: 500; font-size: .93rem; transition: background .25s, color .25s, transform .25s; }
.app-nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.app-nav a:hover { transform: translateX(2px); }
.app-nav a.on { background: linear-gradient(90deg, rgba(139,92,246,.28), rgba(139,92,246,.08)); box-shadow: inset 0 0 0 1px rgba(139,92,246,.35), 0 8px 24px -12px rgba(139,92,246,.7); color: #fff; }
.app-nav a.on svg { opacity: 1; color: var(--you); }
.app-user { font-weight: 500; }

/* KPI cards */
.app-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.app-kpis .kpi { border-radius: 18px; padding: 18px 20px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.app-kpis .kpi:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); }
.app-kpis .kpi small { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.app-kpis .kpi strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }

/* Insight cards */
.insights { gap: 18px; }
.insight { border-radius: 22px; padding: 24px 26px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.insight:hover { transform: translateY(-2px); }
.insight h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.insight.up h3 { color: #fda4af; }
.insight.down h3 { color: #6ee7b7; }
.insight.warn h3 { color: #fcd34d; }
.insight ul { gap: 10px; font-size: .9rem; line-height: 1.55; }
.insight b { font-weight: 600; }

/* Tables */
.table-wrap { border-radius: 20px; border-color: rgba(255,255,255,.08); background: rgba(14,14,22,.6); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.data { font-size: .93rem; }
.data th { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 16px 18px; background: rgba(255,255,255,.025); }
.data td { padding: 16px 18px; border-bottom-color: rgba(255,255,255,.06); vertical-align: middle; }
.data tbody tr { transition: background .2s; }
.data tbody tr:hover { background: rgba(255,255,255,.035); }
.data td:first-child { font-weight: 500; color: var(--text); }

/* "Yours" vs "theirs" — the most important distinction, so it's loud */
.data th.th-you span, .data th.th-them span, .match-table th.th-you span, .match-table th.th-them span {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: .86rem; font-weight: 700;
  letter-spacing: 0; text-transform: none; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.data th.th-you span { color: var(--you); background: var(--you-bg); border: 1px solid var(--you-line); }
.data th.th-them span { color: var(--them); background: var(--them-bg); border: 1px solid var(--them-line); }
.data th.th-you span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--you); box-shadow: 0 0 10px var(--you); }
.data th.th-them span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--them); }
.cmp-table td.cell-price-you { font-weight: 700; color: #fff; background: linear-gradient(90deg, rgba(139,92,246,.12), rgba(139,92,246,.04)); }
.match-table td:nth-child(1) { border-left: 3px solid var(--you-line); }
.match-table td:nth-child(2) { border-left: 3px solid var(--them-line); }

/* Chips: softer, same font */
body.app .chip { font-family: var(--font); font-size: .78rem; font-weight: 600; padding: 4px 11px; letter-spacing: 0; }
body.app .chip.pos { font-size: .84rem; padding: 6px 13px; box-shadow: 0 6px 18px -8px currentColor; }

/* Tabs, inputs, buttons */
body.app .tab { font-weight: 500; transition: all .25s; }
body.app .tab.on { box-shadow: 0 8px 22px -12px rgba(139,92,246,.9); }
body.app .search, body.app .url-form input { border-radius: 14px; background: rgba(255,255,255,.05); }
body.app .btn { font-weight: 600; }
.explain { border-radius: 20px; box-shadow: var(--shadow); }
.explain ul { line-height: 1.6; }

/* Motion: each view slides in softly */
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.app-main > * { animation: viewIn .5s cubic-bezier(.2,.8,.2,1) both; }
.app-main > *:nth-child(2) { animation-delay: .04s; }
.app-main > *:nth-child(3) { animation-delay: .08s; }
.app-main > *:nth-child(4) { animation-delay: .12s; }
.app-main > *:nth-child(5) { animation-delay: .16s; }
.app-main > *:nth-child(n+6) { animation-delay: .2s; }

@media (max-width: 700px) {
  .data td { padding: 7px 0; }
  .data td[data-label]::before { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; color: var(--muted); }
  .data tbody tr { border-radius: 18px; box-shadow: var(--shadow); }
  .data tbody tr:hover { background: rgba(255,255,255,.035); }
  .table-wrap { box-shadow: none; backdrop-filter: none; }
  .cmp-table td.cell-price-you { background: none; }
  .cmp-table td.cell-price-you::before { color: var(--you); font-weight: 700; }
  .match-table td.cell-you::before { color: var(--you); font-weight: 700; font-size: .85rem; }
  .match-table td.cell-them::before { color: var(--them); font-weight: 700; font-size: .85rem; }
  .match-table td:nth-child(1), .match-table td:nth-child(2) { border-left: 0; }
  .match-table td.cell-you { border-left: 3px solid var(--you-line); }
  .match-table td.cell-them { border-left: 3px solid var(--them-line); }
  .app-kpis .kpi strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .app-main > * { animation: none; } }
.cmp-table td:first-child { min-width: 240px; }
@media (max-width: 700px) { .cmp-table td:first-child { min-width: 0; } }

/* ---------- Advice, history dialog, radar, costs ---------- */
.advice { margin-top: 8px; font-size: .82rem; color: #fde68a; font-weight: 500; line-height: 1.4; }
.insight .advice { display: inline-block; margin-top: 4px; }
.small-note { margin-top: 14px !important; font-size: .85rem !important; }
.chip.sale { color: #f9a8d4; background: rgba(244,114,182,.12); border: 1px solid rgba(244,114,182,.35); }
.title-btn { all: unset; cursor: pointer; font-weight: 600; color: var(--text); transition: color .2s; }
.title-btn:hover { color: var(--you, #a78bfa); }
.title-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.hist-ico { font-size: .85em; opacity: .55; transition: opacity .2s; }
.title-btn:hover .hist-ico { opacity: 1; }
.store-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--them, #5eead4); background: var(--them-bg, rgba(45,212,191,.12)); border: 1px solid var(--them-line, rgba(45,212,191,.5)); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.brand-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }

.dialog { width: min(720px, calc(100vw - 32px)); padding: 24px; border-radius: 24px; border: 1px solid var(--border-2); background: #0e0e18; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(139,92,246,.15); }
.dialog::backdrop { background: rgba(4,4,10,.7); backdrop-filter: blur(6px); }
.dialog[open] { animation: viewIn .35s cubic-bezier(.2,.8,.2,1); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.dialog-head h3 { font-size: 1.15rem; margin: 0; }
.dialog-head .eyebrow { margin-bottom: 6px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid-line { stroke: rgba(255,255,255,.07); }
.chart-svg .axis { fill: var(--dim); font-size: 11px; font-family: var(--font); }
.chart-svg .you-line { filter: drop-shadow(0 0 6px rgba(167,139,250,.6)); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 14px 0 4px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.legend b { color: var(--text); }

.cost-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 20px 0 4px; padding: 22px 24px; border-radius: 20px; }
.cost-box h3 { margin-bottom: 6px; }
.cost-box p { max-width: 560px; font-size: .9rem; }
.min-margin { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.min-margin span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.min-margin input, .cost-input { font: inherit; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 10px; width: 90px; outline: none; transition: border-color .2s, box-shadow .2s; font-variant-numeric: tabular-nums; }
.cost-input { width: 110px; }
.min-margin input:focus, .cost-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
@media (max-width: 700px) {
  .dialog { padding: 18px; }
  .cost-box { padding: 18px; }
}
body.app .chip { white-space: nowrap; }

/* ---------- Landing: marketing sections ---------- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.ba-card { border-radius: 24px; padding: 32px; border: 1px solid var(--border-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.ba-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.ba-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba-card li { display: flex; gap: 12px; color: var(--muted); line-height: 1.5; }
.ba-card li::before { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ba-card.pain { background: linear-gradient(180deg, rgba(251,113,133,.07), rgba(255,255,255,.01)); }
.ba-card.pain h3 { color: #fda4af; }
.ba-card.pain li::before { content: "✕"; color: var(--up); background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.3); }
.ba-card.gain { background: linear-gradient(180deg, rgba(52,211,153,.09), rgba(255,255,255,.01)); border-color: rgba(52,211,153,.3); }
.ba-card.gain h3 { color: #6ee7b7; }
.ba-card.gain li { color: var(--text); }
.ba-card.gain li::before { content: "✓"; color: var(--down); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }

.steps.three { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps.three::before { left: 16%; right: 16%; }
.steps.three .step { padding: 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); border: 1px solid var(--border); }
.steps.three .step h3 { font-size: 1.25rem; }

.mini-list { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: .82rem; }
.mini-row b { font-weight: 600; color: var(--text); white-space: nowrap; }
.mini-row span:not(.chip) { color: var(--muted); text-align: right; }
.mini-row.up { border-color: rgba(251,113,133,.35); }
.mini-row.down { border-color: rgba(52,211,153,.35); }
.mini-row.warn { border-color: rgba(251,191,36,.35); }
.mini-row .chip { font-family: var(--font); font-weight: 600; white-space: nowrap; }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.brand-pills span { font-size: .82rem; font-weight: 600; color: #5eead4; background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.4); padding: 6px 12px; border-radius: 999px; }
.mini-cap { text-align: center; color: var(--dim) !important; font-size: .78rem; margin-top: 10px !important; }
.price-line { margin-top: 10px; font-size: .9rem; }
.price-line s { color: var(--dim); margin-left: 6px; }
.chip.sale { color: #f9a8d4; background: rgba(244,114,182,.12); border: 1px solid rgba(244,114,182,.35); }
.newp-card .chip.sale { position: absolute; top: -11px; right: 12px; background: #1a0f18; }

.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.soon span { font-size: .88rem; color: var(--muted); padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--border-2); background: rgba(255,255,255,.02); }
.soon .soon-label { color: var(--text); font-weight: 600; border-style: solid; background: rgba(124,92,255,.15); border-color: rgba(124,92,255,.45); }

.mock .chip { font-family: var(--font); font-weight: 600; white-space: nowrap; }

@media (max-width: 1000px) {
  .before-after { grid-template-columns: 1fr; }
  .steps.three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ba-card { padding: 24px; }
  .mock th:nth-child(4), .mock td:nth-child(4) { display: none; }
}
.note { font-family: var(--font); }
.mock .kpi small, .mock th { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .74rem; }
.visual.mini-list { height: auto; min-height: 180px; }
.mini-row { flex-direction: column; align-items: flex-start; gap: 3px; }
.mini-row span:not(.chip) { text-align: left; font-size: .78rem; }

/* ---------- "Works with / doesn't work with" note under store fields ---------- */
.platform-note { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; max-width: 760px; }
.platform-note > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; }
.pn-ok { background: linear-gradient(180deg, rgba(52,211,153,.14), rgba(52,211,153,.04)); border: 1px solid rgba(52,211,153,.45); }
.pn-no { background: linear-gradient(180deg, rgba(251,113,133,.12), rgba(251,113,133,.03)); border: 1px solid rgba(251,113,133,.4); }
.pn-ico { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.pn-ok .pn-ico { color: #052e1f; background: #34d399; box-shadow: 0 6px 20px -6px rgba(52,211,153,.8); }
.pn-no .pn-ico { color: #3b0a14; background: #fb7185; box-shadow: 0 6px 20px -6px rgba(251,113,133,.8); }
.platform-note b { display: block; color: var(--text); font-size: .98rem; font-weight: 700; margin-bottom: 8px; }
.pn-ok b { color: #a7f3d0; }
.pn-no b { color: #fecdd3; }
.platform-note p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.pn-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pf { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.pf::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pf.shopify { color: #95e06c; background: rgba(149,224,108,.12); border: 1px solid rgba(149,224,108,.45); }
.pf.woo { color: #c4a5ff; background: rgba(150,88,138,.18); border: 1px solid rgba(196,165,255,.45); }
.pf.sm { font-size: .72rem; padding: 3px 9px; margin-left: 6px; }
.url-form input.invalid { border-color: var(--up) !important; box-shadow: 0 0 0 3px rgba(251,113,133,.25) !important; }
@media (max-width: 700px) { .platform-note { grid-template-columns: 1fr; } }
body.app .hint.error { color: #fecdd3; font-weight: 600; font-size: .92rem; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.45); padding: 12px 16px; border-radius: 14px; max-width: 760px; }

/* ---------- Product thumbnails (loaded from the store, never stored) ---------- */
.prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.prod-txt { min-width: 0; }
.thumb { flex: none; display: block; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 6px 16px -8px rgba(0,0,0,.7); }
.thumb.broken { background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / 45% no-repeat; box-shadow: none; }
.their-cell { display: flex; align-items: center; gap: 10px; }
.match-table .prod { align-items: flex-start; }
@media (max-width: 700px) {
  .data td[data-label] .their-cell { justify-content: flex-end; }
  .match-table .thumb { width: 64px; height: 64px; }
}

/* ---------- Destructive actions ---------- */
.btn-danger { background: linear-gradient(135deg, #e11d48, #be123c); color: #fff; border-color: rgba(255,255,255,.15); box-shadow: 0 10px 30px -10px rgba(225,29,72,.8); }
.btn-danger:hover { box-shadow: 0 14px 36px -8px rgba(225,29,72,1); }
.btn-danger-ghost { color: #fda4af; border-color: rgba(251,113,133,.35); }
.btn-danger-ghost:hover { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.6); }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 22px 24px; border-radius: 20px; border-color: rgba(251,113,133,.3); background: linear-gradient(180deg, rgba(251,113,133,.07), rgba(255,255,255,.01)); }
.danger-zone h3 { margin-bottom: 6px; color: #fecdd3; }
.danger-zone p { max-width: 560px; font-size: .9rem; }
.cell-actions .btn + .btn { margin-left: 6px; }

/* ---------- Our own confirm dialog (never the browser's) ---------- */
.confirm-dialog { width: min(440px, calc(100vw - 32px)); padding: 32px 28px 24px; text-align: center; }
.confirm-dialog h3 { font-size: 1.3rem; margin: 18px 0 10px; }
.confirm-dialog p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 auto; max-width: 340px; }
.confirm-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #5b3cf5); box-shadow: 0 12px 30px -10px rgba(124,92,255,.9); }
.confirm-ico.danger { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 12px 30px -10px rgba(225,29,72,.9); }
.confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.confirm-actions .btn { min-width: 140px; justify-content: center; }
.dialog[open] { animation: dlgIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { width: 100%; } }

/* ---------- Photo viewer ---------- */
.thumb.zoomable { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.thumb.zoomable:hover, .thumb.zoomable:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 2px var(--brand), 0 10px 24px -8px rgba(124,92,255,.8); outline: none; }
.zoom-dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 20px; overflow: auto; }
.zoom-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.zoom-grid { display: grid; gap: 18px; }
.zoom-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.zoom-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.zoom-img { background: #fff; border-radius: 18px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; }
.zoom-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zoom-img.broken { background: rgba(255,255,255,.05); }
.zoom-img.broken img { display: none; }
.zoom-grid figcaption { font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--text); }
.zoom-label { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.zoom-label.you { color: #c4b5fd; background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.55); }
.zoom-label.them { color: #5eead4; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.5); }
.zoom-grid:not(.two) .zoom-img { max-height: 72vh; aspect-ratio: auto; }
.zoom-grid:not(.two) .zoom-img img { max-height: 72vh; }
@media (max-width: 700px) {
  .zoom-dialog { padding: 14px; }
  .zoom-grid.two { grid-template-columns: 1fr; }
  .zoom-grid.two .zoom-img { aspect-ratio: 4 / 3; }
}

/* Unmatch from the comparison table */
.unlink { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font: inherit; font-size: .74rem; font-weight: 600; color: var(--dim); background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 9px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.unlink:hover, .unlink:focus-visible { color: #fda4af; border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.08); outline: none; }
.their-cell > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.their-cell .unlink { flex-basis: 100%; justify-content: flex-start; width: max-content; }
@media (max-width: 700px) { .their-cell > div { justify-content: flex-end; } .their-cell .unlink { flex-basis: auto; } }

/* Two-word brand: never break the logo; tighten the header on small phones */
.logo { white-space: nowrap; }
@media (max-width: 700px) { .app-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) {
  .nav { gap: 8px; padding-left: 12px; }
  .nav .logo { font-size: 1rem; gap: 8px; }
  .nav .logo img { width: 22px; height: 22px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn) { font-size: .85rem; }
  .nav .btn { padding: 8px 12px; font-size: .82rem; }
}

/* ---------- Email alerts card ---------- */
.mail-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 16px 0 4px; padding: 22px 24px; border-radius: 20px; }
.mail-box h3 { margin-bottom: 6px; }
.mail-box p { max-width: 560px; font-size: .9rem; }
.mail-test { display: grid; gap: 8px; justify-items: end; max-width: 340px; }
.mail-test .hint { margin: 0; text-align: right; }
body.app .hint.ok { color: #a7f3d0; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--border-2); transition: background .25s; flex: none; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--brand), #5b3cf5); border-color: transparent; }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(124,92,255,.4); }
@media (max-width: 700px) { .mail-test { justify-items: stretch; max-width: none; width: 100%; } .mail-test .hint { text-align: left; } }

/* ---------- User menu (bottom of the sidebar) ---------- */
.app-user { position: relative; display: block; padding: 0; }
.user-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--panel-2); border-color: var(--border-2); }
.user-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.user-btn img, .avatar-ph { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.avatar-ph { display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.avatar-ph.lg { width: 56px; height: 56px; }
.avatar-ph[hidden] { display: none; }
.user-txt { flex: 1; min-width: 0; display: grid; }
.user-txt #user-name { font-weight: 600; color: var(--text); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-txt small { color: var(--dim); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.user-btn[aria-expanded="false"] .chev { transform: rotate(180deg); }
.user-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 60; padding: 8px; border-radius: 18px; background: #12121c; border: 1px solid var(--border-2); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85); animation: dlgIn .2s cubic-bezier(.2,.8,.2,1); }
.user-menu[hidden] { display: none; }
.user-menu a, .user-menu button, .user-menu .menu-item { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; font-weight: 500; color: var(--text); cursor: pointer; }
.user-menu a:hover, .user-menu button:hover, .user-menu a:focus-visible, .user-menu button:focus-visible { background: rgba(124,92,255,.14); }
.user-menu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.user-menu .disabled { color: var(--dim); cursor: default; }
.user-menu .disabled em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
.user-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.user-menu .danger { color: #fda4af; }
.user-menu .danger:hover { background: rgba(251,113,133,.1); }

/* ---------- Settings page ---------- */
.set-card { margin-top: 16px; padding: 22px 24px; border-radius: 20px; max-width: 760px; }
.set-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.set-card p { font-size: .92rem; max-width: 600px; }
.set-card .tabs.small { margin-top: 14px; }
.set-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.set-row .hint { margin: 0; }
.account { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.account img { border-radius: 50%; }
.account b { display: block; font-size: 1.05rem; }
.soon-card { opacity: .75; }
.danger-zone { max-width: 760px; }

@media (max-width: 800px) {
  .app-user { margin: 0 0 0 auto; }
  .user-btn { padding: 4px; }
  .user-txt, .user-btn .chev { display: none; }
  .user-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: 260px; }
}
.user-menu { right: auto; width: 250px; }
.user-menu .menu-item span { white-space: nowrap; }
@media (max-width: 800px) { .user-menu { left: auto; right: 0; } }
@media (max-width: 800px) { .app-side { position: relative; z-index: 40; } }

/* ---------- Email frequency options ---------- */
.mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.mode:hover { border-color: var(--border-2); }
.mode.on { border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.12); box-shadow: 0 10px 26px -14px rgba(124,92,255,.9); }
.mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.mode-ico { font-size: 1.3rem; line-height: 1.2; }
.mode b { display: block; font-size: .95rem; margin-bottom: 3px; }
.mode small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* ---------- Admin announcement form ---------- */
.ann-form { display: grid; gap: 14px; margin-top: 10px; }
.ann-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.ann-form input, .ann-form textarea { font: inherit; font-weight: 400; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.ann-form input:focus, .ann-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.ann-form .hint { margin: 0; }
@media (max-width: 700px) { .mode-list { grid-template-columns: 1fr; } }
