/* Homepage hero: Countertop is the product; free price comparison is a
   compact, functional way to experience it. Native account entry keeps its
   own full-screen layout and does not render this web-only hero. */

.auth-image-hero-picture {
  position: absolute;
  inset: 0;
  display: block;
}

body.marketing-landing .auth-product-hero {
  min-height: 480px;
  align-items: stretch;
}

body.marketing-landing .auth-product-hero .auth-image-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-object-x) var(--hero-object-y);
}

body.marketing-landing .auth-product-hero .auth-image-hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(24, 14, 8, .74) 0%,
      rgba(24, 14, 8, .48) 47%,
      rgba(24, 14, 8, .12) 70%,
      rgba(24, 14, 8, .22) 100%),
    linear-gradient(to top,
      rgba(24, 14, 8, .7) 0%,
      rgba(24, 14, 8, .18) 55%,
      rgba(24, 14, 8, .08) 100%);
}

body.marketing-landing .auth-product-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 430px);
  align-items: end;
  gap: clamp(1rem, 2.4vw, 2rem);
  width: 100%;
  max-width: none;
  padding: 1.35rem;
}

.auth-product-hero-copy {
  min-width: 0;
  max-width: 660px;
}

body.marketing-landing .auth-product-hero-copy .now-open-banner {
  margin-bottom: .55rem;
  padding: .32rem .62rem;
  font-size: .64rem;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-eyebrow {
  margin-bottom: .42rem;
  font-size: .72rem;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-sub {
  max-width: 59ch;
  margin-top: .62rem;
  font-size: .94rem;
  line-height: 1.46;
}

.auth-product-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .42rem;
  margin: .78rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-product-capabilities li {
  min-width: 0;
  padding: .5rem .58rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(24, 14, 8, .5);
  color: #fff;
}

.auth-product-capabilities strong,
.auth-product-capabilities span {
  display: block;
}

.auth-product-capabilities strong {
  font-size: .76rem;
  line-height: 1.25;
}

.auth-product-capabilities span {
  margin-top: .12rem;
  color: rgba(255, 255, 255, .84);
  font-size: .64rem;
  line-height: 1.3;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-ctas {
  margin-top: .78rem;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-trust {
  margin-top: .55rem;
  font-size: .78rem;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-audiences {
  margin-top: .5rem;
}

body.marketing-landing .auth-product-hero-copy .auth-image-hero-audiences li {
  padding: .22rem .58rem;
  font-size: .68rem;
}

/* Compact price-comparison experience inside the image hero. */
.auth-comparison-card.auth-comparison-entry--hero {
  align-self: end;
  gap: .48rem;
  width: 100%;
  max-width: 430px;
  margin: 0;
  padding: .92rem 1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  background: rgba(24, 14, 8, .84);
  box-shadow: 0 16px 36px rgba(16, 9, 5, .28);
  color: #fff;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.auth-comparison-card .auth-comparison-card-heading {
  display: grid;
  gap: .2rem;
}

.auth-comparison-card.auth-comparison-entry--hero .auth-comparison-title {
  color: #f4cf86;
  font-size: .7rem;
  letter-spacing: .075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.auth-comparison-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.auth-comparison-card.auth-comparison-entry--hero .auth-comparison-description {
  color: rgba(255, 255, 255, .87);
  font-size: .75rem;
  line-height: 1.38;
}

.comparison-mini-result {
  display: grid;
  gap: .22rem;
  padding: .5rem .58rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
}

.comparison-mini-result:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.auth-comparison-card .comparison-mini-label {
  color: rgba(255, 255, 255, .72);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.comparison-mini-product {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  color: #fff;
  font-size: .75rem;
}

.comparison-mini-product span {
  color: rgba(255, 255, 255, .76);
  font-size: .6875rem;
}

.comparison-mini-prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .42rem;
}

.comparison-mini-prices > span:not(.comparison-mini-arrow) {
  display: grid;
  gap: .04rem;
}

.comparison-mini-prices small {
  color: rgba(255, 255, 255, .7);
  font-size: .6875rem;
  line-height: 1.2;
}

.comparison-mini-prices strong {
  color: #fff;
  font-size: .82rem;
  line-height: 1.2;
}

.comparison-mini-arrow {
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
}

.comparison-mini-prices em {
  padding: .22rem .42rem;
  border-radius: 999px;
  background: #dfead9;
  color: #244624;
  font-size: .6875rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.auth-comparison-card .comparison-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .08rem .55rem;
  align-items: center;
  padding: .42rem;
  border: 1.5px dashed rgba(255, 255, 255, .64);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  text-align: left;
  transition: background .16s ease, border-color .16s ease;
}

.auth-comparison-card .comparison-upload.is-dragging,
.auth-comparison-card .comparison-upload:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, .13);
}

.auth-comparison-card .comparison-picker {
  position: relative;
  display: inline-flex;
  grid-row: 1 / 3;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .62rem;
  border-radius: 8px;
  background: #fff;
  color: #56321f;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.auth-comparison-card .comparison-picker > span {
  font-size: .95rem;
  line-height: 1;
}

.auth-comparison-card .comparison-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.auth-comparison-card .comparison-picker:focus-within {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.auth-comparison-card .comparison-drop-copy,
.auth-comparison-card .comparison-formats {
  color: rgba(255, 255, 255, .84);
  font-size: .75rem;
  line-height: 1.3;
}

.auth-comparison-card .comparison-drop-copy {
  align-self: end;
  font-weight: 700;
}

.auth-comparison-card .comparison-formats {
  align-self: start;
}

.auth-comparison-card #comparison-start-status,
.auth-comparison-card #comparison-upload-fallback,
.auth-comparison-card noscript {
  grid-column: 1 / -1;
  color: #fff;
  font-size: .75rem;
  line-height: 1.35;
}

.auth-comparison-card #comparison-start-status:empty {
  display: none;
}

.auth-comparison-card #comparison-upload-fallback,
.auth-comparison-card noscript a {
  min-height: 30px;
  align-items: center;
  font-weight: 800;
  text-underline-offset: 2px;
}

.auth-comparison-card #comparison-upload-fallback:not([hidden]) {
  display: inline-flex;
}

.auth-comparison-card.auth-comparison-entry--hero .comparison-trust {
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.auth-comparison-card.auth-comparison-entry--hero .comparison-email-note,
.auth-comparison-card.auth-comparison-entry--hero .auth-comparison-limit {
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
  line-height: 1.34;
}

.auth-comparison-card.auth-comparison-entry--hero .auth-comparison-limit strong {
  color: #fff;
}

.auth-comparison-card [hidden] {
  display: none !important;
}

.auth-comparison-card a:focus-visible,
.auth-product-hero a:focus-visible,
.auth-product-hero button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body.auth-native-shell .auth-product-hero,
body.auth-platform-ios .auth-product-hero,
body.auth-platform-android .auth-product-hero {
  display: none;
}

/* The full desktop navigation needs more room than the new product + tool
   composition does. Use the existing drawer controls on narrow tablets so
   the brand and account actions stay on one calm row instead of wrapping. */
@media (min-width: 761px) and (max-width: 900px) {
  body.marketing-landing .site-header-inner {
    min-height: 64px;
  }

  body.marketing-landing .site-header-nav-group {
    display: contents;
  }

  body.marketing-landing .site-header .brand {
    order: 1;
    min-width: 0;
    margin-right: auto;
  }

  body.marketing-landing .site-header .brand-logo {
    height: 52px;
  }

  body.marketing-landing .site-actions {
    display: none;
  }

  body.marketing-landing .site-header-inner .mobile-header-signin {
    display: inline-flex;
    order: 2;
  }

  body.marketing-landing .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
  }

  body.marketing-landing .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 50;
    display: block;
    width: min(84vw, 320px);
    padding: 4.75rem 1.1rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background: #fff;
    box-shadow: -10px 0 28px rgba(61, 37, 24, .16);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .24s ease;
  }

  body.marketing-landing .site-nav.open {
    visibility: visible;
    transform: translateX(0);
  }

  body.marketing-landing .site-nav:not(.open) {
    display: none;
  }

  body.marketing-landing .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  body.marketing-landing .site-nav a {
    display: block;
    padding: .95rem .4rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
  }

  body.marketing-landing .mobile-menu-signin-link {
    display: list-item;
  }

  body.marketing-landing .site-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(61, 37, 24, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  body.marketing-landing .site-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  body.marketing-landing.site-nav-locked {
    overflow: hidden;
  }

  body.marketing-landing.site-nav-locked .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .auth-comparison-card .comparison-upload {
    grid-template-columns: minmax(0, 1fr);
    gap: .24rem;
  }

  .auth-comparison-card .comparison-picker {
    grid-row: auto;
    width: 100%;
  }

  .auth-comparison-card .comparison-drop-copy {
    display: none;
  }

  .auth-comparison-card .comparison-formats {
    text-align: center;
  }
}

/* The old shared rule gives every <=1049px image hero a 16:9 aspect ratio.
   This two-column composition owns its height instead so the compact card
   never stretches or clips the image. */
@media (min-width: 761px) and (max-width: 1049px) {
  body.marketing-landing .auth-product-hero {
    min-height: 500px;
    aspect-ratio: auto;
  }

  body.marketing-landing .auth-product-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 1rem;
    padding: 1.1rem;
  }
}

@media (max-width: 760px) {
  body.marketing-landing .auth-product-hero {
    min-height: 0;
    aspect-ratio: auto;
  }

  body.marketing-landing .auth-product-hero .auth-image-hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(24, 14, 8, .54) 0%,
        rgba(24, 14, 8, .68) 52%,
        rgba(24, 14, 8, .84) 100%),
      linear-gradient(90deg, rgba(24, 14, 8, .45), rgba(24, 14, 8, .18));
  }

  body.marketing-landing .auth-product-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.15rem;
  }

  .auth-product-hero-copy,
  .auth-comparison-card.auth-comparison-entry--hero {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  body.marketing-landing .auth-product-hero {
    display: flex;
    border-radius: 14px;
  }

  body.marketing-landing .auth-product-hero .auth-image-hero-picture,
  body.marketing-landing .auth-product-hero .auth-image-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  body.marketing-landing .auth-product-hero .auth-image-hero-media {
    object-position: center 38%;
  }

  body.marketing-landing .auth-product-hero .auth-image-hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(24, 14, 8, .35) 0%,
        rgba(24, 14, 8, .67) 25%,
        rgba(24, 14, 8, .88) 65%,
        rgba(24, 14, 8, .94) 100%);
  }

  body.marketing-landing .auth-product-hero-layout {
    gap: .78rem;
    padding: .88rem;
  }

  body.marketing-landing .auth-product-hero-copy .now-open-banner {
    display: none;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-eyebrow {
    margin-bottom: .28rem;
    font-size: .63rem;
    letter-spacing: .07em;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-sub {
    margin-top: .45rem;
    font-size: .82rem;
    line-height: 1.42;
  }

  .auth-product-capabilities {
    gap: .3rem;
    margin-top: .55rem;
  }

  .auth-product-capabilities li {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: .35rem .22rem;
    text-align: center;
  }

  .auth-product-capabilities strong {
    font-size: .62rem;
  }

  .auth-product-capabilities span {
    display: none;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
    margin-top: .58rem;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-ctas .btn {
    width: 100%;
    min-width: 0;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-trust {
    margin-top: .42rem;
    font-size: .68rem;
  }

  body.marketing-landing .auth-product-hero-copy .auth-image-hero-audiences {
    display: none;
  }

  .auth-comparison-card.auth-comparison-entry--hero {
    gap: .4rem;
    max-width: none;
    padding: .78rem;
    border-radius: 13px;
    background: rgba(24, 14, 8, .86);
  }

  .auth-comparison-card h2 {
    font-size: 1.04rem;
  }

  .auth-comparison-card.auth-comparison-entry--hero .auth-comparison-description {
    display: none;
  }

  .auth-comparison-card .comparison-email-note {
    display: none;
  }

  .auth-comparison-card .comparison-mini-result {
    gap: .18rem;
    padding: .38rem .48rem;
  }

  .auth-comparison-card .comparison-mini-product,
  .auth-comparison-card .comparison-mini-prices small {
    display: none;
  }

  .comparison-mini-prices {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }

  .comparison-mini-prices em {
    grid-column: auto;
    justify-self: end;
  }

  .auth-comparison-card .comparison-upload {
    grid-template-columns: minmax(0, 1fr);
    gap: .24rem;
  }

  .auth-comparison-card .comparison-picker {
    grid-row: auto;
    min-height: 48px;
  }

  .auth-comparison-card .comparison-drop-copy {
    display: none;
  }

  .auth-comparison-card .comparison-formats {
    text-align: center;
  }
}

@media (max-width: 360px) {
  body.marketing-landing .auth-product-hero-layout {
    padding: .7rem;
  }

  .auth-comparison-card.auth-comparison-entry--hero {
    padding: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
