/* Homepage, plus the hero, section, step, plan and FAQ styles that the pricing
   and generator pages reuse. Loads after site.css. */

.home-page {
  /* Hero unit: 1px at the 1440 design width. It shrinks when the window is narrow
     or short, so the horizon stays inside the first screen. */
  --hu: min(1px, calc(100vw / 1440), max(0.6px, calc((100vh - 281px) / 571)));
  --lg-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

/* The campaign bar adds about 40px above the header; the hero gives the same back so the
   horizon stays on the first screen. Desktop only: this selector outranks the plain
   .home-page rules below, so on tablets and phones it would replace their width-based
   unit and shrink the hero collage to about half the screen. */
@media (min-width: 992px) {
  .home-page:has(.lg-campaign-bar) {
    --hu: min(1px, calc(100vw / 1440), max(0.6px, calc((100vh - 321px) / 571)));
  }
}

.home-page em {
  padding-right: 0.08em;
  background: var(--lg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  font-style: italic;
}

.home-page .lg-wordmark em {
  padding: 0;
  background: none;
  color: inherit;
}

/* Hero */
.home-hero {
  position: relative;
  /* The bottom padding leaves about 40px of air between the hero content and the horizon line. */
  padding: calc(28 * var(--hu)) 0 117px;
  overflow: hidden;
  background: var(--lg-night);
  color: #fff;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(580 * var(--hu));
}

.home-hero-copy {
  position: relative;
  z-index: 2;
}

.home-hero-title {
  width: fit-content;
  margin: 0 0 0 calc(-5 * var(--hu));
  font-family: var(--lg-serif);
  font-size: calc(168 * var(--hu));
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  white-space: nowrap;
}

.home-hero-title span {
  display: block;
}

/* The keyword label sits inside the h1 so the heading carries the page topic,
   while it still looks like a separate pill above the headline. */
.home-hero-title .lg-label {
  display: flex;
  width: fit-content;
  margin: 0 0 calc(22 * var(--hu)) calc(5 * var(--hu));
  font-family: var(--lg-sans);
  letter-spacing: 0;
  line-height: 1.5;
}

.home-hero-lead {
  max-width: max(520px, calc(720 * var(--hu)));
  margin-top: calc(22 * var(--hu));
  color: var(--lg-mist);
  font-size: clamp(17px, calc(22 * var(--hu)), 22px);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: calc(30 * var(--hu));
}

.home-hero-actions .lg-btn-lg {
  min-height: max(56px, calc(72 * var(--hu)));
  padding: 0 max(30px, calc(44 * var(--hu)));
  font-size: max(16px, calc(19 * var(--hu)));
}

.home-hero-actions .lg-btn-ghost {
  padding: 0 max(24px, calc(30 * var(--hu)));
  font-size: max(15px, calc(17 * var(--hu)));
  font-weight: 600;
}

.home-play-icon {
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-left: 12px solid currentColor;
}

.home-hero-trust {
  display: flex;
  white-space: nowrap;
  gap: 6px 22px;
  margin-top: calc(20 * var(--hu));
  padding: 0;
  color: var(--lg-mist);
  font-size: 15px;
  list-style: none;
}

.home-hero-trust li + li::before {
  content: "\00b7";
  margin-right: 22px;
}

/* Hero collage: every measure is a multiple of --u so the whole stage scales as one. */
.home-stage {
  --u: calc(var(--hu) * 0.7);
  position: absolute;
  top: calc(-24 * var(--hu));
  right: calc(-40 * var(--hu));
  width: calc(750 * var(--u));
  height: calc(850 * var(--u));
}

.home-stage-page {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: top;
  border-radius: calc(18 * var(--u));
  box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, 0.45);
  transition: transform 0.6s cubic-bezier(0.2, 0.85, 0.3, 1.25);
  animation: home-fan-open 0.9s cubic-bezier(0.2, 0.8, 0.25, 1.1) backwards;
}

.home-stage-bridge {
  --fan-x: calc(90 * var(--u));
  --fan-y: calc(120 * var(--u));
  animation-delay: 0.15s;
  top: calc(16 * var(--u));
  left: calc(80 * var(--u));
  width: calc(236 * var(--u));
  height: calc(308 * var(--u));
  transform: rotate(-6deg);
}

.home-stage-listicle {
  --fan-x: calc(130 * var(--u));
  --fan-y: calc(-20 * var(--u));
  animation-delay: 0.3s;
  top: calc(280 * var(--u));
  left: calc(10 * var(--u));
  width: calc(262 * var(--u));
  height: calc(364 * var(--u));
  transform: rotate(-9deg);
}

.home-stage-product {
  --fan-x: calc(-130 * var(--u));
  --fan-y: calc(100 * var(--u));
  animation-delay: 0.22s;
  top: calc(40 * var(--u));
  left: calc(466 * var(--u));
  width: calc(262 * var(--u));
  height: calc(364 * var(--u));
  transform: rotate(8deg);
}

.home-stage-checkout {
  --fan-x: calc(-140 * var(--u));
  --fan-y: calc(-130 * var(--u));
  animation-delay: 0.38s;
  top: calc(500 * var(--u));
  left: calc(488 * var(--u));
  width: calc(250 * var(--u));
  height: calc(326 * var(--u));
  transform: rotate(6deg);
}

/* Pages open like a fan on load, then spread wider while the pointer is over the collage. */
@keyframes home-fan-open {
  from {
    opacity: 0;
    transform: translate(var(--fan-x), var(--fan-y)) rotate(0deg) scale(0.86);
  }
}

@media (hover: hover) {
  .home-stage:hover .home-stage-bridge {
    transform: translate(calc(-44 * var(--u)), calc(8 * var(--u))) rotate(-13deg) scale(1.03);
  }

  .home-stage:hover .home-stage-product {
    transform: translate(calc(22 * var(--u)), calc(-4 * var(--u))) rotate(14deg) scale(1.03);
    transition-delay: 0.04s;
  }

  .home-stage:hover .home-stage-listicle {
    transform: translate(calc(-34 * var(--u)), calc(8 * var(--u))) rotate(-15deg) scale(1.03);
    transition-delay: 0.08s;
  }

  .home-stage:hover .home-stage-checkout {
    transform: translate(calc(20 * var(--u)), calc(8 * var(--u))) rotate(11deg) scale(1.03);
    transition-delay: 0.12s;
  }
}

/* Set by home.js while the collage is still below the fold; removing it replays the fan. */
.home-stage.is-waiting .home-stage-page {
  opacity: 0;
  transform: translate(var(--fan-x), var(--fan-y)) rotate(0deg) scale(0.86);
  transition: none;
  animation: none;
}

.home-stage-card {
  position: absolute;
  top: calc(84 * var(--u));
  left: calc(160 * var(--u));
  width: calc(400 * var(--u));
  height: calc(640 * var(--u));
  padding: calc(28 * var(--u));
  border-radius: calc(24 * var(--u));
  background: #fff;
  box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, 0.5);
  color: var(--lg-night);
  transform: rotate(3deg);
}

