/*
  Nelyra checkout: offer-page skin modelled on the GLP5 GLT checkout-v2 layout.

  Loaded last. Part 1 restates the brand tokens that the existing modal, card
  fields and upsell read (brand.css, tokens.css), so those keep working with no
  markup change. Part 2 styles the page sections, which use g-* classes so they
  never collide with offer.css or chrome.css (neither is loaded on this page).

  JS contract (checkout/checkout.js): .offer-card[data-pkg], .offer-card__cta,
  [data-selected], [data-summary], [data-sticky], [data-scroll-to-checkout],
  #checkout-modal and everything inside it. The modal, card fields and payment
  options are styled in checkout-modal.css.
*/

/* DM Sans, self-hosted (variable weight 100-1000). ------------------------ */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Part 1: tokens ----------------------------------------------------------- */

/* Layout: white header, mist pack stage with three cards (best value centred,
   raised by a ribbon), then alternating mist / white / dark / teal bands. */
:root {
  --ink: #1f2a4e;
  --ink-2: #566079;
  --ink-3: #8790a3;
  --paper: #ffffff;
  --mist: #f3f8fa;
  --mist-2: #dde8ed;
  --rule: #e2e9ed;
  --go: #17a782;
  --go-deep: #0e8264;
  --go-soft: #e5f5ef;
  --nelyra-teal: #258f8c;
  --nelyra-teal-deep: #177a78;
  --price-red: #e42100;
  --rose: #d8424b;
  --rose-soft: #fdf2ef;
  --star: #f5a623;
  --night: #172140;

  /* Tokens the existing modal, card fields and upsell read */
  --navy: var(--ink);
  --navy-deep: var(--night);
  --brand: var(--nelyra-teal-deep);
  --brand-hover: #136664;
  --teal: var(--nelyra-teal);
  --mint: var(--go-soft);
  --cream: var(--paper);
  --muted: var(--ink-2);
  --buy: var(--go);
  --buy-border: var(--go-deep);
  --buy-shadow: none;
  --line: var(--rule);
  --line-soft: #edf2f4;
  --shadow-card: 0 1px 2px rgba(31, 42, 78, 0.05), 0 8px 24px rgba(31, 42, 78, 0.06);
  --font-display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 70rem;
  color-scheme: light;
}

/* Part 2: page ------------------------------------------------------------- */

/* Blocks the extended checkout (?ext=1, global partial ext/flag) drops: the on-page checkout section.
   data-ext-only adds others. */
html[data-ext] [data-ext-hidden] {
  display: none !important;
}

body.page-offer {
  padding-bottom: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

.page-offer h1,
.page-offer h2,
.page-offer h3,
.page-offer h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page-offer :focus-visible {
  outline: 3px solid var(--nelyra-teal);
  outline-offset: 3px;
}

.g-section {
  padding-block: 3.25rem;
}

@media (min-width: 1024px) {
  .g-section {
    padding-block: 5rem;
  }
}

.g-section--mist {
  background: var(--mist);
}

.g-title {
  color: var(--ink);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.g-lead {
  max-width: 42rem;
  margin: 0.875rem auto 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-align: center;
}

.g-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* Buttons: one green pill, uppercase, as on the reference. */
.page-offer .btn--buy,
.page-offer .g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--go);
  box-shadow: none;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.page-offer .btn--buy:hover,
.page-offer .btn--buy:focus,
.page-offer .g-btn:hover,
.page-offer .g-btn:focus {
  background: var(--go-deep);
  color: #fff;
}

.page-offer .btn--buy:active,
.page-offer .g-btn:active {
  transform: translateY(1px);
}

.g-btn--wide {
  width: 100%;
  max-width: 30rem;
}

.g-btn--teal {
  background: var(--nelyra-teal);
}

.g-btn--teal:hover,
.g-btn--teal:focus {
  background: var(--nelyra-teal-deep);
}

/* Header ------------------------------------------------------------------ */

.g-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.g-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 3.75rem;
}

.g-header__logo {
  grid-column: 2;
}

.g-header__logo img {
  width: auto;
  height: 2.25rem;
}

.g-header__aside {
  grid-column: 3;
  justify-self: end;
}

.g-header .lang-switcher {
  appearance: none;
  padding: 0.3rem 1.75rem 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566079' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 0.5rem center / 0.875rem no-repeat;
  color: var(--ink);
  font-size: 0.8125rem;
  cursor: pointer;
}

@media (min-width: 640px) {
  .g-header__logo img {
    height: 2.5rem;
  }
}

