/* Mycontracts — design system
 *
 * Modeled after a refined, professional job-board / opportunity-board UX
 * (tabbed sub-nav, two-pane list/detail, filter chip row, matched-qualifications
 * callouts, Save vs Apply dual CTA). NOT chat-AI-generic.
 */

:root {
  --brand: #1f2937;          /* slate-800, solid primary */
  --brand-2: #4338ca;        /* indigo-700, accent for links / focus */
  --danger: #b91c1c;         /* red-700, primary action that's heavy */
  --ok-bg: #ecfdf5;          /* emerald-50 — matched-qualification chips */
  --ok-text: #065f46;        /* emerald-800 */
  --warn-bg: #fef3c7;        /* amber-100 — caution */
  --warn-text: #92400e;
  --bad-bg: #fee2e2;         /* red-100 — NOT QUALIFIED chip */
  --bad-text: #991b1b;
  --surface: #ffffff;
  --canvas: #f7f7f9;
  --border: #e5e7eb;         /* slate-200 */
  --border-strong: #d4d4d8;  /* zinc-300 */
  --text: #0f172a;           /* slate-900 */
  --text-2: #475569;         /* slate-600 */
  --muted: #94a3b8;          /* slate-400 */
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 16px rgba(15,23,42,.06);
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  color: var(--text);
  font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Lock form input font to 16px on touch devices so iOS doesn't zoom on focus */
@media (max-width: 768px) {
  input, select, textarea, .form-input, .form-select { font-size: 16px !important; }
}
/* Touch targets — buttons + nav items must be at least 44px on phone */
@media (max-width: 768px) {
  .btn, .btn-cta, .btn-sm { min-height: 40px; }
  .mc-side-link, .mc-bottom-link { min-height: 44px; }
}

/* ---- HTMX indicators ---- */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease; }
.htmx-request .htmx-indicator { opacity: 1; }

/* ---- Brand bar ---- */
.brandbar {
  background: var(--brand);
  color: #fff;
}
.brandbar a:not(.btn) { color: rgba(255,255,255,.92); }
.brandbar a:not(.btn):hover { color: #fff; }
/* Buttons keep their own palette inside the brandbar */
.brandbar a.btn-secondary { color: var(--text); }
.brandbar a.btn-secondary:hover { color: var(--text); }
.brandbar a.btn-primary,
.brandbar a.btn-accent,
.brandbar a.btn-danger { color: #fff; }
.brandbar .nav-link {
  position: relative;
  padding: 18px 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.brandbar .nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px 2px 0 0;
}
.brandbar input[type="search"] {
  background: rgba(255,255,255,.95);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  width: 280px;
}
.brandbar input[type="search"]::placeholder { color: var(--text-2); }
.brandbar input[type="search"]:focus { outline: 2px solid rgba(255,255,255,.6); }

/* ---- Page chrome ---- */
.breadcrumbs {
  color: var(--text-2);
  font-size: 14px;
  padding: 16px 0 8px;
}
.breadcrumbs a:hover { color: var(--brand-2); }

/* ---- Tabbed sub-nav ---- */
.subnav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 4px;
}
.subnav .tab {
  position: relative;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.subnav .tab:hover { color: var(--text); }
.subnav .tab.active {
  color: var(--text);
}
.subnav .tab.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--brand-2); border-radius: 2px;
}
.subnav .tab .badge {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-2);
  border-radius: 999px;
  padding: 2px 7px;
}

/* ---- Inputs ---- */
.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(67,56,202,.15);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-accent { background: var(--brand-2); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--canvas); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 6px 8px;
}
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-icon {
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
}
.btn-icon:hover { background: var(--canvas); color: var(--text); }

