/* Shared styles for product pages (OmniFlow, OmniPulse, OmniFulfil).
   Each page sets its accent on <body class="theme-*">. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface2: #F2F2F5;
  --ink: #0B0E14;
  --muted: #6B7280;
  --border: #E7E7EA;
  --indigo: #5B4FEE;
  --teal: #00A896;
  --amber: #D97706;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --accent: var(--teal);
  --accent-soft: rgba(0,168,150,.1);
  --accent-line: rgba(0,168,150,.3);
}
body.theme-flow   { --accent: var(--teal);   --accent-soft: rgba(0,168,150,.1);  --accent-line: rgba(0,168,150,.3); }
body.theme-pulse  { --accent: var(--indigo); --accent-soft: rgba(91,79,238,.1);  --accent-line: rgba(91,79,238,.3); }
body.theme-fulfil { --accent: var(--amber);  --accent-soft: rgba(217,119,6,.1);  --accent-line: rgba(217,119,6,.3); }

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }

[data-reveal] { opacity: 1; transform: none; }
html.reveal-armed [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
html.reveal-armed [data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none !important; transition: opacity .3s ease !important; }
  .live-dot, .mock-bar i { animation: none !important; }
}

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6%; height: 62px; background: rgba(250,250,250,.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.current { color: var(--ink); }
.nav-links a.current { font-weight: 700; }
.nav-back { font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-back:hover { color: var(--ink); }
/* Phones: product links move to a slim scrollable bar under the top bar */
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 62px; left: 0; right: 0; z-index: 99; height: 42px; padding: 0 5%; gap: 8px; overflow-x: auto; scrollbar-width: none; background: rgba(250,250,250,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; padding: 6px 12px; border-radius: 100px; white-space: nowrap; }
  .nav-links a.current { background: var(--accent-soft); color: var(--accent); }
  .hero { padding-top: 138px; }
}

/* HERO */
.hero { padding: 130px 6% 70px; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 108px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 100px; padding: 5px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 22px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 13px 24px; border-radius: 10px; white-space: nowrap; transition: opacity .2s var(--ease-out), transform .15s var(--ease-out), border-color .2s var(--ease-out); }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; }
.btn-secondary { background: #fff; border: 1px solid var(--border); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { opacity: .9; transform: translateY(-1px); }
  .btn-secondary:hover { border-color: var(--accent); }
}
.btn-primary:active, .btn-secondary:active { transform: scale(.97); transition-duration: .1s; }

/* HERO MOCK WINDOW */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 2px 4px rgba(16,17,26,.04), 0 24px 56px rgba(16,17,26,.10); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.mock-top b { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-top em { margin-left: 10px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.mock-row .t { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.pill.ok { background: rgba(16,185,129,.12); color: #059669; }
.pill.warn { background: rgba(245,158,11,.14); color: #B45309; }
.pill.bad { background: rgba(239,68,68,.12); color: #DC2626; }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--surface2); border-radius: 10px; padding: 12px 14px; }
.mock-kpi .n { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.mock-kpi .l { font-size: 11px; color: var(--muted); font-weight: 500; }
.mock-bar { height: 8px; border-radius: 8px; background: var(--surface2); overflow: hidden; flex: 1; }
.mock-bar i { display: block; height: 100%; background: var(--accent); border-radius: 8px; transform-origin: left; animation: grow 1.2s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.mock-week { display: flex; gap: 5px; align-items: flex-end; height: 74px; padding: 4px 2px 0; }
.mock-week span { flex: 1; height: 100%; background: var(--accent-soft); border-radius: 5px 5px 0 0; position: relative; }
.mock-week span::after { content: ''; position: absolute; inset: auto 0 0 0; height: var(--h, 50%); background: var(--accent); border-radius: 5px 5px 0 0; }

/* SECTIONS */
.section { padding: 76px 6%; max-width: 1120px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; line-height: 1.2; max-width: 700px; }
.section-sub { font-size: 15.5px; color: var(--muted); max-width: 580px; line-height: 1.75; margin-bottom: 48px; }

/* PROBLEM / OUTCOME STRIP */
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 16px; }
.outcome { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.outcome .before { font-size: 13px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107,114,128,.5); margin-bottom: 6px; }
.outcome .after { font-size: 15.5px; font-weight: 700; line-height: 1.4; }

/* FEATURE GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px,100%),1fr)); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(16,17,26,.04), 0 8px 24px rgba(16,17,26,.05); transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,17,26,.05), 0 24px 48px rgba(16,17,26,.09); }
}
.feature-icon { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.feature-card.soon { border-style: dashed; background: transparent; box-shadow: none; }
.tag-soon { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--indigo); background: rgba(91,79,238,.12); padding: 2px 8px; border-radius: 100px; margin-left: 8px; vertical-align: 2px; }

/* MODULE ROWS (alternating text + bullet card) */
.module { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; border-top: 1px solid var(--border); }
.module:first-of-type { border-top: 0; }
.module:nth-of-type(even) .module-copy { order: 2; }
@media (max-width: 860px) { .module { grid-template-columns: 1fr; gap: 22px; } .module:nth-of-type(even) .module-copy { order: 0; } }
.module h3 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.25; }
.module p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 8px 24px rgba(16,17,26,.05); }
.checks { list-style: none; display: grid; gap: 11px; }
.checks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
.checks li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
body.theme-flow   .checks li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%2300A896' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.theme-pulse  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%235B4FEE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.theme-fulfil .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23D97706' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px,100%),1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.step::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--accent-line); color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.step h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* AUDIENCE CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; font-size: 14px; font-weight: 600; }

/* VIDEO PLACEHOLDER (swap the poster for a real clip later) */
.video-slot { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, var(--accent-soft), var(--surface2)); display: grid; place-items: center; }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-slot .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.video-slot figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* OTHER PRODUCTS */
.siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr)); gap: 16px; }
.sibling { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sibling:hover { border-color: var(--accent-line); transform: translateY(-2px); } }
.sibling b { display: block; font-size: 16px; margin-bottom: 4px; }
.sibling span { font-size: 13.5px; color: var(--muted); }

/* CTA */
.cta-wrap { padding: 0 6%; max-width: 1120px; margin: 0 auto 90px; }
.cta-banner { background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(91,79,238,.08) 100%); border: 1px solid var(--accent-line); border-radius: 18px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-banner h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.cta-banner p { font-size: 14.5px; color: var(--muted); max-width: 460px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-banner { padding: 32px 22px; flex-direction: column; align-items: flex-start; } }

footer { border-top: 1px solid var(--border); padding: 28px 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
footer a { color: var(--accent); }

/* ── RESPONSIVE ── */
.hero > *, .module > *, .mock, .mock-body, .mock-kpi { min-width: 0; }
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .section { padding: 56px 6%; }
  .section-sub { margin-bottom: 36px; }
}
@media (max-width: 560px) {
  .hero { padding: 138px 5% 48px; gap: 32px; }
  .section { padding: 44px 5%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary,
  .cta-actions .btn-primary, .cta-actions .btn-secondary { justify-content: center; width: 100%; white-space: normal; text-align: center; }
  .cta-actions { width: 100%; }
  .hero-sub { font-size: 16px; }
  .mock-body { padding: 12px; }
  .mock-kpis { gap: 6px; }
  .mock-kpi { padding: 10px; }
  .mock-kpi .n { font-size: 18px; }
  .mock-row { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .mock-row .t { flex: 1 1 100%; white-space: normal; }
  .module { padding: 24px 0; }
  .module-card { padding: 18px; }
  .feature-card { padding: 22px; }
  .chip { padding: 8px 14px; font-size: 13px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) { .nav-back { font-size: 12.5px; } .nav-logo { font-size: 16px; } nav { gap: 8px; } }