.home-stage-tag {
  display: inline-block;
  padding: calc(7 * var(--u)) calc(14 * var(--u));
  border-radius: 999px;
  background: var(--lg-cloud);
  color: var(--lg-cobalt);
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: calc(14 * var(--u));
}

.home-stage-headline {
  margin-top: calc(16 * var(--u));
  font-family: var(--lg-serif);
  font-size: calc(26 * var(--u));
  font-weight: 900;
  line-height: calc(34 * var(--u));
}

.home-stage-byline {
  margin-top: calc(10 * var(--u));
  color: var(--lg-slate);
  font-size: calc(12 * var(--u));
  line-height: calc(15 * var(--u));
}

.home-stage-photo {
  display: block;
  width: 100%;
  height: calc(190 * var(--u));
  margin-top: calc(15 * var(--u));
  object-fit: cover;
  border-radius: calc(16 * var(--u));
}

.home-stage-lines {
  display: grid;
  gap: calc(11 * var(--u));
  margin-top: calc(24 * var(--u));
}

.home-stage-lines i {
  display: block;
  height: calc(11 * var(--u));
  border-radius: 999px;
  background: var(--lg-cloud);
}

.home-stage-lines i:nth-child(2) {
  width: 92.5%;
}

.home-stage-lines i:nth-child(3) {
  width: 96.5%;
}

