/*
 * The styles of this site only: the start card on the first page, and the pricing page.
 * gulpy.css and pages.css are copies from the product and give the rest.
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The start card on the first page, in place of the sign-in form of the product */

.start-card p {
  font-size: 14px;
  color: var(--ink-2);
}

.start-card .start-legal {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.start-legal a {
  text-decoration: underline;
}

/* Pricing */

.pricing {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 20px 0;
  display: grid;
  gap: 56px;
}

.pricing-head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.pricing-head h1 {
  font: 800 clamp(36px, 5vw, 56px) / 1.05 var(--display);
  letter-spacing: -0.03em;
}

.pricing-head .lede {
  max-width: 52ch;
}

/* The Yearly / Monthly switch: two radio buttons that look like one control. The keyboard moves between them with the arrow keys. */

.billing {
  margin: 8px 0 0;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  display: inline-flex;
  gap: 2px;
}

.billing label {
  position: relative;
}

.billing input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.billing input + span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink-2);
  transition:
    background 0.14s,
    color 0.14s;
}

.billing input:checked + span {
  background: var(--ink);
  color: #fff;
}

.billing input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.billing em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

/* Yearly is the default. With no script, :has() does the switch. pricing.js sets data-billing for browsers without :has(). */

.pricing .price-monthly {
  display: none;
}

.pricing[data-billing="monthly"] .price-yearly,
.pricing:has(.billing input[value="monthly"]:checked) .price-yearly {
  display: none;
}

.pricing[data-billing="monthly"] .price-monthly,
.pricing:has(.billing input[value="monthly"]:checked) .price-monthly {
  display: inline;
}

/* The four plans */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.plan-featured {
  border: 2px solid var(--lime-deep);
  box-shadow: var(--shadow-lift);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: 700 12px/1.4 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h2 {
  font-size: 22px;
  font-weight: 800;
}

.plan-for {
  min-height: 3em;
  font-size: 14px;
  color: var(--muted);
}

.plan-price b {
  font: 800 40px/1 var(--display);
  letter-spacing: -0.03em;
}

.plan-price .unit {
  font-size: 14px;
  color: var(--muted);
}

.plan-billing {
  font-size: 13px;
  color: var(--muted);
}

.plan .btn {
  width: 100%;
}

.plan-note {
  margin-top: -6px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.plan-features {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.plan-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.plan-features svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ok);
}

.plan-features strong {
  color: var(--ink);
}

.soon {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Run it yourself, and For agent companies */

.pricing-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.more-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 30px 28px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  scroll-margin-top: 80px;
}

.more-card h2 {
  font-size: 24px;
  font-weight: 800;
}

.more-card p {
  max-width: 48ch;
  font-size: 15px;
  color: #b9bdc4;
}

.more-card .promise-icon {
  margin-bottom: 4px;
  background: var(--lime);
  color: var(--ink);
}

.more-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.more-actions .btn-light {
  background: transparent;
  color: #fff;
  border-color: #4a4e55;
}

.more-actions .btn-light:hover {
  border-color: #fff;
}

.more-mail {
  font-size: 14px;
  color: #b9bdc4;
  overflow-wrap: anywhere;
}

/* Questions */

.pricing-faq {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-faq h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.pricing-faq details p {
  color: var(--ink-2);
  line-height: 1.6;
}

.pricing-faq a {
  text-decoration: underline;
  text-decoration-color: var(--lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pricing .closing {
  width: 100%;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing {
    padding-top: 36px;
    gap: 40px;
  }

  .plans,
  .pricing-more {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-for {
    min-height: 0;
  }

  .more-card {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .billing input + span {
    transition: none;
  }
}
