/* Sample lead dialog (lead.js) and the sample/Start now lines on the homepages.
 * Existing AIOOS tokens only: --paper --panel --ink --muted --line --accent --tint,
 * the Manrope reading family and the Bebas display face from typography.css. */
html.sample-lead-open { overflow: hidden; }
.sample-lead [hidden] { display: none !important; }
dialog.sample-lead {
  box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-width: none;
  max-height: min(92dvh, 860px); padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px #0005;
  font-family: var(--type-family, var(--body)); font-size: 16px; line-height: 1.6;
}
dialog.sample-lead::backdrop { background: rgb(25 27 27 / .45); backdrop-filter: blur(4px); }
.sample-lead__screen { display: flex; flex-direction: column; gap: 14px; padding: 18px clamp(22px, 4vw, 40px) clamp(26px, 4vw, 40px); }
.sample-lead__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 6px; }
.sample-lead__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.sample-lead__back:hover { color: var(--accent); }
.sample-lead__close { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--paper); font-size: 24px; line-height: 1; }
.sample-lead__close:hover { background: var(--accent); }
.sample-lead__kicker { color: var(--accent); justify-content: flex-start; }
.sample-lead__title {
  margin: 0; font-family: var(--heading); font-weight: 650; font-size: clamp(34px, 6.4vw, 50px);
  line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere;
}
.sample-lead__title:focus { outline: none; }
.sample-lead__text { max-width: 46ch; font-size: 16px; line-height: 1.6; }
.sample-lead__site { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.sample-lead__site:empty { display: none; }
.sample-lead__fine { font-size: 14px; line-height: 1.6; color: var(--muted); }
.sample-lead__fine a, .sample-lead__consent a { text-decoration: underline; text-underline-offset: 4px; }
.sample-lead__form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sample-lead__label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sample-lead input[type=text], .sample-lead input[type=email], .sample-lead textarea {
  box-sizing: border-box; width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--panel); color: var(--ink); font: 500 18px/1.4 var(--type-family, var(--body));
}
.sample-lead textarea { min-height: 84px; resize: vertical; font-size: 16px; }
.sample-lead input:focus-visible, .sample-lead textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sample-lead [aria-invalid=true] { border-color: #9b2c1f; }
.sample-lead__consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 8px; font-size: 14px; line-height: 1.55; }
.sample-lead__consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.sample-lead__primary { width: 100%; margin-top: 10px; white-space: normal; text-align: left; font-size: 16px; font-weight: 600; min-height: 60px; }
.sample-lead__primary:disabled { background: var(--muted); transform: none; cursor: progress; }
.sample-lead__error { padding: 10px 14px; border-left: 3px solid #9b2c1f; background: #f5e4de; color: #6e1d12; font-size: 14px; line-height: 1.5; }
.sample-lead__inline-link { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.sample-lead__steps { list-style: none; margin: 8px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.sample-lead__steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.sample-lead__steps li > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; min-width: 22px; }
.sample-lead__steps li.is-done { color: var(--ink); }
.sample-lead__steps li.is-done > span::after { content: " ✓"; }
.sample-lead__steps li.is-current { color: var(--accent); font-weight: 650; }
.sample-lead__steps li.is-current::after {
  content: ""; width: 10px; height: 10px; margin-left: auto; border-radius: 50%; background: var(--accent);
  animation: sample-lead-pulse 1.2s ease-in-out infinite;
}
@keyframes sample-lead-pulse { 50% { opacity: .25; transform: scale(.7); } }
.sample-lead__eta { font-size: 18px; font-weight: 600; }
.sample-lead__eta:empty { display: none; }
.sample-lead__start { display: grid; gap: 2px; justify-items: start; margin-top: 10px; padding: 12px 18px 16px; background: var(--tint); border-top: 1px solid var(--accent); font-size: 14px; line-height: 1.55; }
html .sample-lead__start .conversion-secondary { font-size: 15px; font-weight: 650; }
.sample-lead__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sample-lead :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  dialog.sample-lead { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-top: 3px solid var(--accent); box-shadow: none; }
  .sample-lead__screen { min-height: 100%; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sample-lead__title { font-size: clamp(32px, 9.4vw, 42px); }
}
@media (prefers-reduced-motion: reduce) { .sample-lead__steps li.is-current::after { animation: none; } }
@media (forced-colors: active) {
  dialog.sample-lead { border: 1px solid CanvasText; }
  .sample-lead__close, .sample-lead__primary { border: 1px solid ButtonText; }
}

/* Homepage lines that replace the removed trial terms. */
html.aioos-conversion .price-entry .price-terms { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: -8px; }
html.aioos-conversion .trial-finale__headline.sample-finale__headline { margin-top: 0; }
