/* Shared header: same Login size and a Get Started control with white text on the accent (4.5:1). */
.nav-right a.btn-nav,
a.btn-nav,
.nav .btn-primary,
.nav a.btn-primary {
  color: #ffffff;
  background: #cf3f0c;
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}
.nav .btn-login,
.nav-right > a:not(.btn-primary):not(.btn-nav) {
  font-size: 14px;
  font-weight: 500;
}
.btn-google[hidden] + .auth-divider { display: none; }

/* Marketing polish: phone tap targets, phone-menu login, sticky-header offset.
   Rules are scoped to phone/tablet widths so the desktop layout stays as-is. */

@media (max-width: 900px) {
  .nav-hamburger,
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .nav .btn-primary,
  .nav a.btn-primary,
  .hero .btn-cta,
  .hero .btn-cta-lg,
  .hero a.btn-cta,
  .hero a.btn-cta-lg,
  .final-cta .btn-cta,
  .final-cta .btn-cta-lg,
  .final-cta a.btn-cta,
  .final-cta a.btn-cta-lg,
  .hero .btn-outline-hero,
  .cta-section .btn-cta,
  .hero-404 .btn-primary,
  .hero-404 .btn-outline,
  a.btn-nav {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
    padding-top: 12px;
    padding-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav .btn-primary {
    font-size: 13px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .btn-cta {
    font-size: 13px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-cta-lg {
    font-size: 15px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Header "Login" is hidden at phone widths. Repeat it in the open menu. */
.nav-links a.nav-menu-login {
  display: none;
}

@media (max-width: 600px) {
  .nav.nav-open .nav-links a.nav-menu-login {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
  }
}

/* Fixed nav is 64px (56px on phones). Keep these targets below it. */
#verified-agent-database,
.trust-strip {
  scroll-margin-top: 88px;
}

/* At 360–450px the hero pair stays one line each. The shared rule
   below keeps both controls the same size. */
@media (max-width: 450px) {
  .hero .btn-outline-hero {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Home hero pair: same width, height, type, and padding. */
.hero .hero-actions > a.btn-cta,
.hero .hero-actions > a.btn-cta-lg,
.hero .hero-actions > a.btn-outline-hero {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 300px;
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
  flex: 0 0 300px;
}
.hero .hero-actions > a.btn-cta,
.hero .hero-actions > a.btn-cta-lg {
  border-color: transparent;
}
.hero .hero-actions > a.btn-cta,
.hero .hero-actions > a.btn-cta-lg,
.final-cta-actions > a.btn-cta,
.final-cta-actions > a.btn-cta-lg {
  overflow: visible;
}
.hero .hero-actions > a.btn-cta svg,
.hero .hero-actions > a.btn-cta-lg svg,
.final-cta-actions > a.btn-cta svg,
.final-cta-actions > a.btn-cta-lg svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  margin: 0 !important;
  flex: 0 0 16px;
  overflow: visible;
  stroke: currentColor;
  fill: none;
}
@media (max-width: 720px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .hero-actions > a.btn-cta,
  .hero .hero-actions > a.btn-cta-lg,
  .hero .hero-actions > a.btn-outline-hero {
    width: 100%;
    flex-basis: auto;
  }
}

/* Footer social marks are not links. No pointer, no hover change. */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted, #888);
}
.footer-top .footer-social {
  color: rgba(255, 255, 255, 0.55);
}
.footer-social-icon,
.footer-social-icon:hover,
.footer-social-icon:focus,
.footer-social-icon:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: inherit;
  background: none;
  cursor: default;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.footer-social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Clip page-level sideways overflow without turning an inner scroller into page scroll. */
html {
  overflow-x: clip;
}

/* Phone header: one padding, a real gap, and a logo that fits beside Get Started. */
.nav .btn-primary,
.nav a.btn-primary,
.nav .btn-nav {
  white-space: nowrap;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-hamburger,
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav .nav-links {
    display: none;
  }
  .nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    background-color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 8px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 120;
  }
  .nav.nav-open .nav-links a:not(.nav-menu-login) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink, #111);
  }
}
@media (max-width: 600px) {
  .nav .btn-login {
    display: none;
  }
}
@media (max-width: 400px) {
  .nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .nav > .container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
    min-width: 0;
  }
  .nav-left {
    min-width: 0;
  }
  .nav .logo {
    gap: 4px;
    min-width: 0;
  }
  .nav .logo-mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .nav .logo-mark svg {
    width: 22px;
    height: 22px;
  }
  .nav .logo span span {
    font-size: 12px !important;
  }
  .nav .btn-primary,
  .nav a.btn-primary,
  .nav .btn-nav {
    font-size: 12px;
    padding: 0 8px;
    gap: 4px;
    min-height: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .nav-right {
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
  }
}

/* Keep the page from scrolling behind an open phone menu. */
body.nav-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
html:has(body.nav-scroll-lock) {
  overflow: hidden;
}

/* Wide tables scroll inside the page instead of widening it. */
.plan-compare-card,
.cookie-table-wrap,
.table-wrap,
.data-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.plan-compare-scroll,
.cookie-table-wrap,
.table-wrap,
.data-table-wrap {
  display: block;
  width: 0;
  min-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.plan-compare-card {
  overflow: hidden;
}
.plan-compare-table {
  width: 100%;
  min-width: 560px;
}
.cookie-table {
  width: 100%;
  min-width: 560px;
}
.plan-compare-table th,
.plan-compare-table td {
  white-space: nowrap;
}
.cookie-table th,
.cookie-table td {
  overflow-wrap: normal;
  word-break: normal;
}
.page-body a {
  overflow-wrap: anywhere;
}
.scroll-hint {
  display: none;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #6b7280);
}
@media (max-width: 900px) {
  .scroll-hint { display: block; }
  .feature-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
  }
  .feature-icon { grid-row: 1 / span 2; margin: 0; }
  .feature-card h3 { white-space: normal; grid-column: 2; margin: 0; }
  .feature-card p { grid-column: 2; min-width: 0; }
  .auth-terms a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
  }
}

/* Phone tap targets: at least 44px, without turning dots into blobs. */
@media (max-width: 768px) {
  .footer-col a,
  .footer-bottom a {
    min-height: 44px;
    box-sizing: border-box;
  }
  .footer-acc-body a,
  .footer-col.open a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col.open .footer-acc-body {
    max-height: 640px;
  }
  .billing-switch {
    width: 48px;
    min-width: 48px;
    height: 44px;
    min-height: 44px;
    background: transparent;
  }
  .billing-switch::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 26px;
    margin-top: -13px;
    border-radius: 100px;
    background: var(--border, #e5e5e5);
    pointer-events: none;
  }
  .billing-switch.active {
    background: transparent;
  }
  .billing-switch.active::before {
    background: var(--accent, #e8490f);
  }
  .billing-switch-knob {
    top: 50%;
    margin-top: -10px;
  }
  .demo-nav-btn {
    min-height: 44px;
    box-sizing: border-box;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  .hero .hero-actions > a.btn-cta,
  .hero .hero-actions > a.btn-cta-lg,
  .hero .hero-actions > a.btn-outline-hero,
  .final-cta-actions > a.btn-cta,
  .final-cta-actions > a.btn-cta-lg,
  .hero-404 .btn-primary,
  .hero-404 .btn-outline {
    min-height: 44px;
  }
}
/* The hero already has two actions. Extra phone links are not shown. */
.mobile-ctas {
  display: none;
}
@media (max-width: 900px) {
  .mobile-ctas {
    display: none;
  }
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }
  .nav .nav-links {
    pointer-events: none;
  }
  .nav.nav-open .nav-links {
    pointer-events: auto;
    z-index: 140;
  }
  .nav.nav-open .nav-links a {
    position: relative;
    z-index: 1;
  }
  .footer-col:not(.open) .footer-acc-body {
    pointer-events: none;
  }
  .footer-col.open .footer-acc-body {
    max-height: none;
    overflow: visible;
    pointer-events: auto;
  }
  .footer-acc-body a,
  .footer-col.open a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
  }
  .input-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    right: 4px;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;
  }
  .input-wrap .form-input {
    padding-right: 52px;
  }
  .faq-tab {
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
  }
  .fd-btn {
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
  }
}
/* Wrapped stat values share one bottom edge; captions start on the next line. */
.stats-bar-inner,
.stats-grid {
  grid-template-rows: auto auto;
}
.stats-bar-inner > .stat-item,
.stats-grid > .stat {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
}
.stats-bar-inner > .stat-item,
.stats-grid > .stat {
  row-gap: 0;
}
.stats-bar-inner > .stat-item > .stat-num,
.stats-grid > .stat > .stat-val {
  align-self: end;
}
.stats-bar-inner > .stat-item > .stat-label,
.stats-grid > .stat > .stat-lbl {
  align-self: start;
}
/* About stats and the home "why" row use the same bottom-aligned values. */
.stats-row {
  grid-template-rows: auto auto;
}
.stats-row > .stat-item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
  row-gap: 0;
}
.stats-row > .stat-item > .stat-number {
  align-self: end;
}
.stats-row > .stat-item > .stat-label {
  align-self: start;
  margin-top: 4px;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}
