/* Zensia Vizn — waitlist. Light theme, teal gradients. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e8edf3;
  --border-strong: #d7dfe9;
  --ink: #08121a;
  --ink-2: #4a5a6b;
  --muted: #7d8b9b;

  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #14b8a6;
  --brand-tint: #f0fdfa;
  --brand-line: #b6f0e6;
  --brand-rgb: 13, 148, 136;

  --grad: linear-gradient(135deg, #14b8a6 0%, #0d9488 52%, #0e7490 100%);
  --grad-soft: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  --grad-text: linear-gradient(96deg, #0f766e 0%, #14b8a6 50%, #06b6d4 100%);

  --ok: #059669;
  --ok-tint: #ecfdf5;
  --warn: #b45309;
  --warn-tint: #fffbeb;
  --danger: #e11d48;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow-xs: 0 1px 2px rgba(9, 30, 45, .05);
  --shadow-sm: 0 2px 8px rgba(9, 30, 45, .06);
  --shadow: 0 14px 34px -14px rgba(9, 30, 45, .18);
  --shadow-lg: 0 34px 70px -26px rgba(9, 30, 45, .3);
  --shadow-float: 0 18px 40px -16px rgba(9, 30, 45, .22);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

/* The `hidden` attribute is only a UA rule (display:none), so ANY author rule
   that sets display — .gate uses grid — silently overrides it and the element
   stays on screen. Make hidden actually mean hidden. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #eef2f6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* safety net: no layout mistake should scroll the whole page sideways */
}

a { color: inherit; text-decoration: none; }

/* the whole page sits on a white sheet with a small margin, like the reference */
.sheet {
  background: var(--bg);
  border-radius: var(--r-xl);
  margin: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(9, 30, 45, .3);
  position: relative;
}

/* faint blueprint grid behind the light sections */
.sheet::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#f1f5f9 1px, transparent 1px),
    linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(1000px 700px at 50% 34%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 34%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 1; }
.narrow { max-width: 660px; }

/* ============ hero: saturated gradient block ============ */

.hero-block {
  position: relative;
  /* deepens toward the bottom so the white cards read as lit from above */
  background: linear-gradient(168deg, #2dd4bf 0%, #14b8a6 26%, #0d9488 62%, #0b7285 100%);
  padding: 0 0 215px;
  overflow: hidden;
  isolation: isolate;
}

/* the bloom — a bright wash directly behind the headline, brightest at the top */
.hero-block::before {
  content: '';
  position: absolute; inset: -34% -12% auto -12%; height: 128%;
  background:
    radial-gradient(760px 420px at 50% -4%, rgba(255,255,255,.62), transparent 62%),
    radial-gradient(560px 300px at 50% 6%, rgba(207,250,254,.55), transparent 60%),
    radial-gradient(820px 480px at 92% 4%, rgba(103,232,249,.34), transparent 66%);
  z-index: -2;
}

/* a vignette that pulls the corners down and keeps the centre luminous */
.hero-block::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1200px 620px at 50% 12%, transparent 42%, rgba(4, 60, 62, .3) 100%);
  z-index: -2;
}

/* soft blurred geometry drifting behind the copy */
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i {
  position: absolute; display: block; border-radius: 40px;
  background: rgba(255, 255, 255, .1);
  filter: blur(2px);
  border: 1px solid rgba(255,255,255,.09);
}
.blobs i:nth-child(1) { width: 300px; height: 300px; left: -70px;  top: 90px;  transform: rotate(18deg); }
.blobs i:nth-child(2) { width: 220px; height: 220px; left: 12%;    top: 320px; transform: rotate(-12deg); opacity: .7; }
.blobs i:nth-child(3) { width: 340px; height: 340px; right: -80px; top: 60px;  transform: rotate(-22deg); }
.blobs i:nth-child(4) { width: 190px; height: 190px; right: 14%;   top: 350px; transform: rotate(14deg); opacity: .6; }
.blobs i:nth-child(5) {
  width: 520px; height: 520px; left: 50%; top: -190px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.07);
}

/* --- nav --- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 0;
}
.brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.brand img {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.92); padding: 2px;
  box-shadow: 0 6px 18px -8px rgba(4, 45, 42, .55);
}
.brand b { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand b span { font-weight: 500; opacity: .82; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6, 40, 38, .34); color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  padding: 13px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 600;
  backdrop-filter: blur(8px); transition: .18s;
  box-shadow: 0 8px 22px -12px rgba(2, 30, 32, .7);
}
.nav-btn:hover { background: rgba(6, 40, 38, .52); transform: translateY(-1px); }

/* --- hero copy --- */
.hero { text-align: center; padding: 54px 0 0; color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
  padding: 6px 15px; border-radius: 999px; backdrop-filter: blur(6px);
  margin-bottom: 22px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #a7f3d0;
  animation: pulse 2.4s infinite;
}
/* the brand mark moved here once the headline stopped naming Zensia */
.pill-mark {
  width: 17px; height: 17px; border-radius: 5px;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center; flex: none;
}
.pill-mark img { width: 70%; height: 70%; object-fit: contain; display: block; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(167,243,208,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(167,243,208,0); }
  100% { box-shadow: 0 0 0 0 rgba(167,243,208,0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.04; letter-spacing: -.042em; font-weight: 600;
  margin: 0 0 18px; color: #fff;
  text-shadow: 0 2px 30px rgba(4, 45, 42, .18);
}
.hero h1 em { font-style: normal; color: #d5fbf3; }

/* the logo mark sitting inline in the sentence, like the reference */
.hero h1 .mark {
  display: inline-grid; place-items: center; vertical-align: -.14em;
  width: .92em; height: .92em; margin-right: .1em;
  border-radius: .26em;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px -6px rgba(4, 45, 42, .5);
}
.hero h1 .mark img { width: 68%; height: 68%; object-fit: contain; display: block; }

.hero .sub {
  font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,.88);
  max-width: 545px; margin: 0 auto 30px;
}

/* --- inline email capsule --- */
.capsule {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px; padding: 7px 7px 7px 24px;
  max-width: 470px; margin: 0 auto;
  box-shadow: 0 20px 46px -20px rgba(4, 45, 42, .55), inset 0 1px 0 rgba(255,255,255,.35);
  transition: border-color .2s, background .2s;
}
.capsule:focus-within { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); }
.capsule input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: inherit; font-size: .93rem; color: #fff; padding: 11px 0;
  min-width: 0;
}
.capsule input::placeholder { color: rgba(255,255,255,.72); }
.capsule button {
  display: inline-flex; align-items: center; gap: 10px;
  background: #08262a; color: #fff; border: 0; cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 600;
  padding: 8px 22px 8px 8px; border-radius: 999px; white-space: nowrap;
  transition: .18s; box-shadow: 0 8px 20px -8px rgba(2, 30, 32, .8);
}
.capsule button .badge-ic {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(140deg, #2dd4bf, #0d9488);
  display: grid; place-items: center; flex: none;
}
.capsule button:hover { background: #0c343a; transform: translateY(-1px); }
.capsule.bad { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 0 5px rgba(225,29,72,.45); }

.cap-note { font-size: .76rem; color: rgba(255,255,255,.75); margin-top: 14px; }

/* ============ floating product cards ============ */

/* wider than the text column so the outer cards bleed past the edges and crop */
.float-deck {
  position: relative;
  max-width: 1500px; margin: 50px auto -160px;
  padding: 0 22px;
  z-index: 2;
}

.deck-row { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 20px; align-items: end; }
.deck-col { display: flex; flex-direction: column; gap: 16px; }

.fcard {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-radius: var(--r); padding: 15px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255,255,255,.8);
  animation: rise .7s cubic-bezier(.2,.9,.3,1) both;
}
.fcard.lift { transform: translateY(-26px); }
.fcard.sink { transform: translateY(14px); }
@keyframes rise { from { opacity: 0; transform: translateY(28px) } }

.fcard .fh {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.fcard .fh .sq {
  width: 20px; height: 20px; border-radius: 6px; background: var(--grad-soft);
  color: var(--brand-dark); display: grid; place-items: center;
}

/* punch card */
.punch { display: flex; align-items: center; gap: 10px; }
.punch .av {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.punch .nm { font-size: .86rem; font-weight: 600; }
.punch .tm { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.punch .tag {
  margin-left: auto; font-size: .66rem; font-weight: 700;
  background: var(--brand-tint); color: var(--brand-dark);
  padding: 4px 9px; border-radius: 999px;
}
.punch .tag.warn { background: var(--warn-tint); color: var(--warn); }

/* headcount card */
.count { display: flex; align-items: baseline; gap: 8px; }
.count .big {
  font-family: var(--mono); font-size: 2rem; font-weight: 700;
  letter-spacing: -.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count .cap { font-size: .76rem; color: var(--muted); }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin-top: 10px; }
.bars i { flex: 1; background: var(--grad-soft); border-radius: 3px; display: block; }
.bars i:nth-child(3n) { background: var(--grad); opacity: .75; }

/* whatsapp card */
.wa { background: #f6fbf9; border: 1px solid #dcefe9; border-radius: 12px; padding: 12px; }
.wa .from { font-size: .7rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 5px; }
.wa .txt { font-size: .8rem; line-height: 1.5; color: var(--ink-2); }
.wa .txt b { color: var(--ink); }
.wa .meta {
  font-family: var(--mono); font-size: .66rem; color: var(--muted);
  text-align: right; margin-top: 6px;
}

/* ============ camera stage (centre card) ============ */

.stage-card {
  background: #fff; border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.8);
}
.chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 7px 13px; font-size: .78rem; color: var(--muted);
}
.chrome .rec { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--danger); }
.chrome .rec i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  animation: blink 1.6s infinite; display: inline-block;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.chrome .clock { margin-left: auto; font-family: var(--mono); }

.stage {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #0d141c;
}
.stage video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;   /* sits above the fallback scene */
  opacity: 0; transition: opacity .5s ease;
}
.stage video.ready, .stage video[poster] { opacity: 1; }

/* a slow sheen over the poster until the clip is playable */
.stage::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.14) 50%, transparent 62%);
  background-size: 250% 100%;
  animation: sheen 1.9s ease-in-out infinite;
}
.stage.playing::after { display: none; }
@keyframes sheen { from { background-position: 160% 0 } to { background-position: -60% 0 } }

