/* =====================================================================
   FlowMattic Theme — global foundation (token-based, dark default + light)
   One set of classes. Only the token VALUES flip between themes.
   ===================================================================== */

/* Cascade layer order: fm-base (weak UA-margin resets) is always beaten by
   fm-reset (a page's own `.pagewrapper *{margin:0;padding:0}` reset), and
   BOTH layers are always beaten by any normal (unlayered) component rule —
   regardless of which stylesheet/file it lives in or source order. This
   keeps page-scoped resets from ever clobbering shared component CSS. */
@layer fm-base, fm-reset;

/* ---------- DESIGN TOKENS ---------- */
:root, html.fm-dark {
	/* surfaces */
	--fm-bg: #07070c;
	--fm-bg-2: #0a0b12;
	--fm-bg-3: #0d0f18;
	--fm-panel: rgba(255,255,255,.035);
	--fm-panel-2: rgba(255,255,255,.06);
	--fm-panel-solid: #0e1019;
	--fm-line: rgba(255,255,255,.09);
	--fm-line-2: rgba(255,255,255,.16);
	/* text */
	--fm-text: #f5f7fc;
	--fm-dim: #aab2c5;
	--fm-faint: #727a90;
	--fm-heading: #ffffff;
	/* brand */
	--fm-blue: #5b9dff;
	--fm-blue-2: #3b82f6;
	--fm-violet: #a78bfa;
	--fm-violet-2: #8b5cf6;
	--fm-cyan: #4fd6e6;
	--fm-green: #34d399;
	--fm-amber: #fbbf24;
	--fm-pink: #f472b6;
	--fm-red: #f87171;
	--fm-grad: linear-gradient(100deg,#5b9dff 0%,#a78bfa 60%,#4fd6e6 120%);
	--fm-grad-btn: linear-gradient(135deg,#3b82f6 0%,#7c3aed 100%);
	/* effects */
	--fm-shadow-sm: 0 1px 3px rgba(0,0,0,.4);
	--fm-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
	--fm-shadow-lg: 0 30px 70px -30px rgba(0,0,0,.7);
	--fm-glow: rgba(59,130,246,.4);
	--fm-glow-v: rgba(139,92,246,.35);
	--fm-mesh-1: rgba(59,130,246,.5);
	--fm-mesh-2: rgba(139,92,246,.42);
	--fm-mesh-3: rgba(79,214,230,.24);
	/* chrome */
	--fm-header-bg: rgba(9,10,17,.72);
	--fm-header-line: rgba(255,255,255,.08);
	--fm-code-bg: rgba(255,255,255,.06);
	/* geometry */
	--fm-r: 12px; --fm-r-lg: 18px; --fm-r-xl: 26px;
	--fm-wrap: 1200px;
	--fm-header-h: 72px;
	color-scheme: dark;
}
html.fm-light {
	--fm-bg: #ffffff;
	--fm-bg-2: #f7f9fc;
	--fm-bg-3: #eef2f8;
	--fm-panel: #ffffff;
	--fm-panel-2: #f5f8fc;
	--fm-panel-solid: #ffffff;
	--fm-line: #e7ecf3;
	--fm-line-2: #d7e0ec;
	--fm-text: #0f172a;
	--fm-dim: #475569;
	--fm-faint: #8a97ab;
	--fm-heading: #0b1220;
	--fm-blue: #0d6efd;
	--fm-blue-2: #0b5ed7;
	--fm-violet: #7c3aed;
	--fm-violet-2: #6d28d9;
	--fm-cyan: #0891b2;
	--fm-green: #059669;
	--fm-amber: #d97706;
	--fm-pink: #db2777;
	--fm-red: #dc2626;
	--fm-grad: linear-gradient(100deg,#0d6efd 0%,#7c3aed 65%,#0891b2 120%);
	--fm-grad-btn: linear-gradient(135deg,#0d6efd 0%,#7c3aed 100%);
	--fm-shadow-sm: 0 1px 3px rgba(15,23,42,.06);
	--fm-shadow: 0 10px 30px -12px rgba(15,23,42,.14);
	--fm-shadow-lg: 0 30px 70px -30px rgba(15,23,42,.2);
	--fm-glow: rgba(13,110,253,.22);
	--fm-glow-v: rgba(124,58,237,.16);
	--fm-mesh-1: rgba(13,110,253,.16);
	--fm-mesh-2: rgba(124,58,237,.12);
	--fm-mesh-3: rgba(8,145,178,.08);
	--fm-header-bg: rgba(255,255,255,.82);
	--fm-header-line: rgba(15,23,42,.08);
	--fm-code-bg: rgba(15,23,42,.05);
	color-scheme: light;
}

/* ---------- RESET / BASE ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--fm-bg);
	color: var(--fm-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .3s ease, color .3s ease;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fm-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--fm-violet); }
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--fm-heading); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
@layer fm-base {
	h1,h2,h3,h4,h5 { margin: 0 0 .5em; }
	p, ul, ol { margin: 0 0 1em; }
}
strong, b { color: var(--fm-heading); font-weight: 600; }
:focus-visible { outline: 2px solid var(--fm-blue); outline-offset: 2px; }
::selection { background: rgba(139,92,246,.35); color: #fff; }
code, pre { background: var(--fm-code-bg); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- LAYOUT PRIMITIVES ---------- */
.fm-wrap { max-width: var(--fm-wrap); margin: 0 auto; padding: 0 26px; position: relative; z-index: 2; }
.fm-section { padding: 96px 0; position: relative; }
.fm-section-sm { padding: 64px 0; position: relative; }
.fm-grad-text { background: var(--fm-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.fm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter',sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fm-violet); margin-bottom: 18px; }
.fm-eyebrow::before { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--fm-violet)); }
.fm-sec-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.fm-sec-head .fm-lead { margin: 16px auto 0; }
.fm-h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.fm-lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--fm-dim); line-height: 1.65; max-width: 620px; }

/* ambient mesh (reusable, softens automatically in light via tokens) */
.fm-ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fm-mesh { position: absolute; inset: -20% -10%; filter: blur(90px); }
.fm-mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: fm-drift 22s ease-in-out infinite; }
.fm-mesh i:nth-child(1){ width: 52vw; height: 52vw; left: -8vw; top: -16vw; background: radial-gradient(circle, var(--fm-mesh-1), transparent 62%); }
.fm-mesh i:nth-child(2){ width: 46vw; height: 46vw; right: -10vw; top: -8vw; background: radial-gradient(circle, var(--fm-mesh-2), transparent 62%); animation-delay: -7s; }
.fm-mesh i:nth-child(3){ width: 40vw; height: 40vw; left: 24vw; top: 8vw; background: radial-gradient(circle, var(--fm-mesh-3), transparent 60%); animation-delay: -13s; }
html.fm-light .fm-mesh i { mix-blend-mode: normal; }
@keyframes fm-drift { 0%,100%{ transform: translate(0,0) scale(1); } 33%{ transform: translate(4vw,3vw) scale(1.08);} 66%{ transform: translate(-3vw,2vw) scale(.95);} }

/* ---------- BUTTONS ---------- */
.fm-btn { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border: none; border-radius: 11px; font-family: 'Inter',sans-serif; font-size: .98rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s, color .2s; }
.fm-btn svg { flex-shrink: 0; width: 18px; height: 18px; }
.fm-btn-primary { color: #fff; background: var(--fm-grad-btn); box-shadow: 0 8px 26px -8px var(--fm-glow), inset 0 0 0 1px rgba(255,255,255,.08); }
.fm-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--fm-glow), inset 0 0 0 1px rgba(255,255,255,.14); }
.fm-btn-ghost { color: var(--fm-text); background: var(--fm-panel-2); border: 1px solid var(--fm-line-2); }
.fm-btn-ghost:hover { color: var(--fm-heading); background: var(--fm-panel); transform: translateY(-2px); border-color: var(--fm-blue); }
.fm-btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.fm-btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- SHARED CARD / SURFACE ---------- */
.fm-card { background: var(--fm-panel); border: 1px solid var(--fm-line); border-radius: var(--fm-r-lg); }
.fm-glass { background: var(--fm-panel); border: 1px solid var(--fm-line); backdrop-filter: blur(10px); }

