/* ─────────────────────────────────────────────── TOKENS ── */
:root {
  --accent:       #007A72;
  --accent-light: #e0f2f0;
  --accent-dark:  #005c56;
  --text:         #111827;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --border:       #e5e7eb;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.12);
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brand:   'Filson Soft Bold', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Company wordmark - Filson Soft Bold (same cut as the consumer app) */
@font-face {
  font-family: 'Filson Soft Bold';
  src: url('/fonts/filson-soft-bold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────────── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  /* Never let logo + links wrap to two rows - collapse to hamburger instead */
  flex-wrap: nowrap;
}
.nav-logo {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo span {
  /* Kids page wraps "365" in a span - keep the same brand face */
  font-family: inherit;
  font-weight: inherit;
}
.nav-logo span {
  /* Kids page wraps "365" in a span - keep the same brand face */
  font-family: inherit;
  font-weight: inherit;
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav-business {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-2, #555);
  transition: color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-business:hover { color: var(--accent); }

/* ── Mobile hamburger + sidebar nav ──────────────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-hamburger:hover { background: var(--bg-subtle); color: var(--accent); }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 199;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-nav-backdrop.open { display: block; opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 300px);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 14px 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.mobile-nav-links a:hover { background: var(--bg-subtle); color: var(--accent); }
.mobile-nav-links a.mobile-nav-cta {
  margin-top: 10px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
}
.mobile-nav-links a.mobile-nav-cta:hover { background: var(--accent-dark); }

/*
 * Collapse desktop nav links before they wrap (consumer landing).
 * Five "For …" links + CTA need ~1000px with padding; 1024 keeps a single row
 * and switches to the hamburger sidebar below that.
 * Scoped with :has(.nav-hamburger) so secondary pages without a mobile menu
 * (kids, legal) keep their inline links.
 */
@media (max-width: 1024px) {
  .nav:has(.nav-hamburger) .nav-business { display: none; }
  .nav:has(.nav-hamburger) .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav:has(.nav-hamburger) { padding: 16px 20px; }
  .nav:has(.nav-hamburger) .nav-right { gap: 0; }
}

 /* ── Org program CTA bands (Business / Education / Churches) ─────────────
   Shared layout; each band uses the same gradient angle + soft wash → white,
   with a distinct palette that still fits the kind365 scheme:
     Business  - brand teal  (#007A72)
     Education - purple      (#9B59B6, app accent palette)
     Churches  - warm amber  (#F5A623, app accent palette)
─────────────────────────────────────────────────────────────────────────── */
.business-cta,
.education-cta,
.church-cta {
  padding: 72px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-size: 180% 180%;
}
.business-cta  { background-image: linear-gradient(160deg, #e6f5f3 0%, #ffffff 70%); }
.education-cta { background-image: linear-gradient(160deg, #f1ecfb 0%, #ffffff 70%); }
.church-cta    { background-image: linear-gradient(160deg, #fff6e6 0%, #ffffff 70%); }

.business-cta-inner,
.education-cta-inner,
.church-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.business-cta-eyebrow,
.education-cta-eyebrow,
.church-cta-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.business-cta-eyebrow  { color: var(--accent); }
.education-cta-eyebrow { color: #9B59B6; }
.church-cta-eyebrow    { color: #F5A623; }

.business-cta h2,
.education-cta h2,
.church-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 14px;
}
.business-cta p,
.education-cta p,
.church-cta p {
  color: var(--text-2, #555);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 26px;
  max-width: 34rem;
}

/* ── Business announcement banner ──────────────────────────────────────── */
.biz-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-size: .9rem;
  text-align: center;
  transition: filter .15s;
}
.biz-banner:hover { filter: brightness(1.06); }
.biz-banner__tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 100px;
}
.biz-banner__text strong { font-weight: 700; }
.biz-banner__cta { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .biz-banner__cta { display: none; } }

/* ── Business write-off stats ──────────────────────────────────────────── */
.biz-writeoff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto 28px;
}
.biz-writeoff-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  box-shadow: var(--shadow);
}
.biz-writeoff-num {
  display: block;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.biz-writeoff-label { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.biz-writeoff-fineprint { font-size: .74rem !important; color: var(--text-muted); margin-top: 16px !important; }
@media (max-width: 560px) { .biz-writeoff-stats { grid-template-columns: 1fr; } }

/* Shared stat cards for Education + Churches bands (same structure as biz-writeoff-stats) */
.edu-stats,
.church-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto 28px;
}
.edu-stat,
.church-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  box-shadow: var(--shadow);
}
.edu-stat-num,
.church-stat-num {
  display: block;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.edu-stat-num    { color: #9B59B6; }
.church-stat-num { color: #F5A623; }

/* Org CTA buttons match program brand colours (brand guide) */
.business-cta .btn-primary {
  background: #007A72;
}
.business-cta .btn-primary:hover {
  background: #005c56;
}
.education-cta .btn-primary {
  background: #9B59B6;
}
.education-cta .btn-primary:hover {
  background: #7d3c98;
}
.church-cta .btn-primary {
  background: #F5A623;
}
.church-cta .btn-primary:hover {
  background: #c47d0a;
}

.edu-stat-label,
.church-stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}
@media (max-width: 560px) {
  .edu-stats,
  .church-stats { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  background-color: var(--bg) !important;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-device { display: flex; justify-content: center; }

/* ──────────────────────────────────────────── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────────────────────────────────── PHONE MOCKUPS ── */
.phone-mockup {
  display: block;
}
.phone-mockup--tall  { width: 260px; }
.phone-mockup--medium { width: 200px; }
.phone-mockup--small { width: 140px; }

.phone-mockup__notch { display: none; }

.phone-mockup__screen {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mockup__screen img { width: 100%; height: auto; display: block; }

/* Framed variant - for raw (bezel-less) screenshots that need a CSS-drawn device frame.
   No CSS notch here: the real screenshot already has the device notch baked in. */
.phone-mockup--framed {
  position: relative;
  background: #0b0b0c;
  border-radius: 20px;
  padding: 3px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone-mockup--framed .phone-mockup__screen {
  border-radius: 18px;
  background: #000;
}
.phone-mockup--framed .phone-mockup__screen picture {
  display: block; width: 100%;
}
.phone-mockup--framed .phone-mockup__screen img {
  width: 100%; height: auto; display: block;
}

/* Android gets slightly rounder corners (+5 px) to match its hardware bezel */
.phone-mockup--android.phone-mockup--framed {
  border-radius: 27px;
}
.phone-mockup--android.phone-mockup--framed .phone-mockup__screen {
  border-radius: 24px;
}

/* ─────────────────────────────────────── BROWSER MOCKUP ── */
.browser-mockup {
  display: block;
  width: 340px;
}
.browser-mockup__bar { display: none; }
.browser-mockup__screen {
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-mockup__screen img { width: 100%; height: auto; display: block; }

/* ─────────────────────────────────────── MAC WINDOW ── */
/* macOS-style window frame with traffic-light dots, no title/URL bar.
   Used for the "Web" platform screenshot in the "Everywhere you are" row. */
.mac-window {
  width: 360px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mac-window__chrome {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  background: linear-gradient(180deg, #f7f8fa, #eef0f3);
  border-bottom: 1px solid var(--border);
}
.mac-window__dots { display: flex; gap: 6px; }
.mac-window__dot { width: 10px; height: 10px; border-radius: 50%; }
.mac-window__dot--r { background: #ff5f57; }
.mac-window__dot--y { background: #febc2e; }
.mac-window__dot--g { background: #28c840; }
.mac-window__screen {
  overflow: hidden;
  background: #000;
  aspect-ratio: 1920 / 1080;
}
.mac-window__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ──────────────────────────────────── PLACEHOLDER SCREEN ── */
.placeholder-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 2px dashed #d1d5db;
  color: #9ca3af;
  font-size: .7rem;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}
.placeholder-screen i { font-size: 28px; opacity: .4; }
.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ──────────────────────────────────────── SOCIAL PROOF ── */
.social-proof {
  text-align: center;
  padding: 20px 40px 48px;
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
}

/* ─────────────────────────────────────────── SECTIONS ── */
section { padding: 80px 40px; }
section:nth-child(even) { background: var(--bg-subtle); }
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ─────────────────────────────────────────── FEATURES ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon i { font-size: 24px; color: var(--accent); }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ──────────────────────────────────────── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p  { color: var(--text-muted); font-size: .9rem; }
.step-connector {
  font-size: 1.5rem;
  color: #d1d5db;
  padding: 60px 12px 0;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────── PLATFORMS ── */
.platforms { background: var(--bg); }
.platform-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.platform-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.platform-label i { font-size: 16px; }

/* ───────────────────────────────────────── TESTIMONIALS ── */
.testimonials { background: var(--bg-subtle); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
}
.testimonial p::before { content: '\201C'; }
.testimonial p::after  { content: '\201D'; }
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial strong { display: block; font-size: .9rem; font-weight: 700; }
.testimonial span   { font-size: .82rem; color: var(--text-muted); }

/* ──────────────────────────────────────────── DOWNLOAD ── */
.download {
  background: var(--accent) !important;
  color: #fff;
  text-align: center;
  padding: 100px 40px;
}
.download h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  color: #fff;
}
.download p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 48px;
  color: #fff;
}
.download p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: .9rem;
  transition: background .15s;
  min-width: 180px;
}
.store-badge i { font-size: 24px; }
.store-badge:hover { background: var(--accent-dark); }
.store-badge div { display: flex; flex-direction: column; text-align: left; }
.store-badge span { font-size: .7rem; opacity: .8; }
.store-badge strong { font-size: 1rem; font-weight: 700; }

/* ──────────────────────────────────────────── FOOTER ── */
.footer {
  background: #0d0d0d;
  color: #a3a3a3;
  padding: 48px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand .nav-logo { font-size: 1.4rem; color: var(--accent); }
.footer-brand p { font-size: .85rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .85rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; opacity: .5; }

/* ── Beta / Kindness Week launch notice (landing + brand sites) ── */
.k365-beta-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: k365BetaFadeIn 0.22s ease;
}
.k365-beta-card {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  text-align: center;
  animation: k365BetaPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.k365-beta-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.k365-beta-close:hover { background: var(--bg-subtle); color: var(--text); }
.k365-beta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(0, 122, 114, 0.18);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.k365-beta-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}
.k365-beta-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.k365-beta-body strong { color: var(--text); font-weight: 700; }
.k365-beta-actions { display: flex; flex-direction: column; gap: 10px; }
.k365-beta-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.k365-beta-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.k365-beta-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.k365-beta-dismiss:hover { color: var(--text); }
@keyframes k365BetaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes k365BetaPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .k365-beta-backdrop, .k365-beta-card { animation: none; }
}

/* ─────────────────────────────────────────── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 60px;
    gap: 48px;
    text-align: center;
  }
  .hero-text { order: 1; }
  .hero-device { order: 0; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  section { padding: 56px 20px; }
  .steps { gap: 32px; }
  .step-connector { display: none; }
  .platform-row { gap: 24px; }
  .browser-mockup { width: 100%; max-width: 340px; }
  .laptop-mockup { width: 100%; max-width: 340px; }
  .footer { padding: 40px 20px 24px; }
}

@media (max-width: 480px) {
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 260px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Advanced motion layer - consumer landing
   Progressive enhancement: scroll reveals gated behind
   @supports (animation-timeline: view()); all motion inside
   prefers-reduced-motion: no-preference. Unsupported / reduced-motion
   browsers render the page fully visible and static.
═══════════════════════════════════════════════════════════════════════════ */
@keyframes k365FadeUp   { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes k365Reveal   { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes k365Pan      { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes k365BlobA    { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -24px) scale(1.08); } 66% { transform: translate(-18px, 16px) scale(.94); } }
@keyframes k365BlobB    { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-28px, 24px) scale(1.12); } }
@keyframes k365FloatY   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes k365Sheen    { 0% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes k365Nudge    { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(6px); opacity: 1; } }
/* Entrance pop for the hero CTA buttons. Only a `from` keyframe + fill-mode
   backwards: the button lands on its natural styles when done, so the
   :hover transform lift keeps working (a forwards/both fill would hold the
   animated transform and permanently override it). */
@keyframes k365BtnIn    { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* ── Hero: full-bleed gradient wash + soft drifting colour blobs (matches business) ──
   The base .hero is a centered max-width:1100px grid, which would box the
   gradient into a floating rectangle. On desktop we let the section go
   full-bleed and instead constrain the two columns, so the wash spans the
   whole viewport with no boxed edge. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: linear-gradient(150deg, var(--accent-light) 0%, #ffffff 52%, #eef8f6 100%);
  background-size: 180% 180%;
}
@media (min-width: 769px) {
  .hero { max-width: none; grid-template-columns: minmax(0, 520px) minmax(0, 520px); justify-content: center; }
}
.hero > * { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(52px); pointer-events: none;
}
.hero::before { width: 440px; height: 440px; top: -150px; right: -80px; background: radial-gradient(circle at 30% 30%, rgba(0, 122, 114, .30), transparent 70%); }
.hero::after  { width: 360px; height: 360px; bottom: -150px; left: -100px; background: radial-gradient(circle at 60% 40%, rgba(245, 166, 35, .18), transparent 70%); }

/* ── Nav: growing underline on links ─────────────────────────────────────── */
.nav-business { position: relative; }
.nav-business::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .24s ease;
}
.nav-business:hover::after { width: 100%; }

/* ── Buttons: hover lift + light sheen ───────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: translateX(-130%) skewX(-18deg); pointer-events: none;
}

/* ── Feature cards: icon spring + deeper hover ───────────────────────────── */
.feature-icon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-card:hover .feature-icon { transform: translateY(-3px) rotate(-7deg) scale(1.1); }

/* ── Store badges + platforms: hover lift ────────────────────────────────── */
.store-badge { transition: background .15s, transform .18s ease, box-shadow .2s ease; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.platform .phone-mockup, .platform .browser-mockup, .platform .laptop-mockup { transition: transform .3s ease; }
.platform:hover .phone-mockup, .platform:hover .browser-mockup, .platform:hover .laptop-mockup { transform: translateY(-6px); }

/* ── Animated gradient fields ────────────────────────────────────────────── */
.download {
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 55%, #009a90 100%);
  background-size: 180% 180%;
}
.biz-banner { background-size: 200% 200%; }

/* ═══ Motion (respects prefers-reduced-motion) ═══════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero         { animation: k365Pan 20s ease-in-out infinite; }
  .hero::before { animation: k365BlobA 18s ease-in-out infinite; }
  .hero::after  { animation: k365BlobB 22s ease-in-out infinite; }
  .download     { animation: k365Pan 18s ease-in-out infinite; }
  .biz-banner   { animation: k365Pan 14s ease-in-out infinite; }
  .btn-primary:hover::after { animation: k365Sheen .85s ease; }
  .step-connector { animation: k365Nudge 1.8s ease-in-out infinite; }

  /* Hero load entrance - staggered rise */
  .hero-text > * { animation: k365FadeUp .8s both; }
  .hero-eyebrow  { animation-delay: .05s; }
  .hero-headline { animation-delay: .16s; }
  .hero-sub      { animation-delay: .28s; }
  .hero-actions  { animation-delay: .40s; }
  .hero-actions .btn { animation: k365BtnIn .6s cubic-bezier(.22, 1, .36, 1) backwards; }
  .hero-actions .btn:nth-child(1) { animation-delay: .55s; }
  .hero-actions .btn:nth-child(2) { animation-delay: .72s; }
  .hero-device   { animation: k365FadeUp 1s .34s both; }
  .hero-device .phone-mockup { animation: k365FloatY 6.5s 1.4s ease-in-out infinite; }
}

/* ═══ Scroll-driven reveals - progressive enhancement only ═══════════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-header,
    .feature-card,
    .step,
    .platform,
    .testimonial,
    .biz-writeoff-stat,
    .business-cta-inner > *,
    .education-cta-inner > *,
    .church-cta-inner > *,
    .edu-stat,
    .church-stat,
    .store-badge {
      animation: k365Reveal 1s both;
      animation-timeline: view();
      animation-range: entry 2% cover 20%;
    }
    .feature-card:nth-child(2), .step:nth-child(3), .platform:nth-child(2), .testimonial:nth-child(2), .biz-writeoff-stat:nth-child(2), .edu-stat:nth-child(2), .church-stat:nth-child(2), .store-badge:nth-child(2) { animation-range: entry 7% cover 25%; }
    .feature-card:nth-child(3), .step:nth-child(5), .platform:nth-child(3), .testimonial:nth-child(3), .biz-writeoff-stat:nth-child(3), .edu-stat:nth-child(3), .church-stat:nth-child(3), .store-badge:nth-child(3) { animation-range: entry 12% cover 30%; }
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Parallax + extra reveal layer
   Same progressive-enhancement rules as above: decorative orbs are static
   without scroll-timeline support; all motion respects reduced-motion.
═══════════════════════════════════════════════════════════════════════════ */
@keyframes k365ParallaxUp   { from { transform: translateY(44px); } to { transform: translateY(-44px); } }
@keyframes k365ParallaxUpMd { from { transform: translateY(30px); } to { transform: translateY(-30px); } }
@keyframes k365ParallaxUpSm { from { transform: translateY(18px); } to { transform: translateY(-18px); } }
@keyframes k365ParallaxDown { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
@keyframes k365HeroDrift    { from { opacity: 1; transform: none; } to { opacity: .3; transform: translateY(54px); } }

/* ── Decorative floating orbs (soft light/colour circles) ────────────────── */
.download { position: relative; overflow: hidden; isolation: isolate; }
.download > * { position: relative; z-index: 1; }
.download::before, .download::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
}
.download::before { width: 300px; height: 300px; top: -70px; left: -90px; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.16), transparent 70%); }
.download::after  { width: 380px; height: 380px; bottom: -130px; right: -110px; background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.12), transparent 70%); }

.business-cta,
.education-cta,
.church-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.business-cta > *,
.education-cta > *,
.church-cta > * {
  position: relative;
  z-index: 1;
}
.business-cta::before, .business-cta::after,
.education-cta::before, .education-cta::after,
.church-cta::before, .church-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
}
/* Soft colour orbs - same size/placement language, palette-matched per program */
.business-cta::before  { width: 420px; height: 420px; top: -150px; right: -120px; background: radial-gradient(circle at 40% 40%, rgba(0, 122, 114, .16), transparent 70%); }
.business-cta::after   { width: 340px; height: 340px; bottom: -150px; left: -110px; background: radial-gradient(circle at 60% 40%, rgba(245, 166, 35, .13), transparent 70%); }
.education-cta::before { width: 420px; height: 420px; top: -150px; left: -120px; background: radial-gradient(circle at 40% 40%, rgba(155, 89, 182, .16), transparent 70%); }
.education-cta::after  { width: 340px; height: 340px; bottom: -150px; right: -110px; background: radial-gradient(circle at 60% 40%, rgba(0, 122, 114, .12), transparent 70%); }
.church-cta::before    { width: 420px; height: 420px; top: -150px; right: -120px; background: radial-gradient(circle at 40% 40%, rgba(245, 166, 35, .20), transparent 70%); }
.church-cta::after     { width: 340px; height: 340px; bottom: -150px; left: -110px; background: radial-gradient(circle at 60% 40%, rgba(0, 122, 114, .10), transparent 70%); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* ── Extra fade-in reveals ──────────────────────────────────────────── */
    .social-proof p,
    .download h2,
    .download p,
    .biz-writeoff-fineprint,
    .footer-brand,
    .footer-links,
    .footer-copy {
      animation: k365Reveal 1s both;
      animation-timeline: view();
      animation-range: entry 2% cover 20%;
    }
    .download p    { animation-range: entry 7% cover 25%; }
    .footer-links  { animation-range: entry 7% cover 25%; }
    .footer-copy   { animation-range: entry 12% cover 30%; }

    /* ── Hero text drifts up + fades as it scrolls out (parallax exit) ──── */
    .hero-text {
      animation: k365HeroDrift 1s linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }

    /* ── Phone screens drift at their own speed while crossing viewport ─── */
    .step-device {
      animation: k365ParallaxUpSm 1s linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .steps .step:nth-child(3) .step-device        { animation-name: k365ParallaxUpMd; }

    /* ── Orbs float against the scroll direction for depth ──────────────── */
    .download::before,
    .business-cta::before,
    .education-cta::before,
    .church-cta::before {
      animation: k365ParallaxDown 1s linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .download::after,
    .business-cta::after,
    .education-cta::after,
    .church-cta::after {
      animation: k365ParallaxUp 1s linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