.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #1a2431 0%, #121a25 55%, #0d141c 100%); }
.scene .light {
  position: absolute; left: 50%; top: -22%; width: 62%; height: 92%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(196,234,228,.28), transparent 72%);
  filter: blur(2px);
}
.scene .door {
  position: absolute; left: 50%; top: 8%; width: 30%; height: 60%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(205,235,231,.22), rgba(205,235,231,.05));
  border: 1px solid rgba(255,255,255,.13); border-radius: 4px;
}
.scene .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border-top: 1px solid rgba(255,255,255,.06);
}
.scene .grain {
  position: absolute; inset: 0; opacity: .45; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.1) .5px, transparent .5px);
  background-size: 3px 3px;
}
.overlay { position: absolute; inset: 0; }

.hud {
  position: absolute; right: 12px; top: 11px; z-index: 2;
  display: flex; gap: 8px; font-family: var(--mono); font-size: .74rem;
}
.hud .chip b { transition: color .2s; }
.hud .chip.bump { animation: chipBump .5s ease; }
@keyframes chipBump {
  0%   { transform: none; }
  35%  { transform: translateY(-3px) scale(1.06); background: rgba(13,148,136,.9); }
  100% { transform: none; }
}
.hud .chip {
  background: rgba(6,12,18,.6); color: #d9e6f2; border: 1px solid rgba(255,255,255,.14);
  padding: 7px 12px; border-radius: 8px; backdrop-filter: blur(4px);
}
.hud .chip b { color: #fff; }
.caption {
  position: absolute; left: 12px; bottom: 11px; font-size: .68rem;
  color: rgba(230,240,250,.7); background: rgba(6,12,18,.55);
  border: 1px solid rgba(255,255,255,.1); padding: 5px 10px; border-radius: 7px;
  backdrop-filter: blur(4px);
}

/* ============ light sections ============ */

.section { padding: 96px 0 0; }
.section.first { padding-top: 210px; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-tint); border: 1px solid var(--brand-line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .sq { width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.sec-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1.16;
  letter-spacing: -.032em; font-weight: 700; margin: 0 0 12px;
}
.sec-head h2 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p { color: var(--ink-2); font-size: .96rem; line-height: 1.6; margin: 0; }

/* feature cards, middle one highlighted like the reference */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.tcard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-dark); margin-bottom: 16px;
}
.tcard h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.015em; }
.tcard p { margin: 0; font-size: .87rem; line-height: 1.6; color: var(--ink-2); }

.tcard.hero-card {
  background: var(--grad); border-color: transparent; color: #fff;
  padding: 34px 26px; box-shadow: 0 26px 50px -20px rgba(var(--brand-rgb), .65);
  position: relative; overflow: hidden;
}
.tcard.hero-card::after {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background: radial-gradient(420px 200px at 30% 0%, rgba(255,255,255,.3), transparent 70%);
  pointer-events: none;
}
.tcard.hero-card .ic { background: rgba(255,255,255,.2); color: #fff; }
.tcard.hero-card p { color: rgba(255,255,255,.9); }

/* dot indicators for the mobile swipe carousel — hidden on the desktop grid */
.trio-dots { display: none; justify-content: center; gap: 6px; margin-top: 16px; }
.trio-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: .2s; }
.trio-dots span.on { background: var(--brand); width: 18px; border-radius: 999px; }

/* what-you-get grid */
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.get {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 22px 24px; box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.get:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.get .ic {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 15px;
  background: var(--grad-soft); color: var(--brand-dark);
  display: grid; place-items: center;
}
.get h4 { margin: 0 0 6px; font-size: .95rem; letter-spacing: -.012em; line-height: 1.35; }
.get p { margin: 0; font-size: .84rem; line-height: 1.58; color: var(--ink-2); }

/* the privacy one is the closer — give it the gradient treatment */
.get.feature {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 24px 46px -22px rgba(var(--brand-rgb), .7);
  position: relative; overflow: hidden;
}
.get.feature::after {
  content: ''; position: absolute; inset: -50% -20% auto -20%; height: 130%;
  background: radial-gradient(400px 200px at 30% 0%, rgba(255,255,255,.28), transparent 70%);
  pointer-events: none;
}

/* "Show all" toggle — mobile only, see the .gets-more media query below */
.gets-more { display: none; }
.get.feature .ic { background: rgba(255,255,255,.22); color: #fff; }
.get.feature p { color: rgba(255,255,255,.9); }

/* entry log strip */
.feed {
  margin-top: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-xs); overflow: hidden;
}
.feed-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.feed-head .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-dark); letter-spacing: 0; text-transform: none; font-size: .74rem;
}
.feed-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.8s infinite; }
.feed-list { min-height: 150px; }
.ev {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid #f4f7fa; animation: slide .38s ease both;
}
.ev:last-child { border-bottom: 0; }
@keyframes slide { from { opacity: 0; transform: translateY(-7px) } }
.ev .t { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.ev .who { font-size: .88rem; font-weight: 600; }
.ev .badge { margin-left: auto; font-size: .67rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.badge.in { background: var(--brand-tint); color: var(--brand-dark); }
.badge.out { background: #f1f5f9; color: var(--ink-2); }
.badge.unknown { background: var(--warn-tint); color: var(--warn); }

/* ============ join / form ============ */

.join { padding: 100px 0 0; }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 30px; max-width: 560px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad);
}
/* A ring around each specific unanswered group — scoped to the section
   that actually needs attention, not every individual chip inside it and
   not the whole card. */
.chips.bad { box-shadow: 0 0 0 2px var(--danger); }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.steps .s { flex: 1; height: 4px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.steps .s i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .45s ease; }
.steps .s.active i { width: 100%; }
.steps .lbl { font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: .79rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--danger); font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.other-input { margin-top: 10px; }

.phone-row { display: flex; gap: 8px; }
.dial-code { flex: 0 0 78px; width: 78px; text-align: center; font-variant-numeric: tabular-nums; }
.phone-row #whatsapp { flex: 1; min-width: 0; }

input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .92rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a4b0bf; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(var(--brand-rgb), .13);
}
input.bad { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px; border-radius: var(--r); transition: box-shadow .15s; }
/* No per-group red ring — with 4 chip groups on one step, that read as 4
   separate errors instead of one. The step-level message below the button
   is the one place this now shows up. */