/* Constant-dark surface: product/app mockups that stay dark in BOTH themes.
   Pins theme tokens to their dark values so interior content is readable on the
   dark frame regardless of page theme, and provides a solid dark base. */
.fm-on-dark{
  /* structural */
  --fm-text:#f5f7fc; --fm-dim:#aab2c5; --fm-faint:#727a90; --fm-heading:#ffffff;
  --fm-line:rgba(255,255,255,.09); --fm-line-2:rgba(255,255,255,.16);
  --fm-panel:rgba(255,255,255,.035); --fm-panel-2:rgba(255,255,255,.06); --fm-panel-solid:#0e1019;
  --fm-code-bg:rgba(255,255,255,.06);
  /* accents pinned to dark values so a constant-dark surface reads identically in BOTH themes */
  --fm-blue:#5b9dff; --fm-blue-2:#3b82f6; --fm-violet:#a78bfa; --fm-violet-2:#8b5cf6;
  --fm-cyan:#4fd6e6; --fm-green:#34d399; --fm-amber:#fbbf24; --fm-pink:#f472b6; --fm-red:#f87171;
  --fm-glow:rgba(59,130,246,.4); --fm-glow-v:rgba(139,92,246,.35);
  --fm-grad:linear-gradient(100deg,#5b9dff 0%,#a78bfa 60%,#4fd6e6 120%);
  --fm-grad-btn:linear-gradient(135deg,#3b82f6 0%,#7c3aed 100%);
  background-color:#0b0d16;
  color:var(--fm-text);
}

/* reveal (used across pages) */
.fm-rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s; }
.fm-rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .fm-rv{opacity:1;transform:none;filter:none;transition:none} .fm-mesh i{animation:none} html{scroll-behavior:auto} }

