/* ── Homepage sections (Nov 2026) ─────────────────────────────
   "Less work. More control." (steps, Auto/Manual cards, call
   recording), the Company Console bridge line, the
   "Also in ProTow" grid, the trial line and the sign-up date note.
   Homepage only; uses the variables in styles.css. */

/* Hero headline: three short lines, each kept on one line (the longest,
   "You stay in control.", is about 8.9x the font size wide) */
@media (max-width: 639px) {
  .hero h1 {
    font-size: min(44px, calc((100vw - 40px) / 9));
  }
}

/* Winter photo above the headline on phones and tablets (desktop puts it
   back on the right; see the 1024px block below) */
.hero-media {
  order: -1;
}

/* Play button in the centre of the winter photo: plays the staged demo call
   (hero-call.js shows it; without JavaScript it stays hidden) */
.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-play[hidden] {
  display: none;
}

.hero-play:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-play:focus-visible {
  outline-offset: 4px;
}

.hero-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* the same button pauses while the call is playing */
.hero-play .hero-pause-icon,
.hero-play.is-playing .hero-play-icon {
  display: none;
}

.hero-play.is-playing .hero-pause-icon {
  display: block;
}

@media (min-width: 640px) {
  .hero-play {
    width: 88px;
    height: 88px;
  }

  .hero-play svg {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-play {
    transition: none;
  }
}

/* Sign-up date note under the main buttons */
.signup-soon {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.signup-soon a {
  font-weight: 700;
}

/* ── Less work. More control. ── */
.control .lede {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 20px;
  font-weight: 600;
}

.call-steps {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: call-step;
}

.call-steps li {
  position: relative;
  padding: 22px 22px 22px 70px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  counter-increment: call-step;
}

.call-steps li::before {
  content: counter(call-step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  color: var(--teal-bright);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.call-steps h3 {
  font-size: 19px;
  line-height: 1.3;
}

.call-steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

/* Staged-call recording with its transcript */
.call-demo {
  margin: 28px 0 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--teal-line);
}

.call-demo h3 {
  font-size: 20px;
}

.call-demo figcaption p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.call-demo audio {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.control-note {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--teal-line);
  background: var(--teal-tint);
  color: var(--text-soft);
  font-size: 16px;
}

.control-note strong {
  color: var(--text);
}

.mode-pair {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.mode-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mode-card img {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.mode-card figcaption {
  padding: 18px 20px 20px;
}

.mode-card h3 {
  font-size: 18px;
  line-height: 1.3;
}

.mode-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.mode-tap {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 600;
}

.control-priority {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ── Company Console: bridge line from the driver section ── */
.cshow-bridge {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ── Also in ProTow ── */
.benefit-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-grid li {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.benefit-grid h3 {
  font-size: 17px;
  line-height: 1.3;
}

.benefit-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.see-features {
  margin-top: 24px;
  font-weight: 700;
}

/* ── Pricing: trial line, what every plan includes, closing line ── */
.plan-includes {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.trial-banner .trial-terms {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 600;
}

.closing-line {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mode-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .call-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cshow-bridge {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 50px;
  }

  /* desktop: winter photo back on the right, beside the text */
  .hero-media {
    order: 0;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 56px;
  }
}

/* ── Background gradients (Nov 2026) ──
   Richer depth in ProTow's own colours: charcoal (#090d11 / #0a0e14),
   deep teal (#10352e), mid teal (#176154), button teal (#0f766e) and
   the mark's teal (#08D7BE). Each section's base gradient starts and
   ends on the colour of its neighbour's edge, and every glow fades out
   inside its own section, so sections blend instead of meeting at a
   line. The two showcases keep their own photo backgrounds. */
.hero {
  background:
    radial-gradient(55% 60% at 14% 40%, rgba(8, 215, 190, 0.18), transparent 70%),
    radial-gradient(45% 55% at 84% 45%, rgba(15, 118, 110, 0.40), transparent 72%),
    linear-gradient(180deg, rgba(9, 13, 17, 0) 70%, rgba(9, 13, 17, 0.8) 100%);
}

.control.section-raised {
  border-color: transparent;
  background:
    radial-gradient(60% 30% at 85% 30%, rgba(8, 215, 190, 0.16), transparent 70%),
    radial-gradient(55% 30% at 10% 65%, rgba(23, 97, 84, 0.65), transparent 72%),
    linear-gradient(180deg, rgba(9, 13, 17, 0.8) 0%, rgba(16, 53, 46, 0.75) 48%, rgba(10, 14, 20, 0.94) 100%);
  background-origin: border-box;
}

section[aria-labelledby="more-title"] {
  border-color: transparent;
  background:
    radial-gradient(50% 35% at 92% 40%, rgba(94, 234, 212, 0.13), transparent 70%),
    radial-gradient(45% 35% at 8% 62%, rgba(15, 118, 110, 0.38), transparent 72%),
    linear-gradient(180deg, rgba(16, 53, 46, 0.7) 0%, rgba(11, 26, 29, 0.88) 50%, rgba(23, 97, 84, 0.6) 100%);
  background-origin: border-box;
}

section[aria-labelledby="plans-title"] {
  background:
    radial-gradient(60% 30% at 50% 40%, rgba(15, 118, 110, 0.50), transparent 75%),
    radial-gradient(40% 22% at 50% 80%, rgba(8, 215, 190, 0.14), transparent 70%),
    linear-gradient(180deg, #05080d 0, rgba(16, 53, 46, 0.7) 160px, rgba(16, 53, 46, 0.78) 45%, rgba(10, 14, 20, 0.96) 100%);
}

/* cards: a soft diagonal from charcoal into deep teal instead of one flat fill */
.call-steps li,
.benefit-grid li,
.mode-card,
.call-demo {
  background: linear-gradient(155deg, rgba(26, 33, 44, 0.97) 0%, rgba(21, 27, 38, 0.95) 55%, rgba(16, 53, 46, 0.85) 100%);
}
