/* Zion Code website
   Desktop layout follows the "Home page" board (1440 wide).
   Phone layout (max-width 640px) follows the "Home page · phone" board (390 wide).
   The header switches to the phone menu at 1060px so the desktop nav never wraps. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
  --accent: #4e2eae;
  --navy: #0a1e38;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #0a1e38;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
input, select, textarea, button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* Layout-specific content. Phone copy and blocks show only at 640px and below. */
@media (min-width: 641px) { .m-only { display: none !important; } }
@media (max-width: 640px) { .d-only { display: none !important; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Motion (from the design) ---------- */
@keyframes up { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
/* Hero entrance starts faintly visible, so browsers count the headline as painted right away (faster Largest Contentful Paint) */
@keyframes up-in { from { opacity: .1; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: 0 70px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes drop { from { opacity: 0; translate: 0 -10px; } }

.in { animation: up-in .9s var(--ease) backwards; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.rise { animation: rise 1.3s var(--ease) .4s backwards; }
.phone-in { animation: rise 1.3s var(--ease) .7s backwards, float 6s ease-in-out 2s infinite; }

/* Scroll reveal: scroll-driven where the browser supports it */
@supports (animation-timeline: view()) {
  .rv { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
}
/* Fallback for browsers without scroll-driven animations (class set in <head>) */
.rv-fallback .rv:not(.is-in) { opacity: 0; translate: 0 32px; }
.rv-fallback .rv.is-in { animation: up .9s var(--ease) both; }

.lift { transition: transform .45s var(--ease), box-shadow .45s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(10, 30, 56, .16); }

.zoom img { transition: transform .8s var(--ease); }
.zoom:hover img { transform: scale(1.04); }

.btn { transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 30, 56, .22); }
.btn:active { transform: scale(.97); }

.nl { position: relative; }
.nl:hover { color: #4e2eae; }
.nl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nl:hover::after { transform: scaleX(1); }

.marq-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marq { display: flex; width: max-content; animation: marq 45s linear infinite; }
.marq-wrap:hover .marq { animation-play-state: paused; }

.float-soft { animation: float 7s ease-in-out infinite; }
.menu-in { animation: drop .25s ease-out; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Shared buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600;
}
.pill-lg { min-height: 52px; font-size: 17px; }
.pill-accent { background: var(--accent); color: #ffffff; padding: 0 28px; }
.pill-navy { background: #0a1e38; color: #ffffff; }
.pill-white { background: #ffffff; color: #0a1e38; padding: 0 28px; }
.pill-outline { border: 1.5px solid #0a1e38; color: #0a1e38; padding: 0 28px; }
.pill-cadence { background: #0f141a; color: #ffffff; padding: 0 26px 0 14px; gap: 10px; }
.pill-cadence img { width: 28px; height: 28px; }

/* ---------- Header ----------
   Sticky at every width. It slides away while scrolling down and returns on any
   scroll up (js/main.js toggles .is-hidden and .is-scrolled). */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  transition: transform .35s var(--ease), box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 #ececf0; }
.site-header.is-hidden { transform: translateY(-100%); }
main section[id] { scroll-margin-top: 80px; }

.hdr-bar {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hdr-logo { display: flex; align-items: center; min-height: 44px; }
.hdr-logo img { height: 38px; width: auto; }
.hdr-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: #424245; }
.hdr-cta { padding: 0 20px; min-height: 44px; font-size: 14px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1060px) {
  .site-header { border-bottom: 1px solid #ececf0; }
  .site-header.is-scrolled { box-shadow: none; }
  .hdr-bar { max-width: none; height: 64px; padding: 0 16px 0 20px; flex-wrap: nowrap; }
  .hdr-logo img { height: 28px; }
  .hdr-nav, .hdr-cta { display: none; }
  .menu-toggle {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #d2d2d7; border-radius: 12px; background: #ffffff; color: #0a1e38;
    padding: 0; cursor: pointer;
  }
  .mobile-menu { flex-direction: column; padding: 0 20px 24px; background: #ffffff; }
  .mobile-menu:not([hidden]) { display: flex; }
  .mm-link {
    display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid #ececf0;
    font-size: 19px; font-weight: 600; color: #0a1e38;
  }
  .mm-cta { margin-top: 20px; display: flex; min-height: 52px; font-size: 17px; }
  main section[id] { scroll-margin-top: 64px; }
}

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 80px 24px 48px; text-align: center; }
.hero-eyebrow { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--accent); }
.hero-title {
  margin: 0 auto; max-width: 900px; font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.03; letter-spacing: -.04em; font-weight: 800;
}
.hero-lede {
  margin: 26px auto 0; max-width: 680px; font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5; color: #515154;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-visual { max-width: 1180px; margin: 0 auto; padding: 0 24px 160px; }
.hv-stage { position: relative; }
.sp-win {
  margin-right: 150px; border: 1px solid #e5e5ea; border-radius: 22px; overflow: hidden;
  background: #ffffff; box-shadow: 0 40px 90px rgba(10, 30, 56, .16);
}
.win-bar {
  height: 44px; background: #f5f5f7; border-bottom: 1px solid #e5e5ea;
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.win-dot { width: 12px; height: 12px; border-radius: 50%; background: #d2d2d7; }
.win-title {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #6e6e73;
}
.win-title img { width: 20px; height: 20px; }
.sp-win > img { width: 100%; height: auto; aspect-ratio: 1440 / 900; }
.sp-phone {
  position: absolute; right: 24px; bottom: -48px; width: 272px;
  background: #ffffff; border: 10px solid #0a1e38; border-radius: 44px;
  box-shadow: 0 30px 70px rgba(10, 30, 56, .28); overflow: hidden;
}
.sp-phone img { width: 100%; height: auto; aspect-ratio: 393 / 852; }

@media (max-width: 960px) {
  .sp-win { margin-right: 0; }
  .sp-phone { position: static; margin: 32px auto 0; }
}

@media (max-width: 640px) {
  body { color: #1d1d1f; }
  .hero { padding: 48px 20px 24px; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 15px; }
  .hero-title { font-size: 42px; line-height: 1.04; }
  .hero-lede { margin-top: 18px; font-size: 18px; }
  .hero-ctas { margin-top: 28px; flex-direction: column; gap: 12px; }
  .hero-ctas .pill { display: flex; }
  .pill-cadence img { width: 24px; height: 24px; }

  .hero-visual { padding: 24px 20px 64px; }
  .hv-stage { display: flex; justify-content: center; }
  .sp-phone {
    width: 240px; margin: 0; border-width: 9px; border-radius: 40px;
    box-shadow: 0 30px 60px rgba(10, 30, 56, .25);
  }
}

/* ---------- Two ways ---------- */
.grow { background: #f5f5f7; padding: 120px 24px; }
.grow-title {
  text-align: center; font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -.035em; line-height: 1.08; font-weight: 800;
}
.grow-grid {
  margin-top: 56px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.grow-card { background: #ffffff; border-radius: 28px; padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.grow-logo { height: 48px; width: auto; align-self: flex-start; }
.grow-eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); }
.grow-card h3 { font-size: 32px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.grow-body { font-size: 17px; line-height: 1.55; color: #515154; }
.more-link {
  margin-top: auto; font-size: 17px; font-weight: 600; color: var(--accent);
  min-height: 44px; display: inline-flex; align-items: center;
}

@media (max-width: 640px) {
  .grow { padding: 64px 20px; }
  .grow-title { text-align: left; font-size: 34px; }
  .grow-grid { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
  .grow-card { border-radius: 24px; padding: 28px; gap: 12px; }
  .grow-logo { height: 40px; }
  .grow-card h3 { font-size: 26px; letter-spacing: -.02em; }
  .grow-body { font-size: 16px; }
  .more-link { margin-top: 0; display: flex; }
}

/* ---------- ServicePro ---------- */
.sp { background: #0a1e38; color: #f5f5f7; padding: 130px 24px; }
.sp-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-brand img { width: 88px; height: auto; }
.sp-brand p { font-size: 17px; font-weight: 600; color: #b5a8f5; }
.sp-title {
  margin: 14px auto 0; max-width: 900px; text-align: center; font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.04em; line-height: 1.05; font-weight: 800;
}
.sp-lede {
  margin: 22px auto 0; max-width: 680px; text-align: center;
  font-size: 20px; line-height: 1.5; color: #a7b1c2;
}
.sp-grid {
  margin-top: 64px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.sp-card { background: #13294a; border-radius: 28px; padding: 36px 36px 20px; }
.sp-eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #b5a8f5;
}
.sp-card h3 { margin: 8px 0 18px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.feat { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid #22385c; }
.feat-icon { flex: none; margin-top: 2px; }
.feat h4 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.feat p { font-size: 16px; line-height: 1.55; color: #a7b1c2; }

.sp-also { margin-top: 40px; text-align: center; }
.sp-also-label { margin: 0 0 16px; font-size: 15px; color: #a7b1c2; }
.sp-also .marq-wrap { max-width: 980px; margin: 0 auto; }
.marq-group { display: flex; gap: 10px; padding-right: 10px; }
.chip {
  border: 1px solid #2c4470; border-radius: 999px; white-space: nowrap;
  padding: 8px 14px; font-size: 14px; color: #d7deea;
}
.sp-cta { margin-top: 56px; text-align: center; }

@media (max-width: 640px) {
  .sp { padding: 72px 20px; }
  .sp-brand { gap: 16px; }
  .sp-brand img { width: 72px; }
  .sp-brand p { font-size: 15px; }
  .sp-title { margin-top: 10px; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
  .sp-lede { margin-top: 16px; font-size: 17px; }
  .sp-grid { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
  .sp-card { border-radius: 24px; padding: 24px 24px 12px; }
  .sp-eyebrow { font-size: 13px; }
  .sp-card h3 { margin: 6px 0 10px; font-size: 24px; }
  .feat { padding: 16px 0; }
  .feat-icon { display: none; }
  .feat h4 { font-size: 17px; }
  .feat p { font-size: 15px; line-height: 1.5; }
  .sp-also { margin-top: 0; }
  .sp-also-label { margin: 32px 0 12px; font-size: 14px; }
  .marq-group { gap: 8px; padding-right: 8px; }
  .chip { padding: 7px 12px; font-size: 13px; }
  .sp-cta { margin-top: 36px; }
  .sp-cta .pill { display: flex; }
}

/* ---------- Screens ---------- */
.screens { background: #f5f5f7; padding: 130px 24px; }
.screens-eyebrow { text-align: center; font-size: 17px; font-weight: 600; color: var(--accent); }
.screens-title {
  margin: 14px auto 0; max-width: 820px; text-align: center; font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -.04em; line-height: 1.05; font-weight: 800;
}
.screens-lede {
  margin: 22px auto 0; max-width: 640px; text-align: center;
  font-size: 20px; line-height: 1.5; color: #515154;
}
.screens-sub { margin: 72px 0 28px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.screens-sub--tech { margin-top: 96px; }
.office-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 48px 28px;
}
.shot { display: flex; flex-direction: column; gap: 18px; }
.shot-frame {
  border: 1px solid #e5e5ea; border-radius: 18px; overflow: hidden; background: #ffffff;
  box-shadow: 0 20px 50px rgba(10, 30, 56, .10);
}
.shot-frame img { width: 100%; height: auto; aspect-ratio: 1440 / 900; }
.shot h4 { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.shot p { font-size: 16px; line-height: 1.55; color: #515154; }
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px 24px;
}
.tshot { display: flex; flex-direction: column; gap: 16px; }
.tshot-frame {
  border: 8px solid #0a1e38; border-radius: 36px; overflow: hidden; background: #ffffff;
  box-shadow: 0 20px 50px rgba(10, 30, 56, .16);
}
.tshot-frame img { width: 100%; height: auto; aspect-ratio: 393 / 852; }
.tshot h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.tshot p { font-size: 15px; line-height: 1.5; color: #515154; }
.swipe-hint { margin: 0 0 20px; font-size: 14px; color: #6e6e73; }

/* Horizontal swipe rows on phones */
@media (max-width: 640px) {
  section .swipe-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 0 20px 8px; scroll-padding: 0 20px;
  }
  section .swipe-row > * { scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .screens { padding: 72px 20px; }
  .screens-eyebrow { margin: 0 0 10px; text-align: left; font-size: 15px; }
  .screens-title { margin: 0; text-align: left; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
  .screens-lede { margin: 14px 0 0; text-align: left; font-size: 17px; }
  .screens-sub { margin: 40px 0 20px; font-size: 22px; letter-spacing: normal; }
  .screens-sub--tech { margin: 48px 0 6px; }
  .office-grid { display: flex; flex-direction: column; gap: 32px; }
  .shot { gap: 12px; }
  .shot-frame { border-radius: 14px; box-shadow: 0 14px 30px rgba(10, 30, 56, .10); }
  .shot h4 { margin-bottom: 4px; font-size: 18px; letter-spacing: normal; }
  .shot p { font-size: 15px; line-height: 1.5; }
  .tshot { flex: 0 0 220px; gap: 12px; }
  .tshot-frame { border-width: 7px; border-radius: 32px; box-shadow: none; }
  .tshot-frame.zoom:hover img { transform: none; }
  .tshot h4 { font-size: 17px; }
  .tshot p { font-size: 14px; line-height: 1.45; }
}

/* ---------- Cadence ---------- */
.cad { background: #0f141a; color: #f2f4f7; padding: 140px 24px 130px; overflow: hidden; }
.cad-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cad-icon { width: 96px; height: 96px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.cad-kicker { margin: 22px 0 0; font-size: 17px; font-weight: 600; color: #8cb8e8; }
.cad-title {
  margin: 12px 0 0; max-width: 860px; font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -.045em; line-height: 1.02; font-weight: 800; color: #f2f4f7;
}
.cad-lede { margin: 22px 0 0; max-width: 660px; font-size: 20px; line-height: 1.5; color: #aab4c0; }
.cad-store {
  margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 14px 24px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px;
  border-radius: 14px; background: #ffffff; color: #0f141a;
}
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-small { font-size: 11px; color: #5b6570; }
.store-badge-big { font-size: 17px; font-weight: 700; }
.cad-notify { font-size: 17px; font-weight: 600; color: #8cb8e8; }

.cad-phones { margin-top: 80px; display: flex; justify-content: center; align-items: flex-end; }
.cad-phone {
  flex: none; position: relative; border: 9px solid #05080b; border-radius: 42px; overflow: hidden;
  background: #ffffff; box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.cad-phone img { width: 100%; height: auto; aspect-ratio: 393 / 852; }
.cad-phone--left {
  width: clamp(170px, 20vw, 250px); transform: rotate(-7deg);
  margin-right: -36px; margin-bottom: 24px; z-index: 1;
}
.cad-phone--mid { width: clamp(210px, 24vw, 300px); z-index: 2; animation-delay: -2s; }
.cad-phone--right {
  width: clamp(170px, 20vw, 250px); transform: rotate(7deg);
  margin-left: -36px; margin-bottom: 24px; z-index: 1; animation-delay: -4s;
}

.cad-feats {
  margin-top: 110px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px 40px;
}
.cad-feat { display: flex; flex-direction: column; gap: 10px; }
.cad-feat-icon {
  width: 48px; height: 48px; border-radius: 14px; background: #18212b;
  display: flex; align-items: center; justify-content: center;
}
.cad-feat h3 { margin: 4px 0 0; font-size: 19px; font-weight: 700; color: #f2f4f7; }
.cad-feat p { font-size: 16px; line-height: 1.55; color: #aab4c0; }
.cad-sub {
  margin: 110px 0 32px; text-align: center; font-size: 30px; font-weight: 700;
  letter-spacing: -.02em; color: #f2f4f7;
}
.cad-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 20px; }
.cshot { display: flex; flex-direction: column; gap: 14px; }
.cshot-frame {
  width: 100%; flex: none; border: 7px solid #05080b; border-radius: 30px; overflow: hidden;
  background: #ffffff; box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.cshot-frame img { width: 100%; height: auto; aspect-ratio: 393 / 852; }
.cshot figcaption { text-align: center; font-size: 15px; font-weight: 600; color: #f2f4f7; }
.swipe-hint--dark { color: #aab4c0; }

@media (max-width: 640px) {
  .cad { padding: 80px 20px 72px; }
  .cad-icon { width: 80px; height: 80px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .55)); }
  .cad-kicker { margin-top: 18px; font-size: 15px; }
  .cad-title { margin-top: 10px; font-size: 38px; line-height: 1.04; letter-spacing: -.04em; }
  .cad-lede { margin-top: 16px; font-size: 17px; }
  .cad-store { margin-top: 26px; flex-direction: column; gap: 12px; }
  .cad-notify { min-height: 44px; display: flex; align-items: center; }
  .cad-notify::after { display: none; }
  .cad-phones { margin-top: 48px; }
  .cad-phone--left, .cad-phone--right { width: 150px; border-width: 6px; border-radius: 28px; margin-bottom: 16px; }
  .cad-phone--left { margin-right: -40px; }
  .cad-phone--right { margin-left: -40px; }
  .cad-phone--mid { width: 190px; border-width: 7px; border-radius: 32px; }
  .cad-feats { margin-top: 64px; display: flex; flex-direction: column; gap: 32px; }
  .cad-feat h3 { font-size: 18px; }
  .cad-feat p { font-size: 15px; }
  .cad-sub { margin: 64px 0 6px; text-align: left; font-size: 24px; letter-spacing: normal; }
  .cshot { flex: 0 0 200px; }
}

/* ---------- Website redesign ---------- */
.rd { padding: 140px 24px; background: #f6f4ff; }
.rd-eyebrow { text-align: center; font-size: 17px; font-weight: 600; color: var(--accent); }
.rd-title {
  margin: 14px auto 0; max-width: 900px; text-align: center; font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -.045em; line-height: 1.02; font-weight: 800;
}
.rd-lede { margin: 22px auto 0; max-width: 640px; text-align: center; font-size: 20px; line-height: 1.5; color: #515154; }
.rd-compare { margin-top: 56px; }

/* Before / after slider */
.ba {
  --split: 50%;
  position: relative; max-width: 1040px; margin: 0 auto; height: 560px; border-radius: 20px;
  overflow: hidden; box-shadow: 0 40px 90px rgba(10, 30, 56, .18); border: 1px solid #e5e5ea;
  background: #ffffff;
}
.ba-layer { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.mock-narrow { display: none; }
.ba-tag {
  position: absolute; bottom: 14px; color: #ffffff; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-family: Inter, system-ui, sans-serif; pointer-events: none;
}
.ba-tag--before { left: 14px; background: rgba(10, 30, 56, .85); }
.ba-tag--after { right: 14px; background: var(--accent); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px;
  background: #ffffff; box-shadow: 0 0 0 1px rgba(10, 30, 56, .15); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #ffffff; box-shadow: 0 8px 24px rgba(10, 30, 56, .3);
  display: flex; align-items: center; justify-content: center; color: #0a1e38;
}
.ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.ba-drag { position: absolute; inset: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-note { margin: 16px 0 0; text-align: center; font-size: 14px; color: #6e6e73; }

@media (max-width: 900px) {
  .ba { height: 510px; }
  .mock-wide { display: none; }
  .mock-narrow { display: block; }
}

.rd-sub { margin: 110px 0 28px; text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.rd-sub--inc { margin-top: 96px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.step, .incl-card { background: #ffffff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.step h4 { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.incl-icon {
  width: 46px; height: 46px; border-radius: 14px; background: #ede9fb;
  display: flex; align-items: center; justify-content: center;
}
.incl-card h4 { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.step p, .incl-card p { font-size: 15px; line-height: 1.5; color: #515154; }
.rd-cta { margin-top: 64px; text-align: center; }
.rd-cta .pill { padding: 0 30px; min-height: 56px; font-size: 18px; }
.rd-cta p { margin: 14px 0 0; font-size: 15px; color: #6e6e73; }

@media (max-width: 640px) {
  .rd { padding: 80px 20px; }
  .rd-eyebrow { margin: 0 0 10px; text-align: left; font-size: 15px; }
  .rd-title { margin: 0; text-align: left; font-size: 38px; line-height: 1.04; letter-spacing: -.04em; }
  .rd-lede { margin: 14px 0 0; text-align: left; font-size: 17px; }
  .rd-compare { margin-top: 28px; }
  .ba { width: 100%; }
  .ba-tag { font-size: 12px; }
  .ba-note { margin-top: 12px; font-size: 13px; }
  .rd-sub { margin: 56px 0 18px; text-align: left; font-size: 24px; letter-spacing: normal; }
  .rd-sub--inc { margin-top: 48px; }
  .steps, .incl { display: flex; flex-direction: column; gap: 14px; }
  .step, .incl-card { padding: 22px; }
  .rd-cta { margin-top: 36px; }
  .rd-cta .pill { display: flex; min-height: 54px; font-size: 17px; }
  .rd-cta p { margin-top: 12px; font-size: 14px; }
}

/* ---------- Pricing ---------- */
.pr { background: #f5f5f7; padding: 130px 24px; }
.pr-title {
  text-align: center; font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -.04em; line-height: 1.05; font-weight: 800;
}
.pr-lede { margin: 18px auto 0; max-width: 600px; text-align: center; font-size: 20px; line-height: 1.5; color: #515154; }
.pr-main {
  margin-top: 56px; background: #0a1e38; color: #f5f5f7; border-radius: 32px; padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.pr-main-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.pr-main-top h3 { font-size: 28px; font-weight: 700; }
.pr-main-top p { margin-top: 6px; font-size: 17px; color: #a7b1c2; }
.pr-main .pill-white { padding: 0 26px; }
.pr-price { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pr-from { font-size: 22px; font-weight: 500; letter-spacing: 0; color: #a7b1c2; }
.pr-per { font-size: 20px; font-weight: 500; letter-spacing: 0; color: #a7b1c2; }
.pr-note { margin-top: 14px; max-width: 620px; font-size: 17px; line-height: 1.5; color: #d7deea; }
.pr-list {
  padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px 40px;
}
.pr-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.pr-list svg { flex: none; margin-top: 3px; }

.pr-cards { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.pr-card { background: #ffffff; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.pr-card h3 { font-size: 22px; font-weight: 700; }
.pr-card-price { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.pr-card-small { font-size: 17px; font-weight: 500; color: #6e6e73; }
.pr-card-body { font-size: 15px; line-height: 1.55; color: #515154; }
.tiers { margin: 4px 0 8px; }
.tier {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-top: 1px solid #ececf0;
}
.tier-name { font-size: 16px; font-weight: 700; }
.tier-desc { font-size: 14px; line-height: 1.45; color: #6e6e73; }
.tier-price { font-size: 17px; font-weight: 700; white-space: nowrap; }
.care-list { margin: 4px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.care-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: #424245; }
.care-list svg { flex: none; margin-top: 3px; }
.card-btn {
  margin-top: auto; align-self: flex-start; padding: 0 22px; min-height: 48px; font-size: 16px;
}
.card-btn--outline { border: 1.5px solid #0a1e38; }
.pr-card--dark { background: #0a1e38; color: #f5f5f7; }
.pr-card--dark .pr-card-body { color: #a7b1c2; }

@media (max-width: 640px) {
  .pr { padding: 72px 20px; }
  .pr-title { text-align: left; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
  .pr-lede { margin: 14px 0 0; max-width: none; text-align: left; font-size: 17px; }
  .pr-main { margin-top: 28px; border-radius: 24px; padding: 28px; gap: 18px; }
  .pr-main-top h3 { font-size: 24px; }
  .pr-main-top p { margin-top: 4px; font-size: 15px; }
  .pr-price { font-size: 48px; }
  .pr-from { font-size: 18px; }
  .pr-per { font-size: 17px; }
  .pr-note { margin-top: 18px; font-size: 16px; }
  .pr-list { display: flex; flex-direction: column; gap: 12px; }
  .pr-list li { color: #f5f5f7; }
  .pr-list svg { margin-top: 2px; }
  .pr-li-stripe { order: 3; }
  .pr-li-usage { order: 4; }
  .pr-main .pill-white { display: flex; }
  .pr-cards { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
  .pr-card { padding: 28px; }
  .card-btn { align-self: stretch; display: flex; }
}

/* ---------- Why Zion Code ---------- */
.trust { padding: 120px 24px; background: #ffffff; }
.trust-grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.trust h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.trust p { font-size: 17px; line-height: 1.55; color: #515154; }

@media (max-width: 640px) {
  .trust { padding: 64px 20px; }
  .trust-grid { display: flex; flex-direction: column; gap: 28px; }
  .trust h3 { margin-bottom: 6px; font-size: 20px; }
  .trust p { font-size: 16px; }
}

/* ---------- Contact ---------- */
.contact { background: #f5f5f7; padding: 130px 24px; }
.contact-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact-copy { flex: 1 1 340px; }
.contact-copy h2 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.04em; line-height: 1.05; font-weight: 800; }
.contact-copy p { margin-top: 20px; font-size: 19px; line-height: 1.55; color: #515154; }
.contact-form {
  flex: 1 1 420px; background: #ffffff; border-radius: 28px; padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select {
  min-height: 48px; padding: 0 14px; border: 1px solid #d2d2d7; border-radius: 12px;
  font-size: 16px; background: #ffffff; color: #1d1d1f;
}
.field select { padding: 0 12px; }
.field textarea {
  padding: 12px 14px; border: 1px solid #d2d2d7; border-radius: 12px;
  font-size: 16px; resize: vertical; color: #1d1d1f;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.form-submit {
  margin-top: 6px; background: var(--accent); color: #ffffff; border: 0; min-height: 52px;
  border-radius: 999px; font-size: 17px; font-weight: 600; cursor: pointer;
}
.form-submit:disabled { opacity: .7; cursor: progress; }
.form-status { font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status--ok { color: #1f7a45; }
.form-status--error { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
  .contact { padding: 72px 20px; }
  .contact-inner { gap: 28px; }
  .contact-copy h2 { font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
  .contact-copy p { margin-top: 14px; font-size: 17px; line-height: 1.5; }
  .contact-form { border-radius: 24px; padding: 24px; gap: 16px; }
  .form-row { display: flex; flex-direction: column; gap: 16px; }
  .field input, .field select { min-height: 50px; }
  .field select { padding: 0 10px; }
  .form-submit { margin-top: 4px; }
}

/* ---------- Footer ---------- */
.foot {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #6e6e73;
}
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand img { height: 28px; width: auto; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .foot { padding: 32px 20px 40px; flex-direction: column; align-items: stretch; gap: 16px; font-size: 14px; }
  .foot-brand img { height: 26px; }
  .foot-nav { gap: 0 20px; }
  .foot-nav a { min-height: 40px; display: flex; align-items: center; }
  .foot-nav .nl::after { display: none; }
}

/* ---------- Home: links to the product pages ---------- */
.page-link { text-align: center; }
.page-link a { font-size: 17px; font-weight: 600; }
.page-link--sp { margin-top: 22px; }
.page-link--sp a { color: #b5a8f5; }
.page-link--cad { margin-top: 64px; }
.page-link--cad a { color: #8cb8e8; }
.page-link--rd { margin-top: 18px; }
.page-link--rd a { color: var(--accent); }

@media (max-width: 640px) {
  .page-link a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .page-link a::after { display: none; }
  .page-link--sp { margin-top: 14px; }
  .page-link--cad { margin-top: 40px; }
  .page-link--rd { margin-top: 10px; }
}

/* =====================================================================
   Inner pages: ServicePro, Cadence, Website redesign
   ===================================================================== */
body.pg { color: #1d1d1f; }
.hdr-nav a[aria-current="page"] { color: #0a1e38; font-weight: 700; }
.mm-link { justify-content: space-between; }
.mm-dot { width: 8px; height: 8px; border-radius: 50%; background: #4e2eae; }

/* ---------- Page hero ---------- */
.ph { max-width: 1200px; margin: 0 auto; padding: 72px 24px 0; text-align: center; }
.ph-mark { display: flex; justify-content: center; }
.ph-logo { height: 52px; width: auto; }
.ph-badge { background: #ede9fb; color: #3d2490; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ph-app img { width: 104px; height: 104px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.ph-app span { font-size: 17px; font-weight: 600; color: #8cb8e8; }
.ph-title {
  margin: 22px auto 0; max-width: 980px; font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03; letter-spacing: -.045em; font-weight: 800; color: #1d1d1f;
}
.ph-lede { margin: 24px auto 0; max-width: 720px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: #515154; }
.ph-ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ph-ctas .pill { padding: 0 26px; gap: 10px; }
.pill-ghost { border: 1.5px solid #ffffff; color: #ffffff; }
.store-badge--hero { justify-content: center; }
.store-badge--hero .store-badge-text { text-align: left; }
.ph--dark .ph-title { color: #f2f4f7; }
.ph--dark .ph-lede { color: #aab4c0; }

/* ServicePro hero screens */
.ph-visual { max-width: 1180px; margin: 0 auto; padding: 64px 24px 140px; }
.ph-stage { position: relative; }
.ph-win { margin-right: 150px; }
.frame {
  border: 1px solid #e5e5ea; border-radius: 18px; overflow: hidden; background: #ffffff;
  box-shadow: 0 30px 70px rgba(10, 30, 56, .14);
}
.frame img { width: 100%; height: auto; aspect-ratio: 1440 / 900; }
@media (max-width: 960px) { .ph-win { margin-right: 0; } }

/* Cadence hero */
.cad-hero { background: #0f141a; color: #f2f4f7; padding: 0 24px 130px; overflow: hidden; }
.cad-phone--soft { box-shadow: 0 30px 60px rgba(10, 30, 56, .22); }

/* Website redesign hero */
.wr-hero { background: #f6f4ff; }
.wr-compare { max-width: 1088px; margin: 0 auto; padding: 64px 24px 120px; }
.wr-note { margin: 14px 0 0; text-align: center; font-size: 14px; color: #6e6e73; }

/* ---------- Sections ---------- */
.sec { padding: 130px 24px; overflow: hidden; background: #ffffff; color: #1d1d1f; }
.sec--gray { background: #f5f5f7; }
.sec--lav { background: #f6f4ff; }
.sec--navy { background: #0a1e38; color: #f2f4f7; }
.sec--ink { background: #0f141a; color: #f2f4f7; }
.sec--teach { padding: 40px 24px 80px; }
.sec--students { padding: 80px 24px 130px; }
.sec-eyebrow { margin: 0 0 12px; text-align: center; font-size: 17px; font-weight: 600; color: var(--accent); }
.sec-title {
  margin: 0 auto; text-align: center; max-width: 860px; font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.06; letter-spacing: -.04em; font-weight: 800; color: #1d1d1f;
}
.sec-lede { margin: 16px auto 0; text-align: center; max-width: 680px; font-size: 20px; line-height: 1.5; color: #515154; }
.sec--navy .sec-eyebrow, .sec--ink .sec-eyebrow { color: #8cb8e8; }
.sec--navy .sec-title, .sec--ink .sec-title { color: #f2f4f7; }
.sec--navy .sec-lede, .sec--ink .sec-lede { color: #aab4c0; }

/* ---------- Icon cards ---------- */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cards--narrow { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards--mt48 { margin-top: 48px; }
.card { background: #ffffff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; background: #ede9fb;
  display: flex; align-items: center; justify-content: center;
}
.card h3 { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: #1d1d1f; }
.card p { font-size: 15px; line-height: 1.5; color: #515154; }
.card--navy { background: #13294a; }
.card--navy .card-icon { background: #1c3560; }
.card--navy h3 { color: #f2f4f7; }
.card--navy p { color: #a7b1c2; }
.card--step h3 { margin-top: 6px; font-size: 20px; }
.card--step p { line-height: 1.55; }

/* ---------- Feature rows ---------- */
.frows { margin-top: 48px; }
.frows--mt40 { margin-top: 40px; }
.frow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding: 72px 0; border-top: 1px solid #ececf0;
}
.sec--ink .frow { border-top-color: #1f2933; }
.frow-text { flex: 1 1 380px; min-width: 0; }
.frow-media { flex: 1.3 1 480px; min-width: 0; display: flex; justify-content: center; gap: 16px; }
.frow-shot { width: 100%; }
.frow-eyebrow { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--accent); }
.frow h3 { font-size: 38px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: #1d1d1f; }
.frow-body { margin-top: 14px; font-size: 18px; line-height: 1.55; color: #515154; }
.checks { margin-top: 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: #424245; }
.checks svg { flex: none; }
.sec--ink .frow-eyebrow { color: #8cb8e8; }
.sec--ink .frow h3 { color: #f2f4f7; }
.sec--ink .frow-body, .sec--ink .checks li { color: #aab4c0; }
.phone-frame {
  width: 200px; flex: none; border: 8px solid #0a1e38; border-radius: 36px; overflow: hidden;
  background: #ffffff; box-shadow: 0 30px 60px rgba(10, 30, 56, .22);
}
.phone-frame img { width: 100%; height: auto; aspect-ratio: 393 / 852; }
.phone-frame--ink { width: 230px; border-color: #05080b; }

/* ---------- Chips ---------- */
.chips { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span {
  background: #ffffff; border: 1px solid #e5e5ea; border-radius: 999px;
  padding: 12px 18px; font-size: 16px; font-weight: 600;
}

/* ---------- ServicePro price ---------- */
.price-card {
  margin-top: 28px; background: #0a1e38; color: #f5f5f7; border-radius: 32px; padding: 48px;
  display: flex; flex-direction: column; gap: 28px;
}
.price-note { font-size: 17px; line-height: 1.5; color: #d7deea; }
.price-list {
  padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px 40px;
}
.price-list li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: #f5f5f7; }
.price-list svg { flex: none; }
.price-card .pill { padding: 0 26px; gap: 10px; }

/* ---------- Comparison table ---------- */
.cmp {
  margin-top: 48px; background: #ffffff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 30, 56, .08);
}
.cmp table { width: 100%; border-collapse: collapse; }
.cmp thead tr { background: #f5f5f7; }
.cmp th, .cmp td { text-align: left; padding: 18px 24px; font-size: 16px; }
.cmp thead th { font-size: 15px; color: #6e6e73; }
.cmp thead th:first-child { font-size: 14px; }
.cmp thead .cmp-us { color: #4e2eae; }
.cmp tbody tr { border-top: 1px solid #ececf0; }
.cmp tbody th { font-weight: 700; }
.cmp-yes { display: inline-flex; gap: 8px; align-items: center; }
.cmp-ico { display: flex; flex: none; }
.cmp-no { color: #6e6e73; }

/* ---------- Packages ---------- */
.pr-cards--mt56 { margin-top: 56px; }
.pkg-btn {
  display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 26px;
  min-height: 52px; border-radius: 999px; font-size: 17px; font-weight: 600;
}
.pkg-btn--outline { border: 1.5px solid #0a1e38; color: #0a1e38; }
.pkg-btn--white { background: #ffffff; color: #0a1e38; }
.pkg-end { margin-top: auto; }

/* ---------- Cadence students ---------- */
.stu {
  margin: 56px auto 0; max-width: 900px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.stu figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.stu-frame {
  width: 100%; flex: none; border: 7px solid #05080b; border-radius: 30px; overflow: hidden;
  background: #ffffff; box-shadow: 0 30px 60px rgba(10, 30, 56, .22);
}
.stu-frame img { width: 100%; height: auto; aspect-ratio: 393 / 852; }
.stu figcaption { text-align: center; }
.stu-name { font-size: 16px; font-weight: 700; color: #f2f4f7; }
.stu-desc { margin-top: 4px; font-size: 14px; line-height: 1.45; color: #aab4c0; }

/* ---------- FAQ ---------- */
.faq { margin: 48px auto 0; max-width: 900px; border-top: 1px solid #e3e3e8; }
.faq details { border-bottom: 1px solid #e3e3e8; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 64px; padding: 14px 0; font-size: 19px; font-weight: 700; color: #1d1d1f;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; }
.faq p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: #515154; }

/* ---------- Single-column contact form ---------- */
.contact-form--single { gap: 16px; }
.contact-form--single .field input, .contact-form--single .field select { min-height: 50px; }
.contact-form--single .field select { padding: 0 10px; }
.contact-form--single .form-submit { margin-top: 4px; }

@media (max-width: 640px) {
  .ph { padding: 44px 20px 0; }
  .ph-logo { height: 40px; }
  .ph-app img { width: 80px; height: 80px; }
  .ph-app span { font-size: 15px; }
  .ph-title { margin: 16px 0 0; font-size: 40px; line-height: 1.04; letter-spacing: -.04em; }
  .ph-lede { margin: 16px 0 0; font-size: 17px; }
  .ph-ctas { margin-top: 28px; flex-direction: column; gap: 12px; }
  .ph-ctas .pill { display: flex; }

  .ph-visual { padding: 36px 20px 64px; }
  .ph-visual .sp-phone {
    position: relative; right: auto; bottom: auto; width: 130px; margin: -60px 8px 0 auto;
    border-width: 6px; border-radius: 24px; box-shadow: 0 30px 60px rgba(10, 30, 56, .22);
  }
  .cad-hero { padding: 0 0 72px; }
  .cad-hero .cad-phones { margin-top: 44px; }
  .wr-compare { padding: 32px 20px 64px; }

  .sec { padding: 72px 20px; }
  .sec--teach { padding: 24px 20px 40px; }
  .sec--students { padding: 40px 20px 72px; }
  .sec-eyebrow { text-align: left; font-size: 15px; }
  .sec-title { text-align: left; font-size: 34px; }
  .sec-lede { text-align: left; font-size: 17px; }

  .cards { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
  .card { padding: 22px; }

  .frows, .frows--mt40 { margin-top: 16px; }
  .frow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; padding: 48px 0; }
  .frow-text, .frow-media { flex: none; }
  .frow-text { order: 0; }
  .frow-media { order: 1; }
  .frow-eyebrow { font-size: 15px; }
  .frow h3 { font-size: 28px; }
  .frow-body { font-size: 16px; }
  .checks li { font-size: 15px; }
  .phone-frame { width: 150px; border-width: 6px; border-radius: 26px; }

  .chips { margin-top: 24px; justify-content: flex-start; }
  .chips span { font-size: 14px; }

  .price-card { margin-top: 24px; border-radius: 24px; padding: 28px; gap: 18px; }
  .price-note { font-size: 16px; }
  .price-list { display: flex; flex-direction: column; }
  .price-card .pill { display: flex; }

  .cmp { margin-top: 24px; background: none; border-radius: 0; overflow: visible; box-shadow: none; }
  .cmp table { display: block; }
  .cmp thead { display: none; }
  .cmp tbody { display: flex; flex-direction: column; gap: 12px; }
  .cmp tbody tr {
    display: flex; flex-direction: column; gap: 8px; padding: 18px;
    background: #ffffff; border-radius: 18px; border-top: 0;
  }
  .cmp tbody th, .cmp tbody td { padding: 0; }
  .cmp td.cmp-cell-us { font-size: 15px; line-height: 1.45; }
  .cmp-yes { display: flex; align-items: flex-start; }
  .cmp-ico { display: block; }
  .cmp-yes-text::before { content: "Zion Code: "; font-weight: 700; }
  .cmp td.cmp-no { font-size: 14px; line-height: 1.45; }
  .cmp-no::before { content: "Page builder: "; }

  .pr-cards--mt56 { margin-top: 28px; }

  section .stu.swipe-row { margin: 24px -20px 0; max-width: none; }
  .stu figure { flex: 0 0 200px; }

  .faq { margin-top: 24px; }
  .faq summary { font-size: 17px; }
  .faq p { font-size: 15px; }
}

/* Each comparison row reveals on its own on phones */
@supports (animation-timeline: view()) {
  @media (max-width: 640px) {
    .cmp.rv { animation: none; }
    .cmp-row { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}

/* ---------- Phone-only motion differences from the phone board ---------- */
@media (max-width: 640px) {
  .rv.rv-d { animation: none; }
  .rv-fallback .rv.rv-d { opacity: 1; translate: none; animation: none; }
  .float-d { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; translate: none !important; }
}
