/* ==========================================================================
   Sponsored.ge — visual system
   Light frosted glass over a single Blue Waves mesh (#FFFFFF #F5F5F5 #1B6AA7 #57D2F4).
   Tactile 3D keys for primary actions. DM Sans + Fraunces (EN), Noto Sans Georgian (KA).
   ========================================================================== */

:root {
  --bg: #f5f8fb;

  --ink: #0b1a26;
  --ink-2: rgba(11, 26, 38, 0.76);
  --ink-3: rgba(11, 26, 38, 0.56);
  --ink-4: rgba(11, 26, 38, 0.38);

  --blue: #1b6aa7;
  --blue-deep: #0f4470;
  --blue-soft: rgba(27, 106, 167, 0.1);
  --cyan: #57d2f4;
  --cyan-soft: rgba(87, 210, 244, 0.18);

  --green: #12a370;
  --green-soft: rgba(18, 163, 112, 0.12);
  --amber: #c27a05;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --red: #c2410c;
  --red-50: rgba(239, 68, 68, 0.1);

  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 24px 60px -34px rgba(15, 68, 112, 0.42), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --glass-shadow-sm: 0 14px 34px -24px rgba(15, 68, 112, 0.35), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --blur: 22px;

  --line: rgba(11, 26, 38, 0.09);
  --line-2: rgba(11, 26, 38, 0.14);

  --font-sans: "DM Sans", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Noto Sans Georgian", Georgia, serif;
  --font-ka: "Noto Sans Georgian", var(--font-sans);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --press: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

::selection {
  background: rgba(87, 210, 244, 0.45);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Georgian ---------- */

html[lang="ka"] h1,
html[lang="ka"] h2,
html[lang="ka"] h3,
html[lang="ka"] h4,
html[lang="ka"] .section-title {
  font-family: var(--font-ka);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

html[lang="ka"] strong,
html[lang="ka"] b,
html[lang="ka"] .btn,
html[lang="ka"] .btn-3d-face,
html[lang="ka"] .site-nav,
html[lang="ka"] .brand {
  font-weight: 500;
}

/* ---------- Background ---------- */

.bg-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.bg-waves.ready {
  opacity: 1;
}

.backdrop,
#scene3d {
  display: none !important;
}

/* Everything else sits above the canvas */
.site-header,
main,
.site-footer,
.start,
.app,
.toast,
.modal-root {
  position: relative;
  z-index: 1;
}

/* ---------- Utilities ---------- */

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.875rem;
}

.tiny {
  font-size: 0.78rem;
}

.stack {
  display: grid;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Glass ---------- */

.glass,
.card,
.stat,
.brief-bar,
.campaign-card,
.demo-item,
.side,
.metric-card,
.modal,
.banner,
.step,
.float-chip,
.start-aside,
.opp,
.new-card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass,
  .card,
  .stat,
  .brief-bar,
  .campaign-card,
  .demo-item,
  .side,
  .metric-card,
  .modal,
  .banner,
  .step,
  .float-chip,
  .start-aside,
  .opp,
  .new-card,
  .site-header,
  .platforms .container {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  background: linear-gradient(160deg, #57d2f4, #1b6aa7 70%);
  box-shadow: 0 6px 16px -8px rgba(27, 106, 167, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-role {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(0);
  transition: transform 0.1s var(--press), box-shadow 0.1s var(--press), background 0.15s ease;
}

.btn:hover {
  background: #1f76b8;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--blue-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--blue-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  border-radius: var(--r-sm);
}

.btn-outline,
.btn-soft,
.btn-ghost,
.btn-danger {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-line);
  box-shadow: 0 4px 0 rgba(15, 68, 112, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover,
.btn-soft:hover,
.btn-ghost:hover,
.btn-danger:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 0 rgba(15, 68, 112, 0.14);
}

.btn-outline:active,
.btn-soft:active,
.btn-ghost:active,
.btn-danger:active {
  box-shadow: 0 0 0 rgba(15, 68, 112, 0.14);
}

.btn-soft {
  color: var(--blue-deep);
  background: rgba(27, 106, 167, 0.1);
  border-color: rgba(27, 106, 167, 0.14);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.btn-ghost:hover {
  background: rgba(11, 26, 38, 0.05);
  box-shadow: none;
}

.btn-danger {
  color: var(--red);
  background: var(--red-50);
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 0 rgba(194, 65, 12, 0.2);
}

/* 21st.dev-style tactile 3D key: face rests on a solid depth slab */
.btn-3d {
  --depth: 6px;
  --face: var(--blue);
  --face-hover: #1f76b8;
  --slab: var(--blue-deep);
  --label: #fff;
  position: relative;
  display: inline-flex;
  padding: 0 0 var(--depth);
  border: 0;
  background: transparent;
  border-radius: var(--r-md);
  color: var(--label);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-3d-depth {
  position: absolute;
  inset: var(--depth) 0 0;
  border-radius: var(--r-md);
  background: var(--slab);
}

.btn-3d-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--label);
  background: var(--face);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition: transform 0.1s var(--press), background 0.15s ease;
}

.btn-3d-text {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn-3d:hover .btn-3d-face {
  background: var(--face-hover);
  transform: translateY(2px);
}

.btn-3d:hover .btn-3d-text {
  transform: translateY(-1px);
}

.btn-3d:active .btn-3d-face {
  transform: translateY(var(--depth));
}

.btn-3d:active .btn-3d-text {
  transform: none;
}

.btn-3d:focus-visible {
  outline: none;
}

.btn-3d:focus-visible .btn-3d-face {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

.btn-3d-ghost {
  --face: #fff;
  --face-hover: #f6fafd;
  --slab: #b9cbdb;
  --label: var(--ink);
}

.btn-3d-ghost .btn-3d-face {
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 26, 38, 0.06);
}

.btn-3d.btn-sm {
  --depth: 4px;
}

.btn-3d.btn-sm .btn-3d-face {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1140px, calc(100% - 32px));
  margin: 12px auto 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 62px;
  padding: 0 8px 0 20px;
}

.site-nav {
  display: flex;
  gap: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(11, 26, 38, 0.05);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin-right: 6px;
  border-radius: var(--r-pill);
  background: rgba(11, 26, 38, 0.05);
  font-size: 0.875rem;
}

.lang > span {
  display: none;
}

.lang button {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.25s ease;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
}

/* ---------- Sliding knob (motion.js sets --x --y --w --h) ---------- */

.has-knob {
  position: relative;
}

.has-knob::before {
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 2px 8px -3px rgba(15, 68, 112, 0.35);
  pointer-events: none;
  z-index: 0;
}

.has-knob.knob-live::before {
  transition: left 0.3s var(--ease), top 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}

.lang.has-knob::before {
  border-radius: var(--r-pill);
}

.side-nav.has-knob::before {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.85);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  min-height: min(86vh, 800px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 12ch;
  margin-bottom: 22px;
}

html[lang="ka"] .hero h1 {
  font-family: var(--font-ka);
  font-weight: 500;
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.28;
  max-width: 14ch;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 42ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-note {
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* Collage */

.collage {
  position: relative;
  height: 460px;
}

.stage3d {
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
}

.stage3d > * {
  transform-style: preserve-3d;
}

.collage figure {
  position: absolute;
  margin: 0;
  padding: 8px;
  border-radius: 24px;
  overflow: hidden;
}

.collage figure img {
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 18px;
}

.collage figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  padding: 6px 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.collage figcaption span {
  color: var(--ink-3);
  font-weight: 500;
}

.collage .c1 {
  left: 0;
  top: 44px;
  width: 58%;
  height: 370px;
  z-index: 2;
}

.collage .c2 {
  right: 0;
  top: 0;
  width: 40%;
  height: 216px;
  z-index: 3;
}

.collage .c3 {
  right: 14px;
  bottom: 0;
  width: 44%;
  height: 226px;
  z-index: 1;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}

.float-chip b {
  font-size: 1rem;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}

.float-chip.f1 {
  left: -6%;
  top: 8%;
}

.float-chip.f2 {
  left: 22%;
  bottom: -7%;
  animation-delay: -2s;
}

.float-chip.f3 {
  right: -4%;
  top: 52%;
  animation-delay: -4s;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* 3D tilt (tilt.js sets --rx --ry) */

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.tilt.tilting {
  transition: transform 0.08s linear;
}

/* ---------- Platforms strip ---------- */

.platforms {
  padding: 0 0 56px;
}

.platforms .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  width: fit-content;
  max-width: min(960px, 100%);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow-sm);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.platforms .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-2);
}

.platforms .item svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.platforms .sep {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 52ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.step {
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.metric-card {
  border-radius: var(--r-lg);
  padding: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
}

.metric-row + .metric-row {
  border-top: 1px solid var(--line);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.metric-foot {
  padding: 10px 16px 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.band .container {
  padding: 48px 56px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
}

.banner.ok {
  border-color: rgba(18, 163, 112, 0.3);
}

.banner.warn {
  border-color: rgba(245, 158, 11, 0.35);
}

.banner.info {
  border-color: rgba(27, 106, 167, 0.3);
}

.creator-cta {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.creator-cta .photo {
  max-width: 420px;
  padding: 8px;
  border-radius: 28px;
  overflow: hidden;
}

.creator-cta .photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 22px;
}

.final {
  padding: 40px 0 96px;
  text-align: center;
}

.final .section-title {
  margin-bottom: 26px;
}

.final .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-grid .brand {
  display: inline-flex;
  padding: 0;
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------- Scroll reveals ---------- */

[data-reveal] > * {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-reveal].in > * {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Start page ---------- */

.start {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.start-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
  border-radius: var(--r-xl);
}

.start-aside h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 14px;
}

.start-aside p {
  color: var(--ink-2);
}

.start-aside .quote {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.start-main {
  display: grid;
  gap: 22px;
  align-content: start;
  width: min(620px, 100%);
  padding: 40px 24px;
  margin-inline: auto;
}

.start-main h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
}

.role-tabs {
  position: relative;
  display: flex;
  width: 100%;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(11, 26, 38, 0.06);
}

.role-tabs [role="tab"] {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  transition: color 0.25s ease;
}

.role-tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
}

.role-tabs.has-knob::before {
  border-radius: 10px;
}

.auth-tabs {
  position: relative;
  display: flex;
  width: 100%;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(11, 26, 38, 0.06);
}

.auth-tabs [role="tab"] {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
}

.auth-tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
}

.auth-tabs.has-knob::before {
  border-radius: 10px;
}

.logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(27, 106, 167, 0.35);
  background: rgba(255, 255, 255, 0.45);
}

.logo-upload-btn {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: rgba(27, 106, 167, 0.1);
  cursor: pointer;
}

.logo-upload-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.logo-upload-preview.has-img {
  font-size: 0;
}

.logo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(11, 26, 38, 0.05);
  border: 1px solid rgba(11, 26, 38, 0.06);
}

.plan-pick-option {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.plan-pick-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-pick-option:hover {
  color: var(--ink);
}

.plan-pick-option:has(input:checked) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(11, 26, 38, 0.06), 0 8px 20px rgba(27, 106, 167, 0.08);
}

.plan-pick-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.plan-pick-top strong {
  font-size: 0.95rem;
}

.plan-pick-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.plan-pick-price small {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}

.plan-pick-blurb {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.35;
}

.plan-pick-option:has(input:checked) .plan-pick-blurb {
  color: var(--ink-2);
}

.plan-pick-tag {
  position: absolute;
  top: -7px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
}

@media (max-width: 520px) {
  .plan-pick {
    grid-template-columns: 1fr;
  }
}

.plan-grid {
  display: grid;
  gap: 10px;
}

.verify-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .verify-row {
    grid-template-columns: 1fr;
  }
}

.pricing-note strong {
  display: block;
  margin-bottom: 4px;
}

.plan-card.is-current {
  border-color: rgba(27, 106, 167, 0.45);
}

.plan-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card:hover {
  background: #fff;
}

.plan-card:has(input:checked) {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 106, 167, 0.14);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.plan-card.popular .plan-top {
  padding-right: 88px;
}

.plan-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-deep);
}

.plan-price small {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}

.plan-blurb {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.plan-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
}

.handle-row {
  display: flex;
  gap: 8px;
}

.handle-row input {
  flex: 1;
}

.handle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--glass-shadow-sm);
}

.handle-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.handle-pfp,
.handle-pfp img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.handle-pfp {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue-soft);
}

