/* =====================================================================
   FL ECOSYSTEM — Solution pages (FL Creative / Hub / App / Academy)
   Builds on legacy-homepage-style.css (tokens, nav, buttons, reveal).

   v2 — editorial alignment with the master homepage design system:
   one pale aura canvas, large Playfair headlines, FL gradient highlights,
   floating glowing visuals (no boxes), spacious alternating chapters and a
   premium final CTA. A single accent-driven system styles all four pages
   (the per-page accent comes from body[data-solution]); the header, footer
   and theme system are intentionally left intact.
   ===================================================================== */

/* ---------- Per-page accent theming ---------- */
body[data-solution]               { --accent: var(--manage); --accent-text: #0067D6; --accent-glow: rgba(0,123,255,.38); }
body[data-solution="create"]      { --accent: #FF6A00; --accent-text: #E25E00; --accent-glow: rgba(255,106,0,.40); }
body[data-solution="manage"]      { --accent: #007BFF; --accent-text: #0067D6; --accent-glow: rgba(0,123,255,.40); }
body[data-solution="connect"]     { --accent: #8A2BE2; --accent-text: #7A1FD0; --accent-glow: rgba(138,43,226,.42); }
body[data-solution="promote"]     { --accent: #FF2080; --accent-text: #E00A6C; --accent-glow: rgba(255,32,128,.42); }
body[data-solution="learn"]       { --accent: #FFC400; --accent-text: #B8860B; --accent-glow: rgba(255,196,0,.44); }

html[data-theme="dark"] body[data-solution="create"]  { --accent-text: #ff9a55; --accent-glow: rgba(255,106,0,.50); }
html[data-theme="dark"] body[data-solution="manage"]  { --accent-text: #63b2ff; --accent-glow: rgba(0,123,255,.52); }
html[data-theme="dark"] body[data-solution="connect"] { --accent-text: #ba8cff; --accent-glow: rgba(138,43,226,.54); }
html[data-theme="dark"] body[data-solution="promote"] { --accent-text: #ff7ab0; --accent-glow: rgba(255,32,128,.52); }
html[data-theme="dark"] body[data-solution="learn"]   { --accent-text: #ffd95c; --accent-glow: rgba(255,196,0,.52); }

/* Signature FL gradient used for the highlighted word (same as homepage) */
body[data-solution] { --fl-grad: linear-gradient(100deg, #FF6A00 0%, #8A2BE2 52%, #007BFF 100%); }

.accent { color: var(--accent-text); }

body[data-solution] .btn--primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #8A2BE2));
  box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--accent) 72%, transparent);
}
body[data-solution] .btn--primary:hover {
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--accent) 78%, transparent);
}
body[data-solution] .btn:focus-visible {
  outline-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ---------- Nav: active page + cross-page links ---------- */
.nav__links > a { position: relative; }
.nav__links > a[aria-current="page"] { color: var(--ink); }
.nav__links > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  border-radius: 2px; background: var(--accent);
}

/* ---------- Brand: homepage logo lockup (master standard) ---------- */
body[data-solution] .brand__logo-wrap {
  position: relative; display: inline-flex; flex: none; isolation: isolate;
}
body[data-solution] .brand__logo-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 122%; height: 122%;
  background:
    radial-gradient(circle at 24% 26%, rgba(255,106,0,.30), transparent 26%),
    radial-gradient(circle at 76% 26%, rgba(0,123,255,.26), transparent 26%),
    radial-gradient(circle at 26% 76%, rgba(138,43,226,.26), transparent 26%),
    radial-gradient(circle at 76% 76%, rgba(255,196,0,.24), transparent 26%);
  filter: blur(7px);
}
body[data-solution] .brand__logo {
  position: relative; width: 56px; height: 56px; flex: none;
  object-fit: contain;
  filter: saturate(1.12) drop-shadow(0 2px 5px rgba(40,20,80,.14));
}
body[data-solution] .brand__name {
  font-weight: 600; font-size: .96rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}

/* =====================================================================
   PALE EDITORIAL CANVAS + SOFT AURA (mirrors homepage)
   ===================================================================== */
body[data-solution] {
  background:
    radial-gradient(960px 620px at 86% -6%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] body[data-solution] {
  background:
    radial-gradient(980px 640px at 86% -6%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    var(--bg);
}

body[data-solution] .aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
body[data-solution] .aura::before,
body[data-solution] .aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(94px);
}
body[data-solution] .aura::before {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -16vh; right: -10vw;
  background:
    radial-gradient(circle at 38% 38%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 72% 70%, rgba(138,43,226,.10), transparent 62%);
  opacity: .85;
}
body[data-solution] .aura::after {
  width: 54vw; height: 54vw; max-width: 680px; max-height: 680px;
  bottom: -18vh; left: -14vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 64%);
  opacity: .7;
}

body[data-solution] .creative-page { position: relative; overflow: hidden; }

/* shared section wrappers */
body[data-solution] .creative-hero__inner,
body[data-solution] .creative-moment__inner,
body[data-solution] .creative-final__inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad);
}

/* =====================================================================
   HERO — editorial, copy + floating visual
   ===================================================================== */
body[data-solution] .creative-hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 880px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + clamp(54px, 8vw, 104px)) 0 clamp(72px, 11vw, 150px);
}
body[data-solution] .creative-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
body[data-solution] .creative-hero__copy { position: relative; z-index: 2; max-width: 600px; }

/* Eyebrow — clean accent label (de-boxed, no glass pill) */
body[data-solution] .creative-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.6vw, 26px);
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
body[data-solution] .creative-eyebrow > span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
body[data-solution] .creative-eyebrow b { font-weight: 700; color: var(--accent-text); }

/* Titles + headings */
body[data-solution] .creative-title,
body[data-solution] .creative-moment h2,
body[data-solution] .creative-final h2 {
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-weight: 600; letter-spacing: -.025em; color: var(--ink); line-height: 1.04;
}
body[data-solution] .creative-title {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.6vw, 5.7rem);
  line-height: 1.0;
}
body[data-solution] .creative-title span,
body[data-solution] .creative-final h2 span {
  background: var(--fl-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-solution] .creative-lede {
  max-width: 38ch; margin-top: clamp(22px, 3vw, 32px);
  color: var(--body); font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}
body[data-solution] .creative-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(30px, 4vw, 44px);
}

/* =====================================================================
   FLOATING GLOWING VISUALS (no frames, no boxes)
   ===================================================================== */
body[data-solution] .creative-visual {
  position: relative; isolation: isolate;
  animation: creative-float 11s ease-in-out infinite;
}
body[data-solution] .creative-visual--hero {
  width: min(108%, 760px); justify-self: end;
}
body[data-solution] .creative-visual::before {
  content: ""; position: absolute; z-index: -1; inset: -14% -16% -16%;
  border-radius: 44px;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow), transparent 72%);
  filter: blur(46px); opacity: 1;
}
body[data-solution] .creative-visual--hero::before {
  inset: -18% -16% -18% -18%;
  background: radial-gradient(ellipse at 44% 50%, var(--accent-glow), transparent 74%);
  filter: blur(54px);
}
body[data-solution] .creative-visual img {
  width: 100%; height: auto; display: block;
  border-radius: clamp(14px, 2vw, 22px);
  filter: saturate(1.04) contrast(1.02) drop-shadow(0 34px 50px rgba(16,24,40,.18));
}
html[data-theme="dark"] body[data-solution] .creative-visual img {
  filter: saturate(1.07) contrast(1.03) drop-shadow(0 40px 60px rgba(0,0,0,.5));
}

