/* Pipeline Beacon launch homepage. Loaded after pipeline-beacon.css and
   reuses its colour and font variables. */

.wide {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
  }
}

.hero {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
}

.hero .lead {
  max-width: 40rem;
  margin-top: 1.5rem;
}

/* Boxed answer under the hero lead: the problem (HubSpot workflows need
   Professional seats) and the flat-price answer, so both sit above the fold. */
.hero-callout {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-left: 0.5rem solid var(--amber);
  border-radius: var(--radius);
}

.hero-callout p {
  max-width: none;
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.hero-callout p:last-child {
  margin-bottom: 0;
}

.hero-callout .callout-title {
  font-family: var(--head-font);
  font-size: 1.25rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 1rem;
}

.text-link {
  color: var(--ink);
  font-family: var(--head-font);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Daily digest preview in the hero. It reuses the .sample-preview image
   style defined with the sample digests section below. */
.hero-digest {
  margin: 0;
  max-width: 24rem;
}

.hero-digest figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Content bands */
.band {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

.prose {
  max-width: 48rem;
}

/* On wide screens each band puts its heading on the left and its content on
   the right, so the page uses the screen width without long lines of text. */
@media (min-width: 60rem) {
  .band .prose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 4rem;
    max-width: none;
  }

  .band .prose > h2 {
    grid-column: 1;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-width: 18ch;
  }

  .band .prose > *:not(h2) {
    grid-column: 2;
  }
}

.band h2 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
}

.steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.steps li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Sample digests: two previews side by side, wrapping to one column on a
   narrow screen. Each preview is at most 24rem wide, which is about
   three-quarters of the width of a phone screen on a normal monitor. */
.samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 24rem));
  gap: 2rem;
  margin: 0 0 1.25rem;
}

.sample {
  margin: 0;
}

.sample-preview {
  position: relative;
  display: block;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 0.5rem solid var(--amber);
  border-radius: var(--radius);
}

.sample-preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* The preview is cropped part way down the email, so fade the bottom edge to
   white instead of cutting through a line of text. */
.sample-preview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF);
}

.sample-preview:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sample figcaption {
  padding-top: 0.75rem;
}

.sample figcaption p {
  margin: 0 0 0.75rem;
}

.sample-title {
  font-family: var(--head-font);
  font-size: 1.1875rem;
  font-weight: 600;
}

/* FAQ */
details {
  max-width: 70ch;
  border-top: 1px solid var(--rule);
}

details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

summary {
  padding: 0.9rem 0;
  font-family: var(--head-font);
  font-size: 1.1875rem;
  font-weight: 600;
  cursor: pointer;
}

summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

details p {
  margin: 0 0 1rem;
}

.final {
  padding-bottom: 3.5rem;
}

/* Scale text up on large screens so the page does not look small and empty. */
@media (min-width: 90rem) {
  body {
    font-size: 1.3125rem;
  }

  .lead {
    font-size: 1.5rem;
  }
}

.band .prose p,
.band .steps {
  max-width: 72ch;
}

/* Header: logo on the left, navigation on the right */
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

/* The width and height attributes on the img set the aspect ratio; the
   height here sets the size. */
.logo-img {
  display: block;
  width: auto;
  height: 3rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.nav-link {
  color: var(--ink);
  font-family: var(--head-font);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-bottom-color: var(--amber);
}

.button-small {
  padding: 0.55rem 1.1rem;
  font-size: 1rem;
}

.logo:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Footer links */
.footer-link,
.page .text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-link:focus-visible,
.page a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.site-footer p + p {
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Heading block at the top of the About page */
.page-hero {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.page-hero h1 {
  max-width: 26ch;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
}

.page-hero .lead {
  max-width: 40rem;
  margin-bottom: 0;
}

/* Text pages: privacy, contact */
.page {
  padding: 3rem 0 4rem;
}

.page .prose {
  max-width: 54rem;
}

.page .lead {
  max-width: 40rem;
}

.page .contact-list {
  margin: 2rem 0;
  padding: 0;
  max-width: none;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 60rem) {
  .page .prose:has(.contact-list) {
    max-width: none;
  }

  .page .contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-item {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 0.5rem solid var(--amber);
  border-radius: var(--radius);
}

.page .contact-item h2 {
  margin-top: 0;
}

/* Each box is a column, and the last paragraph (the button) is pushed to the
   bottom, so the three buttons line up whatever the length of the text. */
.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item > p:last-child {
  margin: auto 0 0;
  padding-top: 0.5rem;
}

.page h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.page h2 {
  margin-top: 2rem;
  font-size: 1.375rem;
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.page li {
  margin-bottom: 0.5rem;
}

.page a:not(.text-link):not(.button) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Privacy notice: the same two-column bands as the About page. Lists and links
   need their own rules because these pages do not use the .page class. */
.page-legal .band ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 72ch;
}

.page-legal .band li {
  margin-bottom: 0.5rem;
}

.page-legal a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-legal a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