.handle-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.handle-name-link {
  color: inherit;
  text-decoration: none;
}

.handle-name-link:hover strong {
  color: var(--blue-deep);
  text-decoration: underline;
}

.handle-pfp {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue-soft);
  text-decoration: none;
}

.extra-accounts {
  display: grid;
  gap: 8px;
}

.extra-account-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.extra-account-row select,
.extra-account-row input {
  margin: 0;
}

@media (max-width: 520px) {
  .extra-account-row {
    grid-template-columns: 1fr auto;
  }
  .extra-account-row select {
    grid-column: 1 / -1;
  }
}
  align-items: center;
  gap: 8px;
}

.handle-similar {
  display: grid;
  gap: 10px;
}

.demo-list {
  display: grid;
  gap: 10px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  text-align: left;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.demo-item:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
}

.demo-item > span:last-child {
  display: grid;
  gap: 2px;
}

.demo-item > span:last-child span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.form > .btn,
.form > .btn-3d,
.stack > .btn,
.stack > .btn-3d {
  justify-self: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-4);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 106, 167, 0.16);
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.check-chip:hover span {
  background: #fff;
}

.check-chip input:checked + span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.check-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(27, 106, 167, 0.25);
}

/* ---------- Workspace shell ---------- */

.app {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 20px;
  min-height: 100vh;
  padding: 20px;
}

