* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #F1F6FD;
  color: #47566B;
}

a {
  color: #1E6EF2;
  text-decoration: none;
}
a:hover { color: #1858C8; }

input { font-family: inherit; }

h1, h2, h3 { color: #142254; margin: 0; }

button { font-family: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 820px;
}

/* Keeps a heading in the document outline (for screen readers and heading
   hierarchy) without a visible duplicate of copy already shown elsewhere
   on the page. Standard "visually hidden" pattern — not display:none,
   which assistive tech and SEO crawlers would also skip. */
.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;
}

/* ---------- shared ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.eyebrow-blue { background: #DCEAFE; color: #1E6EF2; }
.eyebrow-amber { background: #FCEFD9; color: #B8760A; }

.check { color: #1E6EF2; font-weight: 800; }
.check-light { color: #4C9AFF; }
.check-dark { color: #7FB0FB; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease;
}
.btn-arrow { flex: none; }
.btn-primary {
  background: #1E6EF2;
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
}
.btn-primary:hover { background: #1858C8; color: #fff; }
.btn-outline {
  background: #fff;
  color: #1E6EF2;
  border: 1.5px solid #1E6EF2;
  border-radius: 12px;
  font-size: 15px;
  padding: 13px;
}
.btn-outline:hover { background: #EAF2FE; color: #1E6EF2; }
.btn-light {
  background: #fff;
  color: #142254;
  border-radius: 12px;
  font-size: 15px;
  padding: 14px;
}
.btn-light:hover { background: #EAF2FE; color: #142254; }
.btn-sm { white-space: nowrap; border-radius: 12px; }
.cta-label-short { display: none; }

.icon-badge {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.icon-badge-amber { width: 44px; height: 44px; background: #FCEFD9; }
.icon-badge-blue { width: 48px; height: 48px; border-radius: 13px; background: #EAF2FE; }

.section { padding: 96px 40px; }
.section-white { background: #fff; border-top: 1px solid #EBF1F8; }
.section-blue { background: #F1F6FD; }

.section-head { max-width: 720px; }
.section-head-wide { max-width: 760px; }
.section-head-center { max-width: 680px; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 18px; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin-top: 16px; font-size: 18px; line-height: 1.6; }

/* Anchor targets scroll to flush with the viewport top by default, which
   hides them behind the sticky nav below — offset every jump target so the
   heading stays visible after the scroll. */
#top, #how, #how-anchor, #pricing, #faq { scroll-margin-top: 68px; }
/* Placed just before .hero-video-wrap so #how-anchor (used by the nav's
   "How it works" link) lands the scroll right above the video, instead of
   at #how's own top edge — which now sits mid-video, since the section's
   large top padding is what makes the video visually overlap into it. */
.how-anchor { display: block; }

#how.section {
  padding-top:600px;
}

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,246,253,.95);
  /* backdrop-filter: blur(10px); */
  border-bottom: 1px solid #E3ECF7;
  padding: 0 40px;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo-img { display: block; height: 32px; width: auto; transition: filter .25s ease; }
