/* ============================================================
   Marketplace Arbitrage — invite-only landing page
   Self-contained (no cross-directory imports) so it stays
   independent of the dashboard's token file at /portal/.
   Light mode default, dark honoured only if the visitor's OS asks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  color-scheme: light;

  --ink:        228 32% 11%;
  --ink-2:      225 14% 34%;
  --ink-3:      225 11% 52%;
  --page:       228 40% 98%;
  --card:       0 0% 100%;
  --line:       225 22% 89%;

  --violet:     255 75% 55%;
  --violet-dk:  258 72% 45%;
  --cyan:       192 88% 38%;
  --green:      152 62% 34%;
  --amber:      36 92% 45%;

  --grad: linear-gradient(135deg, hsl(258 82% 58%), hsl(192 88% 40%));

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 3px -1px rgba(24,28,45,.10);
  --sh-md: 0 8px 24px -6px rgba(24,28,45,.14);
  --sh-lg: 0 24px 50px -14px rgba(24,28,45,.20);

  --font-h: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: hsl(var(--page));
  color: hsl(var(--ink));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; }

.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 3rem)); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: hsl(var(--ink)); color: #fff; padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; border-radius: var(--r-sm); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-b); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s, filter .15s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px -6px hsl(var(--violet) / .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px hsl(var(--violet) / .6); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--page) / .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--line));
}
.nav-inner {
  width: min(1180px, calc(100% - 3rem)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.brand-mark { font-size: 1.35rem; }
.brand-name { font-family: var(--font-h); font-size: 1.05rem; letter-spacing: -.01em; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 500; color: hsl(var(--ink-2));
}
.nav-portal { font-size: .88rem; font-weight: 500; color: hsl(var(--ink-2)); text-decoration: none; }
.nav-portal:hover { color: hsl(var(--violet)); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(var(--green)); flex-shrink: 0;
  box-shadow: 0 0 0 3px hsl(var(--green) / .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px hsl(var(--green) / .06); } }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 15% 0%, hsl(var(--violet) / .10), transparent 60%),
    radial-gradient(ellipse 45% 45% at 88% 20%, hsl(var(--cyan) / .09), transparent 60%);
}
.hero-grid {
  position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: hsl(var(--violet-dk));
  background: hsl(var(--violet) / .09);
  border: 1px solid hsl(var(--violet) / .18);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: 1.15rem; }
.hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: hsl(var(--ink-2)); max-width: 34rem; }

.hero-points { list-style: none; margin: 1.75rem 0; display: grid; gap: .7rem; }
.hero-points li {
  position: relative; padding-left: 1.85rem; color: hsl(var(--ink-2)); font-size: .97rem;
}
.hero-points li::before {
  content: '✓'; position: absolute; left: 0; top: .05rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: hsl(var(--green) / .12); color: hsl(var(--green));
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.hero-points strong { color: hsl(var(--ink)); font-weight: 600; }

.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-cta-note { font-size: .87rem; color: hsl(var(--ink-3)); }

.trust-row { display: flex; gap: 2.5rem; padding-top: 1.75rem; border-top: 1px solid hsl(var(--line)); flex-wrap: wrap; }
.trust-num { display: block; font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; }
.trust-label { font-size: .82rem; color: hsl(var(--ink-3)); }

/* ── Hero mock ───────────────────────────────────────── */
.hero-visual { position: relative; }
.mock {
  background: hsl(var(--card)); border: 1px solid hsl(var(--line));
  border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid hsl(var(--line));
  background: hsl(var(--page));
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--line)); }
.mock-title { margin-left: .6rem; font-size: .78rem; font-weight: 600; color: hsl(var(--ink-3)); }
.mock-body { padding: 1rem; display: grid; gap: .7rem; }

.deal { border: 1px solid hsl(var(--line)); border-radius: var(--r-md); padding: .9rem 1rem; }
.deal-hot { border-color: hsl(var(--green) / .45); background: hsl(var(--green) / .05); }
.deal-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.deal-name { font-weight: 600; font-size: .95rem; }
.deal-score {
  font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px;
}
.score-a { background: hsl(var(--green) / .15); color: hsl(var(--green)); }
.score-b { background: hsl(var(--cyan) / .15); color: hsl(var(--cyan)); }
.deal-meta { display: flex; gap: 1.1rem; font-size: .84rem; color: hsl(var(--ink-3)); margin-top: .3rem; }
.deal-meta b { color: hsl(var(--ink)); font-weight: 600; }
.deal-foot { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .82rem; }
.spread { color: hsl(var(--green)); font-weight: 700; }
.ago { color: hsl(var(--ink-3)); }

.draft { border: 1px dashed hsl(var(--violet) / .35); background: hsl(var(--violet) / .05);
         border-radius: var(--r-md); padding: .9rem 1rem; }
