/* ==========================================================================
   Hayloo — Public Landing Page
   Design tokens + layout + components
   ========================================================================== */

:root {
  /* Color system */
  --color-primary: #16A34A;
  --color-primary-hover: #15803D;
  --color-primary-action: #15803D;       /* button background - passes WCAG AA (5.02:1 vs white), #16A34A stays accent/icon/status only */
  --color-primary-action-hover: #126E34; /* darker hover for buttons already on --color-primary-action, 6.35:1 vs white */
  --color-dark: #101828;
  --color-text: #344054;
  --color-muted: #667085;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAF9;
  --color-green-soft: #F0FDF4;
  --color-border: #E4E7EC;
  --color-white: #FFFFFF;

  /* Typography */
  --font-sans: 'Manrope', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radius */
  --radius-button: 9px;
  --radius-card: 14px;
  --radius-shell: 18px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 4px 8px rgba(16, 24, 40, 0.04), 0 12px 24px rgba(16, 24, 40, 0.08);
  --shadow-float: 0 8px 16px rgba(16, 24, 40, 0.06), 0 20px 40px rgba(16, 24, 40, 0.10);

  /* Layout */
  --container-max: 1280px;
  --pad-desktop: 32px;
  --pad-tablet: 24px;
  --pad-mobile: 20px;
  --section-gap-desktop: 128px;
  --section-gap-mobile: 72px;

  color-scheme: light;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden/auto on body creates a new scroll container
     and breaks position:sticky on .navbar in Chrome/Safari; clip trims
     overflow without doing that */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

@media (max-width: 1023px) {
  .container { padding: 0 var(--pad-tablet); }
}
@media (max-width: 639px) {
  .container { padding: 0 var(--pad-mobile); }
}

section {
  padding: var(--section-gap-desktop) 0;
}
@media (max-width: 639px) {
  section { padding: var(--section-gap-mobile) 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary-hover);
  background: var(--color-green-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-dark);
  font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem);
}

h2, .h2 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-dark);
  font-size: clamp(1.85rem, 1.55rem + 1.4vw, 3rem);
}

h3, .h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-dark);
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.75rem);
}

.body-lg {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  color: var(--color-muted);
  line-height: 1.65;
}

.small {
  font-size: 13.5px;
  color: var(--color-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 15px;
  /* line-height:1.2, not inherited body 1.6 - without this every button
     sitewide renders ~6px taller than its padding implies (50px instead of
     44px for the base size). Root cause of "buttons look too big" feedback
     across navbar, hero and pricing all at once. */
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary-action);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-action-hover); }

.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-dark); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 12px 8px;
}
.btn-ghost:hover { color: var(--color-dark); }

