/* ============================================================
   BizHub365 public home page (core_pages/templates/home.html).
   Colours mirror the --bh-* tokens in static/css/base.css.
   See DESIGN.md. No inline <style> on the page: it all lives here.
   ============================================================ */

.sales-home {
  --sales-navy: #0b1f42;
  --sales-blue: #1b54b6;
  --sales-teal: #1d7a70;
  --sales-ink: #0a1830;
  --sales-ink-soft: #1e3050;
  --sales-muted: #3d4f6b;
  --sales-muted-soft: #4f607a;
  --sales-card: #ffffff;
  --sales-card-soft: #f5f8fd;
  --sales-border: #c5d6f0;
  --sales-border-strong: #a8c2e8;
  --sales-accent: #e8b84a;
  --sales-on-dark: rgba(255, 255, 255, 0.92);
  --sales-shadow: 0 10px 28px rgba(10, 24, 48, 0.08);
  --sales-shadow-hover: 0 18px 36px rgba(10, 24, 48, 0.14);
  --sales-font: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  font-family: var(--sales-font);
  color: var(--sales-ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(27, 84, 182, 0.07), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3fa 45%, #e8eef8 100%);
  /* The decorative orbs hang off the hero's edges; clip them so they don't widen
     the page on phones (WCAG 1.4.10). clip, not hidden: no scroll container. */
  overflow-x: clip;
}

.sales-home ::selection {
  background: rgba(232, 184, 74, 0.45);
  color: var(--sales-ink);
}

.sales-home h1,
.sales-home h2,
.sales-home h3,
.sales-home .h1,
.sales-home .h2,
.sales-home .h3 {
  font-family: var(--sales-font);
  color: var(--sales-ink);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sales-home p,
.sales-home li {
  color: var(--sales-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.sales-home .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1;
  text-align: center;
}

/* Dark sections keep light text. */
.sales-hero h1, .sales-hero h2, .sales-hero h3,
.sales-pricing h2, .sales-pricing h3,
.pricing-card h2, .pricing-card h3,
.final-cta-panel h2, .final-cta-panel h3,
.sales-home .sales-partner-band h2 {
  color: #ffffff;
}

.sales-hero p, .sales-hero li, .sales-hero figcaption,
.sales-pricing p, .sales-pricing li,
.final-cta-panel p,
.sales-home .sales-partner-band p {
  color: var(--sales-on-dark);
}

/* ---------- Buttons ---------- */
.btn-sales-primary {
  color: #081126;
  font-weight: 800;
  border: 1px solid var(--sales-accent);
  background: var(--sales-accent);
  box-shadow: 0 10px 28px rgba(9, 15, 35, 0.28);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.btn-sales-primary:hover,
.btn-sales-primary:focus {
  color: #081126;
  background: #f0c75c;
  border-color: #f0c75c;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 15, 35, 0.34);
}

.btn-sales-ghost {
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-sales-ghost:hover,
.btn-sales-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

/* ---------- Hero ---------- */
.sales-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #071833 0%, #0f2f5e 38%, #1b54b6 78%, #1f6f8a 100%);
}

.sales-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.sales-orb {
  position: absolute;
  filter: blur(2px);
  pointer-events: none;
  border-radius: 50%;
}

.sales-orb-1 {
  width: 360px;
  height: 360px;
  top: -130px;
  right: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.sales-orb-2 {
  width: 440px;
  height: 440px;
  bottom: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.32), rgba(232, 184, 74, 0));
}

.sales-hero-title {
  max-width: 17ch;
  line-height: 1.08;
  font-weight: 800;
  animation: hero-rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sales-hero-subtitle {
  max-width: 52ch;
  font-size: 1.15rem;
  line-height: 1.6;
  animation: hero-rise 740ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sales-hero-note {
  max-width: 52ch;
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
}

.sales-hero .hmrc-mtd-recognised-container {
  margin-top: 1.25rem;
}

.sales-hero p.hmrc-mtd-recognised-p {
  line-height: 1;
}

/* ---------- Product screenshots ---------- */
.sales-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bh-radius-md, 12px);
  border: 1px solid var(--sales-border);
  background: #fff;
  box-shadow: 0 18px 44px rgba(10, 24, 48, 0.16);
}

.sales-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--sales-muted);
}

.sales-shot--hero figcaption {
  color: var(--sales-on-dark);
}

.sales-shot--hero img {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 28px 60px rgba(4, 12, 28, 0.45);
  animation: hero-rise 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- How it works ---------- */
.sales-steps {
  background: #fff;
  border-bottom: 1px solid var(--sales-border);
}

.sales-step-list {
  list-style: none;
  counter-reset: sales-step;
  margin: 1.5rem 0 0;
  padding: 0;
}

.sales-step-list li {
  counter-increment: sales-step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
}

.sales-step-list li:last-child {
  padding-bottom: 0;
}

.sales-step-list li::before {
  content: counter(sales-step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--sales-blue);
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sales-step-list h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.sales-step-list p {
  margin: 0;
  color: var(--sales-ink-soft);
}

/* ---------- Section heads ---------- */
.sales-section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.sales-section-head p {
  font-size: 1.05rem;
}

/* ---------- Books and tax features ---------- */
.feature-group-card {
  height: 100%;
  padding: 1.6rem 1.45rem;
  background: var(--sales-card);
  border: 1px solid var(--sales-border);
  border-radius: var(--bh-radius-md, 12px);
  box-shadow: var(--sales-shadow);
}

.feature-group-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-group-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--bh-radius-sm, 8px);
  background: #e8f0ff;
  color: var(--sales-blue);
  font-size: 1.15rem;
}

.feature-group-list {
  margin: 0;
  padding-left: 1.15rem;
}

.feature-group-list li {
  margin-bottom: 0.45rem;
  color: var(--sales-ink-soft);
  line-height: 1.55;
}

/* ---------- The rest of the business ---------- */
.sales-more {
  background: #fff;
  border-block: 1px solid var(--sales-border);
}

.sales-more-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.sales-more-group h3 i {
  color: var(--sales-teal);
}

.sales-more-group ul {
  margin: 0;
  padding-left: 1.15rem;
}

.sales-more-group li {
  margin-bottom: 0.4rem;
  color: var(--sales-ink-soft);
}

/* ---------- Pricing ---------- */
.sales-pricing {
  background: linear-gradient(160deg, #0b1f42 0%, #123364 45%, #1a3d5c 100%);
}

.pricing-card {
  position: relative;
  height: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.25rem;
}

.pricing-card .plan-tier-label {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card .pricing-trial-badge {
  background-color: #15803d;
  color: #fff;
  font-size: 0.85rem;
}

.pricing-card .plan-price {
  margin-bottom: 0.3rem;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pricing-card .plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sales-on-dark);
}

.pricing-card .plan-billing-note {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.pricing-card .plan-description {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pricing-card hr {
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  margin: 0.75rem 0;
}

.pricing-card .feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  columns: 2 16rem;
  column-gap: 1.5rem;
}

.pricing-card .feature-list li {
  break-inside: avoid;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: #fff;
  font-size: 0.95rem;
}

.pricing-card .feature-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62rem;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid #86efac;
  border-bottom: 2px solid #86efac;
  transform: rotate(-45deg);
}

/* ---------- Questions ---------- */
.sales-faq {
  background: #f7f9fc;
}

.sales-faq .accordion {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--sales-border);
  box-shadow: var(--sales-shadow);
  background: #fff;
  border-radius: var(--bh-radius-md, 12px);
  overflow: hidden;
}

.sales-faq .accordion-item {
  border: 0;
  border-bottom: 1px solid #d8e4f6;
  background: #fff;
}

.sales-faq .accordion-item:last-child {
  border-bottom: 0;
}

.sales-faq .accordion-button {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sales-ink);
  background: #fff;
}

