/* MAGNETIC — design system cloned from themochi.app reference, rebranded.
   Accent: Magnetic blue #2F6BFF. Headlines: Clash Display. Body: Inter. */

@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/clash-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/clash-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/clash-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #16161a;
  --body: #5b6069;
  --faint: #9aa0aa;
  --accent: #2F6BFF;
  --accent-soft: #ecf1ff;
  --accent-ink: #1e50d6;
  --green: #17a45c;
  --green-soft: #e2f6eb;
  --red: #e5484d;
  --line: rgba(22, 22, 26, .09);
  --card: #ffffff;
  --wash: #f5f5f7;
  --r-card: 24px;
  --r-btn: 14px;
  --display: 'Clash Display', 'Inter', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 1px 2px rgba(22,22,26,.04), 0 12px 32px -12px rgba(22,22,26,.10);
  --shadow-pop: 0 24px 64px -16px rgba(22,22,26,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.04;
}
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
.sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--body);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px;
  border-radius: var(--r-btn);
  font-weight: 600; font-size: 17px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(22,22,26,.5); }
.btn-dark:hover { background: #26262c; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(47,107,255,.55); }
.btn-accent:hover { background: #2a5fe6; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav-shell {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 18px); left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.nav {
  pointer-events: auto;
  width: 100%; max-width: 1080px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(210,233,255,.80) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1.5px solid rgba(255,255,255,.92);
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 0 0 5px rgba(255,255,255,.30),
    0 18px 44px -16px rgba(30,60,120,.28);
  transition: background .25s ease, box-shadow .25s ease;
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; }
}
.nav-wrap.scrolled .nav {
  background: #fff; border-color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 5px rgba(255,255,255,.18), 0 14px 40px -14px rgba(30,60,120,.20);
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: 22px; }
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo .word {
  font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav-links > a, .nav-feat-btn {
  font-size: 16.5px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > a:hover, .nav-feat-btn:hover { color: var(--accent); }
.nav-feat-btn svg { transition: transform .2s ease; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.pill-login {
  padding: 13px 24px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: 16px;
}
.pill-start {
  padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 16px;
}
.pill-start:hover { background: #26262c; }
.nav-burger { display: none; padding: 8px 12px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* dropdown */
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  display: none;
  gap: 14px;
  padding: 4px;
}
.nav-wrap { position: relative; width: 100%; max-width: 1080px; pointer-events: auto; }
.nav-wrap.open .mega { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.nav-wrap.open .nav-feat-btn svg { transform: rotate(180deg); }
.mega-col {
  background: #fff; border-radius: 18px; padding: 20px;
  border: 1.5px solid rgba(255,255,255,.92);
  box-shadow:
    0 0 0 5px rgba(255,255,255,.24),
    0 24px 60px -20px rgba(30,60,120,.30);
}
.mega-ico svg { stroke-width: 2.3px; }
.mega-sub {
  background: #f2f2f5; border-radius: 14px;
  padding: 6px 16px; margin: 6px -4px 0;
}
.mega-sub a { display: block; padding: 12px 0; border-radius: 8px; }
.mega-sub b { display: block; font-size: 16.5px; font-weight: 600; }
.mega-sub span { font-size: 14.5px; color: var(--body); }
.mega-sub a:hover b { color: var(--accent); }
.mega-col h5 {
  font-size: 13px; letter-spacing: .08em; font-weight: 600; color: var(--faint);
  text-transform: uppercase; margin-bottom: 16px;
}
.mega-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px; margin: 0 -10px; border-radius: 14px;
}
.mega-item:hover { background: var(--wash); }
.mega-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
  box-shadow: 0 1px 2px rgba(22,22,26,.06);
}
.mega-item b { display: block; font-size: 16.5px; font-weight: 600; }
.mega-item span { font-size: 14.5px; color: var(--body); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 40px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 92%),
    url('../assets/sky.jpg') center top / cover no-repeat,
    linear-gradient(180deg, #79bdf3 0%, #cfe9fb 70%, #ffffff 100%);
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.hero h1 { margin-bottom: 28px; }
.hero .sub { max-width: 640px; margin: 0 auto 40px; }
.hero-badges {
  display: flex; align-items: center; justify-content: center; gap: 44px;
  margin-top: 34px;
}
.badge-item { text-align: center; color: #3b4552; }
.badge-item .as { font-size: 13px; letter-spacing: .14em; color: #6b7683; font-weight: 600; margin-bottom: 4px; }
.badge-item .mark { font-family: var(--display); font-weight: 700; font-size: 24px; color: #1c2b3a; }
.badge-item .small { font-size: 14px; color: #4d5a68; }

/* trusted marquee */
.trusted {
  display: flex; align-items: center; gap: 20px;
  padding: 60px 0 26px;
  max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 0;
}
.trusted-label { flex: none; color: var(--faint); font-size: 17px; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 42s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.avatar-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 18px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.avatar-pill .av { position: relative; width: 38px; height: 38px; flex: none; }
.avatar-pill .av img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.avatar-pill .av::after {
  content: ''; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.8 2.4 3.6-.7 1.2 3.5 3.5 1.2-.7 3.6L24 12l-2.4 2.8.7 3.6-3.5 1.2-1.2 3.5-3.6-.7L12 24l-2.8-2.4-3.6.7-1.2-3.5-3.5-1.2.7-3.6L0 12l2.4-2.8-.7-3.6 3.5-1.2L6.4 .9l3.6.7L12 0zm-1.2 16.2l6-6-1.7-1.7-4.3 4.3-2-2-1.7 1.7 3.7 3.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.8 2.4 3.6-.7 1.2 3.5 3.5 1.2-.7 3.6L24 12l-2.4 2.8.7 3.6-3.5 1.2-1.2 3.5-3.6-.7L12 24l-2.8-2.4-3.6.7-1.2-3.5-3.5-1.2.7-3.6L0 12l2.4-2.8-.7-3.6 3.5-1.2L6.4.9l3.6.7L12 0zm-1.2 16.2l6-6-1.7-1.7-4.3 4.3-2-2-1.7 1.7 3.7 3.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* VSL video block */
.vsl { max-width: 1240px; margin: 26px auto 0; padding: 0 24px; }
.vsl-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 1240 / 640;
  background: #101012 url('../assets/vsl.jpg') center / cover no-repeat;
  cursor: pointer;
}
.vsl-play {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px;
  border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .18s ease;
}
.vsl-frame:hover .vsl-play { transform: scale(1.06); }
.vsl-play svg { margin-left: 5px; }
.vsl-cap {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: rgba(255,255,255,.85); font-size: 15px; letter-spacing: .02em;
}

/* ---------- journey timeline ---------- */
.journey {
  padding: 110px 0 40px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.journey::-webkit-scrollbar { display: none; }
.journey-track {
  display: flex; gap: 0; align-items: flex-start;
  min-width: 1600px;
  padding-left: max(24px, calc((100% - 1180px) / 2 + 24px));
  padding-right: 40px;
  scroll-snap-type: x proximity;
}
.j-step { scroll-snap-align: start; }
.j-step { flex: 1; min-width: 250px; position: relative; padding-right: 28px; }
.j-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.j-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(30,60,120,.45);
}
.j-head b { font-size: 16.5px; white-space: nowrap; }
.j-head time { color: var(--faint); font-size: 15px; white-space: nowrap; }
/* connector rides AFTER the label, so it can never strike through text */
.j-rule { flex: 1; min-width: 18px; border-top: 1.5px dashed rgba(22,22,26,.18); }
.j-step:last-child .j-rule { display: none; }
.j-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 15.5px;
  box-shadow: var(--shadow-card);
}
.j-card + .j-card { margin-top: 10px; }
.j-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.j-row + .j-row { border-top: 1px solid var(--line); }
.j-chip {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 13px;
}
.j-muted { color: var(--body); }
.j-strong { font-weight: 600; }
.j-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.j-thumb {
  margin-left: auto; width: 84px; height: 44px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #dfe8f5, #c8d6ec);
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 9px; color: #7a8698; font-weight: 600; letter-spacing: .05em;
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head-split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end;
  margin-bottom: 70px;
}
.section-head-center { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head-center .sub { margin-top: 22px; }

/* carousel (feature slides) */
.slides { }
.slide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 60px 0;
}
.slide-copy .kicker { font-size: 19px; color: var(--body); margin-bottom: 18px; }
.slide-copy h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 24px;
}
.slide-copy p { font-size: 18.5px; line-height: 1.6; color: var(--body); max-width: 460px; margin-bottom: 34px; }

/* phone frame */
.phone {
  width: min(100%, 470px); margin: 0 auto;
  border-radius: 40px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  padding: 26px 22px; overflow: hidden;
}
.phone h4 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }

/* inbox mock */
.seg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wash); border-radius: 14px; padding: 9px 14px;
  font-weight: 600; font-size: 15.5px; margin-bottom: 14px;
}
.convo { display: flex; gap: 12px; padding: 12px 4px; align-items: flex-start; }
.convo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); padding: 1px; }
.convo .cv-body { flex: 1; min-width: 0; }
.convo .cv-top { display: flex; align-items: baseline; gap: 8px; }
.convo .cv-top b { font-size: 15.5px; }
.convo .cv-top time { margin-left: auto; color: var(--faint); font-size: 13px; }
.convo .cv-msg { font-size: 14px; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-row { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; background: #fff;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.unread {
  flex: none; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* dm chat mock */
.dm { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.bub { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.bub.in { background: #f0f0f3; color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.bub.out { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bub.card { background: #fff; border: 1px solid var(--line); text-align: center; font-weight: 600; align-self: flex-end; width: 82%; border-radius: 14px; }
.dm-note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--body); justify-content: flex-end; }
.dm-note b { color: var(--ink); }
.dm-note .see { color: var(--accent); font-weight: 600; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sugg {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff7ee; border: 1px solid #f3ddc2; color: #8a5a1e;
  border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600;
}

/* crm mock */
.crm-block { background: var(--wash); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.crm-block h6 { font-size: 14px; color: var(--body); font-weight: 500; margin-bottom: 10px; display: flex; justify-content: space-between; }
.crm-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; font-size: 14px; font-weight: 600;
}
.crm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.crm-person { background: var(--wash); border-radius: 16px; padding: 14px 16px; }
.crm-person span { font-size: 13.5px; color: var(--body); display: block; margin-bottom: 8px; }
.crm-person .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.crm-person img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ai-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-card); }
.ai-summary h6 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ai-li { display: flex; gap: 9px; font-size: 14px; color: var(--body); line-height: 1.5; margin-bottom: 7px; }
.ai-li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #c3c8d1; margin-top: 8px; }
.ai-flag { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; margin: 10px 0 8px; color: var(--ink); }

.dots { display: flex; gap: 9px; justify-content: center; padding-top: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: #d5d8de; transition: background .2s; }
.dots button.on { background: var(--accent); }

/* ---------- dashboard tabs section ---------- */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  margin-bottom: 44px; background: #fff;
}
.tabs button {
  padding: 20px; font-size: 18px; font-weight: 600; color: var(--ink);
  border-right: 1px solid var(--line);
}
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--wash); }
.dash-shell {
  border: 1px solid var(--line); border-radius: 26px; background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid; grid-template-columns: 64px 1fr;
  min-height: 560px;
}
.dash-rail {
  border-right: 1px solid var(--line); padding: 18px 0;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  color: #a5abb6;
}
.dash-rail img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.dash-main { padding: 28px 32px; }
.dash-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; margin-bottom: 20px; }
.dash-title .mg { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,#5f8cff,#2F6BFF); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.kpi span { font-size: 14px; color: var(--body); display: block; margin-bottom: 10px; }
.kpi b { font-size: 30px; letter-spacing: -.02em; font-weight: 700; }
.kpi b.up { color: var(--green); }

.funnel-cols { border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; position: relative; }
.f-col { padding: 16px 18px 90px; border-right: 1px solid var(--line); position: relative; }
.f-col:last-child { border-right: 0; }
.f-col span { font-size: 14px; color: var(--body); display: flex; gap: 6px; align-items: center; }
.f-col b { font-size: 26px; font-weight: 700; display: block; margin-top: 6px; }
.f-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; }

.vid-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vid-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 15.5px; }
.vid-row + .vid-row { border-top: 1px solid var(--line); }
.vid-row:first-child { background: var(--wash); }
.vid-thumb { width: 64px; height: 36px; border-radius: 7px; flex: none; background: linear-gradient(135deg, #2a3646, #48586d); display:grid; place-items:center; color:#9fb2c8; font-size:8px; font-weight:700; letter-spacing:.06em; }
.vid-row .views { margin-left: auto; color: var(--body); }
.vid-row .rev { font-weight: 700; width: 84px; text-align: right; }
.rev.pos { color: var(--green); } .rev.neg { color: var(--red); }

/* ask magnetic chat */
.ask { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.ask .q { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 18px; border-bottom-right-radius: 6px; padding: 16px 20px; font-size: 16px; max-width: 70%; line-height: 1.5; }
.ask .a { font-size: 16px; line-height: 1.65; color: #3c414b; }
.ask .a b { display: block; margin: 12px 0 2px; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; align-items: start; max-width: 1100px; margin: 0 auto; }
.cmp-card { border-radius: 30px; padding: 46px 44px; }
.cmp-card.without { background: #ededf0; color: #6a6f78; padding-right: 70px; }
.cmp-card.with {
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  margin-left: -34px; margin-top: 40px; position: relative; z-index: 2;
}
.cmp-card h3 { font-family: var(--display); font-weight: 600; font-size: 40px; letter-spacing: -.015em; text-align: center; }
.cmp-card.with h3 { color: var(--accent); }
.cmp-card .tagline { text-align: center; font-size: 17px; margin: 10px 0 30px; color: inherit; }
.cmp-li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 17px; }
.cmp-li .mk {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.without .mk { background: #dcdce1; color: #8a8f98; }
.with .mk { background: var(--accent); color: #fff; }
.cmp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.stat { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px 18px; }
.without .stat { border-color: #dcdce1; background: #f4f4f6; }
.stat span { display: block; font-size: 14.5px; color: var(--body); margin-bottom: 8px; }
.with .stat span { color: var(--accent); font-weight: 600; }
.stat .num { display: flex; align-items: center; justify-content: space-between; }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.delta { background: var(--green-soft); color: var(--green); border-radius: 999px; font-size: 13.5px; font-weight: 700; padding: 4px 10px; }
.stat.wide { grid-column: 1 / -1; }
.section-cta { text-align: center; margin-top: 64px; }

/* ---------- testimonials ---------- */
.wall-sec { background: var(--wash); padding: 120px 0 90px; position: relative; overflow: hidden; }
.wall-head { text-align: center; position: relative; z-index: 3; max-width: 620px; margin: 0 auto 40px; }
.wall-head .btn { margin-top: 34px; }
.wall { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; max-width: 1240px; margin: 40px auto 0; padding: 0 24px; }
.t-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; max-width: 400px; font-size: 15.5px; line-height: 1.5;
  box-shadow: var(--shadow-card);
}
.t-card.dark { background: #17181c; color: #e8e9ec; border-color: #26272c; }
.t-card .t-who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.t-card .t-who img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; filter: blur(3px); }
.t-card .t-who b { filter: blur(4px); font-size: 14px; }
.t-card .t-who time { color: var(--faint); font-size: 12.5px; }
.t-card .loud { font-size: 19px; font-weight: 600; }
.t-react { display: inline-flex; gap: 6px; margin-top: 10px; }
.t-react span { background: rgba(127,127,127,.14); border-radius: 999px; font-size: 12.5px; padding: 3px 9px; }
.t-card:nth-child(1) { transform: rotate(-2deg); }
.t-card:nth-child(3) { transform: rotate(1.5deg); }
.t-card:nth-child(5) { transform: rotate(-1deg); }
.t-card:nth-child(7) { transform: rotate(2deg); }

/* ---------- pricing ---------- */
.pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.toggle-wrap { display: flex; align-items: center; gap: 16px; }
.save-note { color: var(--accent); font-weight: 600; font-size: 17px; }
.toggle { display: flex; background: var(--wash); border-radius: 14px; padding: 4px; }
.toggle button { padding: 12px 26px; border-radius: 11px; font-weight: 600; font-size: 17px; color: var(--faint); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22,22,26,.08); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
}
.plan.popular { box-shadow: var(--shadow-pop); border-color: rgba(47,107,255,.35); }
.pop-ribbon {
  position: absolute; top: -44px; left: 0; right: 0; height: 60px; z-index: -1;
  background: linear-gradient(180deg, var(--accent-soft), #f8faff);
  border-radius: 22px 22px 0 0;
  display: flex; justify-content: center; padding-top: 12px;
  color: var(--accent-ink); font-weight: 600; font-size: 16px;
}
.plan h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.plan .desc { color: var(--body); font-size: 16.5px; line-height: 1.5; min-height: 76px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0; }
.plan .price b { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -.02em; }
.plan .price span { color: var(--faint); font-size: 16px; }
.plan .btn { width: 100%; margin-bottom: 26px; }
.plan-li { display: flex; gap: 11px; align-items: center; font-size: 16.5px; margin-bottom: 13px; }
.plan-li .ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px;
}
.plans-foot {
  background: var(--wash); border-radius: 18px; margin-top: 22px;
  display: flex; align-items: center; gap: 34px; padding: 20px 30px;
  font-size: 16.5px; flex-wrap: wrap;
}
.plans-foot .need { margin-left: auto; }
.plans-foot .need a { color: var(--accent); font-weight: 600; }
.plans-wrap { background: var(--wash); border-radius: 34px; padding: 26px; }
.plans-wrap .plans { position: relative; }

/* ---------- faq ---------- */
.faq { max-width: 1000px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; background: #fff; overflow: hidden; }
.faq-item.open { background: var(--wash); border-color: transparent; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 26px 30px; font-size: 20px; font-weight: 600;
}
.faq-q .x { color: var(--accent); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-item.open .faq-q .x { transform: rotate(45deg); color: var(--ink); }
.faq-a { display: none; padding: 0 30px 26px; color: var(--body); font-size: 17.5px; line-height: 1.65; max-width: 900px; }
.faq-item.open .faq-a { display: block; }

/* ---------- steps ---------- */
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 74px; }
.steps-head .actions { display: flex; gap: 12px; align-items: center; }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; position: relative; }
.step { position: relative; padding-top: 34px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #c9cdd4;
}
.step:first-child::before { background: var(--accent); }
.step::after {
  content: ''; position: absolute; top: 4.5px; left: 22px; right: -28px; border-top: 1px solid #dcdfe4;
}
.step:last-child::after { right: 12px; }
.step b { font-size: 21px; font-weight: 700; display: block; margin-bottom: 10px; }
.step p { color: var(--body); font-size: 17px; line-height: 1.55; }

/* footer collage */
.collage { position: relative; margin-top: 90px; height: 460px; overflow: hidden; }
.collage-inbox {
  position: absolute; left: 0; bottom: -30px; width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-pop); padding: 24px;
}
.collage-dash {
  position: absolute; left: 400px; right: 0; bottom: -40px; top: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-pop); padding: 26px 30px; overflow: hidden;
}
.cd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cd-head b { font-size: 18px; }
.cd-head span { color: var(--body); font-size: 14px; display: block; }
.cd-chip { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; color: var(--body); }
.cd-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; }

/* footer */
footer { padding: 90px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 80px 0 60px; }
.foot-cols h5 { font-size: 18px; font-weight: 700; margin-bottom: 22px; }
.foot-cols a, .foot-cols p { display: block; color: var(--body); font-size: 16.5px; margin-bottom: 14px; line-height: 1.55; }
.foot-cols a:hover { color: var(--accent); }
.foot-legal {
  display: flex; align-items: center; gap: 26px; padding: 26px 0 46px;
  color: var(--faint); font-size: 15.5px; flex-wrap: wrap;
}
.foot-legal .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.foot-legal .links a:hover { color: var(--ink); }
.soc { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }

/* ---------- feature page template ---------- */
.fp-hero { padding: 200px 0 90px; text-align: center; }
.fp-badge {
  display: inline-flex; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #f4f7ff, #e8efff);
  border: 1px solid rgba(47,107,255,.25);
  color: var(--accent); font-weight: 600; font-size: 17px;
  box-shadow: 0 6px 20px -6px rgba(47,107,255,.35);
  margin-bottom: 40px;
}
.fp-hero h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 900px; margin: 0 auto 30px; }
.fp-hero .sub { max-width: 620px; margin: 0 auto 44px; }
.fp-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fp-band { background: #ececee; padding: 90px 0; }
.fp-band .dash-shell { max-width: 1240px; margin: 0 auto; background: #fff; }
.fp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 90px 0 0; max-width: 1180px; margin: 0 auto; }
.fp-duo .cell h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.fp-duo .cell p { color: var(--body); font-size: 17.5px; line-height: 1.65; }
.fp-cell-art { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); padding: 22px; margin-bottom: 30px; background: #fff; }
.fp-mid { text-align: center; padding: 110px 24px 0; }
.fp-mid h2 { max-width: 800px; margin: 0 auto 26px; }
.fp-mid .sub { max-width: 560px; margin: 0 auto; }
.fp-cta-final { text-align: center; padding: 100px 0 130px; }
.fp-cta-final h2 { margin-bottom: 40px; }

/* funnel svg fill */
.wave-fill { fill: var(--accent); opacity: .16; }
.wave-fill.deep { opacity: 1; }

/* reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav.menu-open { border-radius: 28px; }
  .m-menu { display: none; }
  .nav-wrap.m-open .m-menu {
    display: block; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: #fff; border-radius: 22px;
    border: 1.5px solid rgba(255,255,255,.92);
    box-shadow: 0 0 0 5px rgba(255,255,255,.24), 0 24px 60px -20px rgba(30,60,120,.30);
    padding: 20px 22px 22px;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 130px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .mm-group h6 {
    font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--faint); font-weight: 600; margin: 14px 0 2px;
  }
  .mm-group:first-child h6 { margin-top: 0; }
  .m-menu a {
    display: flex; align-items: center;
    padding: 0 4px; font-size: 16.5px; font-weight: 600;
    min-height: 44px; box-sizing: border-box;
  }
  .m-menu a:active { color: var(--accent); }
  .mm-ctas { display: flex; gap: 10px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
  .mm-ctas a { flex: 1; justify-content: center; text-align: center; padding: 0 10px; min-height: 48px; }
  .mega { display: none !important; }
}
@media (min-width: 1081px) { .m-menu { display: none !important; } }

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .hero { padding-top: 150px; }
  .hero-badges { gap: 26px; }
  .slide { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .section-head-split { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .compare { grid-template-columns: 1fr; }
  .cmp-card.without { padding-right: 44px; }
  .cmp-card.with { margin-left: 0; margin-top: -26px; }
  .plans { grid-template-columns: 1fr; }
  .plan .desc { min-height: 0; }
  .pop-ribbon { display: none; }
  .plan.popular { border-color: var(--accent); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step::after { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .funnel-cols { grid-template-columns: repeat(3, 1fr); }
  .f-col:nth-child(n+4) { border-top: 1px solid var(--line); }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-rail { display: none; }
  .collage-inbox { display: none; }
  .collage-dash { left: 0; }
  .fp-duo { grid-template-columns: 1fr; gap: 50px; }
  .trusted { flex-direction: column; align-items: flex-start; gap: 14px; padding-left: 24px; }
  .vsl-frame { border-radius: 18px; }
  .journey-track { min-width: 1400px; }
  .pricing-head { margin-bottom: 30px; }
  .wall { gap: 16px; }
  .t-card { max-width: 100%; }
}

@media (max-width: 560px) {
  .hero-inner .btn, .fp-ctas .btn, .slide-copy .btn, .section-cta .btn { width: 100%; }
  .fp-ctas { flex-direction: column; }
  .steps-head .actions { width: 100%; flex-direction: column; }
  .steps-head .actions .btn { width: 100%; }
  .hero-badges { gap: 22px; }
  .cmp-card { padding: 34px 26px; }
  .cmp-card.without { padding-right: 26px; }
}

/* ===== mobile overflow + layout fixes ===== */
html { overflow-x: hidden; }
.marquee { min-width: 0; }
@media (max-width: 900px) {
  .trusted { align-items: stretch; }
  .trusted .marquee { width: 100%; min-width: 0; max-width: 100%; }
  /* horizontal decorative tracks: contain, let them scroll rather than blow width */
  .journey { max-width: 100vw; }
  .journey-track { min-width: 1120px; }
  .nav { padding: 8px 10px 8px 16px; }
  .nav-logo { margin-right: 0; }
}
/* belt-and-suspenders: nothing forces the page wider than the screen */
body, .section, .hero, footer { max-width: 100vw; }

/* ============================================================
   PHONE UI SYSTEM — reverse-engineered from Mochi's mobile:
   one consistent gutter, nothing touches the edge, full-width
   CTAs, softened radii, tighter type scale, roomy rhythm.
   ============================================================ */
html, body { overflow-x: clip; }

@media (max-width: 640px) {
  :root { --gx: 22px; }

  /* one gutter on every content container */
  .wrap, .hero-inner, .section-head-center, .compare, .plans, .steps,
  .wall, .foot-in, .funnel-cols, .journey-track, .kpis, .fp-duo, .dash-shell {
    padding-left: var(--gx) !important; padding-right: var(--gx) !important;
    margin-left: auto; margin-right: auto; width: 100%;
  }

  /* vertical rhythm */
  .section, .wall-sec { padding-top: 68px !important; padding-bottom: 68px !important; }
  .hero { padding-top: 132px; }
  .journey { padding: 92px 0 20px; }

  /* type scale */
  .hero h1 { font-size: clamp(33px, 8.8vw, 46px); line-height: 1.05; letter-spacing: -.032em; }
  .hero .sub { font-size: 16.5px; line-height: 1.55; }
  .section-head-center h2, .compare + * h2, h2 { font-size: clamp(27px, 7.2vw, 34px); }
  .section-head-center .sub { font-size: 16px; }

  /* cards: full width inside the gutter, softer radius, no desktop offsets */
  .cmp-card, .plan, .t-card, .j-card {
    width: 100% !important; max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
  }
  .cmp-card { padding: 30px 24px !important; border-radius: 22px; }
  .cmp-card.without { padding-right: 24px !important; }
  .cmp-card.with { margin-top: 16px !important; }
  .cmp-card h3 { font-size: 29px; }
  .compare { gap: 16px; }
  .plans { gap: 16px; }
  .plan { padding: 30px 24px; }
  .wall { gap: 14px; }
  .t-card { padding: 20px; border-radius: 18px; }
  .journey-track { min-width: 0 !important; }
  .j-card { max-width: 320px; }

  /* full-width primary CTAs (never the nav) */
  .hero .btn, .section-cta .btn, .wall-head .btn, .pricing-cta .btn,
  .final-cta .btn, .cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 15px 22px; }

  /* nav pill inset from the screen edges */
  .nav-shell { padding: 0 16px; top: 14px; }
  .nav { padding: 8px 8px 8px 16px; }

  /* footer breathes */
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
}

/* corrective: grids inside .wrap must shrink, not force min-content width */
@media (max-width: 640px) {
  .compare, .plans, .steps, .funnel-cols { padding-left: 0 !important; padding-right: 0 !important; }
  .compare { grid-template-columns: minmax(0, 1fr) !important; }
  .plans   { grid-template-columns: minmax(0, 1fr) !important; }
  .steps   { grid-template-columns: minmax(0, 1fr) !important; }
  .funnel-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  .kpis { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  .cmp-card, .plan, .t-card, .j-card, .step, .kpi, .f-col, .slide { min-width: 0 !important; }
}

/* ---- hero polish (phone): balanced trust badges + readable video caption ---- */
@media (max-width: 640px) {
  .hero-badges { gap: 0 !important; margin-top: 26px; justify-content: center; }
  .badge-item { flex: 1; max-width: 180px; padding: 0 8px; }
  .badge-item + .badge-item { border-left: 1px solid var(--line); }
  .badge-item .mark { font-size: 19px; line-height: 1.1; }
  .badge-item .small, .badge-item .as { font-size: 12px; margin: 2px 0 0; }

  .trusted { padding: 30px 0 20px !important; }

  .vsl { margin-top: 30px; }
  .vsl-frame { aspect-ratio: 5 / 4; border-radius: 20px; }
  .vsl-play { width: 76px; height: 76px; z-index: 3; }
  .vsl-cap {
    left: 0; right: 0; bottom: 0; top: auto; text-align: left;
    padding: 40px 18px 16px; font-size: 12.5px; line-height: 1.45;
    color: #fff; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 55%, transparent);
  }
}

/* ---- lead-journey: stack vertically on phone instead of a clipped 1600px row ---- */
@media (max-width: 640px) {
  .journey { padding: 40px 0 24px !important; }
  .journey-track {
    min-width: 0 !important; flex-direction: column; gap: 18px;
    padding: 0 22px; max-width: 460px; margin: 0 auto; width: 100%;
  }
  .j-step { width: 100% !important; min-width: 0 !important; }
  .j-line { display: none; }
}

/* =========================================================
   SOFTWARE UI KIT — the real product surface, not a picture
   ========================================================= */

.app {
  background: #fff; border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22,22,26,.04), 0 30px 70px -24px rgba(30,60,120,.24);
  display: grid; grid-template-columns: 62px 214px 1fr;
  overflow: hidden; min-height: 560px;
  container-type: inline-size;
}
.app.no-side { grid-template-columns: 62px 1fr; }
.app.solo { grid-template-columns: 1fr; }

/* icon rail */
.a-rail {
  border-right: 1px solid var(--line); background: #fbfbfc;
  padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.a-rail .r-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #9aa0aa;
  transition: background .15s ease, color .15s ease;
}
.a-rail .r-ico:hover { background: #f0f1f4; color: var(--ink); }
.a-rail .r-ico.on { background: #eceef2; color: var(--ink); }
.a-rail .r-av {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-bottom: 6px;
}
.a-rail .r-add {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--faint); margin-bottom: 10px; background: #fff;
}
.a-rail .r-sp { flex: 1; }
.a-rail .r-me { position: relative; }
.a-rail .r-me::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green); border: 2px solid #fbfbfc;
}

/* sidebar */
.a-side { border-right: 1px solid var(--line); padding: 20px 14px; }
.a-side .ws { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.a-side .ws .badge {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: #e6edff; color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.a-side .ws b { font-size: 16.5px; }
.a-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 10px; border-radius: 11px;
  font-size: 15.5px; font-weight: 500; color: #454a53;
  transition: background .15s ease;
}
.a-nav a:hover { background: #f5f5f7; }
.a-nav a.on {
  background: #fff; color: var(--ink); font-weight: 600;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22,22,26,.05);
}
.a-nav svg { color: #8b919b; flex: none; }
.a-nav a.on svg { color: var(--accent); }

/* main */
.a-main { padding: 26px 28px; min-width: 0; }
.a-h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.a-h1 span { color: var(--faint); font-weight: 500; }
.a-sub { color: var(--body); font-size: 15px; margin: 6px 0 20px; }

/* stat cards with glossy chips */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  border: 1px solid var(--line); border-radius: 15px; padding: 15px 17px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(30,60,120,.28); }
.stat-card .lbl { font-size: 14.5px; color: var(--body); margin-bottom: 14px; }
.stat-card .val { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.stat-card .val > span:first-child { display: flex; align-items: baseline; white-space: nowrap; min-width: 0; }
.stat-card .val b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat-card .val i { font-style: normal; font-size: 14px; color: var(--body); margin-left: 4px; }
.chip {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 10px -3px rgba(30,60,120,.4), inset 0 1px 0 rgba(255,255,255,.45);
}
.chip.blue   { background: linear-gradient(160deg, #5b8bff, #2F6BFF); }
.chip.sky    { background: linear-gradient(160deg, #46b7ff, #1f8fe0); }
.chip.orange { background: linear-gradient(160deg, #ffb04d, #f7860d); }
.chip.green  { background: linear-gradient(160deg, #34cd7d, #12a058); }
.chip.violet { background: linear-gradient(160deg, #9b7bff, #6d47f0); }
.chip.slate  { background: linear-gradient(160deg, #78838f, #4c5561); }

/* tab row with counts */
.a-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.a-tabs button {
  padding: 12px 2px; font-size: 15.5px; font-weight: 600; color: var(--body);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.a-tabs button em { font-style: normal; color: var(--faint); font-weight: 500; }
.a-tabs button:hover { color: var(--ink); }
.a-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* filter pills + search */
.a-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.f-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: background .15s ease;
}
.f-pill:hover { background: #f7f7f9; }
.f-pill svg { color: #8b919b; }
.a-search {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 14px;
  color: var(--faint); font-size: 14.5px; min-width: 210px; background: #fff;
}

/* account rows */
.a-panel { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; margin-bottom: 20px; }
.a-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 17px; background: #fafafb; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 15.5px;
}
.a-panel-head .add { color: var(--accent); font-weight: 600; font-size: 14.5px; }
.acct { display: flex; align-items: center; gap: 13px; padding: 13px 17px; }
.acct + .acct { border-top: 1px solid var(--line); }
.acct .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: #e8f3ec; color: #0f7a44;
}
.acct .who b { display: block; font-size: 15.5px; }
.acct .who span { font-size: 13.5px; color: var(--body); }
.acct .sync {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--body);
}
.acct .rm { color: var(--red); font-size: 15px; padding-left: 6px; }

/* data table */
.dtable { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.dtable .dt-head, .dtable .dt-row { display: grid; align-items: center; gap: 10px; padding: 11px 17px; }
.dtable .dt-head {
  background: #fafafb; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--body); font-weight: 500;
}
.dtable .dt-row { border-top: 1px solid var(--line); font-size: 15px; transition: background .15s ease; }
.dtable .dt-row:first-of-type { border-top: 0; }
.dtable .dt-row:hover { background: #fafbfd; }
.dt-vid { grid-template-columns: 1fr 62px 62px 62px 58px 54px 92px; }
.dt-vid .num, .dt-vid .hnum { text-align: right; }
.dt-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dt-thumb {
  width: 62px; height: 36px; border-radius: 7px; flex: none; object-fit: cover;
  background: linear-gradient(135deg, #2a3646, #48586d);
}
.dt-title b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-title span { font-size: 13px; color: var(--body); }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.dt-rev { font-weight: 700; }
.dt-dot { border-bottom: 1.5px dotted #c3c8d1; }

/* lead profile / summary widgets */
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.w-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; }
.w-card h6 { font-size: 14px; color: var(--body); font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; }
.w-list li { display: flex; gap: 9px; font-size: 14.5px; color: var(--body); line-height: 1.5; margin-bottom: 8px; list-style: none; }
.w-list li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #c3c8d1; margin-top: 8px; }
.w-flag { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; margin: 12px 0 8px; color: var(--ink); }

/* progress bars */
.bar { height: 7px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5b8bff, #2F6BFF); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.rv.in .bar i { width: var(--w, 60%); }

/* =========================================================
   BENTO
   ========================================================= */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px; margin: 0 auto; max-width: 1180px;
}
.b-tile {
  grid-column: span 2;
  border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  background: #fff; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.b-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -22px rgba(30,60,120,.28); border-color: rgba(47,107,255,.28); }
.b-tile.wide { grid-column: span 3; }
.b-tile.half { grid-column: span 3; }
.b-tile.full { grid-column: span 6; }
.b-tile.tint { background: linear-gradient(180deg, #f7faff, #fff); }
.b-tile .b-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: #fff;
}
.b-tile h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 9px; }
.b-tile p { color: var(--body); font-size: 16px; line-height: 1.55; }
.b-tile .b-art { margin-top: 20px; }
.b-metric { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.b-metric b { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.b-metric span { font-size: 15px; color: var(--body); }

/* mini visuals inside bento */
.mini-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row .m-thumb { width: 40px; height: 24px; border-radius: 5px; flex: none; object-fit: cover; background: #2b3948; }
.mini-row .m-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .m-v { font-weight: 700; }

.spark { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.spark i {
  flex: 1; border-radius: 4px 4px 0 0; display: block;
  background: linear-gradient(180deg, #7ba3ff, #2F6BFF);
  height: 12%; transition: height .8s cubic-bezier(.2,.8,.2,1);
}
.rv.in .spark i { height: var(--h, 40%); }

/* =========================================================
   MOTION
   ========================================================= */
.rv { transition-delay: var(--d, 0ms); }
.count { font-variant-numeric: tabular-nums; }

@keyframes dotPulse { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dotPulse 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(23,164,92,.45); } 70% { box-shadow: 0 0 0 8px rgba(23,164,92,0); } 100% { box-shadow: 0 0 0 0 rgba(23,164,92,0); } }
.live-proof { display: inline-flex; align-items: center; gap: 9px; color: var(--body); font-size: 15.5px; margin-top: 20px; }
.live-proof .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livePulse 2.2s infinite; }
@media (prefers-reduced-motion: reduce) { .typing i, .live-proof .dot { animation: none; } }

/* how it works numbered */
.hiw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 0 auto; }
.hiw-step { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.hiw-step .n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.hiw-step b { display: block; font-size: 19px; margin-bottom: 8px; }
.hiw-step p { color: var(--body); font-size: 16px; line-height: 1.55; }

/* =========================================================
   RESPONSIVE for the kit
   ========================================================= */
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .a-rail, .a-side { display: none; }
  .a-main { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-tile, .b-tile.wide, .b-tile.half, .b-tile.full { grid-column: span 2; }
  .hiw { grid-template-columns: 1fr; gap: 16px; }
  .a-two { grid-template-columns: 1fr; }
  .dt-vid { grid-template-columns: 1fr 58px 74px; }
  .dt-vid .hide-sm, .dt-vid .dt-hide { display: none; }
  .a-tabs { overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .a-tabs::-webkit-scrollbar { display: none; }
  .a-tabs button { white-space: nowrap; }
  .a-search { min-width: 0; width: 100%; margin-left: 0; order: 9; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 13px 14px; }
  .stat-card .val b { font-size: 23px; }
  .chip { width: 28px; height: 28px; }
  .b-tile { padding: 22px; border-radius: 18px; }
  .b-metric b { font-size: 34px; }
}

/* stacked journey on phones: no horizontal connector */
@media (max-width: 640px) {
  .j-rule { display: none; }
  .j-step { padding-right: 0; }
}

/* app kit must actually fit the phone, not clip */
.app > *, .a-main, .stat-grid, .stat-card, .dtable, .a-panel { min-width: 0; }
.stat-card .val { flex-wrap: nowrap; }
@media (max-width: 700px) {
  .stat-card .val > span:first-child { white-space: normal; }
  .stat-card .val i { display: none; }          /* unit label drops, number + chip stay */
  .stat-card .lbl { margin-bottom: 10px; font-size: 13.5px; }
  .a-main { padding: 18px 16px; }
  .a-filters { gap: 8px; }
  .f-pill { font-size: 13.5px; padding: 8px 11px; }
  .a-search { width: 100%; }
  .acct .who span { font-size: 12.5px; }
  .dt-thumb { width: 48px; height: 28px; }
  .dt-title b { font-size: 14px; }
  .dtable .dt-head, .dtable .dt-row { padding: 10px 12px; gap: 8px; }
}
