/* YT Advisors marketing site — canonical brand palette (brand-tokens.css):
   light surfaces, navy #001F3F, red #B91C1C accent, Rubik. One default look for
   every segment page + the homepage (Yomi 2026-07-17). */
:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-alt: #EEF1F5;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --ink: #0A1628;
  --body: #1F2937;
  --muted: #6B7280;
  --navy: #001F3F;
  --navy-hover: #003366;
  --red: #B91C1C;
  --red-hover: #C5293A;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* Motion vocabulary — scroll-reveal + micro-interactions. Transform/opacity only
   (no layout properties) so this never touches LCP/CLS. Disabled entirely for
   users who opt out of motion. */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(220%) skewX(-12deg); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.is-visible .reveal-stagger > * { animation: fadeInUp .6s ease both; }
.reveal-stagger > *:nth-child(1) { animation-delay: .04s; }
.reveal-stagger > *:nth-child(2) { animation-delay: .1s; }
.reveal-stagger > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger > *:nth-child(4) { animation-delay: .22s; }
.reveal-stagger > *:nth-child(5) { animation-delay: .28s; }
.reveal-stagger > *:nth-child(6) { animation-delay: .34s; }

.hero-image { will-change: transform; animation: floatSlow 7s ease-in-out infinite; }
.hero-video { animation: none; }

.button { position: relative; overflow: hidden; }
.button::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-12deg); }
.button:hover::after { animation: sheen .9s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible, .reveal-stagger > * { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-image, .ch-congregation, .ch-ai, .ch-prayer { animation: none; }
  .button::after { display: none; }
  .process li:hover, .offer-card:hover, .fit li:hover, .sector-use-case-grid article:hover, .sector-gallery-grid figure:hover, .segment-card:hover, .button:hover { transform: none; }
  html { scroll-behavior: auto; }
}

.nav { height: 82px; max-width: 1180px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; text-decoration: none; }
.brand span { font-size: 17px; }
.nav > div { display: flex; align-items: center; gap: 22px; }
.demo-link { color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; opacity: .85; }
.demo-link:hover { opacity: 1; }

.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(185,28,28,.22); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--red-hover); }
.button.small { padding: 10px 14px; font-size: 13px; }
.button.red { background: var(--red); }

.hero { padding: 80px max(24px, calc((100vw - 1180px) / 2)) 96px; display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 70px; background: var(--bg); }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1, h2, .closing h2 { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.lede { max-width: 640px; margin: 24px 0; color: var(--body); font-size: 19px; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.text-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--red); }
.micro { color: var(--muted); font-size: 12px; }
.hero-image { margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px rgba(10,22,40,.12); }
.hero-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.hero-image figcaption { padding: 9px 13px; color: var(--muted); font-size: 11px; }

.process, .offer, .fit, .segments, .sector-use-cases, .community-story { max-width: 1180px; margin: auto; padding: 88px 24px; }
.process h2, .offer h2, .fit h2, .segments h2, .sector-use-cases h2, .community-story h2, .closing h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.process li { padding: 24px; border-top: 3px solid var(--red); background: var(--surface); border-radius: 0 0 10px 10px; transition: transform .2s ease, box-shadow .2s ease; }
.process li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,22,40,.10); }
.process li span { color: var(--red); font-size: 12px; font-weight: 700; }
.process li p { margin: 20px 0 0; color: var(--navy); font-weight: 600; }

