/* FlowPilot Studio: brand tokens */
:root {
  --navy: #14243A;
  --ivory: #F8F6F1;
  --gold: #C5A46D;
  --slate: #687386;
  --white: #FFFFFF;
  --ink: #252A32;
  --line: rgba(20, 36, 58, .10);
  --navy-soft: #1d3150;
  --shadow: 0 1px 2px rgba(20, 36, 58, .06), 0 8px 24px rgba(20, 36, 58, .06);
  --shadow-lift: 0 2px 4px rgba(20, 36, 58, .08), 0 18px 40px rgba(20, 36, 58, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d3b57e; }
.btn-small { padding: .55rem 1.1rem; background: var(--navy); color: #fff; }
.btn-small:hover { background: var(--navy-soft); }
.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.brand-name span { font-weight: 400; color: var(--slate); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .2s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 34rem; margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }
.assurances { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; margin: 2.2rem 0 0; font-size: .92rem; color: var(--slate); }
.assurances li { display: flex; align-items: center; gap: .45rem; }
.assurances svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero bench: the one memorable element */
.bench-panel { position: relative; background: var(--navy); border-radius: 18px; aspect-ratio: 1 / 1.02; padding: 6%; box-shadow: var(--shadow-lift); overflow: hidden; }
.bench-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.bench-item { position: absolute; width: 58%; }
.b1 { top: 8%; left: 7%; z-index: 2; }
.b2 { top: 30%; right: 6%; z-index: 3; transform: rotate(2.5deg); }
.b3 { bottom: 7%; left: 12%; z-index: 4; transform: rotate(-1.5deg); }
.bench-item .mock { box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) rotate(0); } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.bench-item { animation: settle .8s cubic-bezier(.2, .7, .2, 1) both; }
.b1 { animation-delay: .15s; }
.b2 { animation-delay: .3s; }
.b3 { animation-delay: .45s; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; max-width: 40rem; }
.section-head p { color: var(--slate); margin-top: .7rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: #b9c2d0; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-visual { background: #ece8de; border: 0; padding: 1.6rem 1.6rem 0; height: 210px; overflow: hidden; display: block; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.meta { font-size: .85rem; color: var(--slate); }
.summary { color: var(--slate); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.price.on-dark { color: var(--gold); }
.price.big { font-size: 1.9rem; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, box-shadow .2s; }
.cat:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.cat svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .3rem; }
.cat h3 { font-size: 1.1rem; }
.cat p { color: var(--slate); font-size: .9rem; flex: 1; }
.cat small { color: var(--slate); font-size: .82rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: .45rem .95rem; border-radius: 999px; font-size: .88rem; transition: background .2s, color .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Ranked lists */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.rank { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.rank button { width: 100%; display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 1rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem 1.1rem .75rem .75rem; text-align: left; transition: border-color .2s; }
.rank button:hover { border-color: var(--gold); }
.rank-thumb { height: 60px; overflow: hidden; border-radius: 6px; background: #ece8de; padding: 8px 8px 0; }
.rank-thumb .mock { transform: scale(.9); transform-origin: top left; }
.rank-text { display: grid; line-height: 1.35; }
.rank-text small { color: var(--slate); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.benefits svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.benefits h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.benefits p { color: var(--slate); font-size: .95rem; }

/* Solutions */
.solutions { background: var(--navy); }
.solution { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: 2.5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.solution:first-child { border-top: 0; padding-top: 0; }
.solution-visual { background: var(--navy-soft); border-radius: 14px; padding: 2.5rem 2.5rem 0; height: 300px; overflow: hidden; }
.solution-text h3 { color: #fff; font-size: 1.7rem; }
.solution-text p { color: #c7cfdb; margin-top: .9rem; max-width: 34rem; }
.solution-text ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .45rem; color: #fff; font-size: .95rem; }
.solution-text li, .ticks li { padding-left: 1.6rem; position: relative; }
.solution-text li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Footer */
.site-footer { background: #0e1a2b; color: #b9c2d0; padding: 3.5rem 0 1.5rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-note { max-width: 22rem; margin-top: 1rem; font-size: .92rem; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: .6rem 2.5rem; align-content: start; }
.foot nav a { text-decoration: none; font-size: .92rem; }
.foot nav a:hover { color: var(--gold); }
.legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Product dialog */
dialog { border: 0; padding: 0; border-radius: 14px; width: min(860px, 100% - 2rem); max-height: 90vh; overflow: auto; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 36, 58, .35); }
dialog::backdrop { background: rgba(20, 36, 58, .55); }
dialog[open] { animation: rise .25s ease-out; }
.dlg-close { position: absolute; top: .6rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.6rem; line-height: 1; color: var(--navy); z-index: 2; }
#dlg-body { display: grid; grid-template-columns: .8fr 1.2fr; }
.dlg-visual { background: #ece8de; padding: 2.5rem 1.8rem 0; display: flex; align-items: flex-start; min-height: 260px; }
.dlg-visual .mock { width: 100%; }
.dlg-text { padding: 2.2rem 2.2rem 2rem; display: grid; gap: .9rem; align-content: start; }
.dlg-text h3 { font-size: 1.05rem; margin-top: .4rem; }
.dlg-text > p:not(.meta):not(.formats) { color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.formats { font-size: .9rem; color: var(--slate); }
.dlg-buy { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .6rem; }
.note { font-size: .88rem; color: var(--slate); max-width: 22rem; }
.note code { background: #ece8de; padding: .05rem .3rem; border-radius: 4px; font-size: .85em; }

/* Mockup components */
.mock { background: var(--white); border-radius: 10px 10px 0 0; overflow: hidden; width: 100%; text-align: left; }
.m-top { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.m-top b { width: 7px; height: 7px; border-radius: 50%; background: #d9d5ca; }
.m-top b:first-child { background: var(--gold); }
.m-body { padding: 14px; display: grid; gap: 9px; }
.m-row { display: flex; justify-content: space-between; font-size: .68rem; color: var(--slate); }
.m-row em { font-style: normal; color: var(--navy); font-weight: 600; }
.m-slider { height: 4px; background: #ebe7dc; border-radius: 4px; }
.m-slider u { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.m-result { margin-top: 4px; background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 8px; display: grid; }
.m-result small { font-size: .62rem; color: #b9c2d0; }
.m-result strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--gold); }
.m-h { height: 9px; width: 55%; background: var(--navy); border-radius: 3px; }
.m-h.big { height: 14px; width: 75%; }
.m-l { height: 5px; background: #e3dfd3; border-radius: 3px; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w55 { width: 55%; } .w45 { width: 45%; } .w40 { width: 40%; } .w30 { width: 30%; } .w25 { width: 25%; }
.m-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.m-table span { height: 14px; background: #f1eee6; border-radius: 2px; }
.m-table span:nth-child(-n+3) { background: var(--navy); }
.m-slide { min-height: 120px; align-content: start; gap: 11px; }
.m-gold { width: 38px; height: 3px; background: var(--gold); margin-top: 6px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-stats span { height: 34px; background: #f1eee6; border-radius: 6px; padding: 8px; }
.m-stats i { display: block; height: 5px; width: 60%; background: var(--navy); border-radius: 3px; }
.m-stats span:first-child i { background: var(--gold); }
.m-chart { height: 76px; display: flex; align-items: flex-end; gap: 6px; }
.m-chart i { flex: 1; background: var(--navy); border-radius: 3px 3px 0 0; }
.m-chart i:nth-child(6) { background: var(--gold); }
.m-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.m-grid span { height: 14px; background: #f1eee6; border-radius: 2px; }
.m-grid span:nth-child(-n+6) { background: var(--navy); }
.m-grid span:nth-child(9), .m-grid span:nth-child(16) { background: var(--gold); opacity: .8; }
.mock-dark { background: #0e1a2b; }
.mock-dark .m-top { border-color: rgba(255, 255, 255, .08); }
.m-code { display: grid; gap: 8px; }
.m-code i { height: 5px; border-radius: 3px; background: #4b5d78; }
.m-code i.in { margin-left: 16px; background: var(--gold); opacity: .85; }
.m-code i:nth-child(odd):not(.in) { background: #8a9bb5; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .solution, .two-col, #dlg-body { grid-template-columns: 1fr; }
  .bench-panel { aspect-ratio: 1 / .9; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .dlg-visual { min-height: 0; padding-top: 2rem; }
}
@media (max-width: 620px) {
  .grid-3, .cat-grid, .benefits { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .solution-visual { height: 240px; padding: 1.5rem 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.badge { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(197, 164, 109, .22); color: var(--navy); font-size: .75rem; font-weight: 600; }

/* Cart */
.cart-btn { position: relative; width: 44px; height: 44px; border: 0; background: none; margin-left: .5rem; }
.cart-btn svg { width: 24px; height: 24px; margin: auto; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.bar { gap: .5rem; }
.nav { margin-left: auto; }
.card-actions { display: flex; align-items: center; gap: 1rem; }
.scrim { position: fixed; inset: 0; background: rgba(20, 36, 58, .5); z-index: 60; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--ivory); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -20px 0 50px rgba(20, 36, 58, .2); }
.cart.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; }
.dlg-close.static { position: static; }
.cart-items { flex: 1; overflow: auto; padding: 1rem 1.4rem; display: grid; align-content: start; gap: 1rem; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-row strong { display: block; line-height: 1.3; font-size: .95rem; }
.cart-row small { display: block; color: var(--slate); margin-bottom: .3rem; }
.cart-thumb { height: 56px; overflow: hidden; border-radius: 6px; background: #ece8de; padding: 7px 7px 0; }
.cart-thumb .mock { transform: scale(.85); transform-origin: top left; }
.link.small { font-size: .85rem; }
.cart-empty { color: var(--slate); padding-top: 1rem; }
.cart-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; background: var(--white); }
.cart-foot:empty { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.btn.wide { width: 100%; }
.cart-msg { font-size: .88rem; color: var(--slate); min-height: 1.2em; }
@media (max-width: 820px) { .nav-toggle { margin-left: auto; } .nav { margin-left: 0; } }


/* free-download form + product links */
.free-form{display:grid;gap:.8rem}.free-form label{display:grid;gap:.3rem;font-size:.85rem;font-weight:600}
.free-form input[type=text],.free-form input[type=email]{padding:.65rem .8rem;border:1px solid #cfcabd;border-radius:8px;font:inherit}
.free-form .consent{display:flex;gap:.5rem;align-items:flex-start;font-weight:400;font-size:.8rem}
#free-links{display:grid;gap:.6rem;margin-top:1rem}.plink{color:inherit;text-decoration:none}.plink:hover{text-decoration:underline}

/* animated next-step arrows */
@keyframes fpbob{0%,100%{transform:translateY(0)}50%{transform:translateY(9px)}}
@keyframes fpnudge{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
.cue{display:flex;flex-direction:column;align-items:center;margin:1.2rem 0;color:#8a6a2b;font-weight:600;text-decoration:none}
.cue span{font-size:2.2rem;line-height:1;animation:fpbob 1.2s ease-in-out infinite}
.arr{display:inline-block;margin-left:.45rem;animation:fpnudge 1s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.cue span,.arr{animation:none}}

/* tidy card footer and the LeadFlow plans card */
.card-foot { flex-wrap: wrap; gap: .7rem 1rem; }
.card-foot .price, .dlg-buy .price { white-space: nowrap; }
.card-actions .btn, .dlg-buy .btn { white-space: nowrap; }
.dlg-buy { flex-wrap: wrap; gap: .8rem 1.2rem; }
.card-foot.hub { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem 1rem; }
.card-foot.hub .price { font-size: 1.15rem; }
.card-foot.hub .card-actions { display: contents; }
.card-foot.hub .btn { grid-column: 1 / -1; justify-content: center; text-align: center; padding-block: .75rem; }