.side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 40px);
  padding: 22px 16px 16px;
  border-radius: var(--r-xl);
}

.side .brand {
  padding: 0 8px 4px;
}

.side-nav {
  position: relative;
  display: grid;
  gap: 4px;
}

.side-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.side-nav a svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  color: var(--ink-3);
  background: rgba(11, 26, 38, 0.05);
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav a:hover {
  color: var(--ink);
}

.side-nav a.active {
  color: var(--ink);
}

.side-nav a.active svg {
  color: #fff;
  background: var(--blue);
}

.side-nav .count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}

.side-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}

.account > div {
  display: grid;
  min-width: 0;
}

.account strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account span {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.side-links {
  display: flex;
  gap: 6px;
}

.main {
  min-width: 0;
  padding: 16px 12px 48px;
}

.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 4px;
}

.page-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.brief-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 20px;
  align-items: start;
}

.brief-form,
.brief-aside {
  padding: 22px 24px;
  border-radius: var(--r-lg);
}

.brief-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brief-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.brief-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.brief-form textarea {
  min-height: 160px;
}

.brief-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.brief-aside {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.brief-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.brief-steps li {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid rgba(27, 106, 167, 0.35);
}

.brief-steps strong {
  font-size: 0.95rem;
}

.brief-steps span {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.brief-aside-note {
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(27, 106, 167, 0.08);
  border: 1px solid rgba(27, 106, 167, 0.14);
}

.brief-aside-note strong {
  display: block;
  margin-bottom: 4px;
}

.brief-aside-note p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .brief-compose {
    grid-template-columns: 1fr;
  }

  .brief-aside {
    position: static;
    order: -1;
  }
}

/* ---------- Cards & data ---------- */

.card {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card-pad {
  padding: 22px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  font-size: 1.1rem;
}

.campaign-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.campaign-card:hover {
  background: var(--glass-strong);
}

.campaign-card h3 {
  font-size: 1.15rem;
}

.campaign-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.campaign-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.campaign-card .meta svg {
  width: 14px;
  height: 14px;
}

.new-card {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  border-radius: var(--r-lg);
  border-style: dashed;
  border-color: rgba(27, 106, 167, 0.35);
  background: rgba(255, 255, 255, 0.35);
  color: var(--blue-deep);
  font-weight: 600;
  transition: background 0.2s ease;
}

.new-card:hover {
  background: rgba(255, 255, 255, 0.6);
}

.stat {
  padding: 20px 22px;
  border-radius: var(--r-lg);
}

.stat .label {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat .value {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat .sub {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.brief-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
}

.brief-bar .title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brief-bar .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.brief-bar .icon svg {
  width: 20px;
  height: 20px;
}

.brief-bar .kv {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.brief-bar .k,
.match-metrics .k {
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brief-bar .v,
.match-metrics .v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.match:last-child {
  border-bottom: 0;
}

.match-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.match-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.match-metrics .v {
  font-size: 1.05rem;
}

.match-metrics .s {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.match-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.score {
  --s: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--s) * 1%), rgba(27, 106, 167, 0.12) 0);
}

.score::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.score b,
.score small {
  position: relative;
  line-height: 1;
}

.score b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.score small {
  font-size: 0.65rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.person .sub {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--ink-2);
  background: rgba(11, 26, 38, 0.05);
}

.chip svg {
  width: 13px;
  height: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok {
  color: var(--green);
  background: var(--green-soft);
}

.badge-pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge-blue {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.badge-danger {
  color: var(--red);
  background: var(--red-50);
}

.badge-muted {
  color: var(--ink-3);
  background: rgba(11, 26, 38, 0.06);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar.lg {
  width: 56px;
  height: 56px;
}

.avatar.xl {
  width: 72px;
  height: 72px;
  font-size: 1.1rem;
}

.avatar.biz {
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(160deg, #57d2f4, #1b6aa7 70%);
}

.verified {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  vertical-align: -3px;
  cursor: help;
}

.verified svg {
  width: 10px;
  height: 10px;
}

.tip {
  position: relative;
}

.tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max(220px, 16rem);
  padding: 10px 12px;
  border-radius: 12px;
  background: #0b1a26;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 40;
  box-shadow: 0 10px 30px rgba(11, 26, 38, 0.25);
}

.tip:hover .tip-bubble,
.tip:focus .tip-bubble,
.tip:focus-within .tip-bubble {
  opacity: 1;
}

.badge.tip {
  overflow: visible;
}

.deal-lock {
  margin: 12px 16px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(27, 106, 167, 0.08);
  border: 1px solid rgba(27, 106, 167, 0.16);
  display: grid;
  gap: 8px;
}

.deal-lock p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.deal-deliver {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
  align-items: end;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
}

.composer input {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .num {
  font-variant-numeric: tabular-nums;
}

.empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 48px 24px;
  text-align: center;
}

.empty h3 {
  font-size: 1.1rem;
}

.empty p {
  max-width: 44ch;
  color: var(--ink-3);
}

.empty .btn {
  margin-top: 8px;
}

.tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: rgba(11, 26, 38, 0.06);
}

.tab {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.25s ease;
}

.tab.active {
  color: var(--ink);
}

.tabs.has-knob::before {
  border-radius: 10px;
}

.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(11, 26, 38, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.8s var(--ease);
}

.opp {
  padding: 22px;
  border-radius: var(--r-lg);
}

.card > .opp {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card > .opp:last-child {
  border-bottom: 0;
}

.opp-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.opp h3 {
  font-size: 1.15rem;
  margin: 4px 0 8px;
}

.brief-text {
  color: var(--ink-2);
  margin-bottom: 12px;
}

.note {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  font-size: 0.925rem;
}

/* ---------- Chat ---------- */

.chat {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: min(680px, calc(100vh - 200px));
}

.chat-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.chat-item.active {
  background: rgba(255, 255, 255, 0.85);
}

.chat-item .who {
  min-width: 0;
  flex: 1;
}

.chat-item .preview {
  font-size: 0.85rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
}

.msg {
  position: relative;
  max-width: 72%;
  padding: 10px 14px 22px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.msg .time {
  position: absolute;
  right: 12px;
  bottom: 5px;
  font-size: 0.68rem;
  opacity: 0.7;
}

.msg.me {
  align-self: flex-end;
  color: #fff;
  background: var(--blue);
  border-bottom-right-radius: 6px;
}

.msg.them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.msg.sys {
  align-self: center;
  max-width: 100%;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--ink-3);
  background: rgba(11, 26, 38, 0.05);
}

.chat-compose {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.chat-compose input {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.85);
}

.chat-compose input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 106, 167, 0.16);
}

/* ---------- Toast & modal ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  color: #fff;
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 40px -16px rgba(11, 26, 38, 0.6);
  opacity: 0;
  translate: -50% 12px;
  transition: opacity 0.25s ease, translate 0.25s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 26, 38, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
  margin: 0;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.92);
}

.modal h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.modal .desc {
  color: var(--ink-2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .float-chip {
    animation: none;
  }

  .tilt,
  .stage3d,
  .btn,
  .btn-3d-face,
  .btn-3d-text,
  .demo-item,
  .campaign-card,
  [data-reveal] > *,
  .has-knob::before,
  .bg-waves {
    transition: none;
  }

  [data-reveal] > * {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .creator-cta {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collage {
    height: 380px;
  }

  .float-chip.f1 {
    left: 0;
  }

  .float-chip.f3 {
    right: 0;
  }

  .start {
    grid-template-columns: 1fr;
  }

  .start-aside {
    display: none;
  }

  .band .container {
    padding: 36px 28px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    width: calc(100% - 16px);
  }

  .site-header .container {
    padding-left: 14px;
  }

  .hero {
    padding-top: 64px;
  }

  .app {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .side {
    position: fixed;
    inset: 12px auto 12px 12px;
    z-index: 90;
    width: min(300px, 86vw);
    height: auto;
    transform: translateX(-110%);
    transition: transform 0.3s var(--ease);
  }

  .side.open {
    transform: none;
  }

  .topbar {
    display: flex;
  }

  .main {
    padding: 4px 4px 40px;
  }

  .match {
    grid-template-columns: 1fr;
  }

  .match-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .match-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chat-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .opp-head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .collage {
    height: 320px;
  }

  .float-chip {
    display: none;
  }

  .platforms .container {
    gap: 14px;
    padding: 10px 16px;
  }

  .platforms .sep {
    display: none;
  }

  .lang {
    display: none;
  }
}

/* ---------- Admin gate ---------- */

.admin-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.admin-gate-card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--blur));
}

.admin-gate-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 4px 0 8px;
}

.admin-gate-msg {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0;
}

.admin-gate .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