.home-stage-lines .home-stage-writing {
  position: relative;
  width: 68.6%;
  background: var(--lg-gradient);
  animation: home-write 7s linear infinite;
}

.home-stage-writing::before,
.home-stage-writing::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% + 8 * var(--u));
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-radius: calc(3 * var(--u));
  background: var(--lg-coral);
}

.home-stage-writing::after {
  top: calc(2 * var(--u));
  left: calc(100% + 26 * var(--u));
  width: calc(7 * var(--u));
  height: calc(7 * var(--u));
  border-radius: calc(2 * var(--u));
}

.home-stage-cta {
  position: absolute;
  inset: auto calc(28 * var(--u)) calc(28 * var(--u));
  display: grid;
  place-items: center;
  height: calc(52 * var(--u));
  border-radius: 999px;
  background: var(--lg-cobalt);
  color: #fff;
  font-size: calc(16 * var(--u));
  font-weight: 700;
}

/* The quill wrapper travels along the line; the feather inside it scribbles
   around its own tip. Both share the timing of the line being written. */
.home-stage-quill {
  position: absolute;
  top: calc(206 * var(--u));
  left: calc(430 * var(--u));
  width: calc(311 * var(--u));
  height: calc(395 * var(--u));
  transform-origin: 5% 97%;
  animation: home-quill-move 7s linear infinite;
}

.home-stage-feather {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: 5% 97%;
  animation: home-quill-scribble 7s ease-in-out infinite;
}

.home-stage-chip {
  position: absolute;
  top: calc(780 * var(--u));
  left: calc(194 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  height: calc(48 * var(--u));
  padding: 0 calc(26 * var(--u)) 0 calc(22 * var(--u));
  border-radius: 999px;
  background: var(--lg-night-2);
  font-size: calc(16 * var(--u));
  font-weight: 500;
  white-space: nowrap;
}

.home-stage-chip::before {
  content: "";
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
  border-radius: 50%;
  background: var(--lg-coral);
}

/* One 7s loop: touch down (0-6%), write (6-58%), lift and rest (58-86%), return (86-100%).
   The line and the quill use the same easing over the same stretch, so the tip
   stays on the end of the stroke. The travel is the line length along the card's 3deg tilt. */
@keyframes home-write {
  0%,
  6% {
    width: 0;
    opacity: 1;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.35, 1);
  }

  58%,
  86% {
    width: 68.6%;
    opacity: 1;
  }

  92% {
    width: 68.6%;
    opacity: 0;
  }

  93%,
  99% {
    width: 0;
    opacity: 0;
  }

  100% {
    width: 0;
    opacity: 1;
  }
}

@keyframes home-quill-move {
  0% {
    transform: translate(calc(-228 * var(--u)), calc(-34 * var(--u))) rotate(6deg);
  }

  6% {
    transform: translate(calc(-235.7 * var(--u)), calc(-12.4 * var(--u))) rotate(0deg);
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.35, 1);
  }

  58% {
    transform: translate(0, 0) rotate(0deg);
    animation-timing-function: ease-out;
  }

  64%,
  86% {
    transform: translate(calc(12 * var(--u)), calc(-20 * var(--u))) rotate(5deg);
    animation-timing-function: ease-in-out;
  }

  94% {
    transform: translate(calc(-120 * var(--u)), calc(-58 * var(--u))) rotate(9deg);
  }

  100% {
    transform: translate(calc(-228 * var(--u)), calc(-34 * var(--u))) rotate(6deg);
  }
}

@keyframes home-quill-scribble {
  0%,
  6%,
  58%,
  100% {
    transform: none;
  }

  9.25%,
  15.75%,
  22.25%,
  28.75%,
  35.25%,
  41.75%,
  48.25%,
  54.75% {
    transform: translateY(calc(-4 * var(--u))) rotate(-7deg);
  }

  12.5%,
  19%,
  25.5%,
  32%,
  38.5%,
  45%,
  51.5% {
    transform: translateY(calc(1 * var(--u))) rotate(4deg);
  }
}

/* Horizon arc closing the hero */
/* The arc is the top of a very wide ellipse. At the 75px that show, the visible chord is
   half the ellipse's width, so the width grows with the viewport to keep the line running
   from edge to edge on large screens. */
.home-horizon {
  --horizon-width: max(3400px, 210vw);
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--horizon-width);
  height: 75px;
  margin-left: calc(var(--horizon-width) / -2);
  pointer-events: none;
  transform-origin: 50% 0;
}

.home-horizon::before {
  content: "";
  position: absolute;
  top: -45px;
  left: calc(var(--horizon-width) * 0.0588);
  width: calc(var(--horizon-width) * 0.8824);
  height: 420px;
  border-radius: 50%;
  background: var(--lg-gradient);
  filter: blur(42px);
  opacity: 0.5;
}

.home-horizon span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1120px;
  border-radius: 50%;
  background: var(--lg-gradient);
}

.home-horizon span + span {
  top: 8px;
  background: var(--horizon-fill, var(--lg-night));
}

/* The ground under the line takes the colour of the section that follows, so a hero
   above a light section ends on the line itself and not on a dark crescent. */
.home-hero:has(+ .home-section-cloud) .home-horizon {
  --horizon-fill: var(--lg-cloud);
}

.home-hero:has(+ .home-section:not(.home-section-cloud):not(.home-section-night)) .home-horizon {
  --horizon-fill: #fff;
}

/* Sections */
.home-section {
  padding: 96px 0 100px;
}

.home-section-cloud {
  background: var(--lg-cloud);
}

.home-section-cloud .lg-label-light {
  background: #fff;
}

.home-section-night {
  background: var(--lg-night);
  color: #fff;
}

.home-title {
  margin-top: 24px;
  font-family: var(--lg-serif);
  font-size: clamp(40px, 5.85vw, 84px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.095;
}

.home-title span {
  display: block;
}

.home-title em {
  white-space: nowrap;
}

.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.home-head-note {
  flex: 0 1 440px;
  padding-bottom: 6px;
  color: var(--lg-slate);
  font-size: 18px;
  line-height: 28px;
}

.home-section-night .home-head-note {
  color: var(--lg-mist);
}

/* Note sits beside the first heading line, so the second line keeps the full width. */
.home-head-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}

.home-head-top .home-title {
  grid-area: 1 / 1 / 2 / 3;
}

.home-head-top .home-head-note {
  grid-area: 1 / 2;
  align-self: start;
  margin-top: 42px;
}

.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.home-card-title {
  font-family: var(--lg-serif);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Demo video */
.home-demo {
  padding-bottom: 93px;
}

.home-video {
  position: relative;
  width: min(1112px, 100%);
  margin: 42px auto 0;
  padding: 6px;
  border-radius: 34px;
  background: var(--lg-gradient);
}

.home-video::before,
.home-video::after {
  content: "";
  position: absolute;
  border-radius: 3px;
}

.home-video::before {
  top: 6px;
  left: calc(100% + 24px);
  width: 18px;
  height: 18px;
  background: var(--lg-coral);
  box-shadow: 26px 32px 0 -4px #fff, 0 46px 0 -4px var(--lg-cobalt);
}

.home-video::after {
  right: calc(100% + 18px);
  bottom: 29px;
  width: 18px;
  height: 18px;
  background: var(--lg-cobalt);
  box-shadow: -16px -24px 0 -4px var(--lg-coral);
}

.home-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1612 / 1080;
  border-radius: 28px;
  background: var(--lg-night);
}