/* =====================================================================
   STORY MOMENTS — spacious alternating chapters
   ===================================================================== */
body[data-solution] .creative-moment { padding: clamp(76px, 12vw, 164px) 0; }
body[data-solution] .creative-moment__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
body[data-solution] .creative-moment--left  .creative-visual { order: 1; }
body[data-solution] .creative-moment--left  .creative-moment__text { order: 2; }
body[data-solution] .creative-moment__text { max-width: 540px; }

/* Kicker — accent label */
body[data-solution] .creative-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  color: var(--accent-text); font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
body[data-solution] .creative-kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 999px; background: var(--accent);
}
body[data-solution] .creative-moment h2,
body[data-solution] .creative-final h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
body[data-solution] .creative-moment p,
body[data-solution] .creative-final p {
  margin-top: 20px; color: var(--body); font-size: clamp(1.04rem, 1.35vw, 1.18rem);
}

/* =====================================================================
   PULL-QUOTE "note" — floating editorial statement (de-boxed)
   ===================================================================== */
body[data-solution] .creative-note {
  position: relative; isolation: isolate;
  max-width: 460px; justify-self: center;
  padding: clamp(8px, 2vw, 20px) 0;
}
body[data-solution] .creative-note::before {
  content: ""; position: absolute; z-index: -1; inset: -28% -18%;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(54px); opacity: .55;
}
body[data-solution] .creative-note p {
  margin: 0; color: var(--ink);
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.65rem); line-height: 1.16;
}
body[data-solution] .creative-note p::before {
  content: ""; display: block;
  width: 40px; height: 3px; border-radius: 999px; margin-bottom: clamp(16px, 2vw, 22px);
  background: var(--fl-grad);
}

