/* ============================================================
   Beginner's guide (/nz/beginners-guide/). Alternating light and
   dark sections in the guide's own palette, so the page feels like
   the product. Every token is scoped to .gd: the guide's --ink and
   --lime differ from the site's, and the header and footer sit
   outside .gd and keep the site's.

   Lime and amber are never text on a light section (they fail
   contrast). Use --accent, which each section sets for itself.
   ============================================================ */

.gd, .gd-lightbox {
  --night: #0f110b;
  --night-2: #1b1e14;
  --on-night: #f0efec;
  --on-night-2: #b9bcae;
  --lime: #c9de39;
  --amber: #e0a106;
  --paper: #f6f5ef;
  --paper-2: #ebe9df;
  --ink: #0f110b;
  --ink-2: #4a4d42;
  --olive: #5a6620;
  --amber-ink: #8a5f00;
  --rule: #c9c7bb;
  --font-guide: "Space Mono", ui-monospace, monospace;
}

.gd .wrap { padding-inline: 16px; }
@media (min-width: 768px) { .gd .wrap { padding-inline: 24px; } }

.gd h1, .gd h2, .gd h3 {
  margin: 0;
  font-family: var(--font-guide);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.15;
}
.gd h1 { font-size: clamp(36px, 6vw, 58px); }
.gd h2 { font-size: clamp(27px, 4vw, 40px); }
.gd h3 { font-size: 17px; line-height: 1.3; }
.gd p { margin: 0; }
.gd .btn { text-decoration: none; }

/* Sections: a full-width colour change, no gradients between them */
.gd-sec { padding: 64px 0; }
@media (min-width: 900px) { .gd-sec { padding: 96px 0; } }

.gd-sec--dark, .gd-sec--night2 {
  --accent: var(--lime);
  --text-2: var(--on-night-2);
  --line: rgba(240,239,236,.16);
  --card: var(--night-2);
  background: var(--night);
  color: var(--on-night);
}
.gd-sec--night2 { background: var(--night-2); --card: var(--night); }
.gd-sec--light, .gd-sec--paper2 {
  --accent: var(--olive);
  --text-2: var(--ink-2);
  --line: var(--rule);
  --card: var(--paper-2);
  background: var(--paper);
  color: var(--ink);
}
.gd-sec--paper2 { background: var(--paper-2); --card: var(--paper); }

.gd a:not(.btn) { color: var(--accent); }
.gd p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

