/* contraflo.com: pieces only the public site has (sign-up, legal, compare on phones). */

/* Footer */
.cf-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.cf-site-footer-links a {
  color: var(--landing-text-soft);
  font-weight: 600;
  text-decoration: none;
}

.cf-site-footer-links a:hover,
.cf-site-footer-links a:focus {
  color: #fff;
}

/* Plans: the estimator links to the sign-up */
.cf-estimator-cta {
  margin-top: 1.25rem;
  width: 100%;
}

/* Compare table fits every width: no sideways scroll */
.cf-compare-wrap {
  overflow-x: visible;
}

.cf-compare {
  min-width: 0;
  table-layout: fixed;
}

.cf-compare thead th:first-child,
.cf-compare th[scope="row"] {
  width: 40%;
}

.cf-compare th,
.cf-compare td {
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .cf-compare th,
  .cf-compare td {
    font-size: .8125rem;
    padding: .7rem .4rem;
  }

  .cf-compare thead th {
    font-size: .6875rem;
    hyphens: auto;
    letter-spacing: 0;
    overflow-wrap: normal;
    text-transform: none;
  }

  .cf-compare th[scope="row"],
  .cf-compare thead th:first-child {
    padding-left: .85rem;
    width: 31%;
  }
}

/* ---------- Sign-up ---------- */
.cf-start {
  padding-block: 4.5rem 6rem;
}

.cf-start-layout {
  align-items: start;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.cf-start-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 1rem 0;
}

.cf-start-points {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.cf-start-points li {
  align-items: center;
  color: var(--landing-text-soft);
  display: flex;
  font-weight: 600;
  gap: .65rem;
}

.cf-start-points li::before {
  color: #6ee7b7;
  content: "\2713";
  font-weight: 900;
}

.cf-start-help {
  color: var(--landing-muted);
}

.cf-start-help a,
.cf-consent a,
.cf-form-status a {
  color: #bae6fd;
  font-weight: 700;
}

.cf-start-card {
  backdrop-filter: blur(1rem);
  background: var(--landing-glass);
  border: 1px solid var(--landing-glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
}

.cf-signup {
  display: grid;
  gap: 1.5rem;
}

.cf-plan-options {
  border: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  padding: 0;
}

.cf-plan-options legend,
.cf-field label {
  color: var(--landing-text-soft);
  font-size: .8125rem;
  font-weight: 700;
  margin-bottom: .45rem;
}

.cf-plan-options legend {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
}

.cf-plan-option {
  cursor: pointer;
  display: block;
  min-width: 0;
  position: relative;
}

.cf-plan-option input {
  opacity: 0;
  position: absolute;
}

.cf-plan-option-body {
  background: rgba(5, 12, 24, .45);
  border: 1px solid var(--landing-glass-border);
  border-radius: 1rem;
  display: grid;
  gap: .2rem;
  height: 100%;
  padding: .9rem 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}

.cf-plan-option-body strong {
  font-size: 1rem;
}

.cf-plan-option-price {
  color: #fff;
  font-weight: 800;
}

.cf-plan-option-price small,
.cf-plan-option-body > small {
  color: var(--landing-muted);
  font-size: .75rem;
  font-weight: 600;
}

.cf-plan-option:hover .cf-plan-option-body {
  border-color: rgba(125, 211, 252, .45);
}

.cf-plan-option input:checked + .cf-plan-option-body {
  background: rgba(56, 189, 248, .12);
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 1px var(--landing-accent) inset;
}

.cf-plan-option input:focus-visible + .cf-plan-option-body {
  outline: 2px solid var(--landing-accent);
  outline-offset: 2px;
}

.cf-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cf-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cf-field[hidden] {
  display: none;
}

.cf-field-wide {
  grid-column: 1 / -1;
}

.cf-field label span {
  color: var(--landing-muted);
  font-weight: 500;
}

.cf-field input,
.cf-field textarea {
  background: rgba(5, 12, 24, .6);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .75rem;
  color: var(--landing-white);
  font: inherit;
  min-height: 3rem;
  padding: .7rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.cf-field textarea {
  resize: vertical;
}

.cf-field input::placeholder {
  color: #64748b;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 .2rem rgba(56, 189, 248, .2);
  outline: 0;
}

.cf-field [aria-invalid="true"] {
  border-color: #f87171;
}

.cf-field small {
  color: var(--landing-muted);
  font-size: .75rem;
  margin-top: .35rem;
}

.cf-hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.cf-consent {
  font-size: .875rem;
}

.cf-form-status {
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: .75rem;
  color: #fecaca;
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
  padding: .75rem 1rem;
}

.cf-signup-submit {
  width: 100%;
}

.cf-signup-submit:disabled {
  cursor: progress;
  opacity: .7;
  transform: none;
}

.cf-signup-done {
  display: grid;
  gap: 1rem;
  justify-items: start;
  outline: 0;
  padding: 1rem 0;
}

.cf-signup-done[hidden] {
  display: none;
}

.cf-signup-done h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
}

.cf-signup-done p {
  color: var(--landing-text-soft);
  margin: 0;
}

.cf-done-mark {
  background: rgba(110, 231, 183, .15);
  border-radius: 50%;
  color: #6ee7b7;
  display: inline-grid;
  font-size: 1.5rem;
  font-weight: 900;
  height: 3rem;
  place-items: center;
  width: 3rem;
}

/* ---------- Legal / 404 / no-JS result ---------- */
.cf-legal {
  padding-block: 4.5rem 6rem;
}

.cf-legal-body {
  max-width: 46rem;
}

.cf-legal-body h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 1rem 0 .5rem;
}

.cf-legal-body h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 2rem 0 .5rem;
}

.cf-legal-body p,
.cf-legal-body li {
  color: var(--landing-text-soft);
  line-height: 1.7;
}

.cf-legal-body ul {
  display: grid;
  gap: .35rem;
  padding-left: 1.25rem;
}

.cf-legal-body p,
.cf-legal-body li,
.cf-legal-body a {
  overflow-wrap: anywhere;
}

.cf-legal-body a {
  color: #bae6fd;
  font-weight: 700;
}

.cf-legal-updated {
  font-size: .875rem;
}

.cf-result-page {
  margin: 0 auto;
  max-width: 36rem;
  padding: 6rem 1rem;
}

.cf-result-page h1 {
  font-weight: 900;
}

.cf-result-page p {
  color: var(--landing-text-soft);
  margin: 1rem 0 2rem;
}

@media (max-width: 991.98px) {
  .cf-start-layout {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .cf-start-points {
    margin: 1.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .cf-start,
  .cf-legal {
    padding-block: 2.5rem 4rem;
  }

  .cf-start-card {
    border-radius: 1.25rem;
    padding: 1.25rem;
  }

  .cf-plan-options,
  .cf-field-grid {
    grid-template-columns: 1fr;
  }

  .cf-plan-option-body {
    align-items: baseline;
    column-gap: .75rem;
    grid-template-columns: 1fr auto;
  }

  .cf-plan-option-body > small {
    grid-column: 1 / -1;
  }
}