/* =====================================================================
   SHARED SECTION COMPONENTS (promoted from home)
   ===================================================================== */

/* glow surface (cursor-follow highlight border/halo) */
.fm-glow, [data-glow] { position: relative; isolation: isolate; overflow: hidden; }
.fm-glow::before, [data-glow]::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(120,140,255,.16), transparent 60%); }
.fm-glow:hover::before, [data-glow]:hover::before { opacity: 1; }
.fm-glow::after, [data-glow]::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(150,170,255,.5), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.fm-glow:hover::after, [data-glow]:hover::after { opacity: 1; }

/* hero */
.fm-hero { padding: 120px 0 70px; position: relative; text-align: center; }
.fm-hero-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(500px circle at var(--hx,50%) var(--hy,26%), rgba(91,157,255,.13), transparent 60%); transition: background .2s; }
.fm-hero-inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.fm-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.1rem); line-height: 1.02; color: var(--fm-heading); font-weight: 600; margin-bottom: 24px; }
.fm-hero h1 .fm-grad-text { display: inline-block; }
.fm-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--fm-dim); max-width: 660px; margin: 0 auto 38px; line-height: 1.6; }
.fm-hero-sub b { color: var(--fm-heading); font-weight: 600; }
.fm-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.fm-hero-trust { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: .86rem; color: var(--fm-faint); }
.fm-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.fm-hero-trust svg { width: 15px; height: 15px; color: var(--fm-green); }

/* badge (small pill link, e.g. hero announcement) */
.fm-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 8px 7px 16px; border-radius: 50px; background: rgba(255,255,255,.04); border: 1px solid var(--fm-line); font-size: .85rem; font-weight: 500; color: var(--fm-dim); text-decoration: none; margin-bottom: 30px; transition: border-color .3s, background .3s; backdrop-filter: blur(8px); }
.fm-badge:hover { border-color: var(--fm-line-2); color: var(--fm-heading); }
.fm-badge b { color: var(--fm-heading); font-weight: 600; }
.fm-badge .fm-badge-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 50px; background: rgba(139,92,246,.16); color: var(--fm-violet); font-size: .74rem; font-weight: 600; }
.fm-badge .fm-badge-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fm-green); box-shadow: 0 0 0 3px rgba(52,211,153,.22); }
/* Icons inside a badge. flowmattic_icon() emits an SVG with a viewBox but no
   width/height, so without this it falls back to the replaced-element default
   (~54px here) and the badge balloons around it. */
.fm-badge svg { width: 15px; height: 15px; flex: none; }
/* The verified mark is a filled rosette with the tick knocked out of it, so the
   whole badge carries the success colour and the tick reads as the page behind.
   Filled beats stroked here: a stroked scallop turns to mush at 15px. */
.fm-ic-verified { fill: var(--fm-green); }
/* The asymmetric padding above is for the text-then-tag layout, where the tag
   pill supplies its own right inset. A badge that is just icon + text needs an
   even inset or the text runs into the right edge. */
.fm-badge:not(:has(.fm-badge-tag)) { padding: 7px 16px; }

