/* ============== Kelo Media — shared design system ============== */
:root {
  --white: #ffffff;
  --off: #fbfbfd;
  --soft: #f5f5f7;
  --line: #d2d2d7;
  --line-2: #ebebef;
  --ink: #1d1d1f;
  --ink-2: #494949;
  --ink-3: #6e6e73;

  --black: #000000;
  --near: #0a0a0c;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --on-dark-3: #6e6e73;

  --blue: #0066cc;
  --blue-hover: #0077ed;
  --blue-light: #2997ff;

  --wide: 1280px;
  --mid: 1024px;
  --narrow: 760px;
  --radius: 18px;
  --radius-lg: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--off);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.47;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ============== Top nav (Apple-style global bar) ============== */
.orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd6e8 0%, #ff6b9d 22%, #a855f7 55%, #22d3ee 100%);
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3);
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.orb::after {
  content: "";
  position: absolute;
  top: 18%; left: 22%;
  width: 30%; height: 30%;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  filter: blur(1px);
}

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  background: rgba(0,0,0,0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  z-index: 200;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: -0.005em;
}
.topnav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topnav-brand {
  font-size: 14px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.015em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topnav-links {
  display: flex;
  gap: 0;
  align-items: center;
}
.topnav-links a {
  padding: 0 14px;
  transition: color 0.2s;
  white-space: nowrap;
}
.topnav-links a:hover { color: white; }
.topnav-links a.active { color: white; }
.topnav-cta {
  color: white !important;
  font-weight: 500;
}
.topnav-toggle { display: none; }

/* ============== Sub-nav (sticky page nav) ============== */
.subnav {
  position: sticky;
  top: 44px;
  height: 52px;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 100;
  font-size: 12px;
}
.subnav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.subnav-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.subnav-links {
  display: flex;
  gap: 22px;
  color: var(--ink-2);
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { white-space: nowrap; transition: color 0.2s; }
.subnav-links a:hover { color: var(--ink); }
.subnav-links a.active { color: var(--ink); font-weight: 500; }
.subnav-cta {
  color: var(--blue) !important;
  font-weight: 500;
}

/* ============== Layout ============== */
.container { max-width: var(--mid); margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 22px; }

/* ============== Type ============== */
.display-xxl {
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.display-xl {
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.display-lg {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display-md {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.012em;
}
.eyebrow {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.eyebrow-dark { color: var(--on-dark-2); }
.pricing {
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  margin-top: 16px;
}
.pricing-dark { color: var(--on-dark-2); }
.pricing strong { font-weight: 500; color: var(--ink); }
.pricing-dark strong { color: white; }
.from { font-size: 14px; color: var(--ink-3); }
.from-dark { color: var(--on-dark-3); }
.dot-sep {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.45;
}

/* ============== Buttons (Apple pill style) ============== */
.btn-row {
  display: inline-flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  align-items: center;
}
.btn-row.center { justify-content: center; display: flex; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 17px;
  letter-spacing: -0.012em;
  font-weight: 400;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-fill { background: var(--blue); color: white; }
.btn-fill:hover { background: var(--blue-hover); }
.btn-fill-light { background: white; color: var(--ink); }
.btn-fill-light:hover { background: #e8e8ed; }
.btn-link { color: var(--blue); padding: 8px 0; }
.btn-link:hover { text-decoration: underline; }
.btn-link-dark { color: var(--blue-light); }
.btn-link-dark:hover { text-decoration: underline; }
.btn .ch { display: inline-block; transition: transform 0.2s; font-weight: 300; }
.btn:hover .ch { transform: translateX(2px); }

/* ============== Sections / panels ============== */
.panel {
  padding: 100px 22px;
  position: relative;
}
.panel-light { background: var(--off); color: var(--ink); }
.panel-soft { background: var(--soft); color: var(--ink); }
.panel-white { background: var(--white); color: var(--ink); }
.panel-dark { background: var(--black); color: white; }
.panel-near { background: var(--near); color: white; }

/* Centered feature header */
.feature {
  max-width: var(--mid);
  margin: 0 auto;
  text-align: center;
}
.feature h2 { margin-top: 4px; }
.feature-sub {
  max-width: 580px;
  margin: 18px auto 0;
}
.panel-light .feature-sub, .panel-soft .feature-sub, .panel-white .feature-sub { color: var(--ink-2); }
.panel-dark .feature-sub, .panel-near .feature-sub { color: var(--on-dark-2); }

/* ============== Page hero (used on inner pages) ============== */
.page-hero {
  padding: 130px 22px 70px;
  text-align: center;
  background: var(--off);
}
.page-hero h1 {
  max-width: 18ch;
  margin: 0 auto;
}
.page-hero .hero-sub {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--ink-2);
}
.page-hero .hero-sub.lede { color: var(--ink-2); }
.page-hero-tag {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.page-hero.dark { background: var(--black); color: white; }
.page-hero.dark .hero-sub, .page-hero.dark .lede { color: var(--on-dark-2); }
.page-hero.dark .page-hero-tag { color: var(--on-dark-2); }

/* ============== Split (text + visual) ============== */
.split {
  max-width: var(--wide);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split.flip > :first-child { order: 2; }
}
.split-text h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.split-text p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 44ch;
}
.panel-dark .split-text p, .panel-near .split-text p { color: var(--on-dark-2); }

/* Feature bullet list */
.feat-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.panel-dark .feat-list, .panel-near .feat-list { color: var(--on-dark-2); }
.feat-list li {
  padding-left: 18px;
  position: relative;
}
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.panel-dark .feat-list li::before, .panel-near .feat-list li::before { background: var(--blue-light); }

/* ============== Browser frame ============== */
.browser-frame {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 40px 80px -20px rgba(0,0,0,0.25);
  position: relative;
  transition: box-shadow 0.4s ease;
}
.browser-frame:hover {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 50px 90px -20px rgba(0,0,0,0.32);
}
/* Scrollable "live preview" body — user controls the scroll */
.browser-body.scrollable {
  max-height: 520px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.18) transparent;
}
.browser-body.scrollable::-webkit-scrollbar { width: 8px; }
.browser-body.scrollable::-webkit-scrollbar-track { background: transparent; }
.browser-body.scrollable::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.16);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.browser-body.scrollable::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); background-clip: padding-box; }
.browser-canvas { position: relative; display: block; }
.browser-canvas img { display: block; width: 100%; }

/* Clickable hotspots pinned to the screenshot */
.hotspot-wrap {
  position: absolute;
  z-index: 5;
}
.hotspot {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28), 0 0 0 0 rgba(0,102,204,0.55);
  animation: hotspotPulse 2.2s ease-in-out infinite;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hotspot::before {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  font-family: -apple-system, sans-serif;
}
.hotspot:hover { transform: scale(1.12); animation-play-state: paused; }
.hotspot.open {
  animation: none;
  background: var(--ink);
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
/* Inline .hotspot-tip is hidden — we render via JS portal so tips escape clipping */
.hotspot-tip { display: none; }

/* Portal-rendered tip (positioned via JS, fixed to viewport) */
.hotspot-tip-portal {
  position: fixed;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.4;
  max-width: 260px;
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2,0.9,0.2,1.1);
  z-index: 1000;
  white-space: normal;
}
.hotspot-tip-portal.in {
  opacity: 1;
  transform: translateY(0);
}
.hotspot-tip-portal::before {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 10px; height: 10px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.hotspot-tip-portal[data-arrow="top"]::before { top: -5px; }
.hotspot-tip-portal[data-arrow="bottom"]::before { bottom: -5px; }
.hotspot-tip-portal strong { color: white; font-weight: 600; }

@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.28), 0 0 0 0 rgba(0,102,204,0.55); }
  60%      { box-shadow: 0 4px 12px rgba(0,0,0,0.28), 0 0 0 14px rgba(0,102,204,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot { animation: none; }
}

/* Lead "received" toast over the phone */
.lead-toast {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0,0,0,0.92);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2,0.9,0.2,1.2);
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.lead-toast.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lead-toast .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #34c759;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Clickable cursors */
.live-feed-row { cursor: pointer; }
.live-feed-row:hover .item.in .who { color: var(--blue); }
.lead-counter { cursor: pointer; transition: transform 0.2s; }
.lead-counter:hover { transform: scale(1.03); }
.phone-feed-card .btn-mini { cursor: pointer; user-select: none; transition: background 0.2s, transform 0.15s; }
.phone-feed-card .btn-mini:hover { background: #d6dae0; }
.phone-feed-card .btn-mini:active { transform: scale(0.94); }

.browser-chrome {
  height: 36px;
  background: #f0f0f3;
  border-bottom: 1px solid #e1e1e6;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; background: #d6d6d9; }
.browser-dot.r { background: #fc5d57; }
.browser-dot.y { background: #fdbc40; }
.browser-dot.g { background: #33c849; }
.browser-url {
  flex: 1;
  background: white;
  border-radius: 6px;
  height: 22px;
  max-width: 380px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.browser-url .lock { color: var(--ink-3); margin-right: 6px; font-size: 10px; }
.browser-spacer { width: 36px; }
.browser-body img { width: 100%; height: auto; display: block; }

/* Hero browser stage */
.hero-stage {
  margin: 60px auto 0;
  max-width: 1100px;
  padding: 0 22px;
}

/* ============== Phone mockup ============== */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}
.phone {
  width: 280px;
  aspect-ratio: 9 / 19;
  background: #1d1d1f;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.06);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.2,1.05);
}
@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; }
}

/* Live "lead" notification card */
.live-feed {
  position: absolute;
  right: -8px;
  top: 18%;
  width: 230px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.live-feed-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.live-feed-head .live-dot {
  width: 7px; height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,59,48,0.2);
  animation: livePulse 1.6s ease-in-out infinite;
}
.live-feed-head .live-label { color: #ff3b30; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,59,48,0.2); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px rgba(255,59,48,0); transform: scale(1.15); }
}
.live-feed-row {
  position: relative;
  min-height: 40px;
}
.live-feed-row > .item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2,0.9,0.2,1.1);
}
.live-feed-row > .item.in {
  opacity: 1;
  transform: translateY(0);
}
.live-feed-row .who {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.live-feed-row .what {
  font-size: 12px;
  color: var(--ink-3);
}
.live-feed-row .when {
  font-size: 10px;
  color: var(--ink-3);
  opacity: 0.7;
  margin-top: 2px;
}

/* Counter pill below */
.lead-counter {
  position: absolute;
  left: -8px;
  bottom: 14%;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.45);
  z-index: 10;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lead-counter strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.lead-counter .arrow {
  color: #34c759;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .live-feed, .lead-counter { display: none; }
}

.phone-screen {
  width: 100%; height: 100%;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ===== Phone view stack (ad / form / success) ===== */
.phone-view {
  position: absolute;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2,0.9,0.2,1.05);
  z-index: 1;
}
.phone-view.in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}
.phone-view-form {
  padding: 50px 16px 16px;
}
.phone-back {
  position: absolute;
  top: 14px; left: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 3;
}
.phone-back:hover { background: #f0f0f3; }
.phone-form-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--ink);
}
.phone-form-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.phone-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.phone-field label {
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.phone-field input {
  background: #f0f0f3;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.phone-field input:focus {
  outline: none;
  background: white;
  border-color: var(--blue);
}
.phone-submit {
  margin-top: 6px;
  background: var(--blue);
  color: white;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.phone-submit:hover { background: var(--blue-hover); }
.phone-submit:active { transform: scale(0.97); }
.phone-form-foot {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 10px;
  text-align: center;
}
.phone-view-success {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
}
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #34c759;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 20px;
  animation: successPop 0.6s cubic-bezier(0.2,0.9,0.2,1.4);
}
@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.phone-view-success h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.phone-view-success p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ===== Particles ===== */
.lead-particle {
  position: fixed;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34c759;
  pointer-events: none;
  z-index: 250;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(52,199,89,0.55);
}
.lead-particle.blue { background: var(--blue-light); box-shadow: 0 0 6px rgba(41,151,255,0.55); }

/* ===== Cursor spotlight in dark sections ===== */
.panel-dark, .panel-near {
  isolation: isolate;
}
.panel-dark::after, .panel-near::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.panel-dark.lit::after, .panel-near.lit::after { opacity: 1; }
.panel-dark > *, .panel-near > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .panel-dark::after, .panel-near::after { display: none; }
}

/* ===== Ad-spend estimator ===== */
.estimator {
  margin-top: 28px;
  padding: 22px 24px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  max-width: 460px;
}
.estimator-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.estimator-head .title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  text-transform: uppercase;
}
.estimator-head .live {
  font-size: 11px;
  color: var(--blue-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.estimator-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--on-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.estimator-row .value {
  font-weight: 600;
  color: white;
}
.estimator-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--blue-light) 0%, var(--blue-light) var(--pct, 20%), rgba(255,255,255,0.14) var(--pct, 20%), rgba(255,255,255,0.14) 100%);
  border-radius: 2px;
  outline: none;
  margin-bottom: 18px;
  cursor: grab;
}
.estimator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.15s;
}
.estimator-slider:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.estimator-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.estimator-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.estimator-stats > div { display: flex; flex-direction: column; }
.estimator-stats strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.estimator-stats span {
  font-size: 11px;
  color: var(--on-dark-2);
  margin-top: 6px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.estimator-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--on-dark-3);
  opacity: 0.75;
  line-height: 1.45;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #1d1d1f;
  border-radius: 12px;
  z-index: 10;
}
.phone-statusbar {
  padding: 16px 22px 6px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.phone-app-header {
  padding: 6px 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #efeff2;
}
.phone-app-header .fb-logo {
  font-size: 18px;
  font-weight: 800;
  color: #1877f2;
  letter-spacing: -0.02em;
}
.phone-feed-card {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.phone-feed-card::-webkit-scrollbar { display: none; }
.phone-post {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 6px solid #f0f2f5;
}
.phone-post:last-child { border-bottom: none; }
.phone-post .ad-author.small .av { width: 26px; height: 26px; font-size: 10px; }
.phone-post .ad-author.small .name { font-size: 12px; }
.phone-post .ad-author.small .sponsored { font-size: 10px; }

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  padding: 4px 0 2px;
}
.post-meta .post-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
}
.post-meta .heart {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b30, #ff2d55);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid #efeff2;
}
.post-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  border: none;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}
.post-action:hover { background: #f0f2f5; }
.post-action:active { transform: scale(0.95); }
.post-action.liked { color: #1877f2; }
.post-action .heart-icon { display: inline-block; font-size: 13px; transition: transform 0.2s cubic-bezier(0.2,0.9,0.3,1.4); }
.post-action.liked .heart-icon { color: #1877f2; transform: scale(1.15); }
@keyframes likePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1.15); }
}
.post-action.just-liked .heart-icon { animation: likePop 0.4s ease-out; }