/* =====================================================================
   ECOSYSTEM "thread" — soft journey rail (de-boxed)
   ===================================================================== */
body[data-solution] .creative-thread {
  position: relative; display: inline-flex; flex-direction: column;
  gap: clamp(14px, 1.6vw, 18px); justify-self: center;
}
body[data-solution] .creative-thread::before {
  content: ""; position: absolute; left: 7px; top: 9px; bottom: 9px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
}
body[data-solution] .creative-thread a,
body[data-solution] .creative-thread span {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: color .2s ease;
}
body[data-solution] .creative-thread a::before,
body[data-solution] .creative-thread span::before {
  content: ""; position: relative; z-index: 1; flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 0 0 4px var(--bg);
  transition: border-color .2s ease;
}
body[data-solution] .creative-thread a:hover { color: var(--ink); }
body[data-solution] .creative-thread a:hover::before { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
body[data-solution] .creative-thread span { color: var(--accent-text); font-weight: 700; }
body[data-solution] .creative-thread span::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* =====================================================================
   FINAL CTA — premium, glowing
   ===================================================================== */
body[data-solution] .creative-final {
  position: relative; isolation: isolate; text-align: center;
  padding: clamp(96px, 15vw, 184px) 0 clamp(100px, 16vw, 190px);
}
body[data-solution] .creative-final::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: min(700px, 82vw); height: 400px;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(64px); opacity: .5;
}
body[data-solution] .creative-final__inner { max-width: 820px; margin: 0 auto; }
body[data-solution] .creative-final p { max-width: 50ch; margin: 22px auto 0; }
body[data-solution] .creative-final .btn { margin-top: clamp(30px, 4vw, 44px); }

/* =====================================================================
   FOOTER — light editorial (preserved verbatim, accent-driven)
   ===================================================================== */
