:root {
  --nm-bg: #faf7f1;
  --nm-paper: #fffdf9;
  --nm-ink: #171310;
  --nm-muted: #5f5852;
  --nm-line: #a9a099;
  --nm-soft-line: #d7cec6;
  --nm-accent: #ad5f61;
  --nm-accent-dark: #984b50;
  --nm-accent-soft: #f4e5e1;
  --nm-serif: "Playfair Display", Georgia, serif;
  --nm-sans: "Inter", Arial, sans-serif;
  --nm-max: 1160px;
}

.home-page {
  margin: 0;
  color: var(--nm-ink);
  background: var(--nm-bg);
  font-family: var(--nm-sans);
  font-size: 16px;
  line-height: 1.35;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page .container {
  width: min(var(--nm-max), calc(100% - 64px));
  margin-inline: auto;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-page .hero {
  padding: 28px 0 26px;
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(440px, 1.07fr);
  gap: 54px;
  align-items: center;
}

.home-page .hero-copy {
  max-width: none;
}

.home-page .hero-copy h1 {
  margin: 0;
  font-family: var(--nm-serif);
  font-size: clamp(46px, 4.35vw, 61px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.home-page .hero-copy .hero-lead {
  margin: 22px 0 14px;
  font-size: 21px;
  line-height: 1.3;
}

.home-page .hero-copy .hero-seo {
  margin: 0 0 26px;
  max-width: 30rem;
  font-family: var(--nm-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--nm-muted);
}

.home-page .hero-copy .hero-seo a {
  color: var(--nm-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .hero-copy .hero-seo strong {
  color: var(--nm-ink);
  font-weight: 600;
}

.home-page .section-title p a {
  color: var(--nm-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .faq {
  padding: 30px 0 36px;
  border-top: 1px solid var(--nm-line);
}

.home-page .faq h2 {
  margin: 0 0 20px;
  font-family: var(--nm-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.025em;
}

.home-page .faq-list {
  max-width: 44rem;
  margin: 0 auto;
}

.home-page .faq-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--nm-soft-line);
}

.home-page .faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-page .faq-item h3 {
  margin: 0 0 7px;
  font-family: var(--nm-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.home-page .faq-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--nm-muted);
}

.home-page .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 324px;
  min-height: 58px;
  padding: 12px 28px;
  border-radius: 7px;
  color: #fff;
  background: var(--nm-accent);
  font-family: var(--nm-serif);
  font-size: 27px;
  font-weight: 500;
  transition: background-color 160ms ease;
}

.home-page .hero-cta:hover,
.home-page .hero-cta:focus-visible {
  background: var(--nm-accent-dark);
}

.home-page .hero-link {
  display: block;
  width: fit-content;
  margin-top: 24px;
  font-family: var(--nm-serif);
  font-size: 21px;
  font-weight: 500;
}

.home-page .hero-link span,
.home-page .demo-link span,
.home-page .why a span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 160ms ease;
}

.home-page .hero-link:hover span,
.home-page .demo-link:hover span,
.home-page .why a:hover span {
  transform: translateX(3px);
}

.home-page .zodiac-demo {
  overflow: hidden;
  border: 1px solid #bcb3ab;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.home-page .demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 28px;
  background: linear-gradient(90deg, #fffdfa, var(--nm-accent-soft));
  font-family: var(--nm-serif);
  font-size: 21px;
}

.home-page .demo-head strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.home-page .gemini-mark {
  color: var(--nm-accent);
  font-family: var(--nm-serif);
  font-size: 32px;
}

.home-page .demo-body {
  padding: 10px 24px 0;
}

.home-page .demo-question {
  margin: 0 0 7px;
  font-size: 18px;
}

.home-page .progress {
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 28px 1fr 28px;
  align-items: center;
  margin: 0 35px 19px;
}

.home-page .progress span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #8a817a;
  border-radius: 50%;
  background: var(--nm-paper);
  font-family: var(--nm-serif);
  font-size: 15px;
  line-height: 1;
}

.home-page .progress span:first-child {
  border-color: var(--nm-accent);
}

.home-page .progress span.active {
  border-color: var(--nm-accent);
  color: #fff;
  background: var(--nm-accent);
}

.home-page .progress i {
  height: 1px;
  background: #9c928a;
}

.home-page .progress i:first-of-type {
  background: var(--nm-accent);
}

.home-page .signs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nm-soft-line);
}

.home-page .sign {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px solid var(--nm-soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  font-family: var(--nm-serif);
}

.home-page .sign b {
  color: #3a211c;
  font-family: "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.home-page .sign span {
  font-size: 18px;
}

.home-page .sign.selected {
  border-color: var(--nm-accent);
  background: linear-gradient(135deg, #fffdfa, #f7eae6);
}

.home-page .sign.selected b {
  color: var(--nm-accent);
}

.home-page .sign em {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fff;
  background: var(--nm-accent);
  font-family: var(--nm-sans);
  font-size: 12px;
  font-style: normal;
}

.home-page .demo-result {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 20px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--nm-soft-line);
}

.home-page .demo-result img {
  width: 100%;
  height: 126px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-page .demo-result h2 {
  margin: 0 0 5px;
  font-family: var(--nm-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.home-page .demo-result p {
  margin: 0;
  font-family: var(--nm-serif);
  font-size: 17px;
  line-height: 1.18;
}

.home-page .demo-link {
  display: block;
  padding: 11px 0 13px;
  color: var(--nm-accent-dark);
  text-align: center;
  font-family: var(--nm-serif);
  font-size: 18px;
}

/* Calculator finder */
.home-page .finder {
  overflow: hidden;
  border: 1px solid #bcb3ab;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.home-page .finder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 0 26px;
  background: linear-gradient(90deg, #fffdfa, var(--nm-accent-soft));
}

.home-page .finder-head h2 {
  margin: 0;
  padding-right: 22px;
  border-right: 1px solid #c8bbb4;
  font-family: var(--nm-serif);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.home-page .finder-head > span {
  padding-left: 22px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.home-page .finder-body {
  padding: 19px 24px 0;
}

.home-page .finder-body > h3 {
  margin: 0 0 17px;
  font-family: var(--nm-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}

.home-page .finder-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-page .finder-option {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 83px;
  padding: 12px 13px;
  border: 1px solid var(--nm-soft-line);
  border-radius: 8px;
  color: var(--nm-ink);
  background: rgba(255, 255, 255, 0.38);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.home-page .finder-option:hover,
.home-page .finder-option:focus-visible {
  border-color: var(--nm-accent);
}

.home-page .finder-option.is-selected {
  border-color: var(--nm-accent);
  background: linear-gradient(135deg, #fffdfa, #f8e8e5);
}

.home-page .finder-option img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.home-page .finder-option > span {
  min-width: 0;
}

.home-page .finder-option strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--nm-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.home-page .finder-option small {
  display: block;
  color: var(--nm-muted);
  font-size: 12px;
  line-height: 1.25;
}

.home-page .finder-option i {
  position: absolute;
  top: 9px;
  right: 9px;
  display: none;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fff;
  background: var(--nm-accent);
  font-size: 11px;
  font-style: normal;
}

.home-page .finder-option.is-selected i {
  display: grid;
}

.home-page .finder-suggestions {
  padding: 16px 3px 15px;
}

.home-page .finder-suggestions > p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}

.home-page .finder-suggestions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .finder-suggestions a {
  padding: 0 12px;
  border-right: 1px solid #c8bbb4;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.home-page .finder-suggestions a:first-child {
  padding-left: 0;
}

.home-page .finder-suggestions a:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-page .finder-suggestions a span,
.home-page .finder-all span {
  margin-left: 4px;
  color: var(--nm-accent-dark);
}

.home-page .finder-all {
  display: block;
  padding: 13px 0 15px;
  border-top: 1px solid var(--nm-soft-line);
  color: var(--nm-ink);
  font-family: var(--nm-serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

.home-page .finder-all:hover {
  color: var(--nm-accent-dark);
}

.home-page .how {
  padding: 17px 0 22px;
  border-block: 1px solid var(--nm-line);
}

.home-page .how h2,
.home-page .section-title h2 {
  margin: 0;
  font-family: var(--nm-serif);
  font-size: 45px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
}

.home-page .steps {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 55px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.home-page .steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.home-page .steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 17px);
  width: 22px;
  height: 1px;
  background: var(--nm-accent);
}

.home-page .steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid var(--nm-accent);
  border-radius: 50%;
  color: var(--nm-accent-dark);
  font-family: var(--nm-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-page .steps b {
  font-family: var(--nm-serif);
  font-size: 20px;
  font-weight: 500;
}

.home-page .how > .container > p {
  margin: 10px 0 0;
  font-family: var(--nm-serif);
  font-size: 20px;
  font-style: italic;
  text-align: center;
}

.home-page .calculators {
  padding: 20px 0 36px;
}

.home-page .section-title p {
  margin: 5px 0 18px;
  font-size: 18px;
  text-align: center;
}

.home-page .calculator-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.home-page .calculator {
  display: flex;
  min-width: 0;
  min-height: 190px;
  padding: 18px 10px 14px;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--nm-soft-line);
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.55);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-page .calculator:hover,
.home-page .calculator:focus-visible {
  border-color: var(--nm-accent);
  transform: translateY(-2px);
}

.home-page .calculator img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  object-fit: contain;
}

.home-page .calculator h3 {
  margin: 0;
  min-height: 48px;
  font-family: var(--nm-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 0.98;
}

.home-page .calculator p {
  margin: auto 0 0;
  font-family: var(--nm-serif);
  font-size: 16px;
  line-height: 1.08;
}

.home-page .why {
  display: block;
  grid-template-columns: none;
  gap: 0;
  align-items: initial;
  padding: 29px 0;
  border-block: 1px solid var(--nm-line);
}

.home-page .why-grid {
  display: grid;
  grid-template-columns: minmax(0, min(240px, 28%)) minmax(0, 1fr) minmax(0, max-content);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: start;
}

.home-page .why h2 {
  margin: 0;
  min-width: 0;
  padding-right: clamp(12px, 2vw, 28px);
  border-right: 1px solid var(--nm-line);
  font-family: var(--nm-serif);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  white-space: normal;
}

.home-page .why-copy {
  min-width: 0;
}

.home-page .why-copy p {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
}

.home-page .why-copy strong {
  color: var(--nm-accent-dark);
  font-family: var(--nm-serif);
  font-size: clamp(15px, 1.45vw, 17px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.home-page .why a {
  border-bottom: 1px solid var(--nm-accent);
  font-family: var(--nm-serif);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.35;
  max-width: 12rem;
  justify-self: end;
  text-align: right;
  white-space: normal;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 2px solid var(--nm-accent);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .home-page .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(410px, 1.14fr);
    gap: 30px;
  }

  .home-page .hero-copy h1 {
    font-size: 47px;
  }

  .home-page .steps {
    gap: 35px;
  }

  .home-page .steps li:not(:last-child)::after {
    display: none;
  }

  .home-page .calculator h3 {
    font-size: 20px;
  }

  .home-page .why-grid {
    grid-template-columns: minmax(0, min(220px, 32%)) minmax(0, 1fr) minmax(0, max-content);
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .home-page .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-page .why h2 {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--nm-line);
  }

  .home-page .why a {
    justify-self: start;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 820px) {
  .home-page .container {
    width: min(100% - 40px, 680px);
  }

  .home-page .hero {
    padding: 38px 0 36px;
  }

  .home-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .home-page .hero-copy {
    max-width: 610px;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(43px, 8vw, 58px);
  }

  .home-page .hero-copy > p br {
    display: none;
  }

  .home-page .zodiac-demo {
    width: 100%;
  }

  .home-page .steps {
    grid-template-columns: 1fr;
    gap: 14px;
    width: fit-content;
    margin-inline: auto;
  }

  .home-page .steps li {
    white-space: normal;
  }

  .home-page .calculator-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .home-page .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-page .why h2 {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--nm-line);
  }

  .home-page .why-copy p br {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-page .container {
    width: calc(100% - 32px);
  }

  .home-page .hero {
    padding: 30px 0 31px;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(38px, 12vw, 49px);
    line-height: 1.02;
  }

  .home-page .hero-copy h1 br {
    display: none;
  }

  .home-page .hero-copy .hero-lead {
    margin: 19px 0 12px;
    font-size: 18px;
  }

  .home-page .hero-copy .hero-seo {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .home-page .hero-copy .hero-seo br {
    display: none;
  }

  .home-page .faq h2 {
    font-size: 34px;
  }

  .home-page .hero-cta {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 24px;
  }

  .home-page .hero-link {
    margin-top: 19px;
    font-size: 19px;
  }

  .home-page .finder-head {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 16px;
  }

  .home-page .finder-head h2 {
    padding: 0;
    border-right: 0;
    font-size: 25px;
  }

  .home-page .finder-head > span {
    padding: 0;
    font-size: 13px;
  }

  .home-page .finder-body {
    padding: 17px 13px 0;
  }

  .home-page .finder-body > h3 {
    font-size: 24px;
  }

  .home-page .finder-options {
    grid-template-columns: 1fr;
  }

  .home-page .finder-option {
    min-height: 74px;
    grid-template-columns: 43px 1fr;
  }

  .home-page .finder-option img {
    width: 42px;
    height: 42px;
  }

  .home-page .finder-option strong {
    font-size: 20px;
  }

  .home-page .finder-option small {
    font-size: 13px;
  }

  .home-page .finder-suggestions > div {
    grid-template-columns: 1fr;
  }

  .home-page .finder-suggestions a {
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--nm-soft-line);
  }

  .home-page .finder-suggestions a:last-child {
    border-bottom: 0;
  }

  .home-page .demo-head {
    min-height: 54px;
    padding-inline: 16px;
    font-size: 17px;
  }

  .home-page .demo-head strong {
    font-size: 23px;
  }

  .home-page .demo-body {
    padding: 11px 13px 0;
  }

  .home-page .demo-question {
    font-size: 16px;
  }

  .home-page .progress {
    margin-inline: 8px;
  }

  .home-page .signs {
    gap: 7px;
  }

  .home-page .sign {
    min-height: 75px;
  }

  .home-page .sign b {
    font-size: 26px;
  }

  .home-page .sign span {
    font-size: 16px;
  }

  .home-page .demo-result {
    grid-template-columns: 45% 1fr;
    gap: 10px;
  }

  .home-page .demo-result img {
    height: 108px;
  }

  .home-page .demo-result h2 {
    font-size: 21px;
  }

  .home-page .demo-result p {
    font-size: 15px;
  }

  .home-page .how {
    padding: 25px 0 27px;
  }

  .home-page .how h2,
  .home-page .section-title h2 {
    font-size: 38px;
  }

  .home-page .steps {
    margin-top: 20px;
    margin-left: 4px;
  }

  .home-page .steps span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 16px;
  }

  .home-page .steps b {
    font-size: 19px;
  }

  .home-page .calculators {
    padding: 27px 0 31px;
  }

  .home-page .section-title p {
    margin: 8px auto 19px;
    max-width: 310px;
    font-size: 16px;
  }

  .home-page .calculator-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--nm-soft-line);
  }

  .home-page .calculator {
    display: grid;
    grid-template-columns: 48px 1fr 20px;
    grid-template-rows: auto auto;
    column-gap: 14px;
    min-height: 0;
    padding: 14px 3px;
    border: 0;
    border-bottom: 1px solid var(--nm-soft-line);
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .home-page .calculator::after {
    content: "→";
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--nm-accent);
    font-family: var(--nm-serif);
    font-size: 20px;
  }

  .home-page .calculator img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .home-page .calculator h3 {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    font-size: 23px;
    line-height: 1;
  }

  .home-page .calculator h3 br,
  .home-page .calculator p br {
    display: none;
  }

  .home-page .calculator p {
    grid-column: 2;
    grid-row: 2;
    margin: 3px 0 0;
    font-size: 16px;
  }

  .home-page .why {
    padding: 26px 0 29px;
  }

  .home-page .why h2 {
    font-size: 38px;
  }

  .home-page .why-copy p {
    font-size: 16px;
  }

  .home-page .site-footer {
    padding-block: 22px;
  }

  .home-page .footer-inner {
    align-items: center;
    text-align: center;
  }

  .home-page .footer-nav {
    gap: 12px;
  }
}