.phone-notif {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(20px);
  color: white;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-30px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1.2);
  pointer-events: none;
  box-shadow: 0 14px 36px -8px rgba(0,0,0,0.5);
}
.phone-notif.in { opacity: 1; transform: translateY(0) scale(1); }
.phone-notif .av {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff6b9d, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.phone-notif .body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.phone-notif .title { font-size: 11px; font-weight: 600; }
.phone-notif .msg { font-size: 11px; opacity: 0.85; }
.phone-notif .when { margin-left: auto; font-size: 10px; opacity: 0.6; flex-shrink: 0; }

.phone-notch { cursor: pointer; transition: background 0.2s; }
.phone-notch:hover { background: #2a2a2c; }
.ad-author { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ad-author .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2c, #4a4a4c);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.ad-author .name { font-weight: 600; color: var(--ink); }
.ad-author .sponsored { color: var(--ink-3); font-size: 11px; }
.ad-copy { font-size: 12px; color: var(--ink); line-height: 1.4; }
.ad-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: white;
  background: #0a3d62;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 40%),
    linear-gradient(135deg, #0e4f7d 0%, #0a3d62 50%, #062a47 100%);
}
.ad-image .ba-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 8px;
  border-radius: 4px;
}
.ad-image .ba-offer {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.ad-image .ba-offer-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: -0.005em;
}
.ad-image .ba-foot {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  align-self: flex-end;
}
.ad-cta {
  background: #f0f2f5;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.ad-cta .label { color: var(--ink-3); font-size: 10px; }
.ad-cta .head { color: var(--ink); font-weight: 600; font-size: 12px; }
.ad-cta .btn-mini {
  background: #e4e6eb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

/* ============== Stats / metric grid ============== */
.metric-grid {
  max-width: 1100px;
  margin: 60px auto 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel-dark .metric-grid, .panel-near .metric-grid { background: #2a2a2c; }
.metric {
  background: var(--off);
  padding: 28px 22px;
}
.panel-dark .metric, .panel-near .metric { background: var(--near); }
.metric-num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.metric-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
}
.panel-dark .metric-label, .panel-near .metric-label { color: var(--on-dark-2); }
@media (max-width: 720px) {
  .metric-grid { grid-template-columns: 1fr; }
}

.metric-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .metric-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============== Work feature ============== */
.work-hero {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 22px;
}
.work-caption {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.work-caption .meta { font-size: 14px; color: var(--ink-3); }
.work-caption .name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
}

/* ============== Process / step cards ============== */
.steps-grid {
  max-width: var(--wide);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  border: 1px solid var(--line-2);
}
.panel-dark .step-card, .panel-near .step-card {
  background: #131316;
  border-color: #2a2a2c;
  color: white;
}
.step-num {
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step-card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.panel-dark .step-card p, .panel-near .step-card p { color: var(--on-dark-2); }

/* ============== Compare table ============== */
.compare-wrap {
  max-width: var(--wide);
  margin: 56px auto 0;
  overflow-x: auto;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}
.compare thead th {
  padding: 24px 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th .col-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 6px;
  letter-spacing: 0;
}
.compare thead th .col-price {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  font-weight: 400;
}
.compare tbody td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.compare tbody tr td:first-child {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  width: 28%;
}
.compare .check { color: var(--blue); font-weight: 500; }
.compare .dash { color: var(--ink-3); opacity: 0.5; }
.compare tfoot td { padding: 22px 18px; }

/* ============== FAQ accordion ============== */
.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}
.faq-group-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 32px 0 6px;
  padding-bottom: 6px;
}
.faq-group-title:first-child { margin-top: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-list > .faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.018em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink);
}
.faq-plus {
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-2);
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 64ch;
}

/* ============== Prose (about / privacy / blog post) ============== */
.prose {
  max-width: var(--narrow);
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 56px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}
.prose p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul {
  margin: 14px 0 20px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  list-style: disc;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }

.founder-note {
  margin-top: 56px;
  padding: 36px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
}
.founder-note .eyebrow {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.founder-note p {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.founder-note .sig {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 0;
}

/* ============== Article (blog post) ============== */
.article-shell {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 110px 22px 80px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 32px;
}
.article-back:hover { text-decoration: underline; }
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.article-meta span:first-child {
  color: var(--blue);
  font-weight: 500;
}
.article-shell h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.article-lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 40px;
  letter-spacing: -0.012em;
}
.article-shell h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 48px 0 14px;
}
.article-shell h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 28px 0 8px;
}
.article-shell p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.article-shell p strong { color: var(--ink); font-weight: 600; }
.article-shell ul, .article-shell ol {
  margin: 14px 0 20px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  list-style: disc;
}
.article-shell ol { list-style: decimal; }
.article-shell li { margin-bottom: 6px; }
.article-shell a { color: var(--blue); }
.article-shell a:hover { text-decoration: underline; }
.article-shell blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin: 24px 0;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}

/* Buttons inside articles: prevent .article-shell a {color:blue} from making
   filled-button text invisible. Needed for .btn-fill (new posts) AND legacy
   .btn-primary (old posts). */
.article-shell a.btn-fill,
.article-shell a.btn-primary,
.prose a.btn-fill,
.prose a.btn-primary { color: white; }
.article-shell a.btn-fill:hover,
.article-shell a.btn-primary:hover { color: white; }

/* Legacy button class aliases used by older blog posts */
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { color: var(--blue); padding: 8px 0; }
.btn-secondary:hover { text-decoration: underline; }
.btn .arrow { display: inline-block; transition: transform 0.2s; font-weight: 300; }
.btn:hover .arrow { transform: translateX(2px); }

/* Article CTA block — previously unstyled, buttons blended into the white page */
.article-cta {
  margin: 56px 0 32px;
  padding: 36px 28px;
  background: var(--soft);
  border-radius: 24px;
  text-align: center;
}
.article-shell .article-cta h3 {
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.article-shell .article-cta p {
  margin: 0 0 24px;
}
.article-cta .btn-row,
.article-cta .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

/* Bottom-of-article "back to all articles" link spacing */
.article-back-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
}
.article-back-bottom a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.article-back-bottom a:hover { text-decoration: underline; }

/* ============== Blog grid ============== */
.blog-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 240px;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.18);
  border-color: var(--line);
}
.blog-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.blog-card .meta .tag {
  color: var(--blue);
  font-weight: 500;
}
.blog-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink);
}
.blog-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
}
.blog-card .read {
  color: var(--blue);
  font-size: 14px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card:hover .read .ch { transform: translateX(2px); }
.blog-card .read .ch { display: inline-block; transition: transform 0.2s; font-weight: 300; }

/* ============== Contact form ============== */
.contact-grid {
  max-width: var(--mid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}
.contact-aside h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.contact-aside p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 22px;
}
.email-link {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.email-link:hover { color: var(--blue); border-color: var(--blue); }
.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  padding: 36px;
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field textarea {
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.hidden-field { display: none; }

/* ============== Booking expect ============== */
.booking-expect {
  max-width: 720px;
  margin: 0 auto;
}
.booking-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
@media (max-width: 720px) {
  .booking-expect-grid { grid-template-columns: 1fr; }
}
.booking-expect-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line-2);
}
.booking-expect-item .ix {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 8px;
}
.booking-expect-item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.booking-expect-item p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.booking-calendar {
  max-width: 980px;
  margin: 50px auto 0;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  padding: 28px;
  min-height: 500px;
}
.booking-calendar .placeholder {
  text-align: center;
  padding: 80px 20px;
}
.booking-calendar .placeholder p {
  font-size: 14px;
  color: var(--ink-3);
}

/* ============== Final CTA ============== */
.cta-final {
  text-align: center;
  padding: 120px 22px;
}
.cta-final h2 { max-width: 18ch; margin: 0 auto; }
.cta-final .lede {
  max-width: 540px;
  margin: 20px auto 0;
}
.cta-final .btn-row { justify-content: center; display: flex; margin-top: 32px; }
.cta-final.panel-dark .lede { color: var(--on-dark-2); }

/* ============== Footer ============== */
.footer {
  background: var(--soft);
  color: var(--ink-3);
  padding: 40px 22px 32px;
  font-size: 12px;
  line-height: 1.45;
}
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-disclaimers {
  max-width: var(--wide);
  margin: 0 auto 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.footer-disclaimers p {
  margin-bottom: 10px;
  max-width: 80ch;
}
.footer-cols {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom {
  max-width: var(--wide);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============== Spinnable orb in topnav ============== */
.topnav-brand .orb {
  width: 14px;
  height: 14px;
  cursor: grab;
  touch-action: none;
  transition: transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
  transform-origin: 50% 50%;
}
.topnav-brand .orb.dragging { transition: none; cursor: grabbing; }

/* ============== Cursor trail (dark sections) ============== */
.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.cursor-trail.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-trail { display: none; } }

/* ============== Clickable stat / metric numbers ============== */
.stat-num, .metric-num {
  cursor: pointer;
  transition: color 0.3s, transform 0.15s;
}
.stat-num:hover, .metric-num:hover { color: var(--blue-light); }
.panel-light .stat-num:hover, .panel-light .metric-num:hover,
.panel-soft .stat-num:hover, .panel-soft .metric-num:hover { color: var(--blue); }
.stat-num:active, .metric-num:active { transform: scale(0.96); }

/* ============== Compare table column spotlight ============== */
.compare.spotlight tbody td:not(.col-active),
.compare.spotlight thead th:not(.col-active) {
  opacity: 0.32;
  transition: opacity 0.3s ease;
}
.compare.spotlight .col-active {
  background: rgba(0,102,204,0.06);
}
.compare thead th { cursor: pointer; transition: background 0.2s; user-select: none; }
.compare thead th:first-child { cursor: default; }
.compare thead th:hover:not(:first-child) { background: rgba(0,102,204,0.04); }

/* ============== Command palette ============== */
.kpalette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kpalette-overlay.in { display: flex; opacity: 1; }
.kpalette {
  width: min(560px, 92vw);
  background: white;
  border-radius: 16px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.25s cubic-bezier(0.2,0.9,0.2,1.05);
}
.kpalette-overlay.in .kpalette { transform: scale(1) translateY(0); }
.kpalette-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.kpalette-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
  font-family: inherit;
  letter-spacing: -0.012em;
}
.kpalette-search input::placeholder { color: var(--ink-3); }
.kpalette-search .icon { font-size: 16px; color: var(--ink-3); }
.kpalette-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
}
.kpalette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: background 0.12s;
  cursor: pointer;
}
.kpalette-item.active,
.kpalette-item:hover { background: rgba(0,102,204,0.08); }
.kpalette-item .k-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.kpalette-item.active .k-icon { background: var(--blue); color: white; }
.kpalette-item .k-text { flex: 1; min-width: 0; }
.kpalette-item .k-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}
.kpalette-item .k-meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.kpalette-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.kpalette-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--off);
  letter-spacing: 0.02em;
  align-items: center;
}
.kpalette-foot kbd {
  padding: 2px 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: var(--ink-2);
  margin: 0 2px;
  font-weight: 500;
}

/* ============== Tag filter chips (blog index) ============== */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.tag-chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 980px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}
.tag-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.tag-chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.tag-chip .count {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.5;
}
.blog-card.hide {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* ============== FAQ search ============== */
.faq-search {
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}
.faq-search input {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 46px 14px 46px;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}
.faq-search .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
  pointer-events: none;
}
.faq-search .clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink-2);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}
.faq-search.has-value .clear { display: inline-flex; }
.faq-item.hide { display: none; }
.faq-no-match {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
  font-size: 14px;
  display: none;
}
.faq-no-match.show { display: block; }