.btn-dark {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-dark:hover { background: #eef1f4; }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03), 0 4px 16px rgba(16, 24, 40, 0.05);
}
.navbar .container {
  /* width:100% is required here: .navbar is display:flex, so without an
     explicit width its lone child (.container) shrinks to fit its content
     and gets centered by the auto side-margins instead of stretching full
     width - found 2026-09-15 during Task 6 breakpoint testing at 1280px,
     where the navbar was ~180px more inset than every other section's
     .container on the same page. The equivalent mobile-only fix already
     existed in the 639px media query below; this makes it apply at every
     breakpoint, not just mobile. */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
/* grid-column pinned explicitly on all 3 children (here + .nav-logo/.nav-links
   below): without it, CSS Grid auto-placement skips display:none items when
   assigning tracks, so hiding .nav-links (640-899px, see 899px media query)
   shifted .nav-actions into the middle "auto" track instead of the 3rd "1fr"
   track, stranding it away from the right edge with an invisible empty
   column after it. Found 2026-09-15 during Task 6 breakpoint testing at
   768px (iPad portrait). */
.nav-actions { grid-column: 3; justify-self: end; }
.nav-logo {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}
.nav-logo .mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo .mark svg { width: 17px; height: 17px; stroke-width: 2.2; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--color-bg-soft); color: var(--color-dark); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 24px var(--pad-mobile) 32px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu > a {
  /* Direct-child combinator so this only targets the top-level nav links
     (Produk/Solusi/Harga/Panduan), not the .btn-primary/.btn-secondary links
     nested in .mobile-actions below - a plain ".mobile-menu a" descendant
     selector was previously winning by specificity over ".btn-primary" and
     overriding its white text to --color-dark on a green background
     (contrast ~3.5:1). */
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 639px) {
  /* Mobile top bar: logo + hamburger only. "Hubungi Kami" pindah jadi
     aksi utama di dalam mobile menu (lihat .mobile-menu), bukan hilang -
     supaya top bar tidak berdesakan dua CTA + toggle sekaligus. */
  .nav-actions .btn-primary { display: none; }

  /* Compact mobile navbar: flex space-between (bukan grid 3-kolom warisan
     desktop) supaya brand kiri & hamburger kanan presisi di 2 ujung
     container, tinggi lebih pendek karena isinya cuma logo+toggle. */
  .navbar { height: 64px; }
  .navbar .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu { inset: 64px 0 0 0; }

  .nav-toggle { width: 40px; height: 40px; border-radius: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 40px;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .body-lg { max-width: 620px; margin: 0 auto 32px; font-size: 18px; }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-muted);
}
.hero-note .icon { width: 16px; height: 16px; color: var(--color-primary); }

/* Hero product visual */
.hero-visual {
  position: relative;
  margin-top: 72px;
  padding: 0 var(--pad-desktop);
}
.hero-visual-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.app-shell {
  display: flex;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-shell);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  min-height: 480px;
}
.app-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--color-dark);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-sidebar .sb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 8px 18px;
}
.app-sidebar .sb-brand .mark {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.app-sidebar .sb-brand .mark svg { width: 13px; height: 13px; stroke-width: 2.4; color: #fff; }
.app-sidebar .sb-brand .brand-mark { width: 22px; height: 22px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #94A3AF;
  font-size: 13.5px;
  font-weight: 600;
}
.sb-item .icon { width: 16px; height: 16px; }
.sb-item.active { background: rgba(255,255,255,0.08); color: #fff; }

.app-main {
  flex: 1;
  min-width: 0;
  padding: 26px 28px;
  background: var(--color-bg-soft);
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.app-topbar .title { font-weight: 800; font-size: 17px; color: var(--color-dark); }
.app-topbar .biz-switch {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border);
  padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
}
.app-topbar .biz-switch .icon { width: 14px; height: 14px; color: var(--color-muted); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.stat-card .label {
  font-size: 12.5px; color: var(--color-muted); font-weight: 700;
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.stat-card .label .icon { width: 14px; height: 14px; color: var(--color-primary); }
.stat-card .value {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 22px; color: var(--color-dark);
}
.stat-card .delta { font-size: 12.5px; color: var(--color-primary-hover); font-weight: 700; margin-top: 4px; }

.chart-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.chart-card .chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-card .chart-head .title { font-weight: 700; font-size: 14.5px; color: var(--color-dark); }
.bars {
  display: flex; align-items: flex-end; gap: 10px; height: 120px;
}
.bars .bar { flex: 1; background: var(--color-green-soft); border-radius: 6px 6px 0 0; position: relative; }
.bars .bar.filled { background: var(--color-primary); }
.bars .bar span {
  position: absolute; bottom: -20px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; color: var(--color-muted); font-weight: 600;
}

/* Floating mini cards on hero */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  box-shadow: var(--shadow-lift);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .icon-wrap {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--color-green-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card .icon-wrap .icon { width: 16px; height: 16px; color: var(--color-primary-hover); }
.float-card .sub { font-size: 11.5px; color: var(--color-muted); font-weight: 600; margin-top: 1px; }

.fc-1 { top: -18px; left: -28px; animation-delay: 0s; }
.fc-2 { top: 60px; right: -34px; animation-delay: 1.2s; }
.fc-3 { bottom: 70px; left: -40px; animation-delay: 2.4s; }
.fc-4 { bottom: -22px; right: 40px; animation-delay: 0.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1023px) {
  .app-sidebar { display: none; }
  .float-card { display: none; }
  .hero-visual { padding: 0 var(--pad-mobile); }
}
@media (max-width: 639px) {
  .stat-row { grid-template-columns: 1fr; }
  .app-main { padding: 20px; }
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust p {
  text-align: center;
  color: var(--color-muted);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Problem (editorial) ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.problem-item {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.problem-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--color-border); }
.problem-item:nth-child(even) { padding-left: 40px; }
.problem-num {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
  display: block;
}
.problem-item h3 { margin-bottom: 10px; }
.problem-item p { color: var(--color-muted); font-size: 15.5px; line-height: 1.65; }

@media (max-width: 767px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .problem-item:nth-child(even) { padding-left: 0; }
}

/* ---------- Product overview (showcase) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.showcase-panel { min-width: 0; }
.showcase-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.showcase-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.showcase-nav button .icon { width: 17px; height: 17px; }
.showcase-nav button:hover { background: var(--color-bg-soft); color: var(--color-dark); }
.showcase-nav button.active {
  background: var(--color-green-soft);
  color: var(--color-primary-hover);
  border-color: #DCFCE7;
}

.showcase-panel {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-shell);
  padding: 8px;
  min-height: 420px;
}
.showcase-frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  min-height: 400px;
  display: none;
}
.showcase-frame.active { display: block; }
.showcase-frame .frame-title { font-weight: 800; font-size: 15px; color: var(--color-dark); margin-bottom: 18px; }

@media (max-width: 899px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; }
  .showcase-nav button { flex-shrink: 0; }
}

/* ---------- Feature sections (alternating) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-text, .feature-visual { min-width: 0; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text .body-lg { margin-bottom: 24px; }
.feature-highlights { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.feature-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text);
}
.feature-highlights .icon { width: 17px; height: 17px; color: var(--color-primary); margin-top: 2px; }

.feature-visual {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-shell);
  padding: 22px;
}

@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-text,
  .feature.reverse .feature-visual { order: initial; }
}

/* Inbox mockup */
.inbox-mock { display: flex; gap: 14px; height: 340px; }
.inbox-list { width: 40%; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.inbox-list-item { padding: 10px; border-radius: 10px; }
.inbox-list-item.active { background: var(--color-green-soft); }
.inbox-list-item .name { font-weight: 700; font-size: 13.5px; color: var(--color-dark); }
.inbox-list-item .preview { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.inbox-chat { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.inbox-window-tag {
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-hover);
  background: var(--color-green-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.bubble.in { background: #F2F4F7; align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble.out { background: var(--color-green-soft); align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble .meta { font-size: 10px; color: var(--color-muted); margin-top: 4px; text-align: right; }

/* Campaign mockup */
.campaign-mock .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.campaign-mock .row:last-child { border-bottom: none; }
.campaign-mock .row .k { font-size: 13.5px; color: var(--color-muted); font-weight: 600; }
.campaign-mock .row .v { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; color: var(--color-dark); }
.campaign-mock .row .v.excluded { color: #B54708; }
.campaign-mock .row .v.cost { color: var(--color-primary-hover); font-size: 15px; }
.campaign-mock .title { font-weight: 800; font-size: 14.5px; color: var(--color-dark); margin-bottom: 4px; }
.campaign-mock .status { font-size: 11.5px; font-weight: 700; color: var(--color-primary-hover); background: var(--color-green-soft); padding: 3px 9px; border-radius: var(--radius-pill); display: inline-block; margin-bottom: 16px; }

/* Report mockup */
.report-mock .metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.report-mock .metric .n { font-family: var(--font-mono); font-weight: 700; font-size: 24px; color: var(--color-dark); }
.report-mock .metric .l { font-size: 12px; color: var(--color-muted); font-weight: 700; margin-top: 2px; }
.report-mock .metric.failed .n { color: #B42318; }
.report-mock .metric.read .n { color: var(--color-primary-hover); }

/* Contact card mockup */
.contact-mock { display: flex; flex-direction: column; gap: 16px; }
.contact-avatar-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.contact-mock .cname { font-weight: 800; font-size: 15px; color: var(--color-dark); }
.contact-mock .cphone { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-muted); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-bg-soft); border: 1px solid var(--color-border); color: var(--color-text); }
.tag.consent { background: var(--color-green-soft); color: var(--color-primary-hover); border-color: #DCFCE7; }
.contact-mock .field { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--color-border); font-size: 13px; }
.contact-mock .field .k { color: var(--color-muted); font-weight: 600; }
.contact-mock .field .v { font-weight: 700; color: var(--color-dark); }

/* Numbers list mockup */
.numbers-mock { display: flex; flex-direction: column; gap: 10px; }
.number-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; }
.number-row .left { display: flex; align-items: center; gap: 12px; }
.number-row .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--color-green-soft); display: flex; align-items: center; justify-content: center; }
.number-row .ico .icon { width: 17px; height: 17px; color: var(--color-primary-hover); }
.number-row .nm { font-weight: 700; font-size: 14px; color: var(--color-dark); }
.number-row .num { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.status-dot { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--color-primary-hover); }
.status-dot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }

/* Business switcher mockup */
.biz-mock { display: flex; flex-direction: column; gap: 8px; }
.biz-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--color-border); background: #fff; }
.biz-row.active { border-color: var(--color-primary); background: var(--color-green-soft); }
.biz-row .sq { width: 36px; height: 36px; border-radius: 9px; background: var(--color-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.biz-row .nm { font-weight: 700; font-size: 14px; color: var(--color-dark); }
.biz-row .role { font-size: 11.5px; color: var(--color-muted); }

/* Template builder mockup */
.template-mock { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.template-form .f-row { margin-bottom: 14px; }
.template-form label { font-size: 11.5px; font-weight: 700; color: var(--color-muted); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.template-form .f-box { border: 1px solid var(--color-border); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; color: var(--color-dark); background: #fff; }
.wa-preview { background: #E9DFCE; border-radius: 14px; padding: 14px; }
.wa-preview .wa-bubble { background: #fff; border-radius: 8px; padding: 10px 11px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,0.06); }
.wa-preview .wa-bubble .btn-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-border); text-align: center; font-size: 12px; font-weight: 700; color: #00A5F4; }

/* ---------- Cost transparency ---------- */
.cost-section { background: var(--color-green-soft); }
.cost-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cost-inner > div { min-width: 0; }
.cost-card { background: #fff; border: 1px solid #DCFCE7; border-radius: var(--radius-shell); padding: 28px; box-shadow: var(--shadow-subtle); }
.cost-card .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.cost-card .row:last-child { border-bottom: none; padding-top: 18px; }
.cost-card .row .k { color: var(--color-muted); font-weight: 600; }
.cost-card .row .v { font-weight: 700; color: var(--color-dark); font-family: var(--font-mono); }
.cost-card .total .k, .cost-card .total .v { font-size: 17px; font-weight: 800; color: var(--color-primary-hover); }
.disclaimer-box {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  font-size: 13px;
  color: var(--color-muted);
}
.disclaimer-box .icon { width: 16px; height: 16px; color: var(--color-muted); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 899px) {
  .cost-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Access control ---------- */
.access-mock { display: flex; flex-direction: column; gap: 10px; }
.access-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; }
.access-row .left { display: flex; align-items: center; gap: 12px; }
.access-row .role-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.role-pill.owner { background: var(--color-dark); color: #fff; }
.role-pill.admin { background: var(--color-green-soft); color: var(--color-primary-hover); }
.role-pill.staff { background: var(--color-bg-soft); color: var(--color-muted); border: 1px solid var(--color-border); }
.access-row .scope { font-size: 12.5px; color: var(--color-muted); }

/* ---------- Compliance ---------- */
.compliance-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.compliance-inner > div { min-width: 0; }
.compliance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.compliance-stats .cs { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 18px; }
.compliance-stats .cs .n { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--color-dark); }
.compliance-stats .cs.excluded .n { color: #B54708; }
.compliance-stats .cs .l { font-size: 12px; color: var(--color-muted); font-weight: 700; margin-top: 2px; }
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-list .r { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--color-border); }
.reason-list .r .k { color: var(--color-muted); font-weight: 600; }
.reason-list .r .v { font-weight: 700; color: var(--color-dark); font-family: var(--font-mono); }

@media (max-width: 899px) {
  .compliance-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step { padding: 0 24px; position: relative; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 18px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--color-muted); font-size: 15px; }
.step-connector {
  position: absolute;
  top: 9px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--color-border);
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding: 0; }
  .step-connector { display: none; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-shell);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lift);
  position: relative;
}
.price-card .featured-tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--color-primary-action); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.price-card .p-name { font-weight: 800; font-size: 19px; color: var(--color-dark); margin-bottom: 8px; }
.price-card .p-desc { color: var(--color-muted); font-size: 14.5px; margin-bottom: 24px; min-height: 44px; }
.price-card .p-cta-val { font-size: 15px; font-weight: 700; color: var(--color-dark); margin-bottom: 20px; }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.price-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--color-text); }
.price-list .icon { width: 16px; height: 16px; color: var(--color-primary); margin-top: 2px; }
.pricing-note {
  margin-top: 28px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13.5px;
}

@media (max-width: 899px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-dark);
}
.faq-q .icon { width: 19px; height: 19px; color: var(--color-muted); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--color-primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 4px 22px; color: var(--color-muted); font-size: 15px; line-height: 1.65; max-width: 640px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--color-dark);
  color: #fff;
}
.final-cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: #98A2B3; font-size: 17px; margin-bottom: 36px; }
.final-cta .hero-cta { justify-content: center; }
.final-cta .btn-secondary { border-color: #344054; color: #fff; }
.final-cta .btn-secondary:hover { border-color: #fff; }
.final-cta .hero-note { color: #667085; margin-top: 24px; }
.final-cta .hero-note a { color: #98A2B3; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--color-dark); color: #98A2B3; padding-top: 72px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1D2939;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 260px; color: #667085; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: #98A2B3; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-bottom .copyright { font-size: 13px; color: #667085; }
.footer-bottom .trademark { font-size: 12px; color: #475467; max-width: 780px; line-height: 1.6; }

@media (max-width: 899px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive: mobile-wide adjustments ---------- */
@media (max-width: 639px) {
  h1, .h1 { font-size: clamp(2.25rem, 8vw, 2.75rem); }
  .hero { padding-top: 56px; }
  .hero-visual { margin-top: 48px; }
  .app-shell { min-height: auto; }
  .app-main { padding: 18px; }
  .app-topbar .title { font-size: 15.5px; }
  .section-head { margin-bottom: 36px; }
  .stat-row { gap: 10px; }
  .btn-block-mobile { width: 100%; }
  .hero-cta .btn, .final-cta .hero-cta .btn { width: 100%; padding: 12px 22px; font-size: 15px; line-height: 1.2; }
  .hero-cta { gap: 10px; }

  /* Text wraps to 2 lines at this width - icon vertically centered against
     the whole 2-line block (desktop default) reads as "floating" instead of
     marking the start of the paragraph. flex-start lines it up with the
     first line, closer to a bullet/leading-icon pattern. */
  .hero-note { align-items: flex-start; }
  .hero-note .icon { margin-top: 3px; }

  /* Navbar mobile: logo + hamburger only (CTA hidden, see 639px block above) */
  .nav-logo { font-size: 17px; font-weight: 700; gap: 8px; }

  /* Inbox mockup: stack list above chat instead of squeezing side-by-side */
  .inbox-mock { flex-direction: column; height: auto; gap: 10px; }
  .inbox-list {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  .inbox-list-item {
    flex-shrink: 0;
    width: 160px;
    /* Horizontal-scroll strip clips the trailing item mid-card - without
       its own border/background, a non-active item is just plain text
       (only .active gets a background), so the clipped peek reads as
       broken/floating text instead of "next card, scroll to see more". */
    border: 1px solid var(--color-border);
    background: var(--color-bg);
  }
  .inbox-list-item.active { border-color: transparent; }
  .inbox-chat { max-height: 280px; overflow-y: auto; }

  /* Template builder mockup: stack form above WhatsApp preview */
  .template-mock { grid-template-columns: 1fr; gap: 16px; }
  .wa-preview { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .cost-card, .price-card { padding: 24px 20px; }
}

/* Ensure no horizontal overflow (html kept overflow-x:visible on purpose -
   hidden/auto here breaks position:sticky on .navbar, see body rule above) */
html { max-width: 100%; }