.offer { max-width: none; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 390px; gap: 80px; align-items: center; background: var(--surface); }
.offer > div:first-child > p:last-child { max-width: 700px; color: var(--body); font-size: 18px; }
.offer-card { padding: 30px; border-radius: 14px; background: #fff; color: var(--body); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(10,22,40,.08); transition: transform .2s ease, box-shadow .2s ease; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,22,40,.14); }
.offer-card p { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.offer-card strong { display: block; margin: 5px 0; color: var(--navy); font-size: 32px; }
.offer-card span { display: block; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.offer-card .button { width: 100%; }

.fit { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; }
.fit ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.fit li { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-weight: 600; background: #fff; transition: transform .18s ease, border-color .18s ease; }
.fit li:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.fit li span { color: var(--red); }
.fit aside { align-self: end; padding: 28px; border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 8px 8px 0; }
.fit aside h3 { margin: 0; color: var(--navy); }
.fit aside p { color: var(--body); }
.fit aside a { color: var(--red); font-weight: 700; }

.segments { padding-top: 10px; }
.section-copy { max-width: 620px; color: var(--body); font-size: 18px; }
.segment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.segment-card { display: flex; flex-direction: column; min-height: 220px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-decoration: none; box-shadow: 0 1px 3px rgba(10,22,40,.05); transition: box-shadow .2s ease, transform .2s ease; }
.segment-card:hover { box-shadow: 0 12px 30px rgba(10,22,40,.10); transform: translateY(-2px); }
.segment-card > span { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.segment-card strong { margin-top: 18px; color: var(--navy); font-size: 24px; font-weight: 700; }
.segment-card p { margin: 10px 0 24px; color: var(--body); }
.segment-card b { margin-top: auto; color: var(--red); font-size: 14px; }

.sector-use-cases { padding-top: 40px; }
.sector-use-cases-copy { max-width: 760px; }
.sector-use-cases-copy > p:last-child { color: var(--body); font-size: 18px; }
.sector-use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.sector-use-case-grid article { min-height: 190px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(10,22,40,.05); transition: transform .2s ease, box-shadow .2s ease; }
.sector-use-case-grid article:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,22,40,.10); }
.sector-use-case-grid h3 { margin: 0 0 12px; color: var(--navy); font-size: 22px; font-weight: 700; }
.sector-use-case-grid h3::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.sector-use-case-grid p { margin: 0; color: var(--body); }

.community-story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: 30px; }
.community-story figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px rgba(10,22,40,.12); }
.community-story img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.community-story > div > p:last-child { color: var(--body); font-size: 18px; }

/* Sector image gallery — hero/section imagery per segment (see campaign.js `gallery`).
   Tiles render designed placeholder art until the marketing media library (asset.ytadvisors.com)
   delivers real photography for that theme; swapping is a one-line `src` change per tile. */
.sector-gallery { max-width: 1180px; margin: auto; padding: 20px 24px 88px; }
.sector-gallery-copy { max-width: 700px; margin-bottom: 38px; }
.sector-gallery-copy > p:last-child { color: var(--body); font-size: 18px; }
.sector-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector-gallery-grid figure { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(10,22,40,.08); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.sector-gallery-grid figure:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10,22,40,.14); }
.sector-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector-gallery-grid figcaption { padding: 12px 16px; color: var(--navy); font-weight: 600; font-size: 14px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .sector-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sector-gallery { padding: 16px 18px 72px; } .sector-gallery-grid { grid-template-columns: 1fr; } }