/* ============== Reading progress (article) ============== */
.read-progress {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 198;
  pointer-events: none;
}
.read-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--blue), var(--blue-light));
  width: 0;
  transition: width 0.05s linear;
}

/* ============== Article TOC (floating) ============== */
.article-toc {
  position: fixed;
  top: 120px;
  left: 20px;
  width: 230px;
  z-index: 90;
  font-size: 12.5px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  display: none;
  flex-direction: column;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.12);
  max-height: 70vh;
  overflow-y: auto;
}
@media (min-width: 1320px) { .article-toc { display: flex; } }
.article-toc .toc-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
  padding: 0 4px;
}
.article-toc a {
  color: var(--ink-2);
  padding: 6px 8px 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  line-height: 1.4;
  display: block;
}
.article-toc a:hover {
  background: rgba(0,102,204,0.05);
  color: var(--ink);
}
.article-toc a.active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 500;
}

/* ============== KPI gauges (work page) ============== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 56px auto 0;
}
@media (max-width: 760px) { .kpi-row { grid-template-columns: 1fr; gap: 16px; } }
.kpi-card {
  background: var(--near);
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  border: 1px solid #2a2a2c;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.kpi-card:hover { transform: translateY(-3px); border-color: #3a3a3c; }
.kpi-gauge {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  position: relative;
}
.kpi-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.kpi-gauge .track {
  fill: none;
  stroke: rgba(255,255,255,0.09);
  stroke-width: 10;
}
.kpi-gauge .progress {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.9, 0.3, 1), stroke 0.3s;
}
.kpi-gauge .progress.high { stroke: #34c759; }
.kpi-gauge .progress.med  { stroke: #ffcc00; }
.kpi-gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: white;
  font-variant-numeric: tabular-nums;
}
.kpi-gauge-num small {
  font-size: 14px;
  margin-left: 2px;
  color: var(--on-dark-2);
  font-weight: 500;
}
.kpi-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 4px;
}
.kpi-card p {
  font-size: 13px;
  color: var(--on-dark-2);
  line-height: 1.4;
  max-width: 26ch;
  margin: 0 auto;
}

/* ============== Urgency chips (contact form) ============== */
.urgency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.urgency-chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--soft);
  border: 1.5px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  font-family: inherit;
}
.urgency-chip:hover { background: white; border-color: var(--line); }
.urgency-chip.selected {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ============== Dark theme ============== */
body.dark-theme {
  --off: #0a0a0c;
  --soft: #131316;
  --white: #18181b;
  --line: #2a2a2c;
  --line-2: #1f1f22;
  --ink: #f5f5f7;
  --ink-2: #c8c8cc;
  --ink-3: #86868b;
  background: var(--off);
  color: var(--ink);
}
body.dark-theme .footer { background: #131316; }
body.dark-theme .browser-frame { background: #1a1a1d; }
body.dark-theme .browser-chrome { background: #1a1a1d; border-bottom-color: #2a2a2c; }
body.dark-theme .browser-url { background: #2a2a2c; color: var(--ink-2); }
body.dark-theme .step-card,
body.dark-theme .booking-expect-item,
body.dark-theme .blog-card,
body.dark-theme .contact-form,
body.dark-theme .founder-note,
body.dark-theme .kpalette,
body.dark-theme .work-feature {
  background: #131316;
  border-color: #2a2a2c;
}
body.dark-theme .contact-form .field input,
body.dark-theme .contact-form .field textarea,
body.dark-theme .faq-search input { background: #1f1f22; color: var(--ink); }
body.dark-theme .urgency-chip { background: #1f1f22; color: var(--ink-2); }
body.dark-theme .tag-chip { background: #1f1f22; color: var(--ink-2); border-color: #2a2a2c; }
body.dark-theme .tag-chip.active { background: var(--ink); color: var(--off); border-color: var(--ink); }
body.dark-theme .topnav { background: rgba(0,0,0,0.85); border-bottom: 1px solid #1f1f22; }
body.dark-theme .floating-cta { box-shadow: 0 14px 32px -10px rgba(0,0,0,0.6); }

/* ============== Shortcuts cheatsheet ============== */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shortcuts-overlay.in { display: flex; opacity: 1; }
.shortcuts {
  width: min(620px, 92vw);
  background: white;
  border-radius: 18px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 32px;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.25s cubic-bezier(0.2,0.9,0.2,1.05);
}
.shortcuts-overlay.in .shortcuts { transform: scale(1) translateY(0); }
.shortcuts h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.shortcuts .sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.shortcut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.shortcut .keys {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.shortcut kbd {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  min-width: 22px;
  text-align: center;
}
.shortcut .label { color: var(--ink-2); }

/* ============== Confetti / particles ============== */
.confetti-piece {
  position: fixed;
  width: 10px; height: 14px;
  pointer-events: none;
  z-index: 350;
  border-radius: 2px;
}

/* ============== Orb rain ============== */
.orb-rain {
  position: fixed;
  width: 32px; height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  background: radial-gradient(circle at 30% 30%, #ffd6e8 0%, #ff6b9d 22%, #a855f7 55%, #22d3ee 100%);
  box-shadow: 0 4px 14px rgba(168,85,247,0.45);
}

/* ============== Kelo-typed orb glow ============== */
.orb.kelo-glow {
  animation: orbKeloGlow 1.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
@keyframes orbKeloGlow {
  0%   { transform: rotate(0deg) scale(1); box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3); }
  50%  { transform: rotate(360deg) scale(1.5); box-shadow: 0 0 28px rgba(168, 85, 247, 0.9), 0 0 60px rgba(34, 211, 238, 0.5); }
  100% { transform: rotate(720deg) scale(1); box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3); }
}

/* ============== Custom right-click menu ============== */
.kctx-menu {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 6px;
  min-width: 220px;
  z-index: 600;
  opacity: 0;
  transform: scale(0.92) translateY(-4px);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.2,0.9,0.2,1.1);
  display: none;
}
.kctx-menu.in {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  display: block;
}
.kctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.12s;
}
.kctx-item:hover { background: rgba(0,102,204,0.08); }
.kctx-item .icon {
  width: 18px;
  font-size: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
  text-align: center;
}
.kctx-sep {
  height: 1px;
  background: var(--line-2);
  margin: 6px 4px;
}
.kctx-foot {
  padding: 8px 12px 4px;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============== Generic toast (milestones, theme switch, etc.) ============== */
.kx-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2,0.9,0.2,1.1);
  pointer-events: none;
  box-shadow: 0 18px 36px -10px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, 90vw);
}
.kx-toast.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.kx-toast .ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ============== Snake game ============== */
.snake-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.snake-overlay.in { display: flex; opacity: 1; }
.snake-game {
  background: var(--near);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06);
  color: white;
}
.snake-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
}
.snake-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.snake-head .score {
  font-weight: 600;
  color: var(--blue-light);
  font-variant-numeric: tabular-nums;
}
.snake-board {
  width: 320px;
  height: 320px;
  background: #0a0a0c;
  border-radius: 14px;
  position: relative;
  border: 1px solid #2a2a2c;
}
.snake-cell {
  position: absolute;
  border-radius: 3px;
}
.snake-cell.body { background: var(--blue-light); }
.snake-cell.body.head {
  background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.snake-cell.food {
  background: radial-gradient(circle at 30% 30%, #ffd6e8, #ff6b9d 50%, #a855f7);
  box-shadow: 0 0 10px rgba(168,85,247,0.6);
  border-radius: 50%;
}
.snake-foot {
  margin-top: 16px;
  font-size: 11px;
  color: var(--on-dark-2);
  text-align: center;
  letter-spacing: 0.02em;
}
.snake-foot kbd {
  background: #2a2a2c;
  border: 1px solid #3a3a3c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  margin: 0 2px;
}
.snake-game-over {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.snake-board.over .snake-game-over { display: flex; }
.snake-game-over h4 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 4px; }
.snake-game-over p { font-size: 13px; color: var(--on-dark-2); margin-bottom: 18px; }
.snake-game-over button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.snake-game-over button:hover { background: var(--blue-hover); }

/* ============== Click ripple ============== */
.kx-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 220;
  background: radial-gradient(circle, rgba(0,102,204,0.32), transparent 70%);
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
}
@media (prefers-reduced-motion: reduce) { .kx-ripple { display: none; } }

/* ============== Reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== Floating CTA pill ============== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue);
  color: white;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2,0.9,0.2,1.1), background 0.2s;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta:hover { background: var(--blue-hover); }
@media (max-width: 520px) { .floating-cta { bottom: 16px; right: 16px; font-size: 14px; padding: 10px 18px; } }

/* ============== Scroll progress (top of page) ============== */
.scroll-progress {
  position: fixed;
  top: 44px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 199;
  pointer-events: none;
  transition: transform 0.05s linear;
}

/* ============== Before / After slider ============== */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: #efeff2;
  touch-action: none;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.2);
  max-width: 1100px;
  margin: 0 auto;
}
.ba-side {
  position: absolute;
  inset: 0;
}
.ba-side > * { width: 100% !important; height: 100% !important; display: block !important; }
/* Kill native browser image-drag (the "ghost image" copy-paste drag) so it doesn't fire while the user drags the slider handle. */
.ba-slider img,
.ba-side img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.ba-label-tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 4;
  pointer-events: none;
}
.ba-label-tag.before-tag { left: 14px; }
.ba-label-tag.after-tag { right: 14px; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.ba-handle::before {
  content: "‹›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.05em;
  z-index: 1;
}

/* ============== Marquee (cities served) ============== */
.marquee {
  overflow: hidden;
  background: var(--soft);
  padding: 28px 0;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--soft), transparent); }
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 50s linear infinite;
  align-items: center;
}
.marquee-track > span {
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  font-weight: 500;
  flex-shrink: 0;
}
.marquee-track .dot {
  color: var(--ink-3);
  opacity: 0.35;
  font-size: 13px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============== Step card hover (lift) ============== */
.step-card {
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.2,1.05), box-shadow 0.35s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}
.step-card:hover {
  border-color: var(--line);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.18);
}