.logo-img-footer { height: 64px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav-links a { color: #47566B; transition: color .25s ease; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: #47566B;
  padding: 8px 4px;
}
.back-link:hover { color: #1E6EF2; }
.nav-toggle {
  display: none;
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #1E6EF2;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { background: #F1F6FD; padding: 76px 40px 100px; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-title { margin-top: 24px; font-size: 60px; line-height: 1.03; font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin: 22px auto 0; font-size: 20px; line-height: 1.55; color: #47566B; max-width: 44ch; }
.hero-link { margin-top: 14px; font-size: 15px; font-weight: 600; }
.url-error { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #C0293D; text-align: center; }
.url-error-dark { color: #FF9AA8; text-align: left; }

/* Dark hero demo: same navy as .closing, white heading/copy, white nav links */
.hero-dark { background: #142254; }
.hero-dark .eyebrow-blue { background: rgba(255,255,255,.12); color: #fff; }
.hero-dark .hero-title { color: #DCEAFE; }
.hero-dark .hero-sub { color: #DCEAFE; }
.hero-dark .url-error-dark { text-align: center; }
.hero-dark .url-bar-dark { margin: 38px auto 0; }
.nav-wrap-dark { background: rgba(20,34,84,1); border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-wrap-dark .nav-links a { color: #fff; }
/* .nav-wrap-dark .logo-img { filter: brightness(0) invert(1); } */

/* Hero video: sits inside the dark hero but overlaps down into the white
   section below via the negative bottom margin. position + z-index (not
   just DOM order) is what makes it paint over that section's background:
   a positioned sibling always stacks above a later, non-positioned one. */
.hero-video-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 80px auto -600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0C1740;
  cursor: pointer;
}

/* Poster overlay: eyebrow + heading + CTA, hidden once playback starts
   (toggled via .is-playing on the wrap in script.js). Sized/positioned
   against .hero-video-wrap, its containing block. */
/* Sits below .hero-video-overlay (z-index 2) but above the plain <video>
   (unpositioned, so it paints below any positioned sibling regardless of
   DOM order) — lets a mobile-specific <source> serve a much smaller file
   than the desktop poster without a JS-driven swap or a flash of the
   wrong image. Hidden the same way as the overlay once playback starts. */
.hero-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-wrap.is-playing .hero-video-poster { display: none; }

.hero-video-overlay {
  position: absolute;
  top: 50%;
  left: 90px;
  transform: translateY(-50%);
  max-width: 45%;
  z-index: 2;
  cursor: pointer;
}
.hero-video-wrap.is-playing .hero-video-overlay { display: none; }
.hero-video-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  margin-bottom: 16px;
}
.hero-video-heading {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-video-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-video-cta svg { flex: none; }

/* Lighter hero for standalone landing pages (how it works, pricing, FAQ)
   that may be reached directly from search, without the homepage's
   context — carries a page title and a one-line reminder of what
   TidySite is, rather than the homepage's full CTA hero. */
.page-hero { background: #F1F6FD; padding: 64px 40px 56px; text-align: center; }
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero-title { margin-top: 20px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #142254; }
.page-hero-sub { margin: 16px auto 0; font-size: 17px; line-height: 1.55; color: #47566B; max-width: 46ch; }

/* how-it-works.html reuses .hero-video-wrap/.hero-video (and the shared
   #how.section padding-top rules below, via giving that page's Problem
   section id="how" too) for the same video-overlap treatment as the
   homepage. .page-hero's own bottom padding is smaller than .hero's
   (56px vs 100px desktop, 40px vs 72px mobile), so the margin is tuned
   here to reproduce the exact same overlap depth (500/120/38px) rather
   than the homepage's raw margin values, keeping #how.section's
   padding-top numbers valid unchanged on this page too. */
.page-hero .hero-video-wrap { margin-bottom: -556px; }

.url-bar {
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #C9DAF3;
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  gap: 12px;
  max-width: 600px;
  box-shadow: 0 24px 50px -24px rgba(30,110,242,.45);
}
.url-bar-dark {
  max-width: 580px;
  margin: 32px 0 0;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.5);
}
.url-prefix { color: #647389; font-size: 16px; }
.url-bar input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 17px;
  color: #142254;
  background: transparent;
  min-width: 0;
}
.url-bar .btn-primary {
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 11px;
  white-space: nowrap;
}
.url-bar-dark .btn-primary:hover { background: #3B82F6; }

.trust-strip {
  margin-top: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
  color: #47566B;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip-dark { margin-top: 22px; color: #B9C7E2; justify-content: flex-start; }

/* ---------- problem grid ---------- */
.problem-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.problem-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FBFCFE;
  border: 1px solid #EDF1F6;
  border-radius: 14px;
  padding: 18px;
}
.problem-label { font-weight: 600; color: #142254; font-size: 15px; }

/* ---------- solution grid ---------- */
.solution-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.solution-card {
  background: #fff;
  border: 1px solid #E7EEF7;
  border-radius: 16px;
  padding: 26px;
}
.solution-card h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 800; }
.solution-card p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- testimonials ---------- */
.testimonial-carousel { max-width: 640px; margin: 44px auto 0; }
.testimonial-track { display: grid; align-items: start; }
.testimonial-slide {
  grid-row: 1; grid-column: 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease;
}
.testimonial-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  animation: testimonialFadeIn .4s ease;
}
@keyframes testimonialFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-card { padding: 0 20px; text-align: center; }
.stars { color: #1E6EF2; font-size: 15px; letter-spacing: 2px; }
.testimonial-card p { margin: 18px 0 22px; font-size: 22px; line-height: 1.5; color: #2A3958; }
.testimonial-name { font-weight: 700; color: #142254; }
.testimonial-loc { font-size: 14px; color: #6B7A90; }

.carousel-nav { display: flex; align-items: center; justify-content: center; margin-top: 28px; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
/* Visual dot stays 8px, but the button's actual hit area is expanded to
   24x24 (WCAG 2.5.8 minimum) via a ::before dot instead of sizing the
   button itself, so the tap target grows without changing the design. */
.carousel-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #DCE7F5; transition: background .15s ease, transform .15s ease;
}
.carousel-dot.is-active::before { background: #1E6EF2; transform: scale(1.25); }

/* ---------- pricing ---------- */
#pricing .section-head { max-width: 800px; }
.currency-toggle {
  margin: 28px auto 0;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #DCE7F5;
  border-radius: 999px;
  padding: 4px;
}
.currency-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: #6B7A90;
}
.currency-btn[aria-pressed="true"] { background: #1E6EF2; color: #fff; }

.pricing-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid #E3ECF7;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-popular {
  border: 2px solid #1E6EF2;
  position: relative;
  box-shadow: 0 30px 60px -34px rgba(30,110,242,.6);
  transform: scale(1.02);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E6EF2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-tier { font-size: 14px; font-weight: 700; color: #1E6EF2; text-transform: uppercase; letter-spacing: .06em; }
.price-tier-sub { margin-top: 8px; font-size: 15px; color: #6B7A90; line-height: 1.5; }

.price-amount { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.price-value { font-size: 42px; font-weight: 800; color: #142254; }
.price-period { font-size: 15px; color: #6B7A90; }
.price-remediation { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #6B7A90; }
.tooltip-wrap { position: relative; display: inline-block; color: #1E6EF2; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.tooltip-wrap .tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #142254;
  color: #fff;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 34, 84, 0.25);
  z-index: 20;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.tooltip-wrap .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #142254;
}
.tooltip-wrap:hover .tooltip-box,
.tooltip-wrap:focus .tooltip-box,
.tooltip-wrap:focus-visible .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.price-card .btn { margin-top: 22px; width: 100%; border-radius: 12px; padding: 14px 18px; font-size: 15px; }

.price-features {
  margin-top: 24px;
  border-top: 1px solid #EEF3F9;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features-lead { font-size: 13px; font-weight: 700; color: #142254; }
.price-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #3A4A63; }
.price-feature svg { flex: none; margin-top: 3px; }

.price-footnote { margin: 16px 0 0; font-size: 12.5px; color: #8B99AF; line-height: 1.5; }

.pricing-cta {
  padding-top: 108px; max-width: 620px; margin-left: auto; margin-right: auto; text-align: center;
}
.pricing-cta h3 { font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #142254; }
.pricing-cta-sub { margin: 12px auto 0; font-size: 16px; line-height: 1.5; color: #47566B; }
.pricing-cta .url-bar { margin-top: 26px; }
.pricing-cta-note { margin: 14px 0 0; font-size: 13px; color: #647389; }

.pricing-enterprise {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.pricing-enterprise-tier { font-size: 13px; font-weight: 700; color: #6B7A90; text-transform: uppercase; letter-spacing: .06em; }
.pricing-enterprise-text { font-size: 15px; color: #47566B; }
.pricing-enterprise-text a { color: #1E6EF2; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  border: 1px solid #E7EEF7;
  border-radius: 18px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid #EEF3F9; }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
  padding: 22px 26px;
  font-family: inherit;
}
.faq-question-text { font-size: 17px; font-weight: 700; color: #142254; }
.faq-sign {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #EAF2FE;
}
.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #1E6EF2;
  border-radius: 1px;
  transition: transform .15s ease;
}
.faq-sign::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-sign::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-sign.is-open::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer {
  padding: 0 26px 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #47566B;
  max-width: 64ch;
}

/* ---------- closing CTA ---------- */
.closing { background: #142254; padding: 84px 40px; }
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: center;
}
.closing h2 { font-size: 42px; line-height: 1.05; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.closing p { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: #B9C7E2; max-width: 44ch; }
.mascot { height: 120px; position: relative; }
.mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}
.closing-mascot { height: 280px; position: relative; }
.closing-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}


/* ---------- legal pages ---------- */
.legal-page { padding: 56px 40px 96px; }
.legal-page .container-narrow { margin: 0 auto; }
.legal-title { margin-top: 18px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.legal-updated { margin: 10px 0 0; font-size: 14px; color: #6E7E9C; }
.legal-content { margin-top: 32px; }
.legal-content p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.legal-content h2 { font-size: 22px; line-height: 1.3; font-weight: 800; margin: 40px 0 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: #142254; }
.legal-content a { text-decoration: underline; }

/* ---------- success page ---------- */
.success-hero { position: relative; overflow: hidden; background: #F1F6FD; padding: 100px 40px; text-align: center; }
.confetti-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.success-hero-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%; background: #DCEAFE; color: #1E6EF2;
  display: flex; align-items: center; justify-content: center;
}
.success-title { font-size: 48px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #142254; }
.success-sub { margin: 20px auto 0; font-size: 18px; line-height: 1.6; color: #47566B; max-width: 46ch; }
.success-actions { margin-top: 36px; }
.success-actions .btn-primary { padding: 15px 28px; font-size: 15px; }

/* ---------- footer ---------- */
.footer { background: #0C1740; padding: 56px 40px 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: #93A3C0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { margin-top: 14px; font-size: 14px; color: #93A3C0; }
.footer-col a:first-of-type { margin-top: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #93A3C0;
}
.footer-bottom a { color: #93A3C0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .closing-inner { grid-template-columns: 1fr; }
  .closing-mascot { height: 220px; max-width: 220px; margin: 0 auto; }
}

@media (max-width: 850px) {
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }
  .btn-sm { font-size: 13px; padding: 10px 14px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid #E3ECF7;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 40px -20px rgba(20,34,84,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: #F1F6FD; }
  /* Dropdown panel is always white regardless of nav-wrap-dark's
     scroll state, so its links must stay dark for contrast. */
  .nav-wrap-dark .nav-links a { color: #47566B; }
}

@media (max-width: 640px) {
  .nav-wrap { padding: 0 20px; }
  .nav { padding: 12px 0; gap: 12px; }
  .logo-img { height: 24px; }
  .hero { padding: 56px 20px 72px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .hero-video-wrap { margin-bottom: -110px; }
  .hero-video-overlay { left: 20px; max-width: 62%; }
  .hero-video-eyebrow { font-size: 10px; padding: 6px 10px; margin-bottom: 10px; }
  .hero-video-heading { font-size: 19px; }
  .hero-video-cta { margin-top: 14px; padding: 9px 16px; font-size: 13px; }
  /* The 600px #how top-padding (desktop) is tuned to the desktop overlap
     amount below; reset it here to match this breakpoint's much smaller
     video overlap (110px margin - 72px hero padding = 38px), otherwise
     the desktop value leaves a large empty gap before "Care, not neglect". */
  #how.section { padding-top: 64px; }
  /* how-it-works.html: .page-hero's mobile bottom padding is 40px (not
     .hero's 72px), so -78px reproduces the same 38px overlap as above. */
  .page-hero .hero-video-wrap { margin-bottom: -78px; }
  .page-hero { padding: 48px 20px 40px; }
  .page-hero-title { font-size: 32px; }
  .success-hero { padding: 64px 20px; }
  .success-title { font-size: 34px; }
  .success-sub { font-size: 16px; }
  .url-bar { flex-wrap: wrap; padding: 14px; }
  .url-prefix { order: 0; }
  .url-bar input { order: 1; flex: 1; min-width: 0; padding: 8px 0; }
  .url-bar .btn-primary { order: 2; flex-basis: 100%; margin-top: 4px; }
  .section { padding: 64px 20px; }
  .section-head h2, .pricing-cta h3 { font-size: 28px; }
  .closing { padding: 56px 20px; }
  .closing h2 { font-size: 30px; }
  .footer { padding: 40px 20px 28px; }
  .btn svg { display: none; }
}

/* Between the mobile breakpoint and where .hero-video-wrap hits its
   1180px max-width cap, the video's rendered height (16:9 of a shrinking
   width) drops well below the desktop overlap amount (600px margin -
   100px hero padding = 500px). Past that point the video's own height is
   less than the overlap, so the hero's blue background would end before
   the video's top edge even starts — a visible gap of white above the
   video instead of the intended overlap. Scaled down here to an overlap
   (220 - 100 = 120px) that stays safely under the video's height
   (~315-531px) across this whole range. */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-video-wrap { margin-bottom: -220px; }
  #how.section { padding-top: 250px; }
  /* how-it-works.html: .page-hero's bottom padding is 56px in this range
     (not .hero's 100px), so -176px reproduces the same 120px overlap. */
  .page-hero .hero-video-wrap { margin-bottom: -176px; }
}

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- enquiry page ---------- */
.enquiry-section { background: #fff; }
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.enquiry-intro h1 {
  margin-top: 18px; font-size: 38px; line-height: 1.15; font-weight: 800;
  letter-spacing: -.01em; color: #142254;
}
.enquiry-sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: #47566B; }
.enquiry-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.enquiry-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #3A4A63; line-height: 1.5; }
.enquiry-points .check { flex: none; }

/* ---------- signup page next-steps list ---------- */
.signup-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.signup-steps li { display: flex; gap: 14px; align-items: flex-start; }
.signup-step-number {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: #DCEAFE; color: #1E6EF2;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.signup-step-title { font-size: 15px; font-weight: 700; color: #142254; }
.signup-step-text { margin-top: 3px; font-size: 14px; line-height: 1.5; color: #3A4A63; }

.paygate-secure {
  margin-bottom: 15px;
  width:200px;
}

.enquiry-card {
  background: #fff; border: 1px solid #E3ECF7; border-radius: 20px; padding: 36px;
  box-shadow: 0 30px 80px -46px rgba(20,34,84,.25);
}
.field-group { margin-bottom: 20px; }
.field-row { display: flex; gap: 16px; }
.field-row .field-group { flex: 1; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: #142254; margin-bottom: 8px; }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: #142254;
  border: 1px solid #DCE7F5; border-radius: 12px; box-sizing: border-box; background: #fff;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: #1E6EF2; }
.field-textarea { resize: vertical; min-height: 100px; }
.field-input[readonly] { background: #F4F7FB; color: #6B7A90; cursor: default; }
.field-input[readonly]:focus { border-color: #DCE7F5; }

.signup-form-heading { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #142254; }
.signup-intro { margin: 0 0 24px; font-size: 15px; font-weight: 400; color: #142254; line-height: 1.5; }
.signup-intro strong { color: #1E6EF2; font-weight: 700; }
.signup-divider { border: 0; border-top: 1px solid #EBF1F8; margin: 0 0 24px; }
.signup-section { padding-top: 60px; }
.signup-testimonial {
  margin-top: 44px;
  background: #FBFCFE;
  border: 1px solid #EDF1F6;
  border-radius: 14px;
  padding: 24px;
}
.signup-testimonial .stars { display: block; margin-bottom: 10px; }
.signup-testimonial p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #2A3958; }
.payment-summary {
  display: flex; align-items: center; justify-content: space-between;
  background: #F4F7FB; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.payment-summary-label { font-size: 14px; font-weight: 600; color: #3A4A63; }
.payment-summary-amount { font-size: 20px; font-weight: 800; color: #142254; }
.payment-cancel-note { margin-top: 14px; font-size: 13px; color: #8B99AF; text-align: center; }
.signup-terms { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #6B7A90; line-height: 1.4; margin-bottom: 20px; }
.signup-terms input { margin-top: 3px; accent-color: #1E6EF2; flex: none; width: 16px; height: 16px; }
.signup-terms a { color: #1E6EF2; font-weight: 600; }
#su-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-lock-icon { flex: none; }
.field-error-text { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #C0293D; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.checklist-item { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #3A4A63; }
.checklist-item input { margin-top: 3px; accent-color: #1E6EF2; flex: none; width: 16px; height: 16px; }

.enquiry-card .btn-primary { width: 100%; padding: 14px 18px; font-size: 15px; border-radius: 12px; margin-top: 6px; }
#eq-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.enquiry-success { padding: 24px 0; font-size: 18px; font-weight: 700; color: #142254; text-align: center; line-height: 1.5; }
.enquiry-error { margin-top: 16px; font-size: 13px; font-weight: 600; color: #C0293D; text-align: center; }

@media (max-width: 900px) {
  .enquiry-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .field-row { flex-direction: column; gap: 0; }
  .checklist { grid-template-columns: 1fr; }
  .enquiry-card { padding: 24px; }
}