/* Homepage entrance: editorial hierarchy with the comparison task in focus. */
:root {
  --orange: #b9573c;
  --orange-dark: #823a27;
  --teal: #0d655d;
  --teal-soft: #e3f2ed;
  --blue: #245a55;
  --ink: #1c2927;
  --muted: #5e6964;
  --line: #d9d5ca;
  --soft: #f4f1e9;
}

.site-header {
  background: rgba(250, 248, 242, .97);
  border-bottom: 1px solid #d8d2c5;
  box-shadow: 0 8px 24px rgba(21, 44, 38, .04);
}

.header-top {
  padding: 17px 0 14px;
}

.brand-mark {
  color: #f8f4ea;
  background: #1c4b42;
  border-color: #1c4b42;
  border-radius: 11px;
}

.brand-name {
  color: #20463f;
  font-size: clamp(20px, 2.1vw, 27px);
  letter-spacing: -.035em;
}

.header-stats strong {
  color: #18473f;
}

.icon-button {
  color: #20463f;
  background: #fffdf8;
  border-color: #d8d2c5;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c9b9a9 transparent;
  background: transparent;
  border-top: 1px solid #ded9cf;
}

.nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  min-height: 53px;
  padding: 0 15px;
  color: #34534b;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: #1b473f;
  background: #eeeae0;
  border-bottom-color: #b9573c;
}

.hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(325px, .85fr);
  gap: 18px;
  padding: 24px 0 20px;
}

.hero-stage {
  min-height: 610px;
  isolation: isolate;
  background: #173e38;
  border: 1px solid #173e38;
  border-radius: 18px;
  box-shadow: 0 22px 42px rgba(24, 51, 44, .16);
}

.hero-image {
  opacity: .24;
  filter: grayscale(1);
  object-position: center;
}

.hero-stage::after {
  background:
    linear-gradient(110deg, rgba(13, 49, 44, .98) 4%, rgba(16, 57, 50, .88) 61%, rgba(23, 62, 56, .68)),
    linear-gradient(0deg, rgba(13, 49, 44, .55), transparent 58%);
}

.hero-stage::before {
  position: absolute;
  z-index: 1;
  top: -125px;
  right: -125px;
  width: 490px;
  height: 490px;
  content: "";
  border: 1px solid rgba(247, 236, 211, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(247, 236, 211, .025), 0 0 0 144px rgba(247, 236, 211, .025);
  pointer-events: none;
}

.hero-copy {
  min-height: 610px;
  padding: 45px 44px 35px;
}

.kicker {
  min-height: 34px;
  padding: 5px 12px;
  color: #f4d2a5;
  background: rgba(17, 58, 51, .62);
  border: 1px solid rgba(244, 210, 165, .58);
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: .09em;
}

.hero h1 {
  margin-top: 27px;
  color: #fff9eb;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(42px, 5vw, 69px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1.26;
  text-shadow: none;
  text-wrap: balance;
}

.hero .title-line {
  display: block;
}

.hero-lead {
  display: grid;
  gap: 2px;
  max-width: 35em;
  margin-top: 23px;
  padding: 0;
  color: #e0eae4;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 20px;
  color: #183b34;
  background: #f4d2a5;
  border: 1px solid #f4d2a5;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #ffe4c1;
}

.hero-cta i {
  width: 18px;
  height: 18px;
}

.hero-metrics {
  max-width: none;
  gap: 0;
  border-top: 1px solid rgba(244, 238, 222, .3);
}

.hero .metric {
  min-height: 81px;
  padding: 18px 8px 0 17px;
  color: #fff9eb;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(244, 238, 222, .23);
  border-radius: 0;
}

.hero .metric:first-child {
  padding-left: 0;
}

.hero .metric:last-child {
  border-right: 0;
}

.hero .metric span {
  color: #c8ddd4;
  font-size: 12px;
  font-weight: 700;
}

.hero .metric strong {
  color: #fff9eb;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.search-panel {
  background: #fcfbf7;
  border-color: #ded9ce;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(32, 49, 44, .08);
}

.search-panel .panel-title {
  min-height: 62px;
  padding: 16px 22px;
  color: #1c403a;
  background: #e9e6db;
  font-size: 18px;
  letter-spacing: -.02em;
}

.search-body {
  gap: 13px;
  padding: 22px;
}

.search-body label {
  color: #3b514b;
  font-size: 13px;
}

.search-body input,
.search-body select {
  background: #fff;
  border-color: #d6d5cd;
}

.search-body .primary-button {
  min-height: 52px;
  color: #fff;
  background: #1b665b;
  border-color: #1b665b;
}

.search-body .primary-button:hover {
  background: #145449;
}

@media (max-width: 1040px) {
  /* Keep touch/trackpad navigation while removing the browser-default rail. */
  .nav {
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-copy {
    min-height: 470px;
  }

  .search-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-body > .field:first-child,
  .search-body > .tag-row,
  .search-body > .primary-button,
  .search-body > .ghost-button,
  .search-body > .mini-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  .site-header {
    position: static;
  }

  .header-top {
    padding: 13px 0 11px;
  }

  .nav {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    scrollbar-width: none;
  }

  .nav a {
    min-height: 46px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    gap: 14px;
    padding-top: 16px;
  }

  .hero-stage {
    order: 0;
  }

  .hero .search-panel {
    order: 1;
  }

  .hero-stage,
  .hero-copy {
    min-height: 440px;
  }

  .hero-copy {
    padding: 29px 26px 24px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(36px, 6.8vw, 52px);
  }

  .hero-lead {
    margin-top: 15px;
    font-size: 14px;
  }

  .hero-cta {
    margin-top: 18px;
  }

  .search-body {
    grid-template-columns: 1fr;
  }

  .search-body > * {
    grid-column: 1 !important;
  }
}

@media (max-width: 480px) {
  .hero-stage,
  .hero-copy {
    min-height: 480px;
  }

  .hero-copy {
    padding: 26px 22px 23px;
  }

  .hero h1 {
    font-size: clamp(33px, 9vw, 42px);
  }

  .hero-lead span {
    display: inline;
  }

  .hero .metric {
    padding: 15px 5px 0 10px;
  }

  .hero .metric strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    transition: none;
  }
}