.chip-opt {
  font-size: .82rem; font-weight: 500; padding: 9px 15px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: #fff; cursor: pointer; user-select: none; transition: .15s;
}
.chip-opt:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip-opt.on {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(var(--brand-rgb), .7);
}

.btn {
  width: 100%; padding: 13px 20px; font: inherit; font-weight: 600; font-size: .93rem;
  color: #fff; border: 0; border-radius: var(--r-sm); background: var(--grad);
  cursor: pointer; transition: .18s; box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), .95);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(var(--brand-rgb), 1); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.sec { background: #fff; color: var(--ink-2); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.sec:hover { background: #f8fafc; color: var(--ink); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.msg { font-size: .82rem; margin-top: 12px; min-height: 1.1em; }
.msg.err { color: var(--danger); }
.hint { font-size: .77rem; color: var(--muted); text-align: center; margin-top: 13px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.step { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } }

.done { text-align: center; padding: 10px 0 4px; }
.done .tick-lg {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin: 0 auto 16px;
  box-shadow: 0 14px 30px -12px rgba(var(--brand-rgb), .9);
  animation: pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0 } }
.done h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.02em; }
.done .pos {
  font-family: var(--mono); font-size: 2.1rem; font-weight: 700; letter-spacing: -.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.done p { color: var(--ink-2); font-size: .9rem; margin: 0; }

/* success popup — a real modal on top of everything, not just an inline swap */
.success-overlay {
  position: fixed; inset: 0; z-index: 999;
  background:
    radial-gradient(560px 420px at 50% 42%, rgba(45,212,191,.16), transparent 70%),
    rgba(4, 20, 22, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s ease;
}
.success-overlay.in { opacity: 1; }
.success-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 40px 34px 34px; max-width: 400px; width: 100%; text-align: center;
  transform: scale(.92) translateY(8px); transition: transform .3s cubic-bezier(.2,1.2,.4,1);
}
.success-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad);
}
.success-overlay.in .success-card { transform: scale(1) translateY(0); }

/* icon: pulsing rings behind a gradient disc, with a checkmark that draws
   itself in rather than just appearing — reads as considered, not templated */
.success-tick-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 22px; }
.success-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand-line);
  animation: ringPulse 1.8s cubic-bezier(.2,.7,.4,1) .3s infinite;
  opacity: 0;
}
.success-ring.r2 { animation-delay: .7s; }
@keyframes ringPulse {
  0% { transform: scale(.75); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.success-tick {
  position: absolute; inset: 6px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(var(--brand-rgb), .9);
  animation: pop .4s cubic-bezier(.2,1.4,.4,1) both;
}
.tick-path {
  stroke-dasharray: 20; stroke-dashoffset: 20;
  animation: drawTick .35s ease-out .35s both;
}
@keyframes drawTick { to { stroke-dashoffset: 0; } }

.success-card h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.025em; }
.success-card p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin: 0 0 24px; }