body[data-solution] .site-foot {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--pad) clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(680px 240px at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%),
    var(--bg);
}
body[data-solution] .site-foot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
body[data-solution] .site-foot__logo-wrap {
  position: relative;
  display: inline-flex;
  isolation: isolate;
  margin-bottom: 4px;
}
@property --foot-glow {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(255, 106, 0, 0.5);
}
body[data-solution] .site-foot__logo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: 50%;
  top: 50%;
  width: clamp(200px, 23vw, 330px);
  height: clamp(118px, 13vw, 188px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(16,13,38,.30), rgba(16,13,38,.10) 58%, transparent 82%);
  filter: blur(20px);
  opacity: 1;
}
@keyframes footGlowCycle {
  0%, 100% { --foot-glow: rgba(255, 106, 0, .5); }  /* orange */
  25%      { --foot-glow: rgba(138, 43, 226, .5); } /* purple */
  50%      { --foot-glow: rgba(0, 123, 255, .5); }  /* blue   */
  75%      { --foot-glow: rgba(255, 196, 0, .5); }  /* gold   */
}
body[data-solution] .site-foot__logo {
  position: relative;
  width: clamp(220px, 26vw, 360px);
  height: auto;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04) drop-shadow(0 8px 20px rgba(18,14,45,.20));
}
body[data-solution] .site-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 4px;
}
body[data-solution] .site-foot__links a {
  color: var(--muted);
  font-size: .92rem;
  transition: color .2s ease;
}
body[data-solution] .site-foot__links a:hover,
body[data-solution] .site-foot__links a:focus-visible {
  color: var(--ink);
}
html[data-theme="dark"] body[data-solution] .site-foot {
  border-top-color: rgba(255,255,255,.10);
  background:
    radial-gradient(680px 240px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
    var(--bg);
}
html[data-theme="dark"] body[data-solution] .site-foot__logo {
  filter: saturate(1.12) brightness(1.05) contrast(1.03) drop-shadow(0 10px 26px rgba(0,0,0,.55));
}
html[data-theme="dark"] body[data-solution] .site-foot__logo-wrap::before {
  background: radial-gradient(closest-side, rgba(150,134,255,.16), transparent 78%);
}

/* =====================================================================
   MOTION
   ===================================================================== */
@keyframes creative-float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  body[data-solution] .creative-hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 72px));
    padding-bottom: clamp(56px, 12vw, 88px);
  }
  body[data-solution] .creative-hero__inner,
  body[data-solution] .creative-moment__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 8vw, 52px);
    text-align: center;
  }
  body[data-solution] .creative-hero__copy { max-width: none; margin-inline: auto; }
  body[data-solution] .creative-title,
  body[data-solution] .creative-lede,
  body[data-solution] .creative-moment__text { margin-inline: auto; }
  body[data-solution] .creative-moment__text { max-width: 640px; }
  body[data-solution] .creative-eyebrow,
  body[data-solution] .creative-kicker,
  body[data-solution] .creative-actions { justify-content: center; }
  /* always show the visual / note / thread below the text on stacked layout */
  body[data-solution] .creative-moment--left  .creative-visual,
  body[data-solution] .creative-moment--right .creative-visual,
  body[data-solution] .creative-moment .creative-note,
  body[data-solution] .creative-moment .creative-thread { order: 2; }
  body[data-solution] .creative-moment--left  .creative-moment__text,
  body[data-solution] .creative-moment--right .creative-moment__text { order: 1; }
  body[data-solution] .creative-visual--hero { width: min(100%, 680px); justify-self: center; margin-inline: auto; }
  body[data-solution] .creative-note { margin-inline: auto; text-align: center; }
  body[data-solution] .creative-note p::before { margin-inline: auto; }
  body[data-solution] .creative-thread { align-self: center; }
}

@media (max-width: 560px) {
  body[data-solution] .brand__logo { width: 46px; height: 46px; }
  body[data-solution] .brand { gap: 10px; }
  body[data-solution] .brand__name { font-size: .8rem; letter-spacing: .12em; }
  body[data-solution] .creative-actions .btn { width: 100%; }
  body[data-solution] .creative-visual img { border-radius: 14px; }
  body[data-solution] .creative-visual::before { inset: -8% -8% -10%; filter: blur(30px); }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  body[data-solution] .creative-visual { animation: none; }
}
