/* Scoped public homepage redesign */

.home-page {
  --home-navy: #0f1b33;
  --home-navy-2: #13213d;
  --home-navy-3: #17263f;
  --home-gold: #c79a3b;
  --home-gold-2: #d6ad59;
  --home-ivory: #f8f6f1;
  --home-soft: #f5f7fa;
  --home-text: #172033;
  --home-muted: #5f6878;
  --home-line: #dfe5ed;
  --home-shadow: 0 20px 48px rgba(15, 27, 51, 0.12);
  background: var(--home-ivory);
  color: var(--home-text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.home-page * {
  box-sizing: border-box;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid var(--home-gold-2);
  outline-offset: 3px;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
  backdrop-filter: blur(16px);
}

.home-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--home-navy);
  text-decoration: none;
  min-width: 0;
}

.home-brand__gem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dfeeff, #1d6fd6);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(15, 27, 51, 0.16);
}

.home-brand__copy strong {
  display: block;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1;
}

.home-brand__copy span {
  display: block;
  color: var(--home-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.3vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-nav__links a {
  color: var(--home-text);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.home-nav__links a:hover {
  color: var(--home-gold);
}

.home-nav__legal {
  display: none;
}

.home-header__actions,
.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.home-button--gold {
  background: linear-gradient(135deg, var(--home-gold-2), var(--home-gold));
  color: #0f1b33;
  box-shadow: 0 12px 28px rgba(199, 154, 59, 0.26);
}

.home-button--dark {
  background: var(--home-navy);
  color: #ffffff;
}

.home-button--outline {
  border-color: rgba(199, 154, 59, 0.55);
  background: #ffffff;
  color: var(--home-navy);
}

.home-button--light {
  background: #ffffff;
  color: var(--home-navy);
  border-color: rgba(255, 255, 255, 0.7);
}

.home-menu-button {
  display: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(214, 173, 89, 0.24), transparent 26%),
    linear-gradient(135deg, var(--home-navy) 0%, #0b1426 48%, var(--home-navy-3) 100%);
  color: #ffffff;
}

.home-hero__grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.home-badge,
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #f2d18e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-badge::before {
  content: "";
  width: 7px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.home-hero h1 {
  margin: 0.95rem 0 1rem;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero h1 span {
  color: #f2d18e;
}

.home-hero__text {
  max-width: 620px;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
}

.home-hero__visual {
  min-width: 0;
}

.home-jewel-scene {
  position: relative;
  min-height: 370px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 35%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(140deg, #182846, #071225 68%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.32);
}

.home-jewel-scene__glow {
  position: absolute;
  inset: 14% 0 auto auto;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 89, 0.26), transparent 64%);
}

.home-jewel-scene img {
  position: absolute;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42));
}

.home-jewel-scene__bracelet {
  right: 7%;
  top: 12%;
  width: min(54%, 280px);
  transform: rotate(-10deg);
}

.home-jewel-scene__anklet {
  right: 30%;
  bottom: 9%;
  width: min(50%, 260px);
  transform: rotate(10deg);
}

.home-jewel-scene__card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  gap: 0.12rem;
  padding: 1rem;
  border: 1px solid rgba(214, 173, 89, 0.35);
  border-radius: 14px;
  background: rgba(15, 27, 51, 0.74);
  backdrop-filter: blur(12px);
}

.home-jewel-scene__card span {
  color: var(--home-gold-2);
  font-size: 1.6rem;
  font-weight: 900;
}

.home-jewel-scene__card strong,
.home-jewel-scene__card small {
  color: #ffffff;
}

.home-trust-strip {
  background: var(--home-navy);
  border-top: 1px solid rgba(214, 173, 89, 0.2);
  border-bottom: 1px solid rgba(214, 173, 89, 0.2);
}

.home-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.95rem 0;
}

.home-trust-strip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.home-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #ffffff;
}

.home-section--ivory {
  background: var(--home-ivory);
}

.home-section__heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-section__heading--left {
  text-align: left;
  margin: 0;
}

.home-section__heading h2,
.home-final-cta h2 {
  margin: 0.35rem 0 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.home-section__heading p:not(.home-kicker) {
  color: var(--home-muted);
  margin: 0.7rem 0 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-feature-card,
.home-packing-card,
.home-category-card,
.home-faq-item,
.home-steps li {
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 27, 51, 0.07);
}

.home-feature-card {
  min-height: 178px;
  padding: 1.25rem;
}

.home-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--home-navy), #071225);
  color: #f2d18e;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(214, 173, 89, 0.28), 0 12px 24px rgba(15, 27, 51, 0.18);
}

.home-feature-card h3,
.home-packing-card h3 {
  margin: 0 0 0.5rem;
  color: var(--home-navy);
  font-size: 1.02rem;
}

.home-feature-card p,
.home-packing-card p,
.home-packing-card li,
.home-category-card span,
.home-steps p,
.home-faq-panel p {
  color: var(--home-muted);
  line-height: 1.58;
}

.home-packing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-packing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  min-height: 240px;
  padding: 1.4rem;
}

.home-packing-card--premium {
  background: linear-gradient(135deg, var(--home-navy), #071225);
  border-color: rgba(214, 173, 89, 0.36);
}

.home-packing-card--premium h3,
.home-packing-card--premium p,
.home-packing-card--premium li {
  color: #ffffff;
}

.home-packing-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.home-packing-card li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1.3rem;
}

.home-packing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--home-gold);
}