.sales-faq .accordion-button:not(.collapsed) {
  color: var(--sales-blue);
  background: #eef4ff;
  box-shadow: none;
}

.sales-faq .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.sales-faq .accordion-body {
  color: var(--sales-ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Partner band (accountants, bookkeepers, referrals) ---------- */
.sales-partner-band {
  background: var(--sales-navy);
  color: #fff;
}

.sales-partner-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.sales-partner-band-inner > div:first-child {
  flex: 1 1 32rem;
}

.sales-partner-band p {
  max-width: 68ch;
}

.sales-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Final call to action ---------- */
.sales-final-cta {
  padding: 2.75rem 0 3.4rem;
}

.final-cta-panel {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, #2f8f84 0%, transparent 42%),
    linear-gradient(125deg, #0b1f42 0%, #1b54b6 55%, #1a6b62 100%);
  border-radius: var(--bh-radius-xl, 24px);
  box-shadow: 0 22px 48px rgba(10, 25, 48, 0.3);
}

.final-cta-panel h2 span {
  color: var(--sales-accent);
}

.final-cta-panel p {
  max-width: 60ch;
  margin-inline: auto;
}

/* ---------- Reveal on scroll ----------
   A short rise as each block comes into view. Only once the script has run
   (html.sales-reveal-ready), and transform only: text is never faded, so it
   keeps full contrast at every frame and reads in full without JavaScript. */
.sales-reveal-ready .reveal {
  transform: translateY(18px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal-order-0 { --i: 0; }
.reveal-order-1 { --i: 1; }
.reveal-order-2 { --i: 2; }
.reveal-order-3 { --i: 3; }

.sales-reveal-ready .reveal.is-visible {
  transform: none;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .sales-reveal-ready .reveal {
    transform: none !important;
    transition: none !important;
  }

  .sales-hero-title,
  .sales-hero-subtitle,
  .sales-shot--hero figcaption {
  color: var(--sales-on-dark);
}

.sales-shot--hero img {
    animation: none !important;
  }

  .btn-sales-primary:hover,
  .btn-sales-primary:focus {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .sales-hero-title {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .pricing-card {
    padding: 1.4rem 1.1rem;
  }

  .sales-partner-actions,
  .sales-partner-actions .btn {
    width: 100%;
  }
}