/* ---- Filter chip row ---- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.chip:hover { border-color: var(--text-2); }
.chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.chip svg { width: 14px; height: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.card-padded { padding: 20px; }

/* ---- List row (left column) ---- */
.list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.list-row {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #fafafa; }
.list-row.active {
  background: #fff8e1;
  border-left: 3px solid var(--brand-2);
  padding-left: 17px;
}
.list-row .title { font-weight: 600; font-size: 15px; color: var(--text); line-height: 1.3; }
.list-row .meta { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.list-row .footer { font-size: 12px; color: var(--text-2); margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.list-row .star {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--muted);
  cursor: pointer;
  background: none; border: none; padding: 4px;
}
.list-row .star.saved { color: #f59e0b; }
.list-row .star:hover { color: var(--brand-2); }
.list-row .due {
  color: var(--brand-2);
  font-weight: 500;
}

/* ---- Match badges ---- */
.match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-bg);
  color: var(--ok-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}
.not-qualified {
  display: inline-block;
  background: var(--bad-bg);
  color: var(--bad-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ---- Detail pane sections ---- */
.detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.detail-header .logo {
  width: 56px; height: 56px; border-radius: 8px;
  background: #f4f4f5; border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--brand); font-weight: 800;
}
.detail-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.detail-section p { color: var(--text); line-height: 1.55; }

/* ---- Status badges (tier) ---- */
.tier {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tier-hot { background: #fee2e2; color: #991b1b; }
.tier-warm { background: #fef3c7; color: #92400e; }
.tier-cool { background: #e0f2fe; color: #075985; }
.tier-cold { background: #f1f5f9; color: #475569; }

/* ---- Prose (rendered AI markdown) ---- */
.prose h1 { font-size: 1.5rem; font-weight: 700; margin: 0.75rem 0 .5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 1rem 0 .35rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: .75rem 0 .25rem; }
.prose p { margin: .5rem 0; line-height: 1.55; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.prose ol { list-style: decimal; padding-left: 1.25rem; margin: .5rem 0; }
.prose blockquote {
  border-left: 3px solid var(--border-strong);
  padding: 4px 12px;
  color: var(--text-2);
  margin: .5rem 0;
}
.prose code { background: #f1f5f9; padding: 1px 5px; border-radius: 3px; font-size: 90%; }

/* ---- Two-pane layout helper ---- */
.two-pane {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .two-pane { grid-template-columns: 380px minmax(0, 1fr); }
}

/* ---- Empty state ---- */
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-2);
}

/* ---- App shell: sidebar + main + bottom bar ---- */
.mc-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 248px;
  background: #fff;
  border-right: 1px solid var(--border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform .2s ease;
  box-shadow: 4px 0 24px rgba(15,23,42,.05);
}
.mc-sidebar.is-open { transform: translateX(0); }

.mc-sidebar-workspace {
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--border);
}
.mc-workspace-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}
.mc-workspace-link:hover { background: var(--canvas); }
.mc-workspace-avatar {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #4338ca 0%, #1f2937 100%);
  color: #fff; font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.mc-workspace-meta { display: flex; flex-direction: column; min-width: 0; }
.mc-workspace-name { font-weight: 700; font-size: 14px; line-height: 1.1; color: var(--text); }
.mc-workspace-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mc-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 6px;
}
.mc-sidebar-section { padding: 4px 0 8px; }
.mc-sidebar-section + .mc-sidebar-section { border-top: 1px solid var(--border); padding-top: 10px; }
.mc-sidebar-heading {
  padding: 6px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mc-sidebar-nav { display: flex; flex-direction: column; gap: 1px; }

.mc-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1;
  position: relative;
  transition: background .12s ease, color .12s ease;
}
.mc-side-link svg { flex-shrink: 0; color: var(--muted); transition: color .12s ease; }
.mc-side-link:hover { background: #f1f5f9; color: var(--text); }
.mc-side-link:hover svg { color: var(--text-2); }
.mc-side-link.is-active {
  background: #eef2ff;
  color: var(--brand-2);
  font-weight: 600;
}
.mc-side-link.is-active svg { color: var(--brand-2); }
.mc-side-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px; bottom: 6px;
  width: 3px;
  background: var(--brand-2);
  border-radius: 0 3px 3px 0;
}

.mc-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: #fafafa;
}
.mc-sidebar-footer:hover { background: #f1f5f9; }
.mc-sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.mc-sidebar-avatar-fallback {
  display: grid; place-items: center;
  background: var(--brand-2);
  color: #fff; font-weight: 700; font-size: 13px;
}
.mc-sidebar-foot-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mc-sidebar-foot-name { font-size: 13px; font-weight: 600; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-sidebar-foot-mail { font-size: 11px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mc-shell-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 35;
}
.mc-shell-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .mc-sidebar { transform: translateX(0); box-shadow: none; }
  .mc-shell-backdrop { display: none; }
  body.has-shell .mc-main-shell { margin-left: 240px; max-width: none; }
  body.has-shell .mc-main-shell > div { max-width: 1200px; margin-left: 0; }
}

/* ---- Bottom tab bar (mobile only) ---- */
.mc-bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 -2px 12px rgba(15,23,42,.06);
}
.mc-bottom-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.mc-bottom-link svg { color: var(--muted); }
.mc-bottom-link.is-active,
.mc-bottom-link:active { color: var(--brand-2); }
.mc-bottom-link.is-active svg,
.mc-bottom-link:active svg { color: var(--brand-2); }

/* ────────────────────────────────────────────────────────────────────────
   Framer-style design language — applied broadly across landing + dashboard
   ──────────────────────────────────────────────────────────────────────── */

/* Mesh / gradient backgrounds for hero + section dividers */
.mc-mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.mc-mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(67,56,202,.18), transparent 45%),
    radial-gradient(circle at 82% 28%, rgba(168,85,247,.14), transparent 50%),
    radial-gradient(circle at 50% 92%, rgba(14,165,233,.12), transparent 55%);
  filter: blur(40px);
  opacity: .9;
}
.mc-mesh-dark {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #fff;
}
.mc-mesh-dark::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,.34), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(217,70,239,.20), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(34,211,238,.18), transparent 55%);
  opacity: 1;
}

/* Big display typography — Framer-pricing-style */
.display-1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.display-2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-2);
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-2) 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Soft glass card */
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15,23,42,.08);
}

/* CTA button — refined */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 16px rgba(15,23,42,.2);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.28); color:#fff; }
.btn-cta-light {
  background: #fff; color: var(--text);
  box-shadow: 0 2px 10px rgba(15,23,42,.08);
}
.btn-cta-light:hover { color: var(--text); }

/* Pricing card — framer.com/pricing inspired */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-2);
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.price-card.is-featured {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-color: transparent;
  position: relative;
}
.price-card.is-featured::after {
  content: attr(data-badge);
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .08em;
}
.price-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-features {
  margin-top: 8px;
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.price-features li { display: flex; gap: 8px; align-items: flex-start; }
.price-features li::before { content: "✓"; color: var(--brand-2); font-weight: 800; margin-top: -1px; }
.price-card.is-featured .price-features li::before { color: #06b6d4; }

/* Feature row for the comparison table look */
.feature-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.feature-row:hover { background: #fafafa; }
.feature-row .feat { color: var(--text-2); }
.feature-row .yes { color: var(--brand-2); font-weight: 700; }
.feature-row .no { color: var(--muted); }

/* Reveal-on-scroll baseline (Motion JS overrides) */
[data-reveal] { will-change: opacity, transform; }

/* Section scroll-snap helper */
.snap-y { scroll-snap-type: y mandatory; }
.snap-start { scroll-snap-align: start; }

/* Color-swatch picker for brand customization */
.color-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
}
.color-swatch.is-selected {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff inset;
}
.color-swatch input[type=radio] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* Social icon row */
.social-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.social-row a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.social-row a:hover { transform: translateY(-2px); color: var(--brand-2); background: #eef2ff; }

/* ──────────────────────────────────────────────────────────────────────────
   Framer.com-grade polish: hero orbs, marquee, bento, parallax, magnetic CTA
   ──────────────────────────────────────────────────────────────────────── */

/* Floating orbs in a hero background. Place inside a .mc-mesh container. */
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
  z-index: -1;
}
@keyframes orb-float-1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(40px,-30px,0); } }
@keyframes orb-float-2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-50px,20px,0); } }
@keyframes orb-float-3 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(20px,40px,0); } }
.orb-1 { background: rgba(99,102,241,.55); animation: orb-float-1 14s ease-in-out infinite; }
.orb-2 { background: rgba(168,85,247,.45); animation: orb-float-2 18s ease-in-out infinite; }
.orb-3 { background: rgba(14,165,233,.45); animation: orb-float-3 22s ease-in-out infinite; }

/* Hero display headline — clamp on phone, oversized on desktop */
.display-hero {
  font-size: clamp(2.6rem, 7.8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

/* Marquee strip — trust / agency logos */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--text-2);
  white-space: nowrap;
  opacity: .8;
  display: inline-flex; align-items: center; gap: 8px;
}
.marquee-item::before { content: "●"; font-size: 6px; opacity: .35; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Bento — Framer-style asymmetric feature grid (auto-stacks on phone) */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
  .bento-2x2 { grid-column: span 3 / span 3; grid-row: span 2 / span 2; }
  .bento-2x1 { grid-column: span 3 / span 3; }
  .bento-1x1 { grid-column: span 2 / span 2; }
  .bento-3x1 { grid-column: span 3 / span 3; }
  .bento-4x1 { grid-column: span 4 / span 4; }
}
.bento-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--text-2);
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.bento-tile.is-dark {
  background: linear-gradient(140deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-color: transparent;
}
.bento-tile.is-dark::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 20%, rgba(99,102,241,.5), transparent 50%);
  z-index: -1;
}
.bento-tile.is-accent {
  background: linear-gradient(140deg, #4338ca 0%, #7c3aed 60%, #06b6d4 130%);
  color: #fff;
  border-color: transparent;
}
.bento-tile-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.bento-tile-title { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin-top: 10px; }
.bento-tile-desc { font-size: 14px; line-height: 1.5; margin-top: 8px; opacity: .85; }
.bento-tile-art {
  position: absolute; top: 18px; right: 18px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(15,23,42,.06);
  color: var(--text-2);
}
.bento-tile.is-dark .bento-tile-art,
.bento-tile.is-accent .bento-tile-art { background: rgba(255,255,255,.12); color: #fff; }

/* Magnetic CTA — subtle hover lift with gradient sweep */
.btn-magnetic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn-magnetic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4338ca, #a855f7, #06b6d4);
  opacity: 0;
  z-index: -1;
  transition: opacity .25s ease;
}
.btn-magnetic:hover::before { opacity: 1; }
.btn-magnetic:hover { color: #fff; }

/* Scroll-tied parallax (driven by IntersectionObserver+JS via --p var) */
.parallax { transform: translate3d(0, calc(var(--p, 0) * -40px), 0); will-change: transform; }
.parallax-slow { transform: translate3d(0, calc(var(--p, 0) * -20px), 0); will-change: transform; }
.parallax-fast { transform: translate3d(0, calc(var(--p, 0) * -80px), 0); will-change: transform; }

/* Sticky mobile CTA bar (above the bottom tab bar when authenticated) */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 25;
  display: none;
}
@media (max-width: 640px) {
  body.has-mobile-cta .mobile-cta-bar { display: block; }
  body.has-mobile-cta main { padding-bottom: 100px; }
}

/* iPad-portrait tuning (768-1023): sidebar visible but compress brandbar) */
@media (min-width: 768px) and (max-width: 1023px) {
  .brandbar input[type="search"] { width: 200px; }
  .mc-sidebar { width: 220px; }
  body.has-shell .mc-main-shell { margin-left: 220px; }
  .display-hero { font-size: clamp(3rem, 6.5vw, 5rem); }
  .bento-2x2 { grid-row: span 1 / span 1; }
  .bento-tile { min-height: 180px; padding: 22px; }
}

/* Desktop ultrawide breathing room */
@media (min-width: 1536px) {
  .max-w-7xl { max-width: 92rem; }
  body.has-shell .mc-main-shell > div { max-width: 1400px; }
}

/* Better phone defaults */
@media (max-width: 640px) {
  .display-1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .display-2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .display-hero { font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: -0.025em; }
  .card-padded { padding: 16px; }
  .mc-sidebar { width: 84vw; max-width: 320px; }
  /* Brandbar shrinks on phone */
  .brandbar input[type="search"] { display: none; }
}

/* Sane fallback for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .orb { animation: none !important; }
}