/* Package stage ----------------------------------------------------------- */

.g-packs {
  padding-block: 1.75rem 3rem;
  background: var(--mist);
}

@media (min-width: 1024px) {
  .g-packs {
    padding-block: 3rem 4.5rem;
  }
}

.g-packs__title {
  color: var(--ink);
  font-size: clamp(1.625rem, 1.15rem + 2.1vw, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.g-packs__title span {
  color: var(--nelyra-teal);
}

.g-packs__lead {
  max-width: 38rem;
  margin: 0.625rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.5;
  text-align: center;
}

.g-packs__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 28rem;
  margin: 2.5rem auto 0;
}

/* Phone order: best value first, then the larger packs. The render context sets
   both orders per card, since the packs come from the store catalog. */
.g-packs__grid > [data-pkg] {
  order: var(--order-mobile, 0);
}

@media (min-width: 960px) {
  .g-packs__grid {
    grid-template-columns: 1fr 1.08fr 1fr;
    align-items: start;
    max-width: none;
    gap: 1.25rem;
  }

  .g-packs__grid > [data-pkg] {
    order: var(--order-desktop, 0);
  }
}

.g-packs__terms {
  margin-top: 1.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-align: center;
}

/* Pack card --------------------------------------------------------------- */

.g-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.375rem 1.25rem 1.375rem;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* The outline follows the visitor's choice; the best-value card keeps only its ribbon. */
.g-card:hover {
  border-color: color-mix(in srgb, var(--go-deep) 45%, var(--rule));
}

.g-card[data-selected] {
  border-color: var(--go-deep);
  box-shadow: 0 0 0 1px var(--go-deep), 0 12px 32px rgba(14, 130, 100, 0.12);
}

.g-card--best {
  padding-top: 1.875rem;
}

.g-card__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  padding: 0.4rem 0.875rem;
  border-radius: 0.3rem;
  background: var(--go-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.g-card__ribbon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 0.375rem solid transparent;
  border-top-color: var(--go-deep);
  transform: translateX(-50%);
}

/* Goal from the quiz (filled by the inline script when the URL carries it) */
.g-card__goal {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.g-card__goal-label {
  color: var(--nelyra-teal-deep);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.g-card__goal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.375rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.g-card__goal-arrow {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--nelyra-teal);
}

.g-card__goal-diff {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--nelyra-teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.g-card__head {
  text-align: center;
}

.g-card__title {
  color: var(--ink);
  font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.g-card__tag {
  margin-top: 0.25rem;
  color: var(--price-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.g-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 13.5rem;
  margin: 1rem -1.25rem 0;
  padding: 0 1.25rem;
  background: linear-gradient(180deg, transparent 0 48%, var(--mist) 48% 100%);
}

.g-card__media img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.g-card--best .g-card__media {
  height: 15rem;
}

.g-card--single .g-card__media img {
  height: 92%;
}

.g-card__price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.g-card__price {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.g-card__per {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-3);
  font-size: 0.75rem;
}

.g-card__was {
  display: block;
  margin-top: 0.125rem;
  color: var(--price-red);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.g-card__save {
  flex: none;
  padding: 0.35rem 0.55rem;
  border-radius: 0.25rem;
  background: var(--go);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.g-card__total {
  margin-top: 0.875rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.g-card__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.g-card__list li {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: 0.625rem;
  align-items: start;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.45;
}

.g-card__list li.is-key {
  font-weight: 600;
}

.g-card__list svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05rem;
  color: var(--go-deep);
}

/* The order button. Restated over checkout-modal.css, which outlines the
   buttons of cards that are not selected. */
.g-card.offer-card .offer-card__cta,
.g-card.offer-card:not([data-selected]) .offer-card__cta {
  width: 100%;
  min-height: 3.75rem;
  margin-top: 1.25rem;
  border: 0;
  background: var(--go);
  color: #fff;
  font-size: 1.0625rem;
}

.g-card.offer-card .offer-card__cta:hover,
.g-card.offer-card .offer-card__cta:focus,
.g-card.offer-card:not([data-selected]) .offer-card__cta:hover,
.g-card.offer-card:not([data-selected]) .offer-card__cta:focus {
  background: var(--go-deep);
  color: #fff;
}

.g-card__assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.g-card__assure li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 10rem;
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
}

.g-card__assure svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--go-deep);
}

.g-card__secure {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.g-card__marks {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.g-card__marks span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2rem;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  background: #fff;
}

.g-card__marks img {
  width: auto;
  max-width: 2.25rem;
  height: 1.125rem;
}

/* Formula as ring stats ---------------------------------------------------- */

.g-facts {
  padding-top: 0;
}

.g-facts__grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--mist-2);
}

@media (min-width: 960px) {
  .g-facts__grid {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.g-facts__title {
  color: var(--ink);
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  font-weight: 500;
  line-height: 1.2;
}

.g-facts__intro {
  margin-top: 0.875rem;
  color: var(--ink-2);
}

.g-rings {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .g-rings {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
}

.g-ring {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.125rem;
  align-items: center;
}

.g-ring__value {
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  border: 0.5rem solid var(--mist-2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

.g-ring__value small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.g-ring__name {
  display: block;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.g-ring__desc {
  display: block;
  margin-top: 0.125rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.g-facts__notes {
  display: grid;
  gap: 0.375rem;
  margin-top: 2rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

/* Why: problem / solution -------------------------------------------------- */

.g-why__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 900px) {
  .g-why__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.g-why__card {
  overflow: hidden;
  border-radius: 0.875rem;
}

.g-why__media {
  position: relative;
}

.g-why__media img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.g-why__card--problem .g-why__media img {
  object-position: 54% 30%;
}

.g-why__card--solution .g-why__media img {
  object-position: 50% 28%;
}

.g-why__label {
  position: absolute;
  bottom: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.g-why__card--problem .g-why__label {
  left: 0.875rem;
  background: var(--rose);
}

.g-why__card--solution .g-why__label {
  right: 0.875rem;
  background: var(--go-deep);
}

.g-why__list {
  padding: 0.25rem 1.25rem;
}

.g-why__card--problem .g-why__list {
  background: var(--rose-soft);
}

.g-why__card--solution .g-why__list {
  background: var(--go-soft);
}

.g-why__list li {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 0.875rem;
  align-items: start;
  padding-block: 0.9rem;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.g-why__list li + li {
  border-top: 1px solid rgba(31, 42, 78, 0.08);
}

.g-why__list strong {
  font-weight: 700;
}

.g-why__icon {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.05rem;
  border-radius: 50%;
}

.g-why__icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.g-why__card--problem .g-why__icon {
  background: var(--rose);
  color: #fff;
}

.g-why__card--solution .g-why__icon {
  color: var(--go-deep);
}

.g-why__card--solution .g-why__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Dark band ---------------------------------------------------------------- */

.g-band {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.g-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0.32;
}

.g-band__inner {
  position: relative;
  max-width: 48rem;
  padding-block: 4rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .g-band__inner {
    padding-block: 5.5rem;
  }
}

.g-band__title {
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
}

.g-band__text {
  margin-top: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.g-band__text + .g-band__text {
  margin-top: 0.75rem;
}

.g-band .g-cta-row {
  margin-top: 2rem;
}

.g-band__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.g-band__trust li {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
}

.g-band__trust span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.g-band__trust svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Teal pillars ------------------------------------------------------------- */

.g-made {
  padding-block: 3rem;
  background: var(--nelyra-teal);
  color: #fff;
}

.g-made__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .g-made__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.g-made__item {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 1.125rem;
  align-items: start;
}

.g-made__icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--nelyra-teal-deep);
}

.g-made__icon svg {
  width: 1.625rem;
  height: 1.625rem;
}

.g-made__title {
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.g-made__text {
  margin-top: 0.375rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
}

/* Service row -------------------------------------------------------------- */

.g-service__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .g-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .g-service__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.g-service__item {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.g-service__item svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.g-service__title {
  color: var(--ink);
  font-size: 1.3125rem;
  font-weight: 500;
}

.g-service__text {
  max-width: 18rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Reviews ------------------------------------------------------------------ */

.g-reviews__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 720px) {
  .g-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .g-reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.g-review {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 1.125rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--paper);
}

.g-review__head {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.g-review__head img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.375rem;
  object-fit: cover;
}

.g-review__name {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.g-review__place {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.g-stars {
  display: flex;
  gap: 0.125rem;
  color: var(--star);
}

.g-stars svg {
  width: 1rem;
  height: 1rem;
}

.g-review__title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.g-review__text {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.g-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  color: var(--go-deep);
  font-size: 0.875rem;
  font-weight: 500;
}

.g-review__verified svg {
  width: 1rem;
  height: 1rem;
}

/* Review form (its own section, shown with and without ?ext=1) ------------ */

/* Right after the reviews (extended checkout) the two mist sections read as one. */
html[data-ext] .g-review-write {
  padding-top: 0;
}

.g-review-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .g-review-form {
    padding: 2rem;
  }
}

.g-review-form__title {
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1.2;
}

.g-review-form__rating {
  margin: 0;
  padding: 0;
  border: 0;
}

.g-review-form__label {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Stars run 5→1 in the markup and are shown reversed, so a hovered or checked star lights every lower one. */
.g-review-form__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.g-review-form__stars label {
  padding: 0 0.125rem;
  color: var(--mist-2);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.g-review-form__stars input:checked ~ label,
.g-review-form__stars label:hover,
.g-review-form__stars label:hover ~ label {
  color: var(--star);
}

.g-review-form__stars input:focus-visible + label {
  border-radius: 0.25rem;
  outline: 3px solid var(--nelyra-teal);
  outline-offset: 2px;
}

.g-review-form .field-grid {
  gap: 0.75rem;
}

.g-review-form__message {
  min-height: 7.5rem;
  resize: vertical;
}

.g-review-form .g-btn {
  justify-self: start;
}

.g-review-form__status {
  font-size: 0.9375rem;
  font-weight: 600;
}

.g-review-form__status.is-ok {
  color: var(--go-deep);
}

.g-review-form__status.is-err {
  color: var(--rose);
}

/* FAQ ---------------------------------------------------------------------- */

.g-faq__list {
  max-width: 44rem;
  margin: 2rem auto 0;
}

.g-faq__item {
  border-bottom: 1px solid var(--rule);
}

.g-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.g-faq__q::-webkit-details-marker {
  display: none;
}

.g-faq__q svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  color: var(--ink-2);
  transition: transform 0.2s ease;
}

.g-faq__item[open] .g-faq__q svg {
  transform: rotate(180deg);
}

.g-faq__a {
  padding-bottom: 1.25rem;
  color: var(--ink-2);
  font-size: 0.9875rem;
  line-height: 1.6;
}

/* Legal strip: the last block on the page (no site footer). Below 1024px it
   also clears the sticky order bar. ------------------------------------------ */

.g-legal {
  padding-block: 2rem calc(2rem + 4.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--mist);
}

@media (min-width: 1024px) {
  .g-legal {
    padding-block: 2.25rem 2.5rem;
  }
}

.g-legal__inner {
  display: grid;
  gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.g-legal__inner p {
  max-width: 52rem;
}

.g-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky phone bar --------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(31, 42, 78, 0.08);
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin-inline: auto;
}

.sticky-cta__info {
  flex: 1;
  min-width: 0;
}

.sticky-cta__title {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta__price {
  color: var(--ink-2);
  font-size: 0.75rem;
}

.sticky-cta__price span {
  color: var(--ink);
  font-weight: 700;
}

.page-offer .sticky-cta__button {
  flex: none;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* Purchase notification (only shown once a real order feed drives it) ----- */

.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 0.75rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(100% - 1.5rem, 20rem);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 42, 78, 0.16);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast__image {
  flex: none;
  width: 2.75rem;
  height: 3.25rem;
  object-fit: contain;
}

.toast__who {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.toast__what,
.toast__when {
  color: var(--ink-2);
  font-size: 0.75rem;
}

.toast__when {
  color: var(--go-deep);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .toast {
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

/* Checkout modal and upsell: font and colour alignment only ---------------- */

.cc-modal,
.cc-checkout,
.cc-checkout .field__input,
.cc-checkout .checkout__submit {
  font-family: var(--font-sans);
}

.cc-modal__card {
  border-radius: 1rem;
}

.cc-checkout .checkout__submit,
.cc-checkout .btn--brand {
  min-height: 3.5rem;
  border-radius: 999px;
  background: var(--go);
  font-weight: 700;
}

.cc-checkout .checkout__submit:hover,
.cc-checkout .checkout__submit:focus,
.cc-checkout .btn--brand:hover,
.cc-checkout .btn--brand:focus {
  background: var(--go-deep);
}

.nelyra-upsell {
  --nu-navy: var(--ink);
  --nu-teal: var(--nelyra-teal-deep);
  --nu-cta: var(--go);
  --nu-cta-hover: var(--go-deep);
  --nu-muted: var(--ink-2);
  --nu-line: var(--rule);
  font-family: var(--font-sans);
}

.nelyra-upsell .nu-thanks,
.nelyra-upsell .nu-offer-title,
.nelyra-upsell .nu-product-title,
.nelyra-upsell .nu-modal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .page-offer *,
  .toast {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