.home-price-badge {
  justify-self: end;
  min-width: 150px;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  background: #e8f7ec;
  color: #116b35;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.home-packing-card--premium .home-price-badge {
  background: rgba(214, 173, 89, 0.16);
  color: #f2d18e;
  border: 1px solid rgba(214, 173, 89, 0.3);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 120px;
  padding: 1rem;
  color: var(--home-text);
  text-decoration: none;
}

.home-category-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.home-category-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--home-soft);
}

.home-category-card strong {
  display: block;
  color: var(--home-navy);
  font-size: 1rem;
}

.home-category-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  padding: 1.15rem;
}

.home-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--home-navy);
  color: #f2d18e;
  font-weight: 900;
}

.home-steps strong {
  display: block;
  color: var(--home-navy);
  font-size: 1rem;
}

.home-steps p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.home-faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.home-faq-list {
  display: grid;
  gap: 0.7rem;
}

.home-faq-item {
  overflow: hidden;
}

.home-faq-item button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 0;
  background: #ffffff;
  color: var(--home-navy);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.home-faq-item button::after {
  content: "+";
  color: var(--home-gold);
  font-size: 1.25rem;
}

.home-faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.home-faq-panel {
  padding: 0 1rem 1rem;
}

.home-faq-panel p {
  margin: 0;
}

.home-final-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #ffffff;
}

.home-final-cta__panel {
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(214, 173, 89, 0.22), transparent 34%),
    linear-gradient(135deg, var(--home-navy), #071225);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--home-shadow);
}

.home-final-cta h2 {
  color: #ffffff;
}

.home-final-cta p:not(.home-badge) {
  max-width: 760px;
  margin: 0.8rem auto 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.home-final-cta .home-hero__actions {
  justify-content: center;
}

.home-footer {
  padding: 2.5rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px));
  background: var(--home-navy);
  color: rgba(255, 255, 255, 0.78);
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-footer .home-brand__copy strong,
.home-footer h2 {
  color: #ffffff;
}

.home-footer h2 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-footer p,
.home-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.home-footer nav,
.home-footer address {
  display: grid;
  align-content: start;
  gap: 0.48rem;
  font-style: normal;
  min-width: 0;
}

.home-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-footer span {
  overflow-wrap: anywhere;
}

.home-footer a:hover {
  color: #f2d18e;
  text-decoration: underline;
}

.home-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.home-footer__legal p {
  margin: 0;
}

.home-footer__legal div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
}

.home-bottom-nav {
  display: none;
}

@media (max-width: 1100px) {
  .home-header__inner {
    grid-template-columns: auto auto auto;
  }

  .home-nav__links {
    gap: 0.65rem;
  }

  .home-header__actions .home-button {
    padding-inline: 0.8rem;
  }

  .home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .home-container {
    width: min(100% - 28px, 1180px);
  }

  .home-header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
  }

  .home-nav {
    order: 4;
    grid-column: 1 / -1;
  }

  .home-menu-button {
    display: inline-flex;
    justify-self: end;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
  }

  .home-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--home-navy);
  }

  .home-nav__links {
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    display: none;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--home-shadow);
  }

  .home-nav__links.active {
    display: grid;
    gap: 0.25rem;
  }

  .home-nav__links a {
    display: block;
    min-height: 42px;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
  }

  .home-nav__links a:hover {
    background: var(--home-ivory);
  }

  .home-nav__legal {
    display: block;
  }

  .home-header__actions {
    display: none;
  }

  .home-hero__grid,
  .home-faq-layout {
    grid-template-columns: 1fr;
  }

  .home-hero__grid {
    min-height: 0;
    padding: 2rem 0 1.4rem;
  }

  .home-hero__content {
    text-align: center;
  }

  .home-hero__text {
    margin-inline: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-jewel-scene {
    min-height: 280px;
  }

  .home-trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-grid,
  .home-steps,
  .home-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-packing-grid {
    grid-template-columns: 1fr;
  }

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

  .home-section__heading--left {
    text-align: center;
    margin: 0 auto;
  }

  .home-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    padding: 0.45rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 27, 51, 0.12);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 28px rgba(15, 27, 51, 0.14);
  }

  .home-bottom-nav a {
    display: grid;
    gap: 0.1rem;
    place-items: center;
    min-height: 52px;
    border-radius: 12px;
    color: var(--home-navy);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
  }

  .home-bottom-nav span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--home-soft);
    color: var(--home-navy);
    font-size: 0.64rem;
  }

  .home-bottom-nav__apply {
    background: var(--home-gold);
    color: #0f1b33 !important;
  }
}

@media (max-width: 560px) {
  .home-container {
    width: min(100% - 24px, 1180px);
  }

  .home-brand__copy strong {
    font-size: 1.05rem;
  }

  .home-brand__copy span {
    display: none;
  }

  .home-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .home-hero__actions,
  .home-hero__actions .home-button {
    width: 100%;
  }

  .home-jewel-scene {
    min-height: 230px;
    border-radius: 18px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .home-feature-card {
    min-height: 154px;
    padding: 0.85rem;
  }

  .home-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.7rem;
    font-size: 0.68rem;
  }

  .home-feature-card h3 {
    font-size: 0.9rem;
  }

  .home-feature-card p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .home-packing-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1rem;
  }

  .home-price-badge {
    justify-self: stretch;
  }

  .home-category-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-category-card img {
    justify-self: center;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .home-feature-grid,
  .home-category-grid,
  .home-trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .home-bottom-nav a {
    font-size: 0.66rem;
  }
}