.success-steps {
  list-style: none; margin: 0 0 26px; padding: 4px 0; text-align: left;
  display: flex; flex-direction: column;
}
.success-steps li {
  position: relative; display: flex; align-items: flex-start; gap: 13px;
  padding: 0 0 20px 0;
}
.success-steps li:last-child { padding-bottom: 0; }
/* connecting line runs behind each icon circle down to the next one */
.success-steps li:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 1.5px;
  background: var(--border-strong);
}
.ss-n {
  position: relative; z-index: 1; flex: none; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border-strong); color: var(--muted);
  display: grid; place-items: center; margin-top: 1px;
}
.ss-n.ss-now {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(var(--brand-rgb), .7);
}
.success-steps li > div { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.success-steps b { font-size: .87rem; font-weight: 600; color: var(--ink); }
.success-steps small { font-size: .76rem; color: var(--muted); }

.success-card .btn { width: 100%; padding: 12px 32px; }

/* ============ footer ============ */

.foot {
  margin-top: 100px; border-top: 1px solid var(--border); padding: 26px 30px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
  max-width: 1060px; margin-left: auto; margin-right: auto;
}
.foot-brand { font-weight: 400; color: var(--muted); transition: color .15s; }
.foot-brand span { font-weight: 700; color: var(--brand-dark); }
.foot-brand:hover { color: var(--ink-2); }
.foot-brand:hover span { color: var(--brand); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ admin ============ */

.admin-shell { display: flex; align-items: stretch; min-height: 100vh; background: #f4f7fa; }

/* ---- sidebar ---- */
.admin-side {
  flex: none; width: 250px; background: var(--grad); color: #fff;
  display: flex; flex-direction: column; padding: 24px 18px;
  position: sticky; top: 0; height: 100vh;
}
.admin-side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; margin-bottom: 30px; }
.admin-side-brand img { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.92); padding: 2px; }
.admin-side-brand b { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; }
.admin-side-brand b span { font-weight: 500; opacity: .82; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; width: 100%;
  border-radius: 10px; font-size: .87rem; font-weight: 600; color: rgba(255,255,255,.82);
  text-decoration: none; cursor: pointer; transition: .15s;
  background: none; border: none; font-family: inherit; text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-item.active { background: rgba(255,255,255,.95); color: var(--brand-dark); box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.admin-nav-item.disabled { cursor: not-allowed; opacity: .55; }
.admin-nav-item.disabled:hover { background: none; color: rgba(255,255,255,.82); }
.admin-nav-ic { display: flex; flex: none; }
.admin-nav-soon {
  margin-left: auto; font-size: .58rem; font-weight: 700; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 999px; letter-spacing: .03em;
}

.admin-side-card {
  margin-top: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 14px; font-size: .78rem;
}
.admin-health { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.dot-bad { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.dot-wait { background: rgba(255,255,255,.5); }

/* ---- main column ---- */
.admin-main { flex: 1; min-width: 0; }

.admin-topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 32px 20px;
}
.admin-topbar h1 { font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -.02em; color: var(--ink); }
.admin-topbar p { margin: 0; font-size: .84rem; color: var(--ink-2); }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.admin-whoami { font-size: .8rem; color: var(--ink-2); margin-right: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: #fff; border: 1px solid var(--border-strong); color: var(--ink-2);
  cursor: pointer; transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.icon-btn.spinning svg { animation: iconSpin .6s linear; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

.admin-body { padding: 0 32px 60px; max-width: 1360px; }

.page-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 28px; max-width: 620px;
}
.page-card h2 { font-size: 1.15rem; margin: 0 0 4px; letter-spacing: -.01em; }
.page-sub { color: var(--ink-2); font-size: .86rem; margin: 0 0 20px; }
.page-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.page-card-head p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-2); }
.av-lg {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700;
}
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.page-grid label {
  display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: 5px;
}
.page-grid > div > div { font-size: .9rem; color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .page-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: static; flex-direction: row; align-items: center; padding: 14px 18px; gap: 18px; }
  .admin-side-brand { margin-bottom: 0; flex: none; }
  /* flex items default to min-width:auto, so this row's nowrap buttons were
     never allowed to shrink below their full content width — that pushed
     .admin-side (and the whole page) wider than the viewport instead of
     scrolling internally like overflow-x:auto was meant to let it. */
  .admin-nav { flex-direction: row; overflow-x: auto; flex: 1 1 auto; min-width: 0; }
  .admin-nav-item { white-space: nowrap; flex: none; }
  .admin-side-card { display: none; }
  .admin-topbar { flex-direction: column; padding: 20px 18px 0; }
  .admin-topbar-actions { width: 100%; justify-content: flex-end; }
  .admin-body { padding: 0 18px 40px; }
  table { min-width: 760px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* header: smaller brand/nav strip, tighter title block, no wasted padding */
  .admin-side { padding: 10px 14px; gap: 12px; }
  .admin-side-brand img { width: 26px; height: 26px; }
  .admin-side-brand b { font-size: .92rem; }
  .admin-nav-item { padding: 8px 10px; font-size: .8rem; }
  .admin-topbar { padding: 16px 14px 0; gap: 10px; }
  .admin-topbar h1 { font-size: 1.1rem; }
  .admin-topbar p { font-size: .78rem; }
  .admin-body { padding: 0 14px 32px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
  .icon-btn svg { width: 14px; height: 14px; }

  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .stat { padding: 7px 4px; border-radius: 9px; text-align: center; overflow: hidden; }
  .stat .n { font-size: .88rem; letter-spacing: -.02em; }
  .stat .l { font-size: .46rem; letter-spacing: .02em; margin-top: 1px; overflow-wrap: break-word; }

  /* search stays full-width on its own line; the three filters share the
     next line, each shrinking to fit rather than stacking one per row */
  .toolbar { flex-wrap: wrap; align-items: stretch; }
  .toolbar input { flex: 1 0 100%; width: 100%; min-width: 0; }
  .toolbar select { flex: 1 1 0; width: auto; min-width: 0; padding: 8px 6px; font-size: .72rem; }
  .bulk-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .bulk-actions { flex-wrap: wrap; }
  .bulk-set { flex: 1; }
  .bulk-set select { flex: 1; width: auto; }
  .pager { flex-direction: column; align-items: stretch; gap: 10px; }
  .pager-btns { justify-content: center; flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; padding: 16px; }
  .admin-whoami { display: none; }
  .page-card { padding: 20px; }

  /* Table -> row cards. A wide table squeezed under min-width and left to
     horizontal-scroll is unusable on a phone (columns sliced mid-word, no
     visible scrollbar hint) — below this width each application renders as
     a compact card instead: avatar/name/actions on one line, a wrapped meta
     line (tier · company · location · date), then a status footer. Business
     type moves into the expandable detail instead of the collapsed card. */
  /* The table keeps display:table by default; once its rows/cells switch to
     flex/block below, that mismatch left the table sizing itself off its
     former table layout and overflowing past the viewport (everything
     rendered shifted, clipped on the left by the resulting horizontal
     scroll). Dropping the table to a plain block container removes that. */
  .table-wrap { background: none; border: none; box-shadow: none; overflow: visible; }
  table { display: block; min-width: 0; width: 100%; margin: -10px 0 0; }
  thead { display: none; }
  tbody, tr { display: block; }
  td { display: block; width: auto; }

  tr.app-row {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r);
    box-shadow: var(--shadow-sm); padding: 12px; margin-bottom: 10px;
  }
  tr.detail-row { margin: -10px 0 10px; }
  /* the desktop table gives every column a fixed % width; with flex-basis:auto
     that width would still apply as this item's box, so it's cancelled here
     for every cell before the per-cell rules below set their own sizing. */
  tr.app-row td { display: block; border-bottom: 0; padding: 0; min-width: 0; width: auto; }

  /* line 1: checkbox, name/email (truncated to one line, never wraps), actions.
     flex-grow on the contact cell claims 100% of the line's width by itself,
     so later cells are always pushed to their own line regardless of how
     short any one of them is — no accidental reflow onto line 1. */
  tr.app-row td:nth-child(1) { order: 1; flex: 0 0 auto; align-self: center; margin-right: 8px; }
  tr.app-row td:nth-child(2) { order: 2; flex: 1 1 auto; min-width: 0; }
  tr.app-row td.actions-cell { order: 3; flex: 0 0 auto; width: auto; text-align: right; margin-left: 8px; }
  .row-actions { justify-content: flex-end; }
  .icon-btn-sm.labeled span { display: none; }   /* icon only — the label doesn't fit this row */
  .who { align-items: center; }

  /* line 2: company, alone — flex-basis 100% forces the hard break */
  tr.app-row td:nth-child(3) {
    order: 4; flex: 1 0 100%; margin-top: 9px;
    font-size: .78rem; font-weight: 600; color: var(--ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* line 3: tier chip + location, date pushed to the far right */
  tr.app-row td:nth-child(5) { order: 5; flex: 0 0 auto; margin-top: 7px; }
  tr.app-row td:nth-child(6) {
    order: 6; flex: 1 1 auto; min-width: 0; margin-top: 7px; margin-left: 7px;
    font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  tr.app-row td:nth-child(7) { order: 7; flex: 0 0 auto; margin: 7px 0 0 8px; }
  tr.app-row td:nth-child(7) .when { font-size: .7rem; }

  tr.app-row td:nth-child(4) { display: none; }   /* business type — see detail instead */

  /* footer: status pill spans its own line under a divider */
  tr.app-row td:nth-child(8) {
    order: 8; flex: 1 0 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  }
  tr.app-row td:nth-child(8) select { width: auto; min-width: 110px; }

  .who-txt .tr-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .detail-row td {
    background: #fbfdfe; padding: 0; border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-sm);
  }
  /* one field per row — two squeezed columns is what clipped "Territory /
     Region" and forced the phone number to break after "91" */
  .detail-grid { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .detail-grid .only-narrow { display: block; }
  .detail-grid label { margin-bottom: 6px; }
  .detail-grid > div { word-break: break-word; }
}
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 17px 19px; box-shadow: var(--shadow-sm);
}
.stat .n {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -.04em; font-family: var(--mono);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-size: .69rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
th {
  text-align: left; font-size: .67rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: 12px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: #fcfdfe;
}
td { padding: 11px 14px; border-bottom: 1px solid #f4f7fa; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
.app-row { cursor: pointer; }
.app-row:hover .expand-toggle { border-color: var(--brand); color: var(--brand-dark); }
td .sub { font-size: .75rem; color: var(--muted); margin-top: 1px; }
td .when { font-family: var(--mono); font-size: .77rem; color: var(--muted); }
td select { width: 100%; font-size: .76rem; padding: 6px 8px; }
.empty { padding: 48px; text-align: center; color: var(--muted); font-size: .88rem; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; font-size: .82rem; color: var(--muted);
}
.pager-btns { display: flex; gap: 8px; }
.pager-btn {
  padding: 7px 14px; font-size: .8rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  cursor: pointer; transition: .15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); }
.pager-btn:disabled { opacity: .45; cursor: default; }

/* fixed column widths so nothing gets pushed off-screen; text that can run
   long (company, business type) truncates with the full value on hover */
.th-check { width: 38px; }
th:nth-child(2), td:nth-child(2) { width: 19%; }
th:nth-child(3), td:nth-child(3) { width: 12%; }
th:nth-child(4), td:nth-child(4) { width: 15%; }
th:nth-child(5), td:nth-child(5) { width: 9%; }
th:nth-child(6), td:nth-child(6) { width: 15%; }
th:nth-child(7), td:nth-child(7) { width: 8%; }
th:nth-child(8), td:nth-child(8) { width: 10%; }
.th-actions, td.actions-cell { width: 130px; text-align: right; }
.tr-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.row-check { display: block; }

/* row-end actions: expand chevron (right side, matching the affordance
   convention of "more info this way") + delete, grouped together */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn-sm {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  transition: .15s; flex: none;
}
.icon-btn-sm:hover { border-color: var(--brand); color: var(--brand-dark); }
.icon-btn-sm.danger:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn-sm.labeled {
  width: auto; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 600; font-family: inherit; color: var(--ink-2);
}
.icon-btn-sm.labeled:hover { color: var(--brand-dark); }

/* bulk selection bar — appears once at least one row is checked */
.bulk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--r);
  padding: 11px 16px; margin-bottom: 14px; font-size: .84rem; font-weight: 600; color: var(--brand-dark);
}
.bulk-actions { display: flex; align-items: center; gap: 10px; }
.bulk-set { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; }
.bulk-set select { width: auto; padding: 6px 10px; font-size: .8rem; }

/* multi-value fields (business type, camera brands) as small tag pills
   instead of one comma-separated string — each value reads on its own */
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-pill {
  display: inline-block; font-size: .72rem; font-weight: 600; color: var(--ink-2);
  background: #f1f5f9; border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}

/* numbered pill pagination */
.pager-num {
  width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.pager-num.active { background: var(--grad); border-color: transparent; color: #fff; }

.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--brand-dark); }
.sort-ic { font-size: .7rem; margin-left: 2px; }

.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who-txt { min-width: 0; }
.av-sm {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: -.02em;
}

/* status select tinted by its own value, so the pipeline reads at a glance */
.status-sel { font-weight: 600; border-radius: 999px !important; }
.status-sel.st-NEW { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe !important; }
.status-sel.st-CONTACTED { background: var(--warn-tint); color: var(--warn); border-color: #fde68a !important; }
.status-sel.st-INVITED { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe !important; }
.status-sel.st-ONBOARDED { background: var(--ok-tint); color: var(--ok); border-color: #a7f3d0 !important; }
.status-sel.st-REJECTED { background: #fef2f2; color: var(--danger); border-color: #fecaca !important; }

/* expandable application detail row */
.expand-toggle {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  transition: .15s;
}
.expand-toggle svg { transition: transform .2s ease; }
.expand-toggle:hover { border-color: var(--brand); color: var(--brand-dark); }
.expand-toggle.open svg { transform: rotate(90deg); }
.detail-row td { padding: 0; border-bottom: 1px solid var(--border); background: #fbfdfe; }
.detail-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 18px 20px;
}
.detail-grid label {
  display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px;
}
.dt-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: var(--brand-tint); color: var(--brand-dark);
}
.detail-grid > div { font-size: .86rem; color: var(--ink); line-height: 1.5; }
.detail-wide { grid-column: 1 / -1; }
.only-narrow { display: none; }
.wa-tick {
  display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700;
  color: var(--ok); background: var(--ok-tint); padding: 2px 8px; border-radius: 999px;
}

/* ============ responsive ============ */

@media (max-width: 940px) {
  .deck-row { grid-template-columns: 1fr; }
  .deck-col { flex-direction: row; }
  .deck-col .fcard { flex: 1; }
  .fcard.lift, .fcard.sink { transform: none; }
  /* The overlap technique below is tuned for desktop's short, wide float-deck.
     Stacked at this width the deck is much taller, so the -120px/170px pair
     (sized for a small desktop overlap) leaves a large dead gap before the
     next section — shrink both together as the deck gets taller and less
     "floating". */
  .float-deck { margin-bottom: -60px; }
  .section.first { padding-top: 90px; }
  .trio { grid-template-columns: 1fr; }
  .gets { grid-template-columns: 1fr; }
  /* Stacked, the deck reads as a wall of near-identical white cards before
     anything interesting happens — lead with the video instead, it's the
     one genuinely engaging element and breaks up the repetition. */
  .stage-card { order: -1; margin-bottom: 4px; }
}
@media (max-width: 620px) {
  .sheet { margin: 8px; border-radius: 24px; }
  .wrap { padding: 0 20px; }
  .float-deck { padding: 0 20px; margin-bottom: -20px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand b { font-size: 1.08rem; }
  .nav-btn { padding: 10px 18px; font-size: .85rem; }
  /* The 4 supporting cards (Marked/Flagged/Sent to employee/Inside now) are
     a lot of extra scroll on a phone for content the video already implies —
     keep only the video, the one thing worth leading with here. */
  .deck-col { display: none; }
  .deck-row { grid-template-columns: 1fr; justify-items: center; }
  .hero-block { padding-bottom: 30px; }
  .section.first { padding-top: 40px; }
  /* Stays one row like the desktop pill — everything just shrinks to fit
     a narrow screen instead of stacking. */
  .capsule { padding: 6px 6px 6px 16px; gap: 4px; border-color: rgba(255,255,255,.6); }
  .capsule input { font-size: .82rem; padding: 9px 0; min-width: 0; }
  .capsule button { font-size: .76rem; padding: 7px 14px 7px 7px; gap: 6px; }
  .capsule button .badge-ic { width: 26px; height: 26px; }
  .grid2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .section { padding-top: 70px; }
  .stage-card { padding: 10px; }
  /* One unified pill with dividers instead of 3 separately-boxed chips —
     the same info, without three stacked shadows/borders on a small screen. */
  .hud {
    gap: 0; right: 8px; top: 8px; left: 8px; justify-content: flex-end;
    background: rgba(6,12,18,.6); border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px; padding: 6px 4px; backdrop-filter: blur(4px);
  }
  .hud .chip {
    background: transparent; border: none; backdrop-filter: none;
    padding: 0 8px; font-size: .64rem;
    border-right: 1px solid rgba(255,255,255,.18);
  }
  .hud .chip:last-child { border-right: none; }
  .caption { left: 8px; bottom: 8px; font-size: .62rem; padding: 4px 8px; }
  .chrome { font-size: .7rem; gap: 6px; }
  /* Lighter, tighter cards — stacked close together, the desktop shadow
     (tuned for cards spaced apart on a wide layout) reads as heavy/boxy. */
  .fcard { padding: 13px; box-shadow: 0 6px 16px -10px rgba(9,30,45,.28); }
  .deck-col { gap: 12px; }

  /* "How it works" cards: full text at this width needs full-card width to
     stay readable, so swipe between them one at a time instead of shrinking
     3 into a row. */
  .trio {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; margin: 0 -20px; padding: 4px 20px 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .trio::-webkit-scrollbar { display: none; }
  .trio .tcard { flex: 0 0 82%; scroll-snap-align: center; }
  .trio .tcard:hover { transform: none; }
  .trio-dots { display: flex; }

  /* "What you can sell" — 12 cards. Unlike the trio these are short enough
     (one icon, one line title, one short sentence) to survive a 2-column
     grid at reduced type size, so it stays a grid instead of a swipe list. */
  .gets { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .get { padding: 14px; }
  .get:hover { transform: none; }
  .get .ic { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 10px; }
  .get .ic svg { width: 15px; height: 15px; }
  .get h4 { font-size: .8rem; margin-bottom: 4px; }
  .get p { font-size: .71rem; line-height: 1.42; }

  /* Show 4, hide the rest behind a "Show all" toggle — 12 cards up front
     is a lot of scroll before reaching the calculator/comparison sections. */
  .gets .get:nth-child(n+5) { display: none; }
  .gets.expanded .get { display: block; }
  .gets-more {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 14px; padding: 13px;
    background: #fff; border: 1.5px solid var(--border-strong); border-radius: 999px;
    font: inherit; font-size: .86rem; font-weight: 700; color: var(--brand-dark);
    cursor: pointer;
  }
  .gets-more svg { transition: transform .2s; }
  .gets-more.open svg { transform: rotate(180deg); }
}

@media (max-width: 380px) {
  .hero h1 { letter-spacing: -.03em; }
  .pill { font-size: .68rem; padding: 5px 12px; }
  .nav-btn { padding: 9px 14px; font-size: .8rem; }
  .brand b { font-size: 1rem; }
}

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

/* ============================================================
   Motion layer — intro, scroll-driven 3D, pointer parallax.
   Everything here is progressive: with JS off or reduced motion
   on, the page renders fully in its resting state.
   ============================================================ */

/* --- intro curtain --- */
.intro {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(168deg, #2dd4bf 0%, #14b8a6 30%, #0d9488 68%, #0b7285 100%);
  display: grid; place-items: center;
  transition: opacity .7s ease .15s, visibility .7s ease .15s;
}
.intro-mark {
  position: relative; width: 92px; height: 92px; border-radius: 26px;
  background: rgba(255,255,255,.95); display: grid; place-items: center;
  box-shadow: 0 30px 70px -24px rgba(2, 40, 42, .7);
  animation: markIn .9s cubic-bezier(.2, 1.1, .3, 1) both;
  overflow: hidden;
}
.intro-mark img { width: 62%; height: 62%; object-fit: contain; }
/* a scan line sweeping the mark — the product's own gesture */
.intro-mark::after {
  content: ''; position: absolute; left: -20%; right: -20%; height: 3px;
  background: linear-gradient(90deg, transparent, #14b8a6, transparent);
  box-shadow: 0 0 14px 3px rgba(20, 184, 166, .8);
  animation: scan 1.15s cubic-bezier(.5, 0, .5, 1) .18s 1 both;
}
.intro-ring {
  position: absolute; width: 92px; height: 92px; border-radius: 30px;
  border: 2px solid rgba(255,255,255,.7);
  animation: ring 1.3s cubic-bezier(.2, .8, .3, 1) .25s both;
}
.intro-word {
  position: absolute; top: calc(50% + 74px); left: 50%; transform: translateX(-50%);
  color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  white-space: nowrap;
  animation: wordIn .7s ease .5s both;
}
.intro-word span { opacity: .78; font-weight: 400; }

@keyframes markIn {
  from { opacity: 0; transform: scale(.62) translateY(18px) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes scan {
  0%   { top: -10%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
@keyframes ring {
  0%   { opacity: 0; transform: scale(.8); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes wordIn { from { opacity: 0; transform: translate(-50%, 10px); } }

body.ready .intro { opacity: 0; visibility: hidden; }
body.loading { overflow: hidden; }

/* --- staggered entrance --- */
.anim { opacity: 0; }
body.ready .anim {
  animation: enter .95s cubic-bezier(.16, .84, .28, 1) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes enter {
  from { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* --- the hero deck: unfolds from a tilt as it scrolls, tilts to the pointer --- */
.float-deck { perspective: 1500px; perspective-origin: 50% 0%; }
.deck-row {
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    rotateX(calc(var(--unfold, 0) * 13deg))
    rotateY(calc(var(--px, 0) * 4deg))
    translateY(calc(var(--unfold, 0) * 46px))
    scale(calc(1 - var(--unfold, 0) * .045));
}
.deck-col, .stage-card { transform-style: preserve-3d; }

/* each card sits at its own depth so the pointer tilt reads as real space */
.stage-card { transform: translateZ(48px) translateY(calc(var(--py, 0) * -7px)); }
.deck-col .fcard { transform: translateZ(14px); }
.deck-col .fcard.lift { transform: translateY(-26px) translateZ(30px); }
.deck-col .fcard.sink { transform: translateY(14px) translateZ(6px); }

/* replaces the old plain rise — cards now arrive in depth */
body.ready .fcard, body.ready .stage-card {
  animation: deckIn .95s cubic-bezier(.16, .84, .28, 1) both;
}
@keyframes deckIn {
  from { opacity: 0; transform: translateY(50px) translateZ(-90px) rotateX(10deg); }
}

/* --- blobs drift on scroll --- */
.blobs i { will-change: transform; }
.blobs i:nth-child(1) { transform: rotate(18deg)  translateY(calc(var(--sy, 0) * .22px)); }
.blobs i:nth-child(2) { transform: rotate(-12deg) translateY(calc(var(--sy, 0) * .40px)); }
.blobs i:nth-child(3) { transform: rotate(-22deg) translateY(calc(var(--sy, 0) * .30px)); }
.blobs i:nth-child(4) { transform: rotate(14deg)  translateY(calc(var(--sy, 0) * .50px)); }
.blobs i:nth-child(5) { transform: translateX(-50%) rotate(45deg) translateY(calc(var(--sy, 0) * .16px)); }

/* --- section cards rise out of depth --- */
.d3 { opacity: 0; transform: perspective(1000px) rotateX(11deg) translateY(34px); }
.d3.in {
  opacity: 1; transform: none;
  transition: opacity .75s cubic-bezier(.16,.84,.28,1), transform .75s cubic-bezier(.16,.84,.28,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* headings lift slightly ahead of their cards */
.sec-head.d3.in { transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .anim, .d3 { opacity: 1 !important; transform: none !important; }
  .deck-row { transform: none !important; }
  .blobs i { transition: none; }
}

/* ============ admin sign-in gate ============ */

.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: linear-gradient(168deg, #2dd4bf 0%, #14b8a6 28%, #0d9488 66%, #0b7285 100%);
}
.gate::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 50% -6%, rgba(255,255,255,.5), transparent 62%);
}
.gate-card {
  position: relative; width: 100%; max-width: 380px;
  background: #fff; border-radius: var(--r-lg); padding: 30px;
  box-shadow: 0 40px 80px -30px rgba(2, 40, 42, .6);
}
.gate-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.gate-brand img { width: 34px; height: 34px; border-radius: 10px; }
.gate-brand b { font-size: 1.05rem; letter-spacing: -.02em; }
.gate-brand b span { font-weight: 500; color: var(--muted); }
.gate-card h1 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0 0 5px; }
.gate-sub { font-size: .86rem; color: var(--ink-2); margin: 0 0 22px; }
.gate-card .btn { margin-top: 6px; }

/* themed confirm modal — replaces the native confirm() for destructive
   admin actions, e.g. deleting an application */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 18, 26, .55); backdrop-filter: blur(3px);
  animation: fadeIn .15s ease both;
}
@keyframes fadeIn { from { opacity: 0; } }
.confirm-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: var(--r-lg);
  padding: 26px; text-align: center; box-shadow: 0 40px 80px -30px rgba(2, 40, 42, .6);
  animation: popIn .18s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.confirm-ic {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: #fef2f2; color: var(--danger);
}
.confirm-card h3 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -.01em; }
.confirm-card p { font-size: .86rem; color: var(--ink-2); margin: 0 0 22px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; margin-top: 0 !important; }
.confirm-danger {
  background: var(--danger) !important; box-shadow: 0 10px 22px -10px rgba(225,29,72,.6) !important;
}
.confirm-danger:hover { background: #be123c !important; }

/* status log on the sign-in card — diagnostics without opening DevTools */
.authlog {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-family: var(--mono); font-size: .68rem; line-height: 1.5;
  color: var(--muted); max-height: 130px; overflow-y: auto;
}
.authlog-row { padding: 2px 0; }
.authlog-row.ok  { color: var(--brand-dark); font-weight: 600; }
.authlog-row.err { color: var(--danger); font-weight: 600; }
.authlog-toggle {
  display: block; margin: 14px auto 0; padding: 0; background: none; border: none;
  font: inherit; font-size: .75rem; font-weight: 600; color: var(--muted);
  text-decoration: underline; cursor: pointer;
}
.authlog-toggle:hover { color: var(--ink-2); }

/* form helper text under a field */
.note-line { font-size: .74rem; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.field label .opt { color: var(--muted); font-weight: 400; }

/* custom tick checkbox, e.g. "Available on WhatsApp" under a phone field */
.check-line {
  display: flex !important; align-items: center; gap: 8px; margin-top: 10px !important;
  font-size: .82rem; font-weight: 500 !important; color: var(--ink-2); cursor: pointer;
  user-select: none;
}
.check-line input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.check-line .tick {
  width: 17px; height: 17px; border-radius: 5px; flex: none;
  border: 1.5px solid var(--border-strong); background: #fff;
  display: grid; place-items: center; color: transparent; transition: .15s;
}
.check-line input:checked + .tick {
  background: var(--grad); border-color: transparent; color: #fff;
}
.check-line input:focus-visible + .tick { box-shadow: 0 0 0 3.5px rgba(var(--brand-rgb), .18); }

/* ============ earnings calculator ============ */

#calc-section { position: relative; overflow: hidden; }
#calc-section::before {
  content: ''; position: absolute; z-index: -1;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .07), transparent 70%);
  top: -180px; right: -220px;
}

/* ============ revenue calculator ============ */

.rc-layout { display: grid; grid-template-columns: 220px 1fr; align-items: stretch; gap: 24px; position: relative; z-index: 1; }
.rc-hero-img { position: relative; height: 100%; }
.rc-hero-img::before {
  content: ''; position: absolute; inset: -14% -18% auto auto; width: 78%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .22), transparent 70%);
  filter: blur(6px); z-index: -1;
}
.rc-hero-img img {
  width: 100%; height: 100%; display: block; border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); border: 1px solid rgba(255,255,255,.6);
  object-fit: cover;
}

.rc3 {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); position: relative;
}

/* ---------------- light input side ---------------- */
.rc3-in {
  padding: 26px 28px; border-top-left-radius: var(--r-lg); border-bottom-left-radius: var(--r-lg);
}

.rc-plan-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: 11px;
  padding: 8px 13px; margin-bottom: 20px; width: fit-content;
}
.rc-plan-ic {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 7px; background: #fff; color: var(--brand-dark);
}
.rc-plan-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.rc-plan-value { font-size: .82rem; font-weight: 800; color: var(--brand-dark); }
.rc-plan-value span { font-weight: 600; opacity: .75; }

.rc3-in .row { margin-bottom: 20px; }
.rc3-in .row:last-child { margin-bottom: 0; }
.rc3-in .row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.rc3-in .row-top label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.rc3-in .row-top .val {
  font-family: var(--mono); font-weight: 800; font-size: .84rem; color: var(--brand-dark);
  background: var(--brand-tint); border-radius: 8px; padding: 3px 9px;
}

.row-static {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--border-strong);
}
.row-static b { font-family: var(--mono); font-size: .98rem; color: var(--brand-dark); }
.row-static span { font-size: .68rem; color: var(--muted); font-weight: 600; }

.num-field {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong);
  border-radius: 8px; padding: 3px 9px; background: #fbfdfe;
}
.num-field input {
  border: none; outline: none; background: transparent; text-align: right;
  font-family: var(--mono); font-weight: 800; font-size: .86rem; color: var(--brand-dark);
  /* ch is sized off this input's own monospace font, so 3 digits (this
     field goes up to 500) always fit instead of a fixed px clipping
     anything past 1-2 digits. Padding must be zeroed explicitly — the
     site-wide `input { padding: 12px 14px }` base rule doesn't get
     overridden just because this rule is more specific, since this rule
     never set padding at all; that 24px of vertical + 28px of horizontal
     padding was what was actually pushing the digits out of view. */
  width: 3.4ch; min-width: 30px; padding: 0; height: auto; line-height: normal;
}
.num-field input::-webkit-outer-spin-button,
.num-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rc-ticks {
  display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted);
  margin-top: 8px;
}

/* slider wrap — hosts the floating value bubble above the thumb */
.calc-slider-wrap { position: relative; padding-top: 24px; margin-top: -24px; }
.calc-bubble {
  position: absolute; top: -1px; left: 0; transform: translateX(-50%);
  background: var(--brand-dark); color: #fff; font-family: var(--mono);
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; transition: left .05s linear;
  box-shadow: 0 4px 10px -4px rgba(2,20,20,.5);
}
.calc-bubble::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--brand-dark);
}

/* custom range slider — filled track drawn by JS via inline background */
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: #eef2f6; /* overridden inline with a % gradient fill as it moves */
  outline: none; cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 3px 10px -2px rgba(var(--brand-rgb), .6);
  cursor: pointer; transition: transform .15s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 3px 10px -2px rgba(var(--brand-rgb), .6);
  cursor: pointer; border: none; outline: 3px solid var(--brand); outline-offset: -3px;
}
.calc-slider::-moz-range-track { height: 6px; border-radius: 999px; background: #eef2f6; }

/* ---------------- dark result side ---------------- */
.rc3-out {
  background: linear-gradient(160deg, #0f766e 0%, #0d9488 45%, #059669 100%);
  padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-top-right-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg);
}
.rc3-out::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 85%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(134,239,172,.32), transparent 70%);
}
.rc3-out::after {
  content: ''; position: absolute; inset: auto -20% -40% -10%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(52,211,153,.16), transparent 70%);
}

.money-badge {
  position: absolute; top: -26px; right: -26px; width: 128px; height: 128px;
  pointer-events: none; z-index: 2;
}
.money-badge::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(190,255,220,.55), rgba(52,211,153,0) 65%);
  filter: blur(2px);
}
.money-ic {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter:
    drop-shadow(0 3px 4px rgba(0,60,40,.35))
    drop-shadow(0 16px 22px rgba(0,30,20,.35));
  transform: rotate(9deg);
  animation: moneyFloat 4.5s ease-in-out infinite;
}
@keyframes moneyFloat {
  0%, 100% { transform: rotate(9deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-7px); }
}

.out-eyebrow { position: relative; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); margin-bottom: 7px; }
.out-value { position: relative; font-family: var(--mono); font-weight: 800; letter-spacing: -.02em; font-size: clamp(2.1rem, 4vw, 2.6rem); line-height: 1; margin-bottom: 5px; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.out-cap { position: relative; font-size: .8rem; color: rgba(255,255,255,.82); margin-bottom: 20px; }

.glass-row { position: relative; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.glass-chip {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); border-radius: 11px; padding: 10px 14px;
}
.glass-chip span:first-child { font-size: .8rem; color: rgba(255,255,255,.85); }
.glass-chip span:last-child { font-family: var(--mono); font-weight: 800; font-size: .92rem; }

.out-breakdown {
  position: relative; font-family: var(--mono); font-size: .7rem;
  color: rgba(255,255,255,.68); margin-bottom: 14px;
}

.out-cta {
  position: relative; margin-top: auto; text-align: center;
  background: #fff !important; color: var(--brand-dark) !important;
  box-shadow: 0 10px 22px -10px rgba(2,20,20,.5) !important;
}
.out-cta:hover { background: #f0fdfa !important; }

/* Mobile: full-width stacked cards instead of squeezed columns —
   banner image, then each control as its own bordered card, then the
   result panel as one full-width card at the end. Everything keeps
   its normal (near-desktop) font size since it no longer has to share
   width with anything else. */
@media (max-width: 760px) {
  #calc-section { padding-top: 40px; }
  #calc-section .sec-head { margin-bottom: 18px; }
  #calc-section .eyebrow { font-size: .62rem; padding: 4px 11px; margin-bottom: 10px; }
  #calc-section .sec-head h2 { font-size: 1.32rem; margin-bottom: 6px; }
  #calc-section .sec-head p { font-size: .74rem; line-height: 1.4; }

  #calc-section .rc-layout { grid-template-columns: 1fr; gap: 9px; }

  #calc-section .rc-hero-img { max-width: none; width: 100%; height: 78px; border-radius: var(--r-md, 12px); }
  #calc-section .rc-hero-img img { width: 100%; height: 100%; object-fit: cover; }

  #calc-section .rc3 { grid-template-columns: 1fr; background: transparent; box-shadow: none; gap: 9px; }

  #calc-section .rc3-in {
    padding: 0; border-radius: 0; display: flex; flex-direction: column; gap: 9px;
  }

  #calc-section .rc-plan-badge { width: 100%; margin-bottom: 0; padding: 6px 9px; border-radius: 9px; gap: 6px; }
  #calc-section .rc-plan-ic { width: 17px; height: 17px; border-radius: 5px; }
  #calc-section .rc-plan-ic svg { width: 10px; height: 10px; }
  #calc-section .rc-plan-label { font-size: .46rem; }
  #calc-section .rc-plan-value { font-size: .64rem; }

  #calc-section .row-static {
    border: none; padding: 0 2px; flex-direction: column-reverse; align-items: flex-start; gap: 1px;
  }
  #calc-section .row-static b { font-size: .92rem; }
  #calc-section .row-static span { font-size: .54rem; }

  #calc-section .rc3-in .row:not(:first-child) {
    margin-bottom: 0; background: #fff; border: 1px solid var(--border-strong);
    border-radius: 11px; padding: 10px 11px;
  }
  #calc-section .rc3-in .row-top label { font-size: .66rem; }
  #calc-section .rc3-in .row-top .val { font-size: .64rem; padding: 2px 7px; border-radius: 7px; }

  #calc-section .num-field { padding: 2px 7px; border-radius: 7px; }
  #calc-section .num-field input { width: 3ch; min-width: 22px; font-size: .64rem; }

  #calc-section .rc-ticks { font-size: .54rem; margin-top: 5px; }

  #calc-section .calc-slider-wrap { padding-top: 18px; margin-top: -18px; }
  #calc-section .calc-slider { height: 3px; }
  #calc-section .calc-slider::-webkit-slider-thumb { width: 11px; height: 11px; border-width: 2px; }
  #calc-section .calc-slider::-moz-range-thumb { width: 11px; height: 11px; }
  #calc-section .calc-bubble { font-size: .5rem; padding: 1px 5px; }

  #calc-section .rc3-out { border-radius: var(--r-md, 14px); padding: 13px 12px; }
  #calc-section .out-eyebrow { font-size: .5rem; margin-bottom: 3px; }
  #calc-section .out-value { font-size: 1.4rem; margin-bottom: 2px; }
  #calc-section .out-cap { font-size: .56rem; margin-bottom: 10px; }

  #calc-section .glass-row { gap: 6px; margin-bottom: 10px; }
  #calc-section .glass-chip { padding: 6px 9px; border-radius: 8px; }
  #calc-section .glass-chip span:first-child { font-size: .56rem; }
  #calc-section .glass-chip span:last-child { font-size: .68rem; }

  #calc-section .out-breakdown { font-size: .5rem; margin-bottom: 9px; }
  #calc-section .out-cta { padding: 8px 11px; font-size: .68rem; border-radius: 8px; }
  #calc-section .money-badge { width: 60px; height: 60px; top: -10px; right: -10px; }
}