.draft-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
               color: hsl(var(--violet-dk)); margin-bottom: .4rem; }
.draft p { font-size: .88rem; color: hsl(var(--ink-2)); }
.draft-actions { display: flex; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.chip { font-size: .74rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px;
        border: 1px solid hsl(var(--line)); color: hsl(var(--ink-2)); background: hsl(var(--card)); }
.chip-primary { background: var(--grad); color: #fff; border-color: transparent; }

/* ── Bands ───────────────────────────────────────────── */
.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band-alt { background: hsl(var(--card)); border-block: 1px solid hsl(var(--line)); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700;
  max-width: 30ch; margin-bottom: 2.75rem;
}
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 2rem; }
.col-num { font-family: var(--font-h); font-size: .85rem; font-weight: 700; color: hsl(var(--violet)); }
.col h3 { font-size: 1.12rem; margin: .5rem 0 .55rem; }
.col p { color: hsl(var(--ink-2)); font-size: .95rem; }

.steps { display: grid; gap: 1.75rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-n {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: var(--font-h); font-weight: 700;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: hsl(var(--ink-2)); font-size: .95rem; max-width: 60ch; }

/* ── Request section ─────────────────────────────────── */
.band-request {
  background: linear-gradient(160deg, hsl(232 45% 12%), hsl(255 45% 18%));
  color: #fff;
}
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.eyebrow-light {
  color: hsl(150 70% 72%); background: hsl(150 70% 60% / .12); border-color: hsl(150 70% 60% / .25);
}
.request-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.request-copy p { color: hsl(225 25% 78%); margin-bottom: 1.5rem; }
.request-list { list-style: none; display: grid; gap: .65rem; }
.request-list li { position: relative; padding-left: 1.6rem; color: hsl(225 25% 82%); font-size: .93rem; }
.request-list li::before { content: '→'; position: absolute; left: 0; color: hsl(150 70% 65%); font-weight: 700; }

.request-card {
  background: #fff; color: hsl(var(--ink));
  border-radius: var(--r-xl); padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45);
}
.form-title { font-size: 1.3rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .4rem; }
.opt { font-weight: 400; color: hsl(var(--ink-3)); }

.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; padding: .8rem .95rem; font-family: var(--font-b); font-size: .95rem;
  color: hsl(var(--ink)); background: hsl(var(--page));
  border: 1px solid hsl(var(--line)); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: hsl(var(--violet));
  box-shadow: 0 0 0 3px hsl(var(--violet) / .15);
}
.phone-row { display: flex; gap: .5rem; }
.phone-row select { width: auto; flex-shrink: 0; }
.phone-row input { flex: 1; min-width: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .65rem; align-items: flex-start; margin: 1.25rem 0 .5rem;
           font-size: .78rem; line-height: 1.5; color: hsl(var(--ink-2)); cursor: pointer; }
.consent input { margin-top: .2rem; flex-shrink: 0; width: 1rem; height: 1rem; accent-color: hsl(var(--violet)); }

.err { font-size: .8rem; color: hsl(0 72% 45%); margin-top: .35rem; display: none; }
.err.show { display: block; }

.form-foot { font-size: .78rem; color: hsl(var(--ink-3)); text-align: center; margin-top: .9rem; }

.success { text-align: center; padding: 1rem 0; }
.success-mark {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; margin: 0 auto 1.1rem;
  background: hsl(var(--green) / .12); color: hsl(var(--green));
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
}
.success h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.success p { color: hsl(var(--ink-2)); font-size: .95rem; }
.success-note { font-size: .8rem; color: hsl(var(--ink-3)); margin-top: 1rem; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { border-bottom: 1px solid hsl(var(--line)); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.35rem; color: hsl(var(--ink-3)); font-weight: 400; }
.faq[open] summary::after { content: '−'; }
.faq p { color: hsl(var(--ink-2)); font-size: .94rem; margin-top: .75rem; max-width: 70ch; }

/* ── Final CTA + footer ──────────────────────────────── */
.final { padding: clamp(3.5rem, 6vw, 5rem) 0; text-align: center;
         background: hsl(var(--card)); border-top: 1px solid hsl(var(--line)); }
.final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.final p { color: hsl(var(--ink-2)); margin-bottom: 1.75rem; }

.foot { padding: 2.5rem 0; border-top: 1px solid hsl(var(--line)); font-size: .85rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-legal { color: hsl(var(--ink-3)); font-size: .78rem; max-width: 42ch; margin-top: .5rem; }
.foot-links { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.foot-links a { color: hsl(var(--ink-2)); text-decoration: none; }
.foot-links a:hover { color: hsl(var(--violet)); }
.foot-copy { color: hsl(var(--ink-3)); font-size: .78rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid, .request-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nav-status, .nav-portal { display: none; }
  .foot-links { align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap, .nav-inner { width: calc(100% - 2rem); }
  .trust-row { gap: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
