/* ===========================================================================
   GolfWiz — Get 10% off (affiliate redemption)   /get-golfwiz-ai?ref=CODE
   Built from Figma: Landing Page GolfWiz / oven
     desktop  2161:12   1905 wide (1200 content)
     mobile   2167:12   375 wide

   Every rule is scoped under #gw-get so nothing here can leak into the
   Elementor header/footer that get_header()/get_footer() render around it.
   The standalone file styled `:root`, `body` and a bare `*` reset; all three
   are re-homed on #gw-get below.

   Inter is NOT loaded here. styles/all.css self-hosts inter-v20-latin 400-900
   (see fonts/), so the Google Fonts request from the standalone HTML is gone.

   Breakpoints follow the website design system:
     mobile   < 640px    1 col, 20px gutter
     tablet   >= 640px   stacked steps, 32px gutter   (no Figma frame; derived)
     desktop  >= 1024px  copy | visual rows, 48px gutter

   Step 1 swaps on input, not only width: QR cards need a desktop with a
   mouse (you scan them with your phone); anything touch gets store buttons.

   ?ref=CODE fills the code everywhere it is shown. No ref -> GOLF10.
   =========================================================================== */

#gw-get {
  /* colour — one job per hue */
  --primary:        #1A8AFF;
  --primary-press:  #1473D6;
  --bg:             #FFFFFF;
  --surface:        #FFFFFF;   /* code chip, store buttons, QR cards */
  --surface-hover:  #FAFAFB;
  --border:         #E5E7EB;
  --border-hover:   #CBD5E1;
  --text:           #161A1A;
  --text-secondary: #5B616B;
  --text-body:      #374151;   /* loose editor copy in .gw-page-extra */
  --ink-dark:       #0F1115;

  /* app mock (dark, matches the GolfWiz app) */
  --app-bg:      #1C1C1E;
  --app-line:    #3A3A3C;
  --app-text-2:  #9A9AA0;
  --app-text-3:  #C7C7CC;

  --gutter:    20px;
  --container: 1200px;
  --radius-card: 16px;

  /* was `body` in the standalone file */
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#gw-get *, #gw-get *::before, #gw-get *::after { box-sizing: border-box; }

#gw-get img, #gw-get svg { max-width: 100%; }
#gw-get p, #gw-get h1, #gw-get h2, #gw-get h3 { margin: 0; }

#gw-get .wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- buttons ------------------------------------------------------------ */
#gw-get .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font: 700 16px/20px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
#gw-get .btn:hover { background: var(--primary-press); color: #fff; }
#gw-get .btn:active { transform: translateY(1px); }
#gw-get .btn:focus-visible { outline: 3px solid rgba(26,138,255,.4); outline-offset: 2px; }
#gw-get .btn svg { width: 20px; height: 20px; flex: none; display: block; }

/* always white-on-ink, so the colour is pinned rather than var(--text) */
#gw-get .btn--light { background: #fff; color: #161A1A; }
#gw-get .btn--light:hover { background: #F3F4F6; color: #161A1A; }

/* show/hide by context */
#gw-get .only-narrow { display: inline; }
#gw-get .only-wide   { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
#gw-get .hero {
  padding-block: 40px 48px;
  text-align: center;
}
#gw-get .hero__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

#gw-get .h1 {
  font-size: 32px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -0.96px;
}
#gw-get .lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 25px;
  font-weight: 500;
  color: var(--text-secondary);
}

#gw-get .code-chip {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-card);
}
#gw-get .code-chip__label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
#gw-get .code-chip__code {
  margin-top: 2px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  word-break: break-all;
}
#gw-get .code-chip .btn { width: 100%; }
#gw-get .btn[data-copied] { background: var(--ink-dark); }

/* =========================================================================
   STEPS
   ========================================================================= */
#gw-get .steps { padding-block: 0 64px; }
#gw-get .steps__inner { display: flex; flex-direction: column; gap: 48px; }

#gw-get .steps__head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
#gw-get .h2 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
#gw-get .steps__sub { font-size: 16px; line-height: 25px; font-weight: 500; color: var(--text-secondary); }

#gw-get .step { display: flex; flex-direction: column; gap: 24px; }
#gw-get .step__copy { display: flex; flex-direction: column; gap: 12px; }
#gw-get .step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
}
#gw-get .h3 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
#gw-get .p { font-size: 16px; line-height: 25px; color: var(--text-secondary); }

/* step 1 — store buttons (touch) ----------------------------------------- */
#gw-get .store-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
#gw-get .store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 59px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  font-size: 17px;
  line-height: 27px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
#gw-get .store-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); color: var(--text); }
#gw-get .store-btn:focus-visible { outline: 3px solid rgba(26,138,255,.4); outline-offset: 2px; }
#gw-get .store-btn svg { width: 20px; height: 20px; flex: none; }