/* pill (small labeled tag, e.g. canvas action bar) */
.fm-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 7px 13px; border-radius: 9px; }
.fm-pill.jaadu { color: #fff; background: linear-gradient(135deg,#8b5cf6,#6366f1); box-shadow: 0 4px 16px -2px rgba(139,92,246,.5); }
.fm-pill.jaadu svg { width: 13px; height: 13px; }
.fm-pill.save { color: var(--fm-green); border: 1px solid rgba(52,211,153,.4); background: rgba(52,211,153,.08); }

/* marquee */
.fm-marq { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.fm-marq-row { display: flex; gap: 18px; width: max-content; animation: fm-scroll var(--dur,42s) linear infinite; }
.fm-marq-row.rev { animation-direction: reverse; }
.fm-marq:hover .fm-marq-row { animation-play-state: paused; }
@keyframes fm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fm-marq-row { animation: none; } }

/* bento / tiles */
.fm-bento { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: minmax(190px,auto); gap: 18px; }
.fm-tile { position: relative; border-radius: var(--fm-r-lg); background: var(--fm-panel); border: 1px solid var(--fm-line); padding: 28px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .4s cubic-bezier(.16,1,.3,1); }
.fm-tile:hover { transform: translateY(-3px); border-color: var(--fm-line-2); }
.fm-tile .ti { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #fff; }
.fm-tile .ti svg { width: 22px; height: 22px; }
.fm-tile h3 { font-size: 1.3rem; color: var(--fm-heading); margin-bottom: 8px; font-family: 'Space Grotesk',sans-serif; }
.fm-tile p { font-size: .94rem; color: var(--fm-dim); line-height: 1.55; }
.fm-tile .fm-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: .8rem; font-weight: 600; color: var(--fm-blue); }
.fm-tile .fm-tag svg { width: 14px; height: 14px; transition: transform .3s; }
.fm-tile:hover .fm-tag svg { transform: translateX(4px); }
.ti-b { background: linear-gradient(135deg,#3b82f6,#2563eb); } .ti-v { background: linear-gradient(135deg,#8b5cf6,#6366f1); } .ti-c { background: linear-gradient(135deg,#22d3ee,#0891b2); } .ti-g { background: linear-gradient(135deg,#10b981,#059669); } .ti-a { background: linear-gradient(135deg,#f59e0b,#d97706); } .ti-p { background: linear-gradient(135deg,#ec4899,#db2777); }
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .row-2 { grid-row: span 2; }
.fm-tile-big h3 { font-size: 1.6rem; }

/* stats grid */
.fm-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 56px; }
.fm-stat { text-align: center; padding: 30px 16px; border-radius: var(--fm-r-lg); background: var(--fm-panel); border: 1px solid var(--fm-line); }
.fm-stat .n { font-size: 2.4rem; font-family: 'Space Grotesk',sans-serif; font-weight: 600; background: var(--fm-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.fm-stat .l { font-size: .85rem; color: var(--fm-faint); margin-top: 4px; }

/* big gradient number (stat callouts) */
.fm-bignum{font-size:clamp(2.4rem,4vw,3.4rem);font-family:'Space Grotesk',sans-serif;font-weight:600;line-height:1;background:var(--fm-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:6px}

/* FAQ accordion */
.fm-faq-list { max-width: 820px; margin: 0 auto; }
.fm-faq-item { border: 1px solid var(--fm-line); border-radius: var(--fm-r); margin-bottom: 12px; overflow: hidden; background: var(--fm-panel); transition: border-color .3s; }
.fm-faq-item.open { border-color: var(--fm-line-2); }
.fm-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; width: 100%; background: none; border: none; text-align: left; font-family: inherit; color: inherit; }
.fm-faq-q .fm-faq-qt { font-size: 1rem; font-weight: 600; color: var(--fm-heading); }
.fm-faq-q .ic { width: 22px; height: 22px; flex: 0 0 auto; position: relative; }
.fm-faq-q .ic::before, .fm-faq-q .ic::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--fm-blue); transition: transform .3s; }
.fm-faq-q .ic::before { width: 12px; height: 2px; } .fm-faq-q .ic::after { width: 2px; height: 12px; }
.fm-faq-item.open .fm-faq-q .ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.fm-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.fm-faq-a p { padding: 0 24px 22px; font-size: .94rem; color: var(--fm-dim); line-height: 1.7; }

@media (max-width: 1024px) {
	.col-7, .col-5, .col-4, .col-6, .col-8 { grid-column: span 6; }
	.fm-bento { grid-template-columns: repeat(6,1fr); }
	.fm-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
	.fm-wrap { padding: 0 18px; }
	.fm-bento, .col-7, .col-5, .col-4, .col-6, .col-8 { grid-template-columns: 1fr; grid-column: span 1; }
	.fm-stats { grid-template-columns: 1fr 1fr; }
	.fm-hero-cta .fm-btn { width: 100%; max-width: 320px; justify-content: center; }
	.fm-hero-cta { flex-direction: column; align-items: center; }
	/* The hero badge is inline-flex, so on narrow screens the text after the
	   bold rotator becomes its own flex item and wraps with an orphaned comma.
	   Flow it as ordinary inline text instead: the sentence wraps naturally,
	   centered, with the v7 tag riding along inline. */
	/* Keep the badge a centered flex row on mobile — switching to inline-block
	   dropped the icon onto its own line (the SVG is a flex item, not inline). */
	.fm-badge { justify-content: center; flex-wrap: wrap; line-height: 1.5; padding: 8px 16px; font-size: .82rem; }
}

/* =====================================================================
   HEADER
   ===================================================================== */
.fm-header { position: sticky; top: 0; z-index: 900; background: var(--fm-header-bg); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--fm-header-line); transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.fm-header.fm-scrolled { box-shadow: 0 8px 30px -12px rgba(0,0,0,.4); }
.fm-header-inner { max-width: var(--fm-wrap); margin: 0 auto; padding: 0 26px; height: var(--fm-header-h); display: flex; align-items: center; gap: 24px; }
.fm-logo { display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--fm-heading); text-decoration: none; flex-shrink: 0; }
.fm-logo:hover { color: var(--fm-heading); }
.fm-logo img { height: 30px; width: auto; }
/* Brand-kit boxed mark: flat #0D6EFD tile, 22% corner radius, glyph at ~70%
   of the box — the proportions of flowmattic-lock-icon-flat.svg. (Used by
   flowmattic_brand_mark() consumers like the login card.) */
.fm-logo .fm-logo-mark { width: 30px; height: 30px; border-radius: 7px; background: #0D6EFD; display: flex; align-items: center; justify-content: center; color: #fff; }
.fm-logo .fm-logo-mark svg { width: 21px; height: 21px; display: block; }
/* Full boxed lockups (icon + wordmark in one SVG): dark mode shows the white
   wordmark, light mode the ink one. Dark is the :root default, so the light
   image is hidden unless html.fm-light is set. */
.fm-logo .fm-logo-img { height: 44px; width: auto; display: block; }
html:not(.fm-light) .fm-logo .fm-logo-img-light { display: none; }
html.fm-light .fm-logo .fm-logo-img-dark { display: none; }

/* primary nav */
.fm-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 8px; }
.fm-nav-item { position: relative; }
.fm-nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: 9px; font-size: .94rem; font-weight: 500; color: var(--fm-dim); background: transparent; border: none; cursor: pointer; font-family: 'Inter',sans-serif; transition: color .2s ease, background .2s ease; }
.fm-nav-link:hover, .fm-nav-item.open .fm-nav-link { color: var(--fm-heading); background: var(--fm-panel-2); }
.fm-nav-link .fm-caret { width: 14px; height: 14px; transition: transform .25s ease; opacity: .7; }
.fm-nav-item.open .fm-nav-link .fm-caret { transform: rotate(180deg); }

