/* Jakswork shared marketing-site styles: base theme, motion, nav dropdown,
   feature-page building blocks. Used by index.html and every /apps,
   /<product>/features.html marketing page. Live in-browser tools
   (statements/, commission/, callqa/ index.html) keep their own
   palette/css and do not use this file. */

:root { --accent: #2451C4; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: #FAFAF8; color: #19191A; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: 'Space Grotesk', 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }
.navlink { color: #55554F; transition: color .15s ease; }
.navlink:hover { color: #19191A; }
.navbar { transition: box-shadow .25s ease, padding .25s ease; }
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }

.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.1); border-color: #CFCCF0 !important; }

.btn-primary { transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; display: inline-block; }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(36,81,196,0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { transition: background .15s ease, transform .15s ease; display: inline-block; }
.btn-ghost:hover { background: #F0EFEA; transform: translateY(-1px); }

.arrow-link { display: inline-flex; align-items: center; gap: 6px; }
.arrow-link .arrow { transition: transform .2s ease; display: inline-block; }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* animated hero backdrop */
.hero-wrap { position: relative; isolation: isolate; }
.hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: blobFloat 14s ease-in-out infinite; }
.hero-blob.b1 { width: 420px; height: 420px; background: radial-gradient(circle, #DCE6FB 0%, rgba(220,230,251,0) 70%); top: -140px; left: 8%; }
.hero-blob.b2 { width: 360px; height: 360px; background: radial-gradient(circle, #E9E4FB 0%, rgba(233,228,251,0) 70%); top: -40px; right: 6%; animation-delay: -6s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.06); }
}
.hero-badge { animation: badgePulse 3.2s ease-in-out infinite; display: inline-block; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36,81,196,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(36,81,196,0.06); }
}
.hero-fade-up { animation: heroFadeUp .8s cubic-bezier(.2,.7,.3,1) both; }
.hero-fade-up.d1 { animation-delay: .05s; }
.hero-fade-up.d2 { animation-delay: .15s; }
.hero-fade-up.d3 { animation-delay: .25s; }
.hero-fade-up.d4 { animation-delay: .35s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* workflow stepper */
.stepper { border: 1px solid #E8E6DF; border-radius: 16px; background: #FFFFFF; overflow: hidden; box-shadow: 0 12px 40px rgba(20,20,40,0.06); }
.step-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid #EFEEE7; }
.step-tab { flex: 1 1 auto; border: none; background: transparent; cursor: pointer; padding: 14px 10px; font: inherit; font-size: 13px; font-weight: 600; color: #8A897F; display: flex; align-items: center; justify-content: center; gap: 8px; transition: color .2s ease, background .2s ease; border-bottom: 2px solid transparent; }
.step-tab .num { width: 20px; height: 20px; border-radius: 50%; background: #F0EFEA; color: #8A897F; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.step-tab.active { color: #19191A; border-bottom-color: var(--accent); }
.step-tab.active .num { background: var(--accent); color: #FFFFFF; }
.step-tab:hover { color: #19191A; }
.step-panel { position: relative; min-height: 190px; }
.step-pane { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; transform: translateX(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.step-pane.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #FAFAF8; border: 1px solid #EFEEE7; font-size: 13px; color: #4A4A44; }
.mock-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mock-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #0E7C7B; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .25s ease, transform .25s ease; }
.step-pane.active .mock-check { opacity: 1; transform: scale(1); }
.step-pane.active .mock-check:nth-of-type(1) { transition-delay: .1s; }

/* nav "Product" dropdown / mega-menu */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 560px; max-width: 86vw; background: #FFFFFF; border: 1px solid #E8E6DF; border-radius: 14px;
  box-shadow: 0 20px 48px rgba(20,20,40,0.12); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 20;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.dropdown-panel.force-open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-caret { display: inline-block; margin-left: 4px; transition: transform .18s ease; font-size: 10px; }
.has-dropdown:hover .dropdown-caret { transform: rotate(180deg); }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; transition: background .15s ease; }
.dd-item:hover { background: #F7F6F1; }
.dd-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #FFFFFF; }
.dd-title { font-size: 14px; font-weight: 600; color: #19191A; margin: 0 0 2px; }
.dd-desc { font-size: 12.5px; color: #8A897F; margin: 0; line-height: 1.4; }

/* feature-page building blocks */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-item { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #FFFFFF; border: 1px solid #E8E6DF; border-radius: 14px; }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.pill { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; display: inline-block; }

/* grouped Products menu */
.dropdown-panel.dd-cats { width: 900px; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.dd-cat { display: flex; flex-direction: column; gap: 2px; }
.dd-cat-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 4px 12px 8px; border-bottom: 1px solid #EFEEE7; margin-bottom: 4px; }
.dd-cat-title .arrow { display: inline-block; transition: transform .2s; }
.dd-cat-title:hover .arrow { transform: translateX(3px); }
.soon-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #FFF4E8; color: #B4540A; padding: 2px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.live-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #E9F6F6; color: #0E7C7B; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-card { background: #FFFFFF; border: 1px solid #E8E6DF; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-tab { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid #DEDCD3; color: #4A4A44; transition: background .15s, color .15s; }
.cat-tab:hover { background: #F0EFEA; }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.cat-chip { font-size: 11.5px; font-weight: 600; background: #F0EFEA; color: #4A4A44; padding: 3px 9px; border-radius: 999px; }
.seg { display: inline-flex; background: #F0EFEA; border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #6B6A63; padding: 9px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg button.active { background: #FFFFFF; color: #19191A; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.seg-pane[hidden] { display: none !important; }

@media (max-width: 960px) {
  .dropdown-panel.dd-cats { width: 520px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dropdown-panel.dd-cats { grid-template-columns: 1fr; width: 320px; max-height: 70vh; overflow-y: auto; }
  .dropdown-panel { grid-template-columns: 1fr; width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob, .hero-badge, .hero-fade-up { animation: none; }
  .hero-fade-up { opacity: 1; transform: none; }
}