/* ============== Compare table — row highlight ============== */
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: rgba(0,102,204,0.04); }

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .marquee-track { animation: none; }
  .step-card:hover { transform: none !important; }
}

/* ============== Misc ============== */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ============== Mobile ============== */
@media (max-width: 760px) {
  .topnav-links { display: none; }
  .topnav-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 12px;
  }
  .topnav-links.open {
    display: flex;
    position: absolute;
    top: 44px; left: 0; right: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 8px 0;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
  }
  .topnav-links.open a { padding: 14px 22px; font-size: 16px; }
  .topnav-links.open .topnav-cta { margin: 8px 22px; text-align: center; border-radius: 980px; }

  .subnav-links { display: none; }
  .panel { padding: 64px 18px; }
  .page-hero { padding: 90px 18px 50px; }
  .hero-stage { margin-top: 36px; padding: 0 8px; }
  .feature-sub { font-size: 17px; }
  .step-card { padding: 28px 24px 32px; }
  .step-num { font-size: 44px; }
  .contact-form { padding: 28px 22px; }
  .founder-note { padding: 28px 24px; }

  /* Type — smaller display sizes on mobile */
  .display-xxl { font-size: clamp(38px, 11vw, 64px); }
  .display-xl  { font-size: clamp(32px, 9vw, 56px); }
  .display-lg  { font-size: clamp(28px, 7.5vw, 44px); }
  .display-md  { font-size: clamp(24px, 6vw, 36px); }
  .lede        { font-size: 17px; }

  /* Hero buttons stack neatly */
  .btn-row { gap: 16px; }
  .btn { font-size: 16px; padding: 10px 20px; }

  /* Pricing strings */
  .pricing { font-size: 15px; }

  /* Split layout — let visuals breathe */
  .split { gap: 36px; }

  /* Phone scales down on small viewports */
  .phone-stage { padding: 8px; }
  .phone { width: 260px; }

  /* Browser frame — let it scroll cleanly inside the page */
  .browser-frame { border-radius: 10px; }
  .browser-chrome { height: 32px; padding: 0 10px; }
  .browser-url { font-size: 11px; height: 20px; max-width: 220px; }
  .browser-spacer { display: none; }
  .browser-body.scrollable { max-height: 380px; }

  /* Hotspots smaller on mobile (more thumb-friendly) */
  .hotspot { width: 26px; height: 26px; }
  .hotspot-tip-portal { font-size: 12px; padding: 9px 12px; max-width: 220px; }

  /* Tag chips horizontally scroll instead of wrap */
  .tag-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 18px;
    margin: 0 -18px 28px;
  }
  .tag-chips::-webkit-scrollbar { display: none; }
  .tag-chip { flex-shrink: 0; }

  /* Compare table padding */
  .compare thead th { padding: 18px 14px 14px; font-size: 18px; }
  .compare tbody td { padding: 12px 14px; font-size: 14px; }

  /* Final CTA tighter padding */
  .cta-final { padding: 80px 18px; }
  .cta-final h2 { font-size: clamp(36px, 11vw, 60px); }

  /* Estimator full width below the phone */
  .estimator { margin-top: 22px; }

  /* Footer */
  .footer { padding: 32px 18px 24px; }
  .footer-disclaimers { font-size: 11px; }
  .footer-cols { gap: 28px 20px; }

  /* Section header headlines tighter */
  .feature h2 { font-size: clamp(28px, 8vw, 44px); }

  /* Floating CTA — bottom-right, simple position */
  .floating-cta { bottom: 24px; right: 16px; }

  /* Snake board — smaller for narrow viewports */
  .snake-game { padding: 20px; }
  .snake-board { width: 280px; height: 280px; }

  /* Hide cursor trail / spotlight on touch devices is handled in JS — but disable any hover-only frills */
  .cursor-trail { display: none; }
  .design-callout { font-size: 12px; padding: 5px 12px 5px 7px; }

  /* Article shell */
  .article-shell { padding: 80px 18px 60px; }
  .article-shell h1 { font-size: clamp(30px, 8.5vw, 44px); }
  .article-shell h2 { font-size: clamp(22px, 6.5vw, 28px); }

  /* Compact contact aside */
  .contact-grid { gap: 36px; }
  .email-link { font-size: 19px; }

  /* Reading progress bar slightly thicker for touch finger reference */
  .read-progress { height: 3px; }

  /* Reduce big shadow on browser frame so it doesn't feel heavy */
  .browser-frame { box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 24px 50px -16px rgba(0,0,0,0.18); }
}