.home-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(11, 16, 38, 0.28);
  color: #fff;
}

.home-video-play span {
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lg-gradient);
  box-shadow: 0 20px 60px rgba(11, 16, 38, 0.5);
  transition: transform 0.2s ease;
}

.home-video-play:hover span {
  transform: scale(1.06);
}

.home-video-play span::before {
  content: "";
  margin-left: 8%;
  border-block: clamp(13px, 1.6vw, 22px) solid transparent;
  border-left: clamp(21px, 2.6vw, 36px) solid #fff;
}

.home-video-chip {
  position: absolute;
  bottom: 28px;
  left: 32px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--lg-night);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.home-video.is-playing .home-video-play,
.home-video.is-playing .home-video-chip {
  display: none;
}

/* Scrolling band */
.home-band {
  overflow: hidden;
  background: var(--lg-gradient);
  color: #fff;
}

.home-band-track {
  display: flex;
  width: max-content;
  animation: home-marquee 36s linear infinite;
}

.home-band-track span {
  display: flex;
  align-items: center;
  font-family: var(--lg-display);
  font-size: 40px;
  line-height: 88px;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-band-track span::after {
  content: "\2726";
  margin: 0 30px;
  font-family: var(--lg-sans);
  font-size: 22px;
}

@keyframes home-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* The problem */
.home-problem-card {
  padding: 36px 32px 44px;
  border-radius: 28px;
  background: #fff;
}

.home-bars {
  position: relative;
  display: block;
  width: 56px;
  height: 10px;
  margin-bottom: 50px;
  border-radius: 5px;
  background: var(--lg-coral);
}

.home-bars::before,
.home-bars::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 36px;
  height: 10px;
  border-radius: 5px;
  background: var(--lg-coral);
}

.home-bars::after {
  left: 44px;
  width: 10px;
  border-radius: 3px;
}

.home-problem-card .home-card-title {
  font-size: 28px;
  line-height: 36px;
}

.home-problem-card p {
  margin-top: 14px;
  color: var(--lg-slate);
  font-size: 17px;
  line-height: 27px;
}

/* How it works */
.home-steps {
  padding: 0;
  list-style: none;
}

.home-step {
  min-height: 480px;
  padding: 20px 36px 48px;
  border-radius: 32px;
  background: var(--lg-night);
  color: #fff;
}

.home-step:nth-child(2) {
  background: var(--lg-cobalt);
}

.home-step:nth-child(3) {
  /* A deeper coral than the token keeps the white text above 4.5:1 (WCAG AA). */
  background: #dc2f46;
}

.home-step-number {
  display: block;
  font-family: var(--lg-display);
  font-size: 180px;
  line-height: 1;
}

.home-step .home-card-title {
  margin-top: 40px;
  font-size: 32px;
  line-height: 42px;
}

.home-step p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 27px;
}

.home-step:first-child p {
  color: var(--lg-mist);
}

/* Formats */
.home-formats .home-grid-3 {
  margin-top: 68px;
}

.home-format {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 32px;
  background: var(--lg-night-2);
}

.home-format img {
  display: block;
  width: 100%;
  aspect-ratio: 384 / 262;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

.home-format-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 16px 15px;
}

.home-format .home-card-title {
  font-size: 38px;
  line-height: 50px;
}

.home-format p {
  margin-top: 10px;
  color: var(--lg-mist);
  font-size: 17px;
  line-height: 27px;
}