.closing { padding: 88px 24px; background: var(--navy); text-align: center; }
.closing h2 { max-width: 760px; margin: 0 auto 28px; color: #fff; }

footer { max-width: 1180px; margin: auto; padding: 28px 24px; display: flex; gap: 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
footer span { margin-right: auto; }
footer a { color: var(--navy); text-decoration: none; }
footer a:hover { color: var(--red); }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .process ol, .segment-grid, .sector-use-case-grid { grid-template-columns: 1fr 1fr; } .offer, .fit, .community-story { grid-template-columns: 1fr; gap: 40px; } .offer-card { max-width: 480px; } }
@media (max-width: 600px) { .nav { padding: 0 16px; } .brand span, .demo-link { display: none; } .hero { padding: 54px 18px 72px; gap: 42px; } .hero h1 { font-size: 42px; } .actions { align-items: stretch; flex-direction: column; } .process, .offer, .fit, .segments, .sector-use-cases, .community-story { padding: 72px 18px; } .process ol, .fit ul, .segment-grid, .sector-use-case-grid { grid-template-columns: 1fr; } .closing { padding: 72px 18px; } }

/* Church segments: Facebook-login-style split hero — photo collage + newsletter signup */
.church-hero { display: grid; grid-template-columns: 1.08fr 1px .92fr; align-items: center; max-width: 1180px; margin: auto; padding: 48px 24px 80px; }
.ch-divider { align-self: stretch; background: var(--border); }
.ch-collage { position: relative; height: 540px; }
.ch-frame { position: absolute; overflow: hidden; border-radius: 16px; box-shadow: 0 18px 44px rgba(10,22,40,.16); border: 1px solid var(--border); margin: 0; }
@keyframes floatCongregation { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
@keyframes floatAi { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes floatPrayer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ch-congregation { animation: floatCongregation 8s ease-in-out infinite; }
.ch-ai { animation: floatAi 8s ease-in-out infinite .8s; }
.ch-prayer { animation: floatPrayer 8s ease-in-out infinite 1.6s; }
.ch-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ch-congregation { top: 30px; left: 120px; width: 300px; height: 400px; z-index: 3; }
.ch-ai { top: 150px; left: 4px; width: 250px; height: 300px; z-index: 2; }
.ch-prayer { top: 300px; left: 296px; width: 210px; height: 210px; border-radius: 50%; z-index: 4; }
.ch-play { position: absolute; z-index: 5; left: 196px; top: 190px; width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(185,28,28,.4); text-decoration: none; transition: transform .18s ease, background .18s ease; }
.ch-play:hover { transform: scale(1.06); background: var(--red-hover); }
.ch-tri { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.ch-signup { padding: 0 8px 0 56px; }
.ch-signup h1 { margin: 0; color: var(--navy); font-weight: 700; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.ch-signup h1 em { font-style: normal; color: var(--red); }
.ch-sub { max-width: 30rem; margin: 20px 0 24px; color: var(--body); font-size: 17px; }
.ch-sub strong { color: var(--navy); }
.ch-form { display: grid; gap: 12px; max-width: 420px; }
.ch-form .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ch-form input { width: 100%; padding: 15px 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.ch-form input:focus-visible { outline: 3px solid rgba(185,28,28,.28); border-color: var(--red); }
.ch-form .button { width: 100%; }
.ch-reassure { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.ch-watch { margin: 16px 0 0; }
.ch-watch a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 15px; }
.ch-watch a:hover { text-decoration: underline; }
.ch-secondary { margin: 22px 0 0; }
.ch-secondary a { color: var(--red); font-weight: 700; text-decoration: none; font-size: 15px; }
@media (max-width: 900px) { .church-hero { grid-template-columns: 1fr; gap: 40px; } .ch-divider { display: none; } .ch-signup { padding: 0; } .ch-collage { max-width: 520px; margin: 0 auto; } }
@media (max-width: 600px) {
  .church-hero { padding: 36px 18px 56px; }
  /* Genuine mobile arrangement — the desktop absolute overlap overflows a phone; drop to one contained image. */
  .ch-collage { height: auto; max-width: 100%; }
  .ch-frame { position: static; transform: none; animation: none; width: 100%; height: auto; }
  .ch-frame.ch-ai, .ch-frame.ch-prayer { display: none; }
  .ch-congregation { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ch-play { top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .ch-play:hover, .ch-play:focus-visible { transform: translate(-50%, -50%) scale(1.06); }
  .ch-signup h1 { font-size: 32px; }
}

/* Church demo overlay — the play button opens an in-page video lightbox */
.ch-play { border: 0; padding: 0; cursor: pointer; }
.ch-play:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.ch-watch-btn { border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--navy); font: inherit; font-weight: 700; font-size: 15px; }
.ch-watch-btn:hover { text-decoration: underline; }
.ch-watch-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.ch-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10,22,40,.82); }
.ch-overlay[hidden] { display: none; }
.ch-modal { position: relative; width: min(960px, 100%); }
.ch-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.ch-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--navy); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.ch-close:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 600px) { .ch-close { top: 6px; right: 6px; } }