/* ============== Very small viewports ============== */
@media (max-width: 480px) {
  .panel { padding: 56px 16px; }
  .page-hero { padding: 80px 16px 40px; }
  .phone { width: 240px; }
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-row.center .btn { text-align: center; justify-content: center; }
  .display-xxl { font-size: clamp(34px, 12vw, 52px); }
  .display-xl  { font-size: clamp(30px, 10vw, 44px); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .work-caption { gap: 14px; }
  .work-caption .name { font-size: 17px; }

  .floating-cta { font-size: 13px; padding: 9px 16px; }

  /* Hide right-click cleanly on phones (native menu is more useful) */
  .kctx-menu { display: none !important; }

  /* Smaller hotspot tooltips */
  .hotspot-tip-portal { max-width: 180px; font-size: 12px; }
}

/* ============== Touch device fine-tuning ============== */
@media (hover: none) {
  /* Disable hover-driven animations that don't make sense on touch */
  .step-card:hover { transform: none; }
  .kpi-card:hover { transform: none; }
  .blog-card:hover { transform: none; }

  /* Increase hit area for small interactive elements */
  .hotspot { width: 32px; height: 32px; }
  .hotspot::before { font-size: 22px; }
  .post-action { padding: 10px 4px; min-height: 36px; }
  .urgency-chip, .tag-chip { padding: 10px 14px; }
}


/* ============== Mobile — comprehensive polish for offers ============== */
@media (max-width: 760px) {
  #ads, #custom, #starter, #compare {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .feature { text-align: center; padding: 0 4px; }
  .feature .eyebrow { font-size: 14px; }
  .feature .feature-sub { margin-top: 14px; font-size: 16px; max-width: 36ch; }
  .split { gap: 32px; margin-top: 40px; }
  .split.flip > :first-child { order: 0; }
  .phone-stage { padding: 0; margin: 0 auto; }
  .phone {
    box-shadow:
      0 24px 50px -16px rgba(0,0,0,0.55),
      0 0 0 2px rgba(255,255,255,0.08),
      0 0 80px -20px rgba(168, 85, 247, 0.35);
  }
  .split-text { text-align: left; }
  .split-text h3 { font-size: clamp(26px, 7vw, 36px); margin-bottom: 12px; }
  .split-text p { font-size: 16px; max-width: none; }
  .feat-list { margin-top: 18px; font-size: 14px; gap: 6px; }
  .split-text .pricing, .feature .pricing { font-size: 16px; margin-top: 18px; }
  .split-text .btn-row, .feature .btn-row { margin-top: 18px; gap: 14px; }

  .estimator {
    max-width: none;
    margin-top: 28px;
    padding: 22px 22px 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .estimator-row { font-size: 15px; }
  .estimator-slider { height: 6px; }
  .estimator-slider::-webkit-slider-thumb { width: 26px; height: 26px; }
  .estimator-stats strong { font-size: 26px; }

  #custom .split { gap: 28px; }
  #custom .browser-body.scrollable { max-height: 320px; }

  #starter .metric-grid-4 { grid-template-columns: 1fr 1fr; gap: 1px; }
  #starter .metric { padding: 22px 16px; }
  #starter .metric-num { font-size: 32px; }
  #starter .metric-label { font-size: 11px; }
  #starter > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    text-align: center;
    margin-top: 24px !important;
  }

  #work .work-hero { padding: 0; margin-top: 36px; }
  .work-caption { flex-direction: column; align-items: flex-start; gap: 14px; padding: 4px 4px 0; }
  .work-caption > div { width: 100%; }
  .work-caption .btn { width: 100%; justify-content: center; }

  /* Compare table → stacked card layout */
  .compare-wrap { overflow-x: visible; margin-top: 32px; }
  .compare { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody { display: block; }
  .compare tbody tr {
    display: block;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .compare tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 13px;
  }
  .compare tbody td:last-child { border-bottom: none; }
  .compare tbody td:first-child {
    width: 100%;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 8px;
  }
  .compare tbody td:nth-child(2)::before { content: "Meta Ads"; color: var(--blue); font-weight: 500; font-size: 12px; }
  .compare tbody td:nth-child(3)::before { content: "Custom Site + SEO"; color: var(--blue); font-weight: 500; font-size: 12px; }
  .compare tbody td:nth-child(4)::before { content: "Starter Website"; color: var(--blue); font-weight: 500; font-size: 12px; }
  .compare tfoot { display: none; }

  .faq-list { margin-top: 32px; }
  .faq-q { font-size: 18px; padding: 18px 0; }
  .faq-a p { font-size: 15px; }

  .cta-final { padding: 72px 18px; }
  .cta-final h2 { font-size: clamp(38px, 12vw, 64px); }
  .cta-final .lede { margin-top: 16px; font-size: 17px; }

  .footer { padding: 36px 18px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-bottom: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }

  .floating-cta { display: inline-flex; }
  .hero-stage .browser-body.scrollable { max-height: 280px; }
}

@media (max-width: 480px) {
  .phone { width: 230px; }
  .estimator-stats strong { font-size: 22px; }
  #starter .metric-num { font-size: 28px; }
  .compare tbody tr { padding: 14px 16px; }
  .compare tbody td { font-size: 12.5px; }
}


/* ============== Mobile offers — refined hierarchy ============== */
@media (max-width: 760px) {
  /* Eyebrows become clear badges per offer */
  #ads .feature > .eyebrow,
  #custom .feature > .eyebrow,
  #starter .feature > .eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(0, 102, 204, 0.10);
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  #ads .feature > .eyebrow,
  #starter .feature > .eyebrow {
    background: rgba(41, 151, 255, 0.15);
    color: var(--blue-light);
  }

  /* Split text becomes centered, single-column flow */
  .split-text {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .split-text > .eyebrow { order: 1; align-self: center; }
  .split-text > h3 { order: 2; text-align: center; }
  .split-text > p { order: 3; margin: 0 auto; max-width: 36ch; }
  .split-text > .pricing { order: 4; }
  .split-text > .feat-list { order: 5; }
  .split-text > .btn-row { order: 6; justify-content: center; }
  .split-text > .estimator { order: 7; align-self: stretch; }

  /* Split-text eyebrow also becomes a badge */
  .split-text > .eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(0, 102, 204, 0.10);
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .panel-near .split-text > .eyebrow,
  .panel-dark .split-text > .eyebrow {
    background: rgba(41, 151, 255, 0.18);
    color: var(--blue-light);
  }

  /* Pricing — prominent boxed pill */
  .split-text .pricing,
  .feature .pricing {
    background: rgba(0, 0, 0, 0.04);
    padding: 14px 18px;
    border-radius: 14px;
    margin: 22px auto 22px;
    font-size: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 90%;
  }
  .panel-dark .split-text .pricing,
  .panel-near .split-text .pricing,
  .panel-dark .feature .pricing,
  .panel-near .feature .pricing {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
  }
  .split-text .pricing strong,
  .feature .pricing strong {
    font-size: 19px;
    color: var(--ink);
  }
  .panel-dark .split-text .pricing strong,
  .panel-near .split-text .pricing strong,
  .panel-dark .feature .pricing strong,
  .panel-near .feature .pricing strong {
    color: white;
  }

  /* Feature list — centered with left-aligned bullets */
  .feat-list {
    font-size: 14.5px;
    line-height: 1.5;
    text-align: left;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px;
  }

  /* CTAs full-width on mobile */
  .split-text .btn-row .btn,
  .feature .btn-row .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
  }
  .feature .btn-row { justify-content: center; }

  /* Subtle separator between offer panels */
  #ads, #custom, #starter {
    position: relative;
  }
  #ads::before,
  #custom::before,
  #starter::before {
    content: "";
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }
  #custom::before {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  }

  /* Starter inline text grid (the bullet row below metrics) */
  #starter > div[style*="repeat(auto-fit"] {
    margin: 24px auto 0 !important;
    text-align: center;
    font-size: 13px;
    max-width: 360px;
  }

  /* Phone shadow softer (less competing) */
  .phone {
    box-shadow:
      0 18px 40px -14px rgba(0,0,0,0.45),
      0 0 0 2px rgba(255,255,255,0.06);
  }
}

@media (max-width: 480px) {
  .split-text > p { font-size: 15px; }
  .split-text .pricing strong, .feature .pricing strong { font-size: 17px; }
  .feat-list { font-size: 13.5px; max-width: 30ch; }
  .split-text .btn-row .btn,
  .feature .btn-row .btn {
    min-width: 100%;
  }
}

/* ============== Single-offer page: pricing card, monthly checklist, demo placeholder ============== */
.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}
.pricing-card-head {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.pricing-card-eyebrow {
  display: inline-block;
  background: rgba(0,102,204,0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pricing-card-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.pricing-card-prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pricing-card-prices .price-block { text-align: center; }
.pricing-card-prices .price-num {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.pricing-card-prices .price-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.pricing-card-prices .price-sep {
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 300;
}
.pricing-card .feat-list {
  margin: 0 0 28px;
}
.pricing-card .feat-list li {
  font-size: 15px;
  padding: 8px 0 8px 26px;
}
.pricing-card .btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 16px;
}
.pricing-card-foot {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  margin: 14px 0 0;
}
@media (max-width: 600px) {
  .pricing-card { padding: 28px 22px 26px; border-radius: 14px; }
  .pricing-card-title { font-size: 26px; }
  .pricing-card-prices .price-num { font-size: 32px; }
}

/* Monthly checklist — larger, more scannable than default feat-list */
.monthly-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.monthly-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--on-dark, white);
  font-size: 16px;
  line-height: 1.45;
}
.monthly-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}
@media (max-width: 600px) {
  .monthly-list li { padding: 14px 16px; font-size: 14.5px; }
}

/* Meta Ads add-on — compact card-style panel */
.addon-card {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.addon-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.addon-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0,102,204,0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.addon-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.addon-card-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.addon-card-body strong { color: var(--ink); }
.addon-card-note { font-size: 13px; color: var(--ink-3); margin: 0; }
@media (max-width: 600px) {
  .addon-card { padding: 22px 20px; border-radius: 12px; }
  .addon-card-title { font-size: 19px; }
  .addon-card-body { font-size: 14.5px; }
}

/* Demo placeholder — drop the recorded GIF/MP4 in to replace */
.demo-placeholder {
  max-width: 360px;
  margin: 48px auto 0;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(135deg, rgba(168,85,247,0.10), rgba(34,211,238,0.10)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 14px, transparent 14px 28px);
  border: 1.5px dashed rgba(0,0,0,0.15);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-3);
}
.demo-placeholder .demo-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd6e8 0%, #ff6b9d 22%, #a855f7 55%, #22d3ee 100%);
  margin-bottom: 16px;
  opacity: 0.85;
}
.demo-placeholder .demo-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.demo-placeholder .demo-hint { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.5; max-width: 240px; }
.demo-placeholder video,
.demo-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}
.demo-placeholder.filled {
  background: transparent;
  border: none;
  padding: 0;
}

