/* The header's menu on a phone (Gary, 2026-10-20): the mark, Book a demo
   and a menu button; Pricing, Resources, Contact and Sign in in the panel it
   opens. Wider screens show the links in the header and no button. */
header {
  position: relative;
}
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-button:hover {
  background: var(--surface-hover);
}
.menu-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}
.menu-button svg {
  width: 22px;
  height: 22px;
}
.menu-button .close-icon,
.menu-button[aria-expanded="true"] .open-icon {
  display: none;
}
.menu-button[aria-expanded="true"] .close-icon {
  display: block;
}
.menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow:
    0 24px 48px rgba(21, 24, 30, 0.16),
    0 6px 16px rgba(21, 24, 30, 0.08);
}
.menu[hidden] {
  display: none;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current] {
  background: var(--surface-hover);
  color: var(--brand-text);
}
.menu hr {
  margin: 6px 4px;
  border: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .actions .wide {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
}
@media (min-width: 900.02px) {
  .menu {
    display: none !important;
  }
}

/* The header as Stripe's (Gary, 2026-10-21): the mark with the links
   beside it on the left, Sign in (outlined) and Book a demo (filled, with
   a chevron) on the right, a hairline under it. */
header {
  justify-content: flex-start;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
header .actions {
  flex: 1;
  gap: 4px;
}
header .actions .text-link {
  padding: 0 12px;
  font-weight: 500;
}
header .sign-in {
  margin-left: auto;
}
header .button + .button {
  margin-left: 8px;
}
.button.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.button.secondary:hover {
  background: var(--surface-hover);
}
.button .chevron {
  width: 12px;
  height: 12px;
  margin-left: 6px;
  margin-right: -2px;
}
@media (max-width: 900px) {
  header {
    gap: 16px;
  }
  /* Sign in is in the menu: Book a demo goes right. */
  header .button.primary {
    margin-left: auto;
  }
}

/* A page's top, the same on every page (Gary, 2026-10-21: "consistent as
   you click through"): a small line in the brand color, the title, a lead. */
.page-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 44em;
  margin-bottom: 24px;
}
.page-intro .audience {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-text);
}
.page-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-intro .lead {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Solutions (2026-10-22): a menu under the header's link on wider screens,
   one page per kind of operation; on a phone, its pages in the ☰ panel. */
.dropdown {
  position: relative;
  display: inline-flex;
}
.dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
header .actions .dropdown-button {
  padding: 0 12px;
}
.dropdown-button:hover,
.dropdown-button[aria-expanded="true"],
.dropdown-button[aria-current] {
  color: var(--brand-text);
}
.dropdown-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
.dropdown-button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}
.dropdown-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow:
    0 24px 48px rgba(21, 24, 30, 0.16),
    0 6px 16px rgba(21, 24, 30, 0.08);
}
.dropdown-panel[hidden] {
  display: none;
}
.dropdown-group {
  margin: 6px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dropdown-panel a {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.dropdown-panel a b {
  font-weight: 600;
  font-size: 15px;
}
.dropdown-panel a span {
  font-size: 13px;
  color: var(--muted);
}
.dropdown-panel a:hover,
.dropdown-panel a:focus-visible,
.dropdown-panel a[aria-current] {
  background: var(--surface-hover);
  outline: none;
}
.dropdown-panel a:hover b,
.dropdown-panel a[aria-current] b {
  color: var(--brand-text);
}
.dropdown-panel hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.dropdown-panel .dropdown-all {
  flex-direction: row;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-text);
}
/* The ☰ panel's solutions, under their heading. */
.menu a.sub {
  min-height: 40px;
  padding-left: 28px;
  font-weight: 500;
  font-size: 16px;
}