/* step 1 — QR cards (desktop with a mouse) ------------------------------- */
#gw-get .qr-cards { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#gw-get .qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}
#gw-get .qr-card__plat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 27px;
  font-weight: 700;
}
#gw-get .qr-card__plat svg { width: 18px; height: 18px; }
#gw-get .qr-frame {
  position: relative;
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-block: 22px 24px;
  padding: 14px;
}
#gw-get .qr-frame::before, #gw-get .qr-frame::after,
#gw-get .qr-frame > i::before, #gw-get .qr-frame > i::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--primary);
}
#gw-get .qr-frame::before        { top: 0;    left: 0;  border-top-width: 3px; border-left-width: 3px;  border-top-left-radius: 6px; }
#gw-get .qr-frame::after         { top: 0;    right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
#gw-get .qr-frame > i::before    { bottom: 0; left: 0;  border-bottom-width: 3px; border-left-width: 3px;  border-bottom-left-radius: 6px; }
#gw-get .qr-frame > i::after     { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }
#gw-get .qr-frame svg { display: block; width: 100%; height: 100%; }
#gw-get .qr-card__scan  { font-size: 16px; line-height: 25.6px; font-weight: 700; }
#gw-get .qr-card__opens { font-size: 14px; line-height: 22.4px; color: var(--text-secondary); }
#gw-get .qr-card__direct {
  margin-top: 14px;
  font-size: 13px;
  line-height: 20.8px;
  font-weight: 600;
  color: var(--primary-press);
  text-decoration: none;
}
#gw-get .qr-card__direct:hover { text-decoration: underline; }

/* step 2 — app mocks (decorative) ----------------------------------------- */
#gw-get .app-mocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#gw-get .mock {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 268px;
  max-width: 100%;
  height: 434px;
  padding: 18px 16px 16px;
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 28px;
  color: #fff;
  text-align: left;
  user-select: none;
}
#gw-get .mock__nav { display: flex; align-items: center; gap: 10px; flex: none; }
#gw-get .mock__back { font-size: 14px; line-height: 1; color: #fff; }
#gw-get .mock__bar  { flex: 1; height: 3px; border-radius: 2px; background: var(--app-line); overflow: hidden; }
#gw-get .mock__bar i { display: block; height: 100%; background: var(--primary); }

#gw-get .mock__body { flex: 1 1 auto; margin-top: 16px; }
#gw-get .mock__title { font-size: 15px; line-height: 20px; font-weight: 700; }
#gw-get .mock__hint  { margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--app-text-2); }
#gw-get .mock__rows  { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#gw-get .mock__row {
  display: flex;
  align-items: center;
  flex: none;
  height: 30px;
  padding-left: 12px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--app-text-3);
  white-space: nowrap;
}
#gw-get .mock__input {
  display: flex;
  align-items: center;
  height: 38px;
  margin-top: 12px;
  padding-inline: 12px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
}
#gw-get .mock__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 38px;
  margin-top: 12px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

/* step 3 — the benefit, said once, big ------------------------------------ */
#gw-get .discount-big {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* =========================================================================
   CTA BAND
   ========================================================================= */
#gw-get .cta { padding-block: 0 64px; }
#gw-get .cta-band {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px;
  background: var(--ink-dark);
  border-radius: var(--radius-card);
  color: #fff;
}
#gw-get .cta-band__eyebrow { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--primary); }
#gw-get .cta-band__title {
  margin-top: 8px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}
#gw-get .cta-band__btns { display: flex; flex-direction: column; gap: 12px; }
#gw-get .cta-band__btns .btn { min-height: 52px; padding: 16px 28px; }

/* =========================================================================
   TABLET  >= 640px   — no Figma frame for this; derived from the two frames
   ========================================================================= */
@media (min-width: 640px) {
  #gw-get { --gutter: 32px; }

  #gw-get .only-narrow { display: none; }
  #gw-get .only-wide   { display: inline; }

  #gw-get .hero { padding-block: 56px 64px; }
  #gw-get .hero__inner { gap: 16px; }
  #gw-get .h1 { font-size: 40px; line-height: 46px; letter-spacing: -1.2px; }
  #gw-get .lead { font-size: 18px; line-height: 28px; }

  #gw-get .code-chip {
    width: auto;
    min-width: min(100%, 440px);   /* floor, not a cap — a long ?ref code still grows it */
    margin-top: 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 14px 14px 14px 28px;
    text-align: left;
  }
  #gw-get .code-chip .btn { width: auto; }

  #gw-get .steps { padding-bottom: 80px; }
  #gw-get .steps__inner { gap: 56px; }
  #gw-get .steps__head { gap: 12px; }
  #gw-get .h2 { font-size: 32px; line-height: 38px; letter-spacing: -0.64px; }
  #gw-get .steps__sub { font-size: 18px; line-height: 28px; }

  #gw-get .step__copy { max-width: 560px; }
  #gw-get .h3 { font-size: 26px; line-height: 31px; letter-spacing: -0.4px; }
  #gw-get .p { font-size: 18px; line-height: 28px; }

  #gw-get .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
  #gw-get .app-mocks { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 24px; }
  #gw-get .discount-big { font-size: 104px; }

  #gw-get .cta { padding-bottom: 80px; }
  #gw-get .cta-band { padding: 48px; }
  #gw-get .cta-band__title { font-size: 32px; line-height: 38px; letter-spacing: -0.64px; }
  #gw-get .cta-band__btns { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

