/* Landing page motion + public CMS pages (about, legal, contact, blog). Motion is only active when JS adds html.lp-anim. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- hero ---- */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 100%); background-size: 200% 100%; pointer-events: none; }
.lp-hero .hero-inner { position: relative; z-index: 1; }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; background: radial-gradient(circle, var(--primary, #ff6a3d), transparent 70%); }
.lp-orb-1 { width: 380px; height: 380px; top: -120px; left: -80px; }
.lp-orb-2 { width: 300px; height: 300px; bottom: -100px; right: 8%; opacity: .25; }

/* ---- scroll reveal ---- */
html.lp-anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--lp-delay, 0s); will-change: opacity, transform; }
html.lp-anim [data-reveal].is-in { opacity: 1; transform: none; }
html.lp-anim .hero-panel[data-reveal] { transform: translateX(30px) scale(.97); }
html.lp-anim .hero-panel[data-reveal].is-in { transform: none; }

/* ---- continuous motion ---- */
html.lp-anim .lp-orb-1 { animation: lp-drift 14s ease-in-out infinite alternate; }
html.lp-anim .lp-orb-2 { animation: lp-drift 18s ease-in-out infinite alternate-reverse; }
html.lp-anim .lp-hero::before { animation: lp-sheen 9s linear infinite; }
html.lp-anim .lp-float.is-in { animation: lp-float 6s ease-in-out .8s infinite; }
@keyframes lp-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.12); } }
@keyframes lp-sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- hover polish ---- */
html.lp-anim .feature-card, html.lp-anim .step-card, html.lp-anim .audience-card, html.lp-anim .category-card, html.lp-anim .mini-card, html.lp-anim .blog-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .7s cubic-bezier(.2,.7,.2,1); }
html.lp-anim .feature-card:hover, html.lp-anim .category-card:hover, html.lp-anim .mini-card:hover, html.lp-anim .audience-card:hover, html.lp-anim .blog-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
html.lp-anim .feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }
.feature-icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
html.lp-anim .btn-primary { transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease; }
html.lp-anim .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,106,61,.35); }
html.lp-anim .cta-band { background-size: 200% 200%; animation: lp-gradient 10s ease infinite; }
@keyframes lp-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

@media (prefers-reduced-motion: reduce) {
  html.lp-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.lp-anim .lp-orb, html.lp-anim .lp-hero::before, html.lp-anim .lp-float.is-in, html.lp-anim .cta-band { animation: none !important; }
}

/* ---- CMS pages & blog ---- */
.cms-wrap { max-width: 820px; margin: 0 auto; padding: 36px 20px 64px; }
.cms-wrap.cms-wide { max-width: 1080px; }
.cms-article h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 8px 0 12px; }
.cms-crumbs { font-size: 13px; color: var(--muted, #6b7280); display: flex; gap: 6px; flex-wrap: wrap; }
.cms-crumbs a { color: inherit; text-decoration: underline; }
.cms-meta { color: var(--muted, #6b7280); margin: 0 0 18px; }
.cms-body { font-size: 17px; line-height: 1.75; }
.cms-body h2 { font-size: 26px; margin: 34px 0 10px; }
.cms-body h3 { font-size: 21px; margin: 26px 0 8px; }
.cms-body p, .cms-body ul, .cms-body ol, .cms-body blockquote { margin: 0 0 16px; }
.cms-body ul, .cms-body ol { padding-left: 24px; }
.cms-body a { color: var(--primary, #ff6a3d); text-decoration: underline; }
.cms-body blockquote { border-left: 4px solid var(--primary, #ff6a3d); padding: 6px 16px; background: var(--surface-soft, rgba(0,0,0,.04)); border-radius: 0 10px 10px 0; font-style: italic; }
.cms-body hr { border: 0; border-top: 1px solid var(--border, #e5e7eb); margin: 28px 0; }
.cms-figure { margin: 22px 0; }
.cms-figure img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 0 auto; }
.cms-figure figcaption { text-align: center; font-size: 13px; color: var(--muted, #6b7280); margin-top: 8px; }
.cms-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.cms-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 22px 0; border-radius: 14px; overflow: hidden; background: #000; }
.cms-video iframe, .cms-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-button-row { margin: 22px 0; }
.cms-button-row .btn { text-decoration: none; color: #fff; }
.cms-updated { color: var(--muted, #6b7280); margin-top: 32px; }
.cms-contact { margin-top: 28px; position: relative; }
.cms-related { margin-top: 56px; }
.cms-related h2 { margin-bottom: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 22px 0; }
.blog-card { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.blog-card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-soft, #f3f4f6); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 54px; font-weight: 800; color: var(--primary, #ff6a3d); opacity: .5; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card-body h2 { font-size: 19px; line-height: 1.3; margin: 0; }
.blog-card-body p { margin: 0; color: var(--muted, #6b7280); font-size: 14px; flex: 1; }
.blog-more { color: var(--primary, #ff6a3d); font-weight: 600; font-size: 14px; text-decoration: none; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 22px 0; }

/* ---- v22 smoothness: only transform/opacity animate, off-screen motion is paused, below-the-fold sections skip layout work ---- */
.lp-orb { will-change: transform; contain: layout paint; }
html.lp-anim .lp-hero::before { will-change: background-position; }
html.lp-anim .section:not(:first-of-type) { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.lp-offscreen, .lp-offscreen *, .lp-offscreen::before, .lp-offscreen::after { animation-play-state: paused !important; }
@media (max-width: 720px) {
  .lp-orb { filter: blur(34px); opacity: .28; }
  .lp-orb-2 { display: none; }
  html.lp-anim [data-reveal] { transform: translateY(16px); transition-duration: .5s; }
}
@media (hover: none) {
  html.lp-anim .feature-card:hover, html.lp-anim .category-card:hover, html.lp-anim .mini-card:hover, html.lp-anim .audience-card:hover, html.lp-anim .blog-card:hover { transform: none; }
}