/* The shared footer's small print is too dim for AA on this page's darker ground. */
.gd ~ .footer .footer__disclaimer { color: #a7a994; }

.gd-lead { margin-top: 18px !important; max-width: 56ch; font-size: 19px; color: var(--text-2); }
.gd-small { margin-top: 14px !important; font-size: 14px; color: var(--text-2); }
.gd-textlink {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}

/* Hero */
.gd-hero__grid { display: grid; gap: 40px; align-items: center; }
.gd-price { margin-top: 22px !important; font-family: var(--font-guide); font-weight: 700; color: var(--lime); }
.gd-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.gd-cover {
  width: min(70vw, 400px); height: auto; margin-inline: auto;
  transform: rotate(3deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
@media (min-width: 900px) {
  .gd-hero__grid { grid-template-columns: 1.25fr 1fr; }
}

.gd-meta { margin-top: 18px !important; font-family: var(--font-guide); font-weight: 700; font-size: 15px; color: var(--on-night-2); }
.gd-meta span { margin-inline: 8px; color: var(--line); }

/* Club logo marquee: two copies of the list slide left by half their width, so
   the loop is seamless. Spacing is padding, not gap, to keep the halves equal. */
.gd-clubs { margin: -16px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .gd-clubs { margin: -32px 0 96px; } }
.gd-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gd-marquee__track {
  display: flex; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: gd-marquee calc(var(--n) * 2.4s) linear infinite;
}
.gd-marquee:hover .gd-marquee__track { animation-play-state: paused; }
.gd-marquee li { flex: none; padding-right: 28px; }
.gd-marquee img {
  display: block; width: 65px; height: 65px; object-fit: cover; border-radius: 12px;
  /* Multiply drops white logo backgrounds into the paper, so every mark reads dark. */
  filter: grayscale(1) contrast(1.2) brightness(.85); mix-blend-mode: multiply; opacity: .85; transition: opacity .2s;
}
.gd-marquee img:hover { opacity: 1; }
@keyframes gd-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gd-marquee { -webkit-mask-image: none; mask-image: none; }
  .gd-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 16px; padding-inline: 16px; }
  .gd-marquee li { padding: 0; }
  .gd-marquee li[aria-hidden] { display: none; }
}

/* Testimonials */
.gd-quote { margin: 0; padding: 26px 28px; background: var(--card); border-left: 4px solid var(--lime); border-radius: var(--radius-lg); }
.gd-quote svg { display: block; width: 30px; height: 30px; fill: var(--accent); }
.gd-quote blockquote { margin: 12px 0 0; }
.gd-quote blockquote p { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.gd-quote blockquote .gd-quote__pull { margin-bottom: 12px; font-family: var(--font-guide); font-weight: 700; font-size: 20px; line-height: 1.35; color: inherit; }
.gd-quote figcaption { display: flex; flex-direction: column; margin-top: 16px; font-size: 15px; color: var(--text-2); }
.gd-quote figcaption strong { font-weight: 600; color: var(--accent); }

/* Heading and lead, with a testimonial beside them */
.gd-intro { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .gd-intro { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.gd-points {
  display: grid; gap: 28px; margin: 44px 0 0; padding: 32px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.gd-points svg {
  width: 26px; height: 26px; margin-bottom: 12px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.gd-points p { margin-top: 6px; color: var(--text-2); }
@media (min-width: 768px) { .gd-points { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.gd-inside { padding-top: 0; }
.gd-cards { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.gd-card { padding: 20px; background: var(--card); border-radius: var(--radius-md); }
.gd-card p { margin-top: 6px; font-size: 16px; color: var(--text-2); }
@media (min-width: 768px) { .gd-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gd-cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* Contents: reads down the first column, then the second, like the guide's own */
.gd-toc { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.gd-toc li {
  display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center;
  padding: 14px 18px 14px 14px; background: var(--card); border-radius: var(--radius-md);
}
.gd-toc img { width: 80px; height: auto; border-radius: 3px; box-shadow: 0 8px 16px -10px rgba(15,17,11,.6); }
.gd-toc__meta { display: flex; gap: 12px; font-family: var(--font-guide); font-weight: 700; font-size: 14px; color: var(--accent); }
.gd-toc h3 { margin-top: 4px; }
.gd-toc--back { margin-top: 12px; }
.gd-toc--back li { display: block; padding: 18px 20px; }
.gd-toc p:not(.gd-toc__meta) { margin-top: 4px; font-size: 16px; color: var(--text-2); }
@media (min-width: 900px) {
  .gd-toc { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; gap: 12px 14px; }
  .gd-toc.gd-toc--back { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}

/* Page previews: a fanned hand of pages. Each card's place comes from --o (offset
   from the centre), --y (drop along the arc) and --z, set inline. Hovering lifts a
   page to the front and nudges its neighbours aside. Sized from the viewport so all
   six always fit, with no scrolling. */
.gd-pages { overflow-x: clip; }
.gd-fan {
  --card: min(250px, calc((100vw - 72px) / 3.6));
  --step: calc(var(--card) * .5);
  position: relative; height: calc(var(--card) * 1.85);
  margin: 40px auto 0; padding: 0; list-style: none;
}
.gd-fan li {
  position: absolute; top: calc(var(--card) * .14); left: 50%;
  width: var(--card); margin-left: calc(var(--card) / -2);
  z-index: var(--z);
  transform-origin: 50% 100%;
  transform: translateX(calc(var(--o) * var(--step) + var(--push, 0px))) translateY(calc(var(--y) * var(--card))) rotate(calc(var(--o) * 5deg));
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.gd-fan li:hover, .gd-fan li:focus-within {
  z-index: 10;
  transform: translateX(calc(var(--o) * var(--step))) translateY(calc(var(--y) * var(--card) - var(--card) * .1)) rotate(calc(var(--o) * 2deg)) scale(1.1);
}
.gd-fan li:hover ~ li { --push: calc(var(--card) * .16); }
.gd-fan li:has(~ li:hover) { --push: calc(var(--card) * -.16); }
.gd-fan a { position: relative; display: block; color: var(--on-night) !important; text-decoration: none; }
.gd-fan img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.85);
}
.gd-fan span {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px;
  background: rgba(15,17,11,.88); border-radius: var(--radius-sm);
  font-family: var(--font-guide); font-weight: 700; font-size: 12px; text-align: center;
  opacity: 0; transition: opacity .2s;
}
.gd-fan li:hover span, .gd-fan a:focus-visible span { opacity: 1; }
.gd-fan a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { .gd-fan li { transition: none; } }

/* Parents */
.gd-parents { display: grid; gap: 32px; align-items: center; }
.gd-parents .gd-quote { margin-top: 32px; }
.gd-parents > div > p { margin-top: 16px; font-size: 18px; max-width: 56ch; color: var(--text-2); }
.gd-parents img { width: min(70vw, 300px); height: auto; margin-inline: auto; border-radius: var(--radius-sm); box-shadow: 0 16px 34px -18px rgba(15,17,11,.55); }
@media (min-width: 900px) { .gd-parents { grid-template-columns: 1.4fr 1fr; } }

/* The form */
.gd-buy { display: grid; gap: 32px; align-items: start; }
.gd-buy > div:first-child > p:not(.gd-small) { margin-top: 16px; font-size: 18px; color: var(--text-2); }
@media (min-width: 900px) { .gd-buy { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.gd-buyfaq { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.gd-buyfaq dt { font-weight: 600; font-size: 17px; }
.gd-buyfaq dd { margin: 4px 0 18px; color: var(--text-2); }
.gd-buyfaq dd:last-child { margin-bottom: 0; }

.gd-guarantee {
  display: flex; gap: 20px; align-items: center;
  margin-top: 32px; padding: 22px; background: var(--night-2); border-radius: var(--radius-lg);
}
.gd-guarantee img { flex: none; width: 88px; height: 88px; }
.gd-guarantee h3 { font-size: 18px; }
.gd-guarantee p { margin-top: 6px; font-size: 16px; color: var(--text-2); }
@media (max-width: 420px) { .gd-guarantee { flex-direction: column; align-items: flex-start; } }

.gd-panel { padding: 20px; background: var(--night-2); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .gd-panel { padding: 30px; } }

.gf-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.gf-amounts legend { padding: 0; margin-bottom: 10px; font-weight: 500; }
.gf-amounts input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gf-amounts > label {
  flex: 1 0 auto; min-width: 60px; min-height: 46px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-guide); font-weight: 700; cursor: pointer;
}
.gf-amounts input:checked + label { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.gf-amounts input:focus-visible + label { outline: 2px solid var(--on-night); outline-offset: 2px; }
.gf-other { display: none; flex-basis: 100%; }
#amt-other:checked ~ .gf-other { display: block; }
.gf-other > label { display: block; margin-bottom: 6px; font-size: 15px; color: var(--text-2); }
.gf-other__row { display: flex; align-items: center; gap: 10px; }
.gf-other__cur { font-family: var(--font-guide); font-weight: 700; font-size: 36px; line-height: 1; color: var(--lime); }

.gf-field { display: block; margin-bottom: 16px; font-weight: 500; }
.gf-field span { font-weight: 400; color: var(--text-2); }
.gf input[type="email"], .gf input[type="text"],
.gf-resend input[type="email"] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--night); color: var(--on-night);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
}
.gf .gf-other input {
  width: calc(7ch + 30px); margin-top: 0; padding: 8px 14px;
  font-family: var(--font-guide); font-weight: 700; font-size: 22px;
}
.gf input:focus-visible, .gf-resend input:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }

/* Signed in to the web app: the account's email, locked until "Change email". */
.gf input.gf-locked { color: var(--on-night-2); background: var(--night-2); cursor: default; }
.gf-signed { margin: -8px 0 16px !important; font-size: 15px; color: var(--text-2); }
.gf-signed strong { font-weight: 500; color: var(--on-night); word-break: break-all; }
.gf-signed .gd-textlink { font-size: 15px; }

.gf-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 16px; cursor: pointer; }
.gf-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--lime); }

.gf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.gf-submit { width: 100%; }
.gf-submit[disabled] { opacity: .7; cursor: default; transform: none; }

.gd-alert, .gd-notice {
  margin-bottom: 14px !important; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 16px;
}
.gd-alert { color: var(--amber); border: 1px solid var(--amber); }
.gd-notice { color: var(--lime); border: 1px solid var(--lime); }

.gf-pay__sum { margin-bottom: 16px !important; font-family: var(--font-guide); font-weight: 700; }
#guide-payment-element { min-height: 180px; margin-bottom: 16px; }
.gf-pay .gd-textlink { margin-top: 14px; font-size: 15px; }

.gf-resend { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.gf-resend summary { cursor: pointer; color: var(--accent); }
.gf-resend form { margin-top: 14px; }
.gf-resend .gd-notice { margin: 14px 0 0 !important; }
.gf-resend__btn { background: transparent; border: 1px solid var(--line); color: var(--on-night); cursor: pointer; }
.gf-resend__btn[disabled] { opacity: .75; cursor: progress; }

/* Busy button: a small ring before the label while a request is in flight. */
.gf-busy::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: gf-spin .8s linear infinite;
}
@keyframes gf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gf-busy::before { animation-duration: 2.4s; } }

/* About */
.gd-about { display: grid; gap: 18px; }
.gd-about p { max-width: 70ch; font-size: 18px; color: var(--text-2); }
.gd-links { margin-top: 16px !important; }

/* FAQ */
.gd-faq { display: grid; gap: 24px; }
.gd-faq details { border-top: 1px solid var(--line); }
.gd-faq details:last-child { border-bottom: 1px solid var(--line); }
.gd-faq summary { padding: 16px 0; font-weight: 600; font-size: 18px; cursor: pointer; }
.gd-faq details p { padding-bottom: 18px; color: var(--text-2); }
.gd-faq > div { max-width: 820px; }

/* Final CTA */
.gd-final { text-align: center; }
.gd-final .gd-quote { max-width: 680px; margin: 0 auto 64px; text-align: left; }
.gd-final h2 + p { margin: 14px 0 26px; font-size: 18px; color: var(--text-2); }

/* Thank-you page */
.gd-thanks { min-height: 56vh; }
.gd-thanks .btn { margin-top: 28px; }
.gd-thanks h2 { margin-top: 56px; font-size: 22px; }
.gd-next { margin: 14px 0 0; padding: 0; list-style: none; }
.gd-next li { margin-bottom: 8px; }

/* Lightbox */
.gd-lightbox {
  width: min(94vw, 640px); max-height: 94vh; padding: 12px;
  background: var(--night-2); color: var(--on-night);
  border: 0; border-radius: var(--radius-md);
}
.gd-lightbox::backdrop { background: rgba(0,0,0,.82); }
.gd-lightbox img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
.gd-lightbox__cap { margin: 8px 0; text-align: center; font-size: 15px; color: var(--on-night-2); }
.gd-lightbox__nav { display: flex; justify-content: space-between; gap: 8px; }
.gd-lightbox__nav button {
  flex: 1; min-height: 44px; background: transparent; color: var(--on-night);
  border: 1px solid rgba(240,239,236,.25); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; cursor: pointer;
}