.home-format .home-format-best {
  margin-top: auto;
  padding-top: 40px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.home-format-best span {
  margin-right: 6px;
  color: var(--lg-mist);
}

/* Before and after */
.home-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.home-compare-card {
  padding: 32px 36px 14px;
  border-radius: 32px;
  background: #fff;
  color: var(--lg-slate);
}

.home-compare-card.is-new {
  background: var(--lg-night);
  color: #fff;
}

.home-compare-card .home-card-title {
  margin-bottom: 26px;
  font-size: 28px;
  line-height: 34px;
}

.home-compare-card ul {
  padding: 0;
  list-style: none;
}

.home-compare-card li {
  position: relative;
  padding: 20px 0 22px 32px;
  border-top: 1px solid var(--lg-cloud);
  font-size: 17px;
  line-height: 21px;
}

.home-compare-card.is-new li {
  border-color: var(--lg-night-2);
}

.home-compare-card li::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--lg-mist);
}

.home-compare-card.is-new li::before {
  top: 24px;
  height: 14px;
  border-radius: 4px;
  background: var(--lg-gradient);
}

/* Numbers band */
.home-stats {
  padding: 48px 0 56px;
  background: var(--lg-gradient);
  color: #fff;
}

.home-stats dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}

.home-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.home-stats dd {
  margin: 0;
  font-family: var(--lg-display);
  font-size: clamp(72px, 9vw, 130px);
  line-height: 1;
  text-transform: uppercase;
}

.home-stats dt {
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
}

.home-stats-note {
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Proof: customer quotes. The section is out of home.html until there are real
   quotes to show; these rules are kept for when it returns. */
.home-proof {
  padding-bottom: 80px;
}

.home-proof .home-grid-3 {
  margin-top: 60px;
}

.home-quote {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 32px;
  border-radius: 28px;
  background: var(--lg-cloud);
}

.home-quote blockquote {
  font-family: var(--lg-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.home-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--lg-slate);
  font-size: 14px;
}

.home-quote figcaption::before {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lg-gradient);
}

/* Pricing */
.home-pricing {
  padding-bottom: 80px;
}

.home-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  margin-top: 68px;
}

.home-plan {
  padding: 36px;
  border-radius: 32px;
  background: #fff;
}

.home-plan.is-popular {
  padding-block: 36px;
  background: var(--lg-night);
  color: #fff;
}

.home-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-plan .home-card-title {
  font-size: 32px;
  line-height: 42px;
}

.home-plan-badge {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--lg-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.home-plan-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.home-plan-price strong {
  font-family: var(--lg-display);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
}

.home-plan-price span {
  display: grid;
  gap: 4px;
  color: var(--lg-slate);
  font-size: 16px;
  line-height: 20px;
}

/* Compact campaign strip above the plans (views/partials/site-campaign-panel.ejs) */
.campaign-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  overflow: hidden;
  margin: 28px 0 32px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(40% 160% at 100% 0%, var(--campaign-glow-b), transparent 70%),
    radial-gradient(30% 140% at 0% 100%, var(--campaign-glow-a), transparent 70%),
    var(--campaign-surface);
  color: #fff;
  text-align: left;
}

.campaign-panel-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--lg-display);
  line-height: 1;
}