.why-stats > .stat-item {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  text-align: center;
  padding: 32px 20px;
}
.why-stats > .stat-item > .stat-num {
  align-self: end;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.why-stats > .stat-item > .stat-num.is-phrase {
  font-size: 22px;
  line-height: 1.2;
}
.why-stats > .stat-item > .stat-label {
  align-self: start;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.why-stats > .stat-item > .stat-note {
  align-self: start;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 768px) {
  .why-stats {
    grid-template-columns: 1fr;
  }
}
.pricing-section .pricing-grid { align-items: stretch; }
.pricing-section .pricing-card { display: flex; flex-direction: column; height: 100%; }
.pricing-section .pricing-features { flex: 1 1 auto; }
.pricing-section .pricing-btn { margin-top: auto; }
.pricing-price-big {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 2px;
}
.pricing-price-big .price-period {
  font-size: 18px;
  font-weight: 700;
}
.pricing-card:nth-child(3) .pricing-price-big {
  font-size: 46px;
  letter-spacing: -1px;
  min-height: 56px;
}
.pricing-section .pricing-desc {
  min-height: 3.2em;
}
#get-started .final-cta-actions > a {
  font-size: 16px;
  min-height: 52px;
}
.faq-category-items {
  counter-reset: pb-faq;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  counter-increment: pb-faq;
}
.faq-item .faq-q h3::before {
  content: counter(pb-faq) ". ";
  font-weight: 800;
}
.faq-a ol,
.faq-a ul {
  margin: 12px 0 0;
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
}
.faq-a ol { list-style: decimal; }
.faq-a ul { list-style: disc; }
p a,
li a,
.channel-val a,
.faq-a a,
.page-hero a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 600px) {
  .hero-proof {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    align-items: start;
  }
  .hero-proof-item {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    min-width: 0;
  }
  .hero-proof-item:nth-child(1) { grid-column: 1; grid-row: 2; }
  .hero-proof-item:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .hero-proof-item:nth-child(3) { grid-column: 2; grid-row: 2; }
}
@media(max-width:768px){
  .form-group input,.form-group select,.form-group textarea{min-height:44px;box-sizing:border-box}
  .faq-link,.faq-see-all{min-height:44px;box-sizing:border-box}
  .faq-see-all{padding-bottom:12px}
  a[href="/refund/"]{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box}
}
#get-started a.btn-outline-hero,
.final-cta-actions > a.btn-outline-hero {
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 20px;
}
.nav > .container {
  max-width: 1140px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 420px) {
  .hero .hero-actions > a.btn-cta,
  .hero .hero-actions > a.btn-cta-lg,
  .hero .hero-actions > a.btn-outline-hero,
  .final-cta-actions > a.btn-cta,
  .final-cta-actions > a.btn-cta-lg {
    padding-left: 12px;
    padding-right: 12px;
  }
}