/* mega panel */
.fm-mega { position: absolute; top: calc(100% + 12px); left: 0; transform: translateY(8px); min-width: 560px; background: var(--fm-panel-solid); border: 1px solid var(--fm-line-2); border-radius: var(--fm-r-lg); box-shadow: var(--fm-shadow-lg), 0 0 0 1px rgba(0,0,0,.2); padding: 14px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1); z-index: 950; }
.fm-mega::before { content:''; position:absolute; top:-12px; left:0; right:0; height:12px; }
.fm-nav-item.open .fm-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.fm-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fm-mega.cols-1 { min-width: 320px; }
.fm-mega.cols-1 .fm-mega-grid { grid-template-columns: 1fr; }
.fm-mega.cols-3 { min-width: 960px; }
/* Grouped mega: three labelled category columns (Features menu). */
.fm-mega-grouped .fm-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
/* Keep item titles AND descriptions on a single line in the grouped Features mega. */
.fm-mega-grouped .fm-mega-tx span { white-space: nowrap; }
.fm-mega-col { display: flex; flex-direction: column; padding: 0 8px; }
.fm-mega-col + .fm-mega-col { border-left: 1px solid var(--fm-line); }
.fm-mega-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-faint); padding: 6px 12px 8px; }
.fm-mega-item { display: flex; gap: 11px; padding: 12px 10px; border-radius: 12px; text-decoration: none; transition: background .2s ease; }
.fm-mega-item:hover { background: var(--fm-panel-2); }
.fm-mega-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--fm-panel-2); color: var(--fm-blue); }
.fm-mega-item:hover .fm-mega-ico { background: var(--fm-grad-btn); color: #fff; }
.fm-mega-ico svg { width: 19px; height: 19px; }
.fm-mega-tx b { display: block; font-size: .92rem; color: var(--fm-heading); font-weight: 600; white-space: nowrap; }
.fm-mega-tx span { display: block; font-size: .8rem; color: var(--fm-faint); line-height: 1.4; margin-top: 2px; }
.fm-mega-foot { margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--fm-line); display: flex; align-items: center; justify-content: space-between; }
.fm-mega-foot span { font-size: .82rem; color: var(--fm-faint); }
.fm-mega-foot a { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.fm-mega-foot a svg { width: 15px; height: 15px; }

/* header right cluster */
.fm-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fm-theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--fm-line-2); background: var(--fm-panel-2); color: var(--fm-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.fm-theme-toggle:hover { color: var(--fm-heading); border-color: var(--fm-blue); }
.fm-theme-toggle svg { width: 18px; height: 18px; }
.fm-theme-toggle .fm-icon-sun { display: none; }
.fm-theme-toggle .fm-icon-moon { display: block; }
html.fm-light .fm-theme-toggle .fm-icon-sun { display: block; }
html.fm-light .fm-theme-toggle .fm-icon-moon { display: none; }
.fm-header-login { font-size: .92rem; font-weight: 600; color: var(--fm-dim); padding: 9px 12px; }
.fm-header-login:hover { color: var(--fm-heading); }

/* mobile toggle + drawer */
.fm-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--fm-line-2); background: var(--fm-panel-2); color: var(--fm-text); cursor: pointer; align-items: center; justify-content: center; }
.fm-burger svg { width: 20px; height: 20px; }
.fm-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.fm-drawer.open { visibility: visible; }
.fm-drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s ease; }
.fm-drawer.open .fm-drawer-scrim { opacity: 1; }
.fm-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 360px); background: var(--fm-bg-2); border-left: 1px solid var(--fm-line); transform: translateX(100%); transition: transform .32s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; padding: 18px; overflow-y: auto; }
.fm-drawer.open .fm-drawer-panel { transform: translateX(0); }
.fm-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--fm-line); }
.fm-drawer-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--fm-line-2); background: var(--fm-panel-2); color: var(--fm-text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fm-drawer-nav { list-style: none; margin: 0; padding: 0; }
.fm-drawer-nav > li { border-bottom: 1px solid var(--fm-line); }
.fm-drawer-nav a, .fm-drawer-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; font-size: 1rem; font-weight: 500; color: var(--fm-text); background: none; border: none; text-align: left; cursor: pointer; font-family: 'Inter',sans-serif; }
.fm-drawer-sub { list-style: none; margin: 0; padding: 0 0 8px; display: none; }
.fm-drawer-acc .fm-caret { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; transition: transform .25s ease; }
.fm-drawer-acc.open .fm-caret { transform: rotate(180deg); }
.fm-drawer-acc.open + .fm-drawer-sub { display: block; }
.fm-drawer-sub a { padding: 10px 4px 10px 16px; font-size: .92rem; color: var(--fm-dim); }
.fm-drawer-sub-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-faint); padding: 12px 4px 2px 16px; }
.fm-drawer-sub-title:first-child { padding-top: 4px; }
.fm-drawer-cta { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.fm-drawer-cta .fm-btn { width: 100%; justify-content: center; }

@media (max-width: 980px) {
	/* The header CTA hides with the nav — the drawer already carries Login +
	   Try for Free, so keeping it here would duplicate the CTA and crowd the bar. */
	.fm-nav, .fm-header-login, .fm-header-actions > .fm-btn { display: none; }
	.fm-burger { display: inline-flex; }
	.fm-header-inner { gap: 14px; }
	/* The hidden nav's auto margin normally pushes the actions right — restore
	   that: logo left, theme toggle + burger flush right. */
	.fm-header-actions { margin-left: auto; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.fm-footer { background: var(--fm-bg-2); border-top: 1px solid var(--fm-line); padding: 70px 0 34px; position: relative; }
.fm-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(var(--fm-footer-cols, 3), 1fr); gap: 40px; margin-bottom: 48px; }
.fm-footer-brand .fm-logo { margin-bottom: 16px; }
.fm-footer-brand p { color: var(--fm-dim); font-size: .94rem; max-width: 300px; }
.fm-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.fm-footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--fm-line); background: var(--fm-panel); color: var(--fm-dim); display: flex; align-items: center; justify-content: center; }
.fm-footer-social a:hover { color: #fff; background: var(--fm-grad-btn); border-color: transparent; transform: translateY(-2px); }
.fm-footer-social svg { width: 18px; height: 18px; }
.fm-footer-col h2 { font-family: 'Inter',sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-faint); margin-bottom: 16px; line-height: 1.4; }
.fm-footer-col ul { list-style: none; margin: 0; padding: 0; }
.fm-footer-col li { margin-bottom: 11px; }
.fm-footer-col a { font-size: .93rem; color: var(--fm-dim); }
.fm-footer-col a:hover { color: var(--fm-heading); }
.fm-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; border-top: 1px solid var(--fm-line); }
.fm-footer-bottom p { margin: 0; font-size: .86rem; color: var(--fm-faint); }
.fm-footer-legal { display: flex; gap: 20px; }
.fm-footer-legal a { font-size: .86rem; color: var(--fm-faint); }
.fm-footer-legal a:hover { color: var(--fm-text); }
@media (max-width: 860px) {
	.fm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.fm-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.fm-footer-grid { grid-template-columns: 1fr; }
	.fm-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   GENERIC CONTENT (page.php / single.php / archive fallbacks)
   ===================================================================== */
.fm-page-hero { padding: 84px 0 40px; text-align: center; position: relative; }
.fm-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.fm-page-hero .fm-lead { margin: 14px auto 0; max-width: 640px; }
.fm-content { max-width: 820px; margin: 0 auto; padding: 20px 26px 96px; }
.fm-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.fm-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.fm-content img { border-radius: var(--fm-r); margin: 1.4em 0; }
.fm-content a { text-decoration: underline; text-underline-offset: 3px; }
.fm-content blockquote { border-left: 3px solid var(--fm-blue); padding-left: 18px; margin: 1.4em 0; color: var(--fm-dim); }
/* Post-content tables (wp-block-table & plain). Token-based so they adapt to
   both modes, and specific enough to beat the legacy Customizer
   `thead th { background: #F8F9FA }` rule that broke dark mode. */
.fm-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.fm-content .wp-block-table figure, .fm-content figure.wp-block-table { overflow-x: auto; }
.fm-content table th, .fm-content table td { padding: 11px 14px; border: 1px solid var(--fm-line); text-align: left; vertical-align: top; }
.fm-content table thead th { background: var(--fm-panel-2); color: var(--fm-heading); font-weight: 600; }
.fm-content table tbody tr:nth-child(even) td { background: var(--fm-panel); }
.fm-content code { background: var(--fm-panel-2); border: 1px solid var(--fm-line); border-radius: 6px; padding: 2px 7px; font-size: .88em; }
/* ---------- app pages (account, payments, affiliate area, forms, thank-you) ---------- */
.fm-app-hero { padding: 84px 0 34px; text-align: center; }
.fm-app-body { padding-top: 40px; }
.fm-app-inner { margin: 0 auto; }
.fm-app--narrow .fm-app-inner { max-width: 560px; }
.fm-app--wide .fm-app-inner { max-width: 880px; }
.fm-app--full .fm-app-inner { max-width: 1120px; }
.fm-app-inner.fm-card { padding: clamp(24px, 4vw, 40px); }
.fm-app-inner > :first-child { margin-top: 0; }
.fm-app-inner p { color: var(--fm-dim); line-height: 1.65; margin: 0 0 1em; }
.fm-app-inner h2 { color: var(--fm-heading); font-size: 1.4rem; margin: 0 0 .6em; }
.fm-app-inner h3 { color: var(--fm-heading); font-size: 1.1rem; margin: 1.2em 0 .5em; }
.fm-app-inner a { color: var(--fm-blue); }

/* Native + plugin form fields (Contact Form 7, SliceWP, generic) — themed for dark. */
.fm-content input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.fm-content textarea, .fm-content select,
.fm-app-inner input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.fm-app-inner textarea, .fm-app-inner select { width: 100%; padding: 12px 14px; margin: 6px 0 2px; border-radius: 10px; border: 1px solid var(--fm-line-2); background: var(--fm-panel-solid); color: var(--fm-text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.fm-content :is(input,textarea,select):focus-visible,
.fm-app-inner :is(input,textarea,select):focus-visible { border-color: var(--fm-blue); box-shadow: 0 0 0 4px var(--fm-glow); }
.fm-content textarea, .fm-app-inner textarea { min-height: 150px; resize: vertical; }
.fm-content label, .fm-app-inner label { display: block; font-size: .92rem; color: var(--fm-dim); margin-top: 14px; }
.fm-content input[type=checkbox], .fm-content input[type=radio],
.fm-app-inner input[type=checkbox], .fm-app-inner input[type=radio] { accent-color: var(--fm-blue); margin-right: 6px; }
.fm-content :is(input[type=submit],button[type=submit],.wpcf7-submit,.slicewp-button,.slicewp-submit-button),
.fm-app-inner :is(input[type=submit],button[type=submit],.wpcf7-submit,.slicewp-button,.slicewp-submit-button) { width: auto; margin-top: 18px; padding: 12px 28px; border: none; border-radius: 10px; background: var(--fm-grad-btn); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.fm-content :is(input[type=submit],button[type=submit],.wpcf7-submit,.slicewp-button):hover,
.fm-app-inner :is(input[type=submit],button[type=submit],.wpcf7-submit,.slicewp-button):hover { filter: brightness(1.08); transform: translateY(-1px); }
.fm-content .wpcf7-not-valid-tip, .fm-app-inner .wpcf7-not-valid-tip { color: #ff8080; font-size: .82rem; }
.fm-content .wpcf7-response-output, .fm-app-inner .wpcf7-response-output { border-radius: 10px; margin: 16px 0 0; padding: 12px 16px; font-size: .9rem; }

/* SliceWP affiliate registration form (the logged-out /affiliate-signup page).
   Dashboard/table styling for /account + /affiliate-dashboard lives in those
   templates' own page-scoped CSS so it only loads for logged-in users. */
.fm-app-inner form#slicewp-affiliate-register-form { width: 100%; margin: 0; }
.fm-app-inner .slicewp-form-field { margin-bottom: 4px; }
.fm-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .fm-archive-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .fm-archive-grid{ grid-template-columns: 1fr;} }
.fm-post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .3s ease, border-color .3s ease; }
.fm-post-card:hover { transform: translateY(-4px); border-color: var(--fm-line-2); }
.fm-post-card .fm-post-thumb { aspect-ratio: 16/9; background: var(--fm-bg-3); overflow: hidden; }
.fm-post-card .fm-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-post-card .fm-post-body { padding: 20px; }
.fm-post-card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--fm-heading); }
.fm-post-card p { font-size: .92rem; color: var(--fm-dim); margin: 0; }

/* skip link */
.fm-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--fm-blue); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.fm-skip:focus { left: 0; color:#fff; }

/* Full-width content area for templates still using the #primary wrapper
   (archive-integration, page-mcp, single-integration). The old .ast-container
   rule was dropped — no live template emits Astra container classes anymore. */
#primary { width: 100%; }

/* ============================================================
   CookieYes consent widget — dark-theme skin.
   Scoped to dark mode (html:not(.fm-light)) so light mode keeps the plugin's
   own configured look. !important beats the plugin's generated/inline styles.
   ============================================================ */
html:not(.fm-light) .cky-consent-bar,
html:not(.fm-light) .cky-preference-center {
	background: var(--fm-panel-solid) !important;
	color: var(--fm-text) !important;
}
html:not(.fm-light) .cky-consent-bar {
	border: 1px solid var(--fm-line) !important; /* plugin sets a solid #f4f4f4 on 3 sides — replace all four. */
	box-shadow: var(--fm-shadow-lg) !important;
}
html:not(.fm-light) .cky-preference-center { border: 1px solid var(--fm-line) !important; }
html:not(.fm-light) .cky-overlay { background: rgba(3, 4, 10, .66) !important; }

/* Headings / titles */
html:not(.fm-light) .cky-title,
html:not(.fm-light) .cky-preference-title,
html:not(.fm-light) .cky-accordion-btn { color: var(--fm-heading) !important; }

/* Body copy */
html:not(.fm-light) .cky-notice-des,
html:not(.fm-light) .cky-notice-des p,
html:not(.fm-light) .cky-notice-des span,
html:not(.fm-light) .cky-preference-content-wrapper,
html:not(.fm-light) .cky-accordion-header-des,
html:not(.fm-light) .cky-gpc-wrapper .cky-gpc-desc { color: var(--fm-dim) !important; }

/* Links inside the notice / policy link */
html:not(.fm-light) .cky-notice-des a,
html:not(.fm-light) .cky-policy,
html:not(.fm-light) .cky-show-desc-btn { color: var(--fm-blue) !important; }

/* Dividers + header/footer separators */
html:not(.fm-light) .cky-preference-header,
html:not(.fm-light) .cky-accordion-item,
html:not(.fm-light) .cky-footer-wrapper,
html:not(.fm-light) .cky-prefrence-btn-wrapper { border-color: var(--fm-line) !important; }
html:not(.fm-light) .cky-footer-shadow { background: linear-gradient(to top, var(--fm-panel-solid), rgba(14,16,25,0)) !important; }

/* Close button + accordion chevrons */
html:not(.fm-light) .cky-btn-close span,
html:not(.fm-light) .cky-btn-close,
html:not(.fm-light) .cky-accordion-chevron i { color: var(--fm-dim) !important; border-color: var(--fm-dim) !important; }

/* "Always Active" */
html:not(.fm-light) .cky-always-active { color: var(--fm-green) !important; }

/* Buttons — Accept (primary) */
html:not(.fm-light) .cky-btn-accept {
	background: var(--fm-blue) !important;
	border: 1px solid var(--fm-blue) !important;
	color: #fff !important;
}
/* Buttons — Reject / Cookie Settings / Save (secondary) */
html:not(.fm-light) .cky-btn-reject,
html:not(.fm-light) .cky-btn-customize,
html:not(.fm-light) .cky-btn-preferences {
	background: var(--fm-panel-2) !important;
	border: 1px solid var(--fm-line-2) !important;
	color: var(--fm-text) !important;
}
html:not(.fm-light) .cky-btn-reject:hover,
html:not(.fm-light) .cky-btn-customize:hover,
html:not(.fm-light) .cky-btn-preferences:hover {
	border-color: var(--fm-blue) !important;
	color: var(--fm-heading) !important;
}

/* Toggle switches (unchecked track / checked track) */
html:not(.fm-light) .cky-switch label,
html:not(.fm-light) .cky-switch .cky-switch-slider { background: var(--fm-line-2) !important; }
html:not(.fm-light) .cky-switch input:checked + label,
html:not(.fm-light) .cky-switch input:checked + .cky-switch-slider { background: var(--fm-blue) !important; }

/* Cookie audit / description tables */
html:not(.fm-light) .cky-audit-table,
html:not(.fm-light) .cky-cookie-des-table,
html:not(.fm-light) .cky-cookie-des-table li {
	background: var(--fm-panel) !important;
	border-color: var(--fm-line) !important;
	color: var(--fm-dim) !important;
}

/* Spacing + button sizing (both modes) — breathing room under the copy and
   slightly more compact buttons. */
.cky-notice-des { padding-bottom: 14px !important; }
.cky-btn { padding: 7px 20px !important; font-size: 13px !important; line-height: 1.5 !important; }
/* Left-align the banner buttons instead of centering them. */
.cky-notice-btn-wrapper { justify-content: flex-start !important; align-self: flex-start !important; margin-left: 0 !important; }