.campaign-panel-amount strong {
  font-size: 56px;
  font-weight: 400;
  background: var(--campaign-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.campaign-panel-amount span {
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.campaign-panel-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--lg-sans, inherit);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 4px;
}

.campaign-panel-title {
  margin: 0;
  font-family: var(--lg-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.campaign-panel-accent {
  padding-right: 0.08em;
  background: var(--campaign-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.campaign-panel-text {
  margin: 4px 0 0;
  color: var(--lg-mist);
  font-size: 15px;
  line-height: 1.5;
}

.campaign-panel-ends {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--campaign-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-hero .campaign-panel {
  margin: 40px 0 0;
}

.plan-campaign-badge {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  width: max-content;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--campaign-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .campaign-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 18px;
    padding: 18px 20px;
  }

  .campaign-panel-amount {
    padding-right: 18px;
  }

  .campaign-panel-amount strong {
    font-size: 44px;
  }

  .campaign-panel-title {
    font-size: 20px;
  }

  .campaign-panel-ends {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 575px) {
  .campaign-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-panel-amount {
    padding: 0;
    border: 0;
  }
}

/* Campaign price (views/partials/site-plan-price.ejs) */
.plan-campaign-terms {
  margin-top: 6px;
  /* Darker coral reads at 5:1 on the white plan cards; the dark card keeps the brand coral. */
  color: #d42a40;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.plan-campaign-note {
  max-width: 860px;
  margin: 28px auto 0;
  color: var(--lg-slate);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.home-plan.is-popular .plan-campaign-terms {
  color: var(--lg-coral);
}

.home-plan.is-popular .home-plan-price span {
  color: var(--lg-mist);
}

.home-plan-price s {
  font-family: var(--lg-display);
  font-size: 36px;
  line-height: 40px;
}

.home-plan ul {
  display: grid;
  gap: 18px;
  margin: 32px 0 22px;
  padding: 0;
  font-size: 17px;
  line-height: 20px;
  list-style: none;
}

.home-plan.is-popular ul {
  margin-bottom: 70px;
}

.home-plan li {
  position: relative;
  padding-left: 26px;
}

.home-plan li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--lg-gradient);
}

.home-plan .lg-btn {
  width: 100%;
  min-height: 64px;
}

.home-plans-more {
  margin-top: 36px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.home-plans-more a {
  color: var(--lg-cobalt);
  text-decoration: none;
}

.home-plans-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FAQ */
.home-faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 776px);
  justify-content: space-between;
  gap: 48px;
}

.home-faq-intro p {
  max-width: 340px;
  margin-top: 28px;
  color: var(--lg-slate);
  font-size: 18px;
  line-height: 28px;
}

.home-faq-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 16px;
}

.home-faq-list details {
  border-radius: 24px;
  background: var(--lg-cloud);
}

.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px 20px 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  list-style: none;
  cursor: pointer;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.home-faq-list details[open] summary::after {
  content: "\2013";
  background: var(--lg-gradient);
  color: #fff;
}

.home-faq-list details p {
  max-width: 672px;
  padding: 0 32px 28px;
  color: var(--lg-slate);
  font-size: 17px;
  line-height: 27px;
}

/* Guides */
.home-head-note a {
  color: var(--lg-cobalt);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-head-note a:hover {
  text-decoration: underline;
}

.home-guide-list {
  padding: 0;
  list-style: none;
  gap: 24px;
  margin-top: 56px;
}

.home-guide-list li {
  display: flex;
}

.home-guide {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 24px;
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  background: #fff;
  color: var(--lg-night);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-guide:hover {
  border-color: var(--lg-cobalt);
  transform: translateY(-2px);
}

.home-guide-topic {
  color: var(--lg-cobalt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-guide .home-card-title {
  font-size: 22px;
  line-height: 29px;
}

.home-guide-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  color: var(--lg-slate);
  font-size: 14px;
}

@media (max-width: 1340px) {
  .home-video::before,
  .home-video::after {
    display: none;
  }
}

@media (max-width: 1199px) {
  .home-grid-3,
  .home-plans,
  .home-compare {
    gap: 20px;
  }

  .home-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-head-note {
    flex: none;
    max-width: 560px;
  }

  .home-head-top .home-head-note {
    margin-top: 0;
  }

  .home-step {
    min-height: 0;
  }

  .home-step-number {
    font-size: 140px;
  }

  .home-plan {
    padding: 28px;
  }

  .home-plan-price strong {
    font-size: 96px;
  }

  .home-format .home-card-title {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 991px) {
  .home-page {
    --hu: min(1px, calc(100vw / 736));
  }

  .home-hero {
    padding: 30px 0 96px;
  }

  .home-hero-inner {
    min-height: 0;
  }

  .home-hero-title {
    font-size: min(150px, calc((100vw - 48px) / 5.7));
  }

  .home-hero-title .lg-label {
    margin-bottom: 22px;
  }

  .home-hero-lead {
    max-width: 580px;
    margin-top: 20px;
    font-size: 19px;
  }

  .home-hero-actions {
    margin-top: 28px;
  }

  .home-stage {
    --u: calc(var(--hu) * 0.92);
    position: relative;
    top: auto;
    right: auto;
    margin: 48px auto 0;
  }

  .home-horizon {
    transform: scale(0.6);
  }

  .home-section {
    padding: 72px 0 76px;
  }

  .home-grid-3,
  .home-plans,
  .home-compare,
  .home-faq-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-grid-3,
  .home-compare,
  .home-plans,
  .home-formats .home-grid-3,
  .home-proof .home-grid-3 {
    margin-top: 44px;
  }

  .home-step {
    padding-bottom: 36px;
  }

  .home-step .home-card-title {
    margin-top: 16px;
  }

  .home-bars {
    margin-bottom: 40px;
  }

  .home-plan.is-popular {
    order: -1;
  }

  .home-plan.is-popular ul {
    margin-bottom: 22px;
  }

  .home-stats {
    padding: 44px 0 56px;
  }

  .home-stats dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .home-faq-list {
    padding-top: 0;
  }
}

@media (max-width: 599px) {
  .home-page {
    --hu: min(1px, calc(100vw / 700));
  }

  .home-hero-lead {
    font-size: 18px;
  }

  /* On phones the headline keeps two lines ("Words" / "that land."), so the lead, both
     buttons and the trust line come closer to the first screen. */
  .home-hero-title {
    margin-left: -3px;
    /* "that land." is about 4.5em wide; 4.7 keeps room for the italic overhang. */
    font-size: min(calc((100vw - 40px) / 4.7), 96px);
    line-height: 0.95;
  }

  .home-hero-title .lg-label {
    margin-left: 3px;
    white-space: normal;
  }

  .home-hero-actions .lg-btn {
    width: 100%;
  }

  /* Long accent phrases may wrap on phones. */
  .home-title em {
    white-space: normal;
  }

  .home-hero-trust {
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 14px;
  }

  .home-hero-trust li::before,
  .home-hero-trust li + li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--lg-coral);
    vertical-align: middle;
  }

  .home-stage {
    margin-top: 36px;
    margin-left: -12px;
  }

  .home-horizon {
    transform: scale(0.38);
  }

  .home-section {
    padding: 56px 0 60px;
  }

  .home-video {
    margin-top: 32px;
    padding: 4px;
    border-radius: 22px;
  }

  .home-video-frame {
    border-radius: 18px;
  }

  .home-video-chip {
    bottom: 12px;
    left: 12px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .home-band-track span {
    font-size: 28px;
    line-height: 60px;
  }

  .home-band-track span::after {
    margin: 0 18px;
    font-size: 16px;
  }

  .home-problem-card,
  .home-quote,
  .home-compare-card {
    padding-inline: 24px;
  }

  .home-step {
    padding-inline: 28px;
  }

  .home-step-number {
    font-size: 120px;
  }

  .home-stats dt {
    font-size: 16px;
    line-height: 22px;
  }

  .home-faq-list summary {
    padding: 18px 18px 18px 22px;
    font-size: 18px;
  }

  .home-faq-list details p {
    padding: 0 22px 24px;
  }
}

@media (max-width: 599px) {
  .home-guide-list {
    gap: 12px;
  }

  .home-guide {
    gap: 8px;
    padding: 20px 22px 16px;
    border-radius: 20px;
  }

  .home-guide .home-card-title {
    font-size: 19px;
    line-height: 25px;
  }

  .home-guide-foot {
    padding-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stage-page,
  .home-guide {
    transition: none;
  }

  .home-guide:hover {
    transform: none;
  }

  .home-band-track,
  .home-stage-page,
  .home-stage-quill,
  .home-stage-feather,
  .home-stage-lines .home-stage-writing {
    animation: none;
  }
}