/* ============ comparison table ============ */

.cmp-wrap {
  overflow-x: auto; overflow-y: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow); -webkit-overflow-scrolling: touch;
}
.cmp-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; min-width: 860px;
  table-layout: fixed;
}
.cmp-table th:first-child, .cmp-table td:first-child { width: 24%; }
/* Without an explicit width, fixed table layout was leaving the Zensia
   column — the one column this whole table exists to sell — narrower than
   every competitor column (103px vs. 188px on a phone). Give it a floor. */
.cmp-table th:last-child, .cmp-table td:last-child { width: 20%; }
.cmp-table th, .cmp-table td {
  padding: 17px 20px; text-align: left; font-size: .87rem;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.cmp-table thead th {
  font-size: .74rem; font-weight: 700; color: var(--ink-2); background: #f8fafc;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border-strong);
}
.cmp-table tbody th {
  font-weight: 600; font-size: .84rem; color: var(--ink); white-space: normal;
  background: #fff;
}
.cmp-th-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--grad-soft); color: var(--brand-dark);
  margin-right: 12px; vertical-align: middle;
}
.cmp-th-ic svg { width: 19px; height: 19px; }
.cmp-table tbody tr:hover th, .cmp-table tbody tr:hover td:not(.cmp-win) { background: #fafcfe; }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: none; }

.cmp-sub { font-weight: 500; opacity: .8; font-size: .82rem; text-transform: none; letter-spacing: 0; }
.cmp-note { color: var(--muted); font-size: .78rem; }

/* feature cells — small circular icon + text, not bare glyphs.
   NB: never set display:flex on a <td> itself — it overrides display:table-cell
   and breaks the table's row/column structure. The icon is an inline-block
   ::before instead, sitting on the same line as the text. */
.cmp-yes, .cmp-no, .cmp-partial { line-height: 19px; }
.cmp-yes::before, .cmp-no::before, .cmp-partial::before {
  content: ''; display: inline-block; vertical-align: middle; margin-right: 9px;
  width: 19px; height: 19px; border-radius: 50%;
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.cmp-yes::before {
  background-color: var(--ok-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
}
.cmp-no { color: var(--muted); }
.cmp-no::before {
  background-color: #f1f5f9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.cmp-partial::before {
  background-color: var(--warn-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

/* winning column — its own elevated "card" running through the table */
.cmp-win {
  background: var(--brand-tint); font-weight: 600; color: var(--brand-dark);
  position: relative; box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand);
}
.cmp-table tbody tr:hover .cmp-win { background: #e3faf5; }

.cmp-table thead th.cmp-win {
  background: var(--grad); color: #fff; padding-top: 14px; padding-bottom: 14px;
  box-shadow: none;
}
.cmp-win-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-crown {
  font-size: .64rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  background: rgba(255,255,255,.24); padding: 3px 9px; border-radius: 999px;
}

.cmp-sources {
  max-width: 760px; margin: 20px auto 0; text-align: center;
  font-size: .74rem; line-height: 1.6; color: var(--muted);
}
/* the mobile grid has its own compact .cmp-mobile-note instead */
@media (max-width: 760px) { .cmp-sources { display: none; } }

/* Below 760px the full data table gives way to .cmp-mobile — a same-screen
   icon grid needs no horizontal scrolling at all, which reads much better
   than even a sticky-column table on a phone. */
.cmp-mobile { display: none; }
@media (max-width: 760px) {
  .cmp-desktop { display: none; }
  .cmp-mobile { display: block; }
}

.cmp-mobile-grid {
  display: grid; grid-template-columns: 1.7fr repeat(4, 0.92fr);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
/* Grid tracks default to a content-based minimum, so one long unbreakable
   word (e.g. "cloud-synced") was quietly forcing its column wider than its
   1fr share, pushing the last columns off the 390px screen entirely. */
.cmp-mobile-grid > * { min-width: 0; }

.cmp-mh-corner { background: #f8fafc; border-bottom: 1px solid var(--border-strong); }
.cmp-mh-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 14px 3px; background: #f8fafc; border-bottom: 1px solid var(--border-strong);
}
.cmp-mh-label { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--ink-2); line-height: 1.3; overflow-wrap: break-word; }

.cmp-mh-cell.cmp-mh-win {
  background: var(--grad); margin: 4px; border-radius: 12px; padding: 14px 4px;
  border-bottom: none; box-shadow: 0 8px 16px -8px rgba(var(--brand-rgb), .6);
}
.cmp-mh-win .cmp-mh-label { color: #fff; }

.cmp-mr-label {
  display: flex; align-items: center; gap: 5px; padding: 10px 5px;
  font-size: .62rem; font-weight: 700; color: var(--ink); line-height: 1.3;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
}
/* Flex items don't shrink below their content's min-content width by
   default — a bare text node as a flex child (e.g. "Unauthorised" as one
   unbreakable word) was overflowing sideways into the next grid column
   instead of wrapping. min-width:0 on the wrapping span is what actually
   lets overflow-wrap do its job. */
.cmp-mr-text { min-width: 0; overflow-wrap: break-word; }
.cmp-mr-ic {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--grad-soft); color: var(--brand-dark);
}
.cmp-mr-ic svg { width: 12px; height: 12px; }
.cmp-mr-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 4px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.cmp-mr-cell small { font-size: .5rem; line-height: 1.25; color: var(--muted); overflow-wrap: break-word; }
.cmp-mr-cell.cmp-mr-win { background: var(--brand-tint); box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.cmp-mr-cell.cmp-mr-win small { color: var(--brand-dark); }

/* Same glyphs as the desktop table's .cmp-yes/.cmp-no/.cmp-partial, but under
   their own names — .cmp-no/.cmp-partial are already used by the desktop
   <td> cells, and reusing them here was silently squashing those cells to
   an 18px box on every screen size, not just mobile. */
.cmp-ok, .cmp-m-no, .cmp-m-partial { display: block; width: 18px; height: 18px; border-radius: 50%; background-size: 10px; background-repeat: no-repeat; background-position: center; }
.cmp-ok { background-color: var(--ok-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E"); }
.cmp-m-no { background-color: #f1f5f9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.cmp-m-partial { background-color: var(--warn-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* pricing: full-width rows instead of a 4th-of-the-screen grid column */
.cmp-price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; margin-top: 12px; box-shadow: var(--shadow);
}
.cmp-price-head {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); margin-bottom: 8px;
}
.cmp-price-head-2 { margin-top: 14px; }
.cmp-price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.cmp-price-row span { font-size: .72rem; color: var(--ink-2); flex: 1; }
.cmp-price-row b { font-size: .72rem; font-weight: 700; color: var(--ink); text-align: right; }
.cmp-price-row.cmp-price-win {
  background: var(--brand-tint); margin: 0 -8px; padding: 8px; border-radius: 8px; border-bottom: none;
}
.cmp-price-row.cmp-price-win span, .cmp-price-row.cmp-price-win b { color: var(--brand-dark); }

.cmp-mobile-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px;
  background: var(--ok-tint); border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 12px 14px; font-size: .74rem; line-height: 1.5; color: #047857;
}
.cmp-mn-ic { flex: none; }

/* admin: plan tag and the free-text needs column */
.plan { font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.plan.sm { background: #f1f5f9; color: var(--ink-2); }
.plan.lg { background: var(--brand-tint); color: var(--brand-dark); }
td.needs {
  max-width: 220px; font-size: .8rem; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help;
}