/* =========================================================================
   DESKTOP  >= 1024px
   ========================================================================= */
@media (min-width: 1024px) {
  #gw-get { --gutter: 48px; }

  #gw-get .hero { padding-block: 72px; }
  #gw-get .h1 { font-size: 56px; line-height: 58px; letter-spacing: -1.68px; }

  #gw-get .steps { padding-bottom: 96px; }
  #gw-get .steps__inner { gap: 64px; }
  #gw-get .h2 { font-size: 40px; line-height: 44px; letter-spacing: -0.8px; }

  #gw-get .step {
    display: grid;
    grid-template-columns: minmax(0, 432fr) minmax(0, 720fr);
    align-items: center;
    gap: 48px;
  }
  #gw-get .step__copy { gap: 16px; }
  #gw-get .step__num { width: 44px; height: 44px; font-size: 20px; line-height: 24px; }
  #gw-get .h3 { font-size: 30px; line-height: 35px; letter-spacing: -0.45px; }

  /* each visual keeps its natural size and sits centred in the 720fr column,
     so the shortfall against the QR cards splits evenly instead of piling up right */
  #gw-get .app-mocks { justify-content: center; gap: clamp(16px, 3vw, 40px); }
  #gw-get .mock { flex: 0 1 268px; }
  #gw-get .discount-big { font-size: 128px; text-align: center; }

  #gw-get .cta { padding-bottom: 96px; }
  #gw-get .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 56px 64px;
  }
  #gw-get .cta-band__title { font-size: 40px; line-height: 44px; letter-spacing: -0.8px; }
  #gw-get .cta-band__btns { flex-wrap: nowrap; flex: none; }
}

/* QR only where scanning makes sense: wide screen AND a real mouse */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #gw-get .qr-cards { display: grid; }
  #gw-get .store-list { display: none; }
  #gw-get .copy-touch { display: none; }
}
@media not all and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #gw-get .copy-qr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #gw-get, #gw-get * { transition: none !important; }
}

/* ---------------------------------------------------------------------------
   Editor content region - template-parts/editor-content.php

   Whatever is added to this page in wp-admin renders under the CTA inside
   .gw-page-extra. ACF blocks (.hb-*) and Elementor sections bring their own
   containers, so they are left alone - only loose text typed straight into
   the editor gets a readable column here.
   --------------------------------------------------------------------------- */
#gw-get .gw-page-extra { width: 100%; margin-bottom: clamp(28px, 4.5vw, 48px); }
#gw-get .gw-page-extra > h1,
#gw-get .gw-page-extra > h2,
#gw-get .gw-page-extra > h3,
#gw-get .gw-page-extra > h4,
#gw-get .gw-page-extra > p,
#gw-get .gw-page-extra > ul,
#gw-get .gw-page-extra > ol,
#gw-get .gw-page-extra > blockquote,
#gw-get .gw-page-extra > figure,
#gw-get .gw-page-extra > table {
  width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 20px;
  color: var(--text-body); font-size: clamp(14.5px, 1.9vw, 15.5px); line-height: 1.62;
}
#gw-get .gw-page-extra > h2 { margin: clamp(24px, 3.4vw, 34px) auto clamp(10px, 1.8vw, 14px); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.18; font-weight: 800; color: var(--text); }
#gw-get .gw-page-extra > h3 { margin: clamp(18px, 2.6vw, 24px) auto 8px; font-size: clamp(17px, 2.1vw, 19px); line-height: 1.25; font-weight: 800; color: var(--text); }
#gw-get .gw-page-extra > p,
#gw-get .gw-page-extra > ul,
#gw-get .gw-page-extra > ol { margin-top: 0; margin-bottom: clamp(12px, 1.8vw, 16px); }
#gw-get .gw-page-extra > ul li,
#gw-get .gw-page-extra > ol li { margin-bottom: 8px; }
#gw-get .gw-page-extra > * > a,
#gw-get .gw-page-extra > p > a { color: var(--primary); }
#gw-get .gw-page-extra img { height: auto; }

/* Dark mode: the theme sets data-theme="dark" on <html>. Same palette as
   refer-and-earn.css. The app mocks are dark already and stay as they are;
   .btn--light stays white on purpose, it sits on the dark CTA band. */
[data-theme="dark"] #gw-get {
  --bg:             #0F1115;
  --surface:        #171A20;
  --surface-hover:  #1C2027;
  --border:         rgba(255, 255, 255, 0.12);
  --border-hover:   rgba(255, 255, 255, 0.24);
  --text:           #F3F4F6;
  --text-secondary: #9AA1AB;
  --text-body:      #C9CED6;
  /* the always-dark band needs lifting off the dark page */
  --ink-dark:       #1C2027;
}
[data-theme="dark"] #gw-get .qr-card { box-shadow: none; }
/* QR modules are #161A1A - keep them on white so phones can still scan. */
[data-theme="dark"] #gw-get .qr-frame svg { background: #fff; padding: 8px; border-radius: 6px; }
