:root {
  --navy: #0b1b33;
  --text: #1a2744;
  --muted: #5b6b84;
  --blue: #1f5eff;
  --purple: #6d5efc;
  --line: #e4e9f2;
  --sheet: #ffffff;
  --page: #ffffff;
  --soft: #f6f7fb;
  --shadow: 0 18px 50px rgba(15, 30, 60, 0.08);
  --radius: 28px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  min-height: 100dvh;
}

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

a {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page {
  min-height: 100dvh;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 3.4rem;
  position: relative;
  z-index: 3;
}

.brand-logo {
  height: auto;
  width: auto;
}

.site-header .brand-logo {
  width: 180px;
  height: auto;
}

.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-icon {
  position: relative;
  margin: 0 auto;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: block;
  padding: 0 1.25rem 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}

.gradient-text {
  background: linear-gradient(90deg, #1f5eff 0%, #3d6ef8 42%, #6d5efc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 5.4rem 1.5rem 8.5rem;
  min-height: 78vh;
}

.hero-atmosphere,
.how-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-atmosphere {
  background:
    radial-gradient(ellipse 70% 55% at 88% 108%, rgba(255, 176, 112, 0.34), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 100%, rgba(109, 94, 252, 0.18), transparent 62%),
    radial-gradient(ellipse 50% 40% at 72% 92%, rgba(31, 94, 255, 0.16), transparent 60%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -12%;
  height: 46%;
  background:
    radial-gradient(ellipse 42% 70% at 22% 80%, rgba(109, 94, 252, 0.14), transparent 70%),
    radial-gradient(ellipse 48% 80% at 78% 86%, rgba(31, 94, 255, 0.13), transparent 68%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 100%, #000 35%, transparent 78%);
}

.hero h1 {
  margin: 0 auto 1.15rem;
  max-width: 14ch;
  font-size: clamp(2.8rem, 6.2vw, 5.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-weight: 760;
}

.hero-lede {
  margin: 0 auto 2.15rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(46.5rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.42rem 0.42rem 0.42rem 1.15rem;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(31, 50, 90, 0.08);
}

.search-icon {
  color: #9aa6bc;
  flex: 0 0 auto;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.02rem;
}

.search-input::placeholder {
  color: #9aa6bc;
}

.search-input:focus {
  outline: none;
}

.btn-ask {
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  color: #fff;
  font-weight: 700;
  cursor: default;
  background: linear-gradient(90deg, #1f5eff, #6d5efc);
  white-space: nowrap;
}

.beta-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}

.how {
  position: relative;
  isolation: isolate;
  padding: 4.6rem 3.2rem 3.4rem;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f8fc 100%);
}

.how-atmosphere {
  background:
    radial-gradient(ellipse 36% 30% at 88% 6%, rgba(255, 176, 112, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 28% at 8% 0%, rgba(109, 94, 252, 0.1), transparent 70%);
}

.how-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.6rem;
}

.how-intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.04em;
  color: var(--navy);
}

.how-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.how-cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.how-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.how-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  color: var(--navy);
}

.how-card > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.card-visual {
  margin-top: auto;
  min-height: 10.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f8ff 0%, #eef2ff 100%);
  display: grid;
  place-items: center;
  padding: 1.1rem 0.9rem;
}

.ask-visual {
  background:
    radial-gradient(circle at 50% 70%, rgba(109, 94, 252, 0.18), transparent 52%),
    linear-gradient(180deg, #f8f6ff 0%, #eef2ff 100%);
}

.mini-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  box-shadow: 0 10px 24px rgba(31, 50, 90, 0.08);
  color: #9aa6bc;
}

.mini-placeholder {
  flex: 1;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 550;
}

.mini-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}

.signal-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.signal-cards li {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  padding: 0.7rem 0.4rem 0.65rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.25;
}

.signal-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.signal-icon.bag {
  color: var(--blue);
  background: #e8f0ff;
}

.signal-icon.offer {
  color: var(--purple);
  background: #eeeaff;
}

.signal-icon.reviews {
  color: #1f8a4c;
  background: #e7f6ee;
}

.work-visual {
  position: relative;
}

.work-visual::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 46%;
  height: 2.1rem;
  border-left: 1.5px dashed rgba(31, 94, 255, 0.28);
  border-right: 1.5px dashed rgba(31, 94, 255, 0.28);
  border-bottom: 1.5px dashed rgba(31, 94, 255, 0.28);
  border-radius: 0 0 40px 40px;
  pointer-events: none;
}

.work-mark {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
}

.work-mark img {
  height: 34px;
  width: auto;
  margin: 0 auto;
}

.example-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a96ab;
}

.example-result {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  box-shadow: 0 8px 20px rgba(31, 50, 90, 0.06);
}

.example-copy {
  min-width: 0;
}

.best-piq {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
}

.piqscore-label {
  margin: 0.28rem 0 0.25rem;
  font-weight: 750;
  color: var(--navy);
  font-size: 0.86rem;
}

.example-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.example-copy li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

.trust-strip {
  list-style: none;
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 30, 60, 0.04);
}

.trust-strip li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-right: 1rem;
}

.trust-strip li + li {
  border-left: 1px solid var(--line);
  padding-left: 1.15rem;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.trust-icon.shield {
  color: var(--blue);
  background: #e8f0ff;
}

.trust-icon.reason {
  color: var(--purple);
  background: #eeeaff;
}

.trust-icon.person {
  color: #3569e8;
  background: #edf3ff;
}

.trust-strip h3 {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  color: var(--navy);
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.property-notes {
  padding: 1.6rem 3.2rem 1.4rem;
  background: var(--soft);
}

.property-notes p {
  margin: 0 0 0.55rem;
  max-width: 42rem;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.5;
}

.property-notes p:last-child {
  margin-bottom: 0;
}

.beta-status {
  font-weight: 700;
}

.affiliate-disclosure,
.public-contact {
  color: var(--muted) !important;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3.2rem 1.35rem;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-logo {
  height: 48px;
}

.footer-tag {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .site-header,
  .how,
  .property-notes,
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .header-nav {
    position: static;
    transform: none;
  }

  .how-cards,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip li + li {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 0.85rem 1.1rem;
  }

  .header-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .brand-logo {
    width: 128px;
    height: auto;
  }

  .hero {
    padding: 2.6rem 1.15rem 5.5rem;
    min-height: 0;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .search-shell {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 0.95rem 0.95rem 0.85rem;
    text-align: left;
  }

  .search-input {
    width: calc(100% - 2rem);
  }

  .btn-ask {
    width: 100%;
  }

  .how {
    padding: 2.4rem 1.15rem 1.8rem;
  }

  .signal-cards {
    grid-template-columns: 1fr;
  }

  .work-visual::before {
    display: none;
  }

  .example-result {
    grid-template-columns: 1fr auto;
  }

  .example-product {
    display: none;
  }

  .property-notes,
  .site-footer {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