/* Case study card "pending data" line */
.case-study-pending {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

/* ============== Apple-aesthetic pricing comparison ============== */
/* Refined sans-serif, generous whitespace, subtle gray dividers,
   blue accent reserved for highlights. Reference: Apple iCloud+, Apple One, Linear. */
.apple-pricing {
  background: #fbfbfd;
  padding: 110px 24px 100px;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.apple-pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.apple-pricing-head h2 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 14px;
}
.apple-pricing-head p {
  font-size: 19px;
  line-height: 1.45;
  color: #6e6e73;
  font-weight: 400;
  margin: 0;
}

/* The comparison table */
.apple-compare {
  max-width: 980px;
  margin: 0 auto;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.apple-compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: stretch;
  font-size: 15px;
  line-height: 1.5;
}
.apple-compare-row + .apple-compare-row {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.apple-compare .cell {
  padding: 20px 28px;
  display: flex;
  align-items: center;
}
.apple-compare-header .cell {
  padding-top: 32px;
  padding-bottom: 24px;
  align-items: flex-end;
}
.cell-label {
  font-weight: 500;
  color: #1d1d1f;
}
.cell-other {
  color: #86868b;
  font-weight: 400;
}
.cell-us {
  color: #1d1d1f;
  font-weight: 500;
  background: rgba(0,102,204,0.045);
}
.apple-compare-header .cell-us {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
}
.apple-compare-header .cell-other,
.apple-compare-header .cell-us {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.apple-col-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin: 0;
}
.apple-compare-header .cell-other .apple-col-title {
  color: #6e6e73;
  font-weight: 500;
}
.apple-compare-header .cell-us .apple-col-title {
  color: #0066cc;
}
.apple-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066cc;
  background: rgba(0,102,204,0.10);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
}
.apple-em-dash {
  color: #c7c7cc;
  font-weight: 400;
}

/* Pricing display below the table */
.apple-pricing-display {
  text-align: center;
  margin: 56px auto 0;
  max-width: 520px;
}
.apple-pricing-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e6e73;
  margin: 0 0 12px;
}
.apple-pricing-price {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  margin: 0 0 28px;
  line-height: 1.1;
}
.apple-cta {
  display: inline-block;
  background: #1d1d1f;
  color: white;
  text-decoration: none;
  padding: 13px 38px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.apple-cta:hover { background: #000; }
.apple-cta:active { transform: scale(0.98); }
.apple-pricing-note {
  font-size: 13px;
  color: #86868b;
  margin: 18px 0 0;
  font-weight: 400;
}

/* Apple-aesthetic Meta Ads add-on section */
.apple-addon {
  background: #f5f5f7;
  padding: 90px 24px 100px;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.apple-addon-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.apple-addon-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.apple-addon-title {
  font-size: 36px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 20px;
}
.apple-addon-body {
  font-size: 18px;
  color: #1d1d1f;
  line-height: 1.55;
  margin: 0 auto 16px;
  max-width: 580px;
  font-weight: 400;
}
.apple-addon-body strong {
  color: #0066cc;
  font-weight: 600;
}
.apple-addon-note {
  font-size: 14px;
  color: #86868b;
  margin: 24px 0 0;
}

/* Mobile: transform the 3-col comparison into stacked rows with inline labels */
@media (max-width: 760px) {
  .apple-pricing { padding: 70px 18px 60px; }
  .apple-pricing-head { margin-bottom: 40px; }
  .apple-pricing-head h2 { font-size: 30px; line-height: 1.15; }
  .apple-pricing-head p { font-size: 16px; }

  .apple-compare { border-radius: 14px; }

  /* Show a slim header band above the rows with badge + Kelo column name */
  .apple-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: white;
  }
  .apple-mobile-header .apple-col-title { font-size: 14px; color: #0066cc; }

  .apple-compare-row {
    display: block;
    padding: 18px 20px;
  }
  .apple-compare .cell { padding: 0; display: block; }

  /* Hide the desktop column-header row on mobile (specificity tie — must come after .apple-compare-row) */
  .apple-compare-row.apple-compare-header { display: none; }

  .apple-compare .cell-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868b;
    margin: 0 0 10px;
    padding: 0;
  }
  .apple-compare .cell-other,
  .apple-compare .cell-us {
    font-size: 15px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .apple-compare .cell-other { background: rgba(0,0,0,0.025); }
  .apple-compare .cell-us { background: rgba(0,102,204,0.06); }
  .apple-compare .cell-other::before,
  .apple-compare .cell-us::before {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 70px;
    flex-shrink: 0;
  }
  .apple-compare .cell-other::before { content: "Marketers"; color: #86868b; }
  .apple-compare .cell-us::before { content: "Kelo"; color: #0066cc; }

  .apple-pricing-display { margin-top: 40px; }
  .apple-pricing-price { font-size: 28px; }
  .apple-cta { padding: 13px 32px; font-size: 14.5px; }

  .apple-addon { padding: 64px 20px 70px; }
  .apple-addon-title { font-size: 28px; }
  .apple-addon-body { font-size: 16px; }
}

/* Desktop-only — hide the mobile header band */
@media (min-width: 761px) {
  .apple-mobile-header { display: none; }
}

/* ============== Missed-call text-back demo (interactive iOS Messages mockup) ============== */
/* All classes prefixed mc- to avoid colliding with the existing .phone-* styles.
   Inbox + 4 thread views, slide-navigated. Kelo featured thread auto-plays on load. */
.mc-stage {
  max-width: 360px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mc-phone {
  --phone-pad: 12px;
  --phone-radius: 44px;
  width: 100%;
  aspect-ratio: 9 / 16.8;
  background: #1c1c1e;
  border-radius: var(--phone-radius);
  padding: var(--phone-pad);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.30),
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.mc-phone::before {
  /* dynamic-island / notch */
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 30;
}
.mc-screen {
  /* Absolutely positioned inside phone's padding box — bulletproof against
     iOS Safari's aspect-ratio + flex sizing quirks. Always fits exactly. */
  position: absolute;
  top: var(--phone-pad);
  left: var(--phone-pad);
  right: var(--phone-pad);
  bottom: var(--phone-pad);
  background: #f2f2f7;
  border-radius: calc(var(--phone-radius) - var(--phone-pad));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Wrapper that holds all the view layers; sits BELOW the status bar so the notch
   can never overlap content. Without this, .mc-view inset:0 would cover the bar. */
.mc-views {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* View stack: inbox + threads layered on top of each other within .mc-views. */
.mc-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-view-inbox { transform: translateX(0); z-index: 1; }
.mc-view-inbox.mc-pushed { transform: translateX(-22%); }
.mc-view-thread { z-index: 2; }
.mc-view-thread.mc-active { transform: translateX(0); }

/* Status bar — transparent so it shows whatever surface is beneath. No color jump. */
.mc-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  z-index: 5;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  background: transparent;
}
.mc-statusbar .mc-time {
  min-width: 50px;
}
.mc-statusbar .mc-ind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.mc-statusbar .mc-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.mc-statusbar .mc-signal span {
  width: 3px;
  background: #1d1d1f;
  border-radius: 1px;
}
.mc-statusbar .mc-signal span:nth-child(1) { height: 30%; }
.mc-statusbar .mc-signal span:nth-child(2) { height: 50%; }
.mc-statusbar .mc-signal span:nth-child(3) { height: 75%; }
.mc-statusbar .mc-signal span:nth-child(4) { height: 100%; }
.mc-statusbar .mc-battery {
  position: relative;
  width: 24px;
  height: 11px;
  border: 1px solid #1d1d1f;
  border-radius: 3px;
  padding: 1px;
}
.mc-statusbar .mc-battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: #1d1d1f;
  border-radius: 0 1px 1px 0;
}
.mc-statusbar .mc-battery span {
  display: block;
  width: 100%; height: 100%;
  background: #1d1d1f;
  border-radius: 1px;
}

/* ====== Inbox view (iOS Messages app style) ====== */
.mc-view-inbox { background: #f2f2f7; }
.mc-inbox-header {
  padding: 6px 16px 4px;
  flex-shrink: 0;
  background: transparent;
}
.mc-inbox-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: #1d1d1f;
  line-height: 1.1;
}
.mc-inbox-search {
  margin: 8px 12px 10px;
  background: rgba(118,118,128,0.12);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8e8e93;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}
.mc-inbox-search::before {
  content: "⌕";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.mc-inbox-list {
  flex: 1;
  overflow-y: auto;
  background: white;
  margin: 6px 12px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 0.5px rgba(0,0,0,0.04);
}
.mc-inbox-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 14px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease;
  font-family: inherit;
}
.mc-inbox-row:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.mc-inbox-row:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.mc-inbox-row::after {
  /* Hairline divider, inset on left after the avatar — iOS style */
  content: "";
  position: absolute;
  left: 62px; right: 0; bottom: 0;
  height: 0.5px;
  background: rgba(60,60,67,0.16);
}
.mc-inbox-row:last-child::after { display: none; }
.mc-inbox-row:hover,
.mc-inbox-row:active { background: rgba(0,0,0,0.04); }

.mc-inbox-row-body { flex: 1; min-width: 0; }
.mc-inbox-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.mc-inbox-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-inbox-time {
  font-size: 12px;
  color: #8e8e93;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}
.mc-inbox-preview {
  font-size: 13.5px;
  color: #6e6e73;
  line-height: 1.35;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-inbox-row-chevron {
  align-self: center;
  font-size: 18px;
  color: #c7c7cc;
  font-weight: 300;
  flex-shrink: 0;
  padding: 0 6px 0 4px;
  line-height: 1;
}
/* Status — small green dot + label, inline below preview. Reads as part of the row, not stuck-on. */
.mc-inbox-row-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #248a3d;
  margin-top: 3px;
  letter-spacing: -0.005em;
}
.mc-inbox-row-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52,199,89,0.18);
}

/* Conversation header — same color as everything else, just blurred glass + hairline. No color jump. */
.mc-convo-header {
  position: relative;
  padding: 6px 12px 9px;
  background: rgba(242,242,247,0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 0.5px solid rgba(60,60,67,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  z-index: 4;
}
.mc-back {
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 21px;
  color: #0a7cff;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 8px 10px;
  letter-spacing: -0.02em;
}
.mc-back:hover { opacity: 0.6; }
.mc-back:active { opacity: 0.4; }
.mc-back-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mc-header-call {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(10,124,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a7cff;
  font-size: 13px;
}
/* Contact info — avatar above name, both centered (real iOS pattern) */
.mc-convo-header .mc-avatar {
  width: 28px; height: 28px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e6e73, #3a3a3c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mc-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}
.mc-name .mc-sub {
  display: block;
  font-size: 10px;
  color: #8e8e93;
  font-weight: 400;
  margin-top: 1px;
  letter-spacing: 0;
}
/* Avatar shared style (used in inbox rows too — full-size there) */
.mc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e6e73, #3a3a3c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Body — message thread. Scrollable so longer threads don't get clipped; scrollbar hidden. */
.mc-body {
  flex: 1;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  background: #f2f2f7;
}
.mc-body::-webkit-scrollbar { display: none; }

/* Missed-call divider in the thread (the red "Missed call · X min ago" line) */
.mc-missed-divider {
  text-align: center;
  font-size: 11px;
  color: #ff3b30;
  font-weight: 500;
  padding: 2px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.mc-missed-divider::before {
  content: "📞";
  font-size: 11px;
  filter: grayscale(0.3);
}

/* Message bubbles */
.mc-msg {
  display: flex;
  max-width: 76%;
  margin-top: 4px;
}
.mc-msg-in { align-self: flex-start; margin-left: 2px; }
.mc-msg-out { align-self: flex-end; margin-right: 2px; }
.mc-bubble {
  padding: 8px 13px 9px;
  border-radius: 19px;
  font-size: 13.5px;
  line-height: 1.32;
  word-wrap: break-word;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.mc-msg-in .mc-bubble {
  background: #e9e9eb;
  color: #1d1d1f;
  border-bottom-left-radius: 5px;
}
.mc-msg-out .mc-bubble {
  background: linear-gradient(180deg, #1c8aff, #007aff);
  color: white;
  border-bottom-right-radius: 5px;
}

/* Typing dots — three bouncing dots in a gray bubble */
.mc-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  background: #e5e5ea;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}
.mc-msg-out .mc-typing {
  background: #0a7cff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}
.mc-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8e8e93;
  animation: mc-bounce 1.2s ease-in-out infinite;
}
.mc-msg-out .mc-typing span { background: rgba(255,255,255,0.7); }
.mc-typing span:nth-child(2) { animation-delay: 0.15s; }
.mc-typing span:nth-child(3) { animation-delay: 0.30s; }

/* Auto-sent footnote — subtle so the message reads as human first */
.mc-auto-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0 6px;
  padding: 0;
  color: #8e8e93;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
}
.mc-auto-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52,199,89,0.18);
}

/* Status pill at end of conversation (booked / qualified / etc.) */
.mc-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(52,199,89,0.12);
  color: #248a3d;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mc-status::before {
  content: "✓";
  font-size: 11px;
  font-weight: 700;
}

/* Animated elements start hidden; .mc-play on the thread plays them in stagger order */
.mc-step {
  opacity: 0;
  transform: translateY(8px);
}
/* When the thread is "playing", each step fades up with its own delay (set inline via style="--d:Xms") */
.mc-active.mc-play .mc-step {
  animation: mc-enter 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes mc-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typing bubble — appears, holds, then COLLAPSES so it doesn't take layout space
   after the message it preceded has appeared. Critical for mobile fit. */
.mc-step-typing {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}
.mc-active.mc-play .mc-step-typing {
  animation: mc-typing-cycle var(--dur, 1200ms) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes mc-typing-cycle {
  0%   { opacity: 0; transform: translateY(8px); max-height: 0; margin-top: 0; }
  8%   { opacity: 0; max-height: 40px; margin-top: 3px; }
  14%  { opacity: 1; transform: translateY(0); max-height: 40px; margin-top: 3px; }
  82%  { opacity: 1; transform: translateY(0); max-height: 40px; margin-top: 3px; }
  98%  { opacity: 0; max-height: 40px; margin-top: 3px; }
  100% { opacity: 0; transform: translateY(-2px); max-height: 0; margin-top: 0; }
}

/* Caption below the phone */
.mc-caption {
  font-size: 13px;
  color: #6e6e73;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
  margin: 0;
}

@keyframes mc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Reduced motion: the demo still plays (it IS the product), just with gentler fades instead of translates */
@media (prefers-reduced-motion: reduce) {
  .mc-active.mc-play .mc-step {
    animation: mc-enter-reduced 0.28s ease-out forwards;
    animation-delay: var(--d, 0ms);
  }
  .mc-active.mc-play .mc-step-typing {
    animation: mc-typing-reduced var(--dur, 1200ms) ease-out forwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes mc-enter-reduced {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes mc-typing-reduced {
    0%   { opacity: 0; max-height: 0; margin-top: 0; }
    10%  { opacity: 0; max-height: 40px; margin-top: 3px; }
    15%  { opacity: 1; max-height: 40px; margin-top: 3px; }
    85%  { opacity: 1; max-height: 40px; margin-top: 3px; }
    95%  { opacity: 0; max-height: 40px; margin-top: 3px; }
    100% { opacity: 0; max-height: 0; margin-top: 0; }
  }
  .mc-typing span { animation: none; opacity: 0.7; }
  .mc-view, .mc-view-inbox.mc-pushed { transition: opacity 0.18s ease; }
}

@media (max-width: 600px) {
  /* Shorter phone fits iPhone Safari viewport with browser chrome */
  .mc-stage { max-width: 290px; margin-top: 32px; }
  .mc-phone {
    --phone-pad: 9px;
    --phone-radius: 36px;
    aspect-ratio: 9 / 14.5;
  }
  .mc-phone::before { width: 78px; height: 22px; top: 14px; }
  .mc-screen { font-size: 12.5px; }
  .mc-statusbar { padding: 10px 22px 6px; font-size: 12px; }
  .mc-statusbar .mc-ind { font-size: 11px; gap: 4px; }
  .mc-statusbar .mc-battery { width: 20px; height: 10px; }
  .mc-convo-header { padding: 5px 6px 7px; min-height: 44px; }
  .mc-convo-header .mc-avatar { width: 24px; height: 24px; font-size: 9.5px; }
  .mc-name {
    font-size: 11px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mc-name .mc-sub { font-size: 9.5px; }
  .mc-back { font-size: 19px; padding: 6px 6px; left: 2px; }
  .mc-back-label { font-size: 12px; }
  .mc-header-call { width: 26px; height: 26px; font-size: 12px; right: 6px; }
}

/* Very narrow phones: hide the "Messages" label, keep just the ‹ chevron */
@media (max-width: 360px) {
  .mc-back-label { display: none; }
  .mc-name { max-width: 70%; }
}

@media (max-width: 600px) {
  /* Tighter body: reduces total conversation height + status sits near bottom */
  .mc-body { padding: 10px 10px 8px; gap: 3px; }
  .mc-msg { max-width: 80%; margin-top: 3px; }
  .mc-bubble { padding: 6px 11px 7px; font-size: 12.5px; line-height: 1.3; border-radius: 16px; }
  .mc-msg-in .mc-bubble { border-bottom-left-radius: 4px; }
  .mc-msg-out .mc-bubble { border-bottom-right-radius: 4px; }
  .mc-typing { padding: 7px 10px; }
  .mc-typing span { width: 5px; height: 5px; }
  .mc-missed-divider { font-size: 10px; padding: 1px 0 3px; }
  .mc-auto-badge { font-size: 9.5px; margin: 1px 0 0 4px; }
  .mc-status { font-size: 10.5px; padding: 5px 10px; margin: 8px 0 4px; }
  /* Inbox tighter too */
  .mc-inbox-title { font-size: 22px; }
  .mc-inbox-search { padding: 6px 9px; font-size: 12px; }
  .mc-inbox-row { padding: 10px 8px 10px 12px; gap: 10px; }
  .mc-inbox-row::after { left: 56px; }
  .mc-inbox-name { font-size: 14px; }
  .mc-inbox-preview { font-size: 12.5px; }
  .mc-inbox-row-status { font-size: 10.5px; }
  .mc-avatar { width: 34px; height: 34px; font-size: 12px; }
}
