/*
 * GOLF-249 self-serve coach activation — pinned approved prototype composition.
 *
 * Extends the release-locked homepage and the A2 request/coach-login shell on
 * the web side. Phone screens are real app captures (see
 * assets/media-provenance.json), never redrawn imitations of the app.
 * Token values are copied from those sources; nothing here is shared with,
 * or imported by, any production surface.
 */

@font-face { font-family: "Playfair Display"; src: url("/previews/golf-249-self-serve-activation/fonts/PlayfairDisplay.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/previews/golf-249-self-serve-activation/fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/previews/golf-249-self-serve-activation/fonts/DMMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/previews/golf-249-self-serve-activation/fonts/DMMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Homepage / request-access tokens. */
  --ink: #07100b;
  --forest: #102819;
  --forest-deep: #050c08;
  --gold: #c4903a;
  --gold-warm: #d4a84b;
  --cream: #faf6ed;
  --parch: #ede4d0;
  --rule: rgba(250, 246, 237, 0.14);
  --rule-strong: rgba(250, 246, 237, 0.26);
  --field-bg: rgba(250, 246, 237, 0.05);
  --danger: #e8a08a;
  --text-2: rgba(250, 246, 237, 0.78);
  --text-3: rgba(250, 246, 237, 0.62);
  --pad: clamp(18px, 3vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;

  /* App parchment tokens for the mobile sample-recap excerpt (prototype/src/index.css). */
  --app-sheet: #f3eee2;
  --app-sheet-ink: #10251a;
  --app-sheet-mono: #3a4a40;

  color-scheme: dark;
  color: var(--cream);
  background: var(--forest-deep);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-color: rgba(212, 168, 75, 0.5) var(--forest-deep); }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: clip; background: var(--forest-deep); caret-color: var(--gold-warm); line-height: 1.55; }
::selection { background: rgba(212, 168, 75, 0.55); color: var(--ink); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 600; color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-warm); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 16px; background: var(--gold-warm); color: var(--ink); font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: top 160ms var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ course field */

.course {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 12, 8, 0.93) 0%, rgba(5, 12, 8, 0.78) 44%, rgba(5, 12, 8, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 12, 8, 0.1) 40%, #050c08 100%),
    url("/previews/golf-249-self-serve-activation/assets/course-hero.webp") center 40% / cover no-repeat,
    var(--forest-deep);
  transition: opacity 200ms var(--ease);
}
/* Working steps sit on a quieter field so the task leads. */
body:not([data-stage="plan"]) .course {
  background:
    linear-gradient(90deg, rgba(5, 12, 8, 0.94) 0%, rgba(5, 12, 8, 0.82) 50%, rgba(5, 12, 8, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 12, 8, 0.2) 30%, #050c08 100%),
    url("/previews/golf-249-self-serve-activation/assets/course-hero.webp") center 40% / cover no-repeat,
    var(--forest-deep);
}

/* ------------------------------------------------------------ shell */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { flex: 0 0 auto; width: clamp(44px, 4.4vw, 56px); height: auto; display: block; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.36)); }
.brand span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }

.masthead-link,
.quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.masthead-link:hover, .quiet:hover { color: var(--gold-warm); text-decoration-color: currentColor; }
.masthead-link:active, .quiet:active { color: var(--cream); }
.quiet:disabled { opacity: 0.45; cursor: not-allowed; text-decoration-color: transparent; color: var(--text-3); }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; color: var(--gold-warm);
  text-decoration: underline; text-decoration-color: rgba(212, 168, 75, 0.5); text-underline-offset: 4px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.textlink:hover { color: var(--cream); text-decoration-color: currentColor; }
.quiet_strong { color: var(--gold-warm); text-decoration-color: rgba(212, 168, 75, 0.45); }

/* Journey marker: a quiet editorial line, not a numbered stepper. */
.journey { padding: 10px 0 0; }
.journey ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; row-gap: 4px; }
.journey-step { display: flex; align-items: center; }
.journey-step + .journey-step::before { content: ""; width: clamp(14px, 2.2vw, 30px); height: 1px; margin: 0 12px; background: var(--rule-strong); }
.journey-label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250, 246, 237, 0.56);
  text-decoration: none;
}
.journey-step[data-status="done"] .journey-label { color: var(--text-2); }
.journey-step[data-status="done"] button.journey-label { cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
.journey-step[data-status="done"] button.journey-label:hover { color: var(--gold-warm); text-decoration-color: currentColor; }
.journey-step[data-status="current"] .journey-label { color: var(--gold-warm); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }

/* ------------------------------------------------------------ layout */

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "primary companion" "after companion";
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 0;
  align-items: start;
  padding: clamp(18px, 3vh, 40px) 0 clamp(40px, 6vw, 72px);
}
.primary { grid-area: primary; max-width: 38rem; min-width: 0; }
.companion { grid-area: companion; min-width: 0; position: sticky; top: 24px; justify-self: end; width: 100%; }
.companion[data-kind="sample"], .companion[data-kind="device"] { display: flex; justify-content: center; }

.primary.is-entering > .stage { animation: rise 180ms var(--ease) both; }
@keyframes rise { from { opacity: 0.35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.foot {
  padding: 18px 0 30px;
  font-size: 0.86rem;
  color: rgba(250, 246, 237, 0.62);
}

/* ------------------------------------------------------------ type */

.legend {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-warm);
}
.display {
  max-width: 13ch;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.1vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--cream);
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.display_close { max-width: 14ch; font-size: clamp(2.3rem, 3.9vw, 3.5rem); margin-bottom: 16px; }
.title {
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.lede { max-width: 34rem; margin-top: 16px; color: var(--text-2); font-size: clamp(1rem, 1.16vw, 1.14rem); line-height: 1.62; }
.body { max-width: 36rem; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.body_tight { margin-bottom: 10px; }
.helper {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.74);
}

/* ------------------------------------------------------------ offer */

.notice {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  background: rgba(212, 168, 75, 0.08);
  font-size: 0.95rem;
}
.offer {
  margin-top: clamp(20px, 2.8vh, 32px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(212, 168, 75, 0.22);
  background: rgba(6, 16, 10, 0.72);
}
.offer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 16px; }
.offer-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }

.intervals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.interval {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 96px;
  padding: 14px 16px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.interval input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.interval::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 237, 0.5);
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.interval:hover { border-color: rgba(250, 246, 237, 0.42); }
.interval:has(input:checked) { border-color: var(--gold-warm); box-shadow: inset 0 0 0 1px var(--gold-warm); background: rgba(212, 168, 75, 0.08); }
.interval:has(input:checked)::after { border-color: var(--gold-warm); background: var(--gold-warm); box-shadow: inset 0 0 0 3px var(--ink); }
.interval:has(input:focus-visible) { outline: 2px solid var(--gold-warm); outline-offset: 3px; }
.interval:has(input:disabled) { cursor: not-allowed; opacity: 0.62; }
.interval:has(input:disabled) input { cursor: not-allowed; }
.interval-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.interval-price { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.2; color: var(--cream); }
.interval-note { font-size: 0.84rem; line-height: 1.4; color: var(--text-3); }

.offer-total { margin-top: 14px; font-size: 1rem; color: var(--text-2); }
.offer-total strong { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.offer-keeps { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.offer-keeps li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; line-height: 1.45; color: var(--text-2); }

/* ------------------------------------------------------------ actions */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
/* The Membership helper always sits on its own line under the action, whatever its length. */
.offer .actions .helper { flex-basis: 100%; }
.cta {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 30px;
  border: 1px solid var(--gold);
  background: rgba(5, 12, 8, 0.28);
  color: var(--gold-warm);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), filter 160ms var(--ease);
}
.cta:hover { background: rgba(196, 144, 58, 0.16); color: var(--cream); }
.cta:active { transform: translateY(1px); }
/* clip-path swallows outlines; ring from the inside instead (homepage pattern). */
.cta:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--cream); }
.cta:not(.cta_gold) { clip-path: none; border-radius: 2px; }
.cta:not(.cta_gold):focus-visible { outline: 2px solid var(--gold-warm); outline-offset: 3px; box-shadow: none; }
.cta_gold {
  color: var(--ink);
  background: linear-gradient(145deg, #d4a84b, #c4903a);
  background-color: #cc9c42;
  border-color: rgba(250, 246, 237, 0.22);
  font-weight: 500;
}
.cta_gold:hover { color: var(--ink); background: linear-gradient(145deg, #dcb35a, #c99640); transform: translateY(-1px); }
.cta_gold:active { transform: translateY(0); filter: brightness(0.96); }
.cta_gold:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.cta[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; filter: saturate(0.7); }
.cta[aria-disabled="true"]:hover { background: linear-gradient(145deg, #d4a84b, #c4903a); }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(7, 16, 11, 0.25); border-top-color: var(--ink);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.secondary { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 18px; }

/* ------------------------------------------------------------ panels + fields */

.stage_panel .body { margin-bottom: 22px; }
.panel {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--rule);
  background: rgba(8, 20, 13, 0.78);
}
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 500; color: var(--cream); }
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* never below 16px: prevents iOS zoom-on-focus */
  line-height: 1.5;
  color: var(--cream);
  background: var(--field-bg);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field-input:hover { border-color: rgba(250, 246, 237, 0.4); }
.field-input:focus-visible { outline: none; border-color: var(--gold-warm); box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.22); }
.field-optional { margin-left: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.field-control { position: relative; display: block; }
.field-mark {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 500;
  color: var(--danger);
  pointer-events: none;
}
.field-control:has(.field-mark) .field-input { padding-right: 36px; }
.field-hint { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.45; color: var(--text-3); }
.field-error { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--danger); }
.field-error::before, .alert::before { content: "! "; font-family: var(--mono); font-weight: 500; color: var(--danger); }
.field[data-invalid="true"] .field-input { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
  background: rgba(232, 160, 138, 0.08);
  color: var(--cream);
  font-size: 0.94rem;
}
.alert_action::before { content: none; }
.alert_action p { margin-bottom: 4px; }
.alert_action p::before { content: "! "; font-family: var(--mono); font-weight: 500; color: var(--danger); }
.alert:focus-visible { outline: 2px solid var(--gold-warm); outline-offset: 2px; }

/* Checkout */
.order { margin: 0; }
.order-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.order-row dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.order-row dd { margin: 0; text-align: right; font-size: 0.98rem; color: var(--cream); }
.order-row_total { border-bottom: 0; padding-top: 16px; }
.order-row_total dd { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.paydemo {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(250, 246, 237, 0.34);
}
.paydemo-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.paydemo-body { font-size: 0.92rem; line-height: 1.5; color: var(--text-2); }
.check { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; cursor: pointer; padding-top: 4px; }
.check input {
  appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1px solid rgba(250, 246, 237, 0.5);
  border-radius: 3px;
  background: var(--field-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.check input::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 140ms var(--ease); }
.check input:checked { background: var(--gold-warm); border-color: var(--gold-warm); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:hover { border-color: var(--gold-warm); }
.check input:disabled { opacity: 0.6; cursor: not-allowed; }
.check-text { font-size: 1rem; line-height: 1.4; color: var(--cream); }
.check-text small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* Get the iPhone app */
.steps { margin: 0; padding: 0 0 0 1.2em; }
.store-placeholder {
  display: inline-flex; align-items: center; min-height: 44px; margin: 16px 0 0; padding: 0 16px;
  border: 1px dashed rgba(250, 246, 237, 0.4); border-radius: 10px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.legal-accept { margin-top: 4px; }
/* The terms line carries its own outline when it is the missing piece. */
.check_boxed { position: relative; padding: 10px 40px 10px 12px; border: 1px solid transparent; border-radius: 2px; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.legal-accept[data-invalid="true"] .check_boxed { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field-mark_inline { right: 14px; }
.field-input_code { max-width: 12rem; font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.4em; }
.steps li { padding: 6px 0 6px 4px; color: var(--text-2); line-height: 1.5; }
.steps li::marker { font-family: var(--mono); font-size: 0.8em; color: var(--gold-warm); }

/* Mobile-only decision block: hidden where the phone and both interval cards already show. */
.offer-pick, .offer-alt { display: none; }

/* ------------------------------------------------------------ membership summary */

.summary {
  container-type: inline-size;
  padding: 24px 24px 22px;
  border: 1px solid rgba(212, 168, 75, 0.22);
  background: rgba(6, 16, 10, 0.8);
}
.summary .legend { margin-bottom: 8px; }
.summary-list { margin: 0; }
.summary-row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.summary-row dd { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--cream); overflow-wrap: anywhere; }
.summary-price { white-space: nowrap; display: block; margin-top: 2px; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.summary .quiet { margin-top: 4px; }
@container (max-width: 20rem) {
  .summary-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .summary-price { display: block; margin: 2px 0 0; }
}

/* ------------------------------------------------------------ the device */

.device { margin: 0; width: max(260px, min(clamp(280px, 25vw, 336px), calc((100vh - 200px) * 0.462))); }
.device-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 390 / 844;
  overflow: clip;
  border-radius: 38px;
  border: 8px solid #10150f;
  outline: 1px solid rgba(212, 168, 75, 0.28);
  outline-offset: 0;
  box-shadow: 0 40px 64px -28px rgba(0, 0, 0, 0.72), 0 16px 32px -12px rgba(0, 0, 0, 0.5);
}
.device-caption { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 246, 237, 0.74); }
@keyframes pulse { 0% { transform: scale(0.96); opacity: 0.9; } 100% { transform: scale(1.12); opacity: 0; } }
.device_sample .device-screen { overflow: hidden; }

/* Membership story: one real frame per step, slow cross-fade, one caption under the phone. */
.story-screen { position: relative; background: #0c1711; }
.story-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 1200ms ease-in-out;
}
.story-frame.is-active { opacity: 1; }
.story-caption { margin-top: 16px; min-height: 5rem; text-align: center; transition: opacity 700ms ease-in-out; }
.story-caption.is-changing { opacity: 0; transition-duration: 450ms; }
.story-title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--cream); }
.story-sub { margin: 4px auto 0; max-width: 26ch; font-size: 0.92rem; line-height: 1.45; color: var(--text-2); }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.story-dots { display: flex; }
.story-dot {
  display: grid; place-items: center; min-width: 32px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem; color: rgba(250, 246, 237, 0.5);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.story-dot:hover { color: var(--cream); }
.story-dot[aria-pressed="true"] { color: var(--gold-warm); text-decoration-color: var(--gold); }
.demo-toggle {
  min-height: 44px; padding: 0 0 0 12px; margin-left: 6px; border: 0; border-left: 1px solid var(--rule-strong); background: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
}
.demo-toggle:hover { color: var(--cream); }
.device_sample .device-caption { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .story-frame, .story-caption { transition: none; } }
/* Wide screens: the caption sits beside the phone so the whole story fits the first viewport. */
@media (min-width: 1100px) {
  body[data-stage="plan"] .layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 560px); column-gap: clamp(32px, 4vw, 64px); }
  .device.story {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    grid-template-areas: "caption screen" "caption controls" "caption note";
    column-gap: 28px;
    align-items: center;
  }
  .story .story-screen { grid-area: screen; width: max(260px, min(clamp(280px, 25vw, 320px), calc((100vh - 250px) * 0.462))); }
  .story .story-caption { grid-area: caption; align-self: center; margin: 0; min-height: 7rem; text-align: left; }
  .story .story-sub { margin-left: 0; }
  .story .story-controls { grid-area: controls; }
  .story .device-caption { grid-area: note; }
}

/* Go teach: a large close-up of the top of Today, fading out below. Link geometry is
   in the screenshot's own coordinates (923x2000): Walkthrough sits at x 44-203, y 386-413. */
.companion[data-kind="device"] { justify-content: flex-end; }
.gt { margin: 0; width: min(100%, 560px); }
@media (min-width: 961px) { body[data-stage="iphone"] .layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 560px); } }
.gt-crop {
  position: relative;
  height: clamp(320px, 50vh, 470px);
  overflow: hidden;
  border-radius: 44px 44px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.gt-phone {
  position: relative;
  border: 9px solid #10150f;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  outline: 1px solid rgba(212, 168, 75, 0.28);
  overflow: hidden;
  background: #06160c;
}
/* Crop off the empty status band so Today starts near the top of the frame. */
.gt-phone img { display: block; width: 100%; height: auto; margin-top: -4.5%; }
.gt-pointer { position: absolute; top: 18.3%; pointer-events: none; }
.gt-pointer { left: 23.9%; right: 6%; height: 0; }
/* A thin outline around Walkthrough; the pointer line leaves from its right edge. */
.gt-box {
  position: absolute; left: 3%; width: 20.9%; top: 18.35%; height: 3.4%; transform: translateY(-50%);
  border: 2.5px solid #e8c877; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(232, 200, 119, 0.14), 0 0 22px rgba(232, 200, 119, 0.45);
  animation: gt-pulse 2400ms ease-in-out infinite;
}
@keyframes gt-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 200, 119, 0.14), 0 0 22px rgba(232, 200, 119, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232, 200, 119, 0.08), 0 0 30px rgba(232, 200, 119, 0.6); }
}
@media (prefers-reduced-motion: reduce) { .gt-box { animation: none; } }
.gt-line { position: absolute; left: 0; right: 42%; top: -1px; height: 2px; background: linear-gradient(90deg, #e8c877, rgba(232, 200, 119, 0.55)); }
.gt-label { position: absolute; right: 0; top: 0; transform: translateY(-50%); font-family: var(--mono); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #e8c877; white-space: nowrap; text-shadow: 0 0 14px rgba(232, 200, 119, 0.35); }
@media (max-width: 960px) { .gt { margin: 0 auto; } }
@media (max-width: 640px) { .gt-line { right: 50%; } .gt-label { font-size: 0.74rem; } }

/* ------------------------------------------------------------ prototype controls (not product UI) */

.proto {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #ecebe6;
}
.proto-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed rgba(236, 235, 230, 0.55);
  border-radius: 6px;
  background: #242522;
  color: #ecebe6;
  font-size: 0.8rem;
  cursor: pointer;
}
.proto-toggle:hover { background: #2f302c; }
.proto-toggle[aria-expanded="true"] { border-style: solid; }
.proto-panel {
  width: min(310px, calc(100vw - 32px));
  max-height: calc(100vh - 90px);
  overflow: auto;
  padding: 14px;
  border: 1px dashed rgba(236, 235, 230, 0.55);
  border-radius: 8px;
  background: #242522;
  font-size: 0.84rem;
}
.proto-panel[hidden] { display: none; }
.proto-title { font-weight: 600; margin-bottom: 4px; }
.proto-where { color: #c9c8c1; margin-bottom: 10px; }
.proto-group { margin: 0 0 10px; padding: 8px 10px 10px; border: 1px solid rgba(236, 235, 230, 0.2); border-radius: 6px; }
.proto-group legend { padding: 0 4px; font-size: 0.76rem; color: #c9c8c1; }
.proto-group label { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.proto-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.proto-jump, .proto-reset {
  min-height: 36px; padding: 0 10px; border: 1px solid rgba(236, 235, 230, 0.35); border-radius: 5px;
  background: #30312d; color: #ecebe6; font: inherit; font-size: 0.8rem; cursor: pointer;
}
.proto-jump:hover, .proto-reset:hover { background: #3b3c37; }
.proto-note { margin: 0 0 10px; color: #c9c8c1; font-size: 0.78rem; overflow-wrap: anywhere; }
.proto-reset { width: 100%; min-height: 44px; }
.proto :focus-visible { outline: 2px solid #ecebe6; outline-offset: 2px; }
html.is-capture .proto { display: none; }

.noscript { position: relative; z-index: 2; padding: 20px var(--pad); color: var(--cream); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "primary" "companion" "after"; row-gap: 32px; }
  .primary { max-width: 40rem; }
  .companion { position: static; justify-self: stretch; }
  .summary { padding: 14px 16px; }
  .summary .legend { margin-bottom: 2px; }
  .summary-row { padding: 8px 0; grid-template-columns: 4.6rem minmax(0, 1fr); }
  .summary-price { display: inline; margin: 0 0 0 8px; font-size: 1.05rem; }
}
/* Narrow or zoomed text: stack the summary label above the plan so words and price stay whole. */
@container (max-width: 15rem) {
  .summary-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .summary-price { display: block; margin: 2px 0 0; }
}

@media (max-width: 640px) {
  :root { --pad: clamp(16px, 5vw, 28px); }
  .course,
  body:not([data-stage="plan"]) .course {
    background:
      linear-gradient(180deg, rgba(5, 12, 8, 0.5) 0%, rgba(5, 12, 8, 0.84) 38%, rgba(5, 12, 8, 0.97) 70%),
      url("/previews/golf-249-self-serve-activation/assets/course-hero.webp") 22% 40% / cover no-repeat,
      var(--forest-deep);
  }
  .masthead { padding-top: 16px; }
  .brand span { display: none; }
  .journey { padding-top: 2px; }
  .journey-step { display: none; }
  .journey-step[data-status="current"], .journey-step[data-status="current"] + .journey-step { display: flex; }
  .journey-step[data-status="current"]::before { content: none; }
  .layout { padding-top: 18px; }
  .display { font-size: clamp(2.3rem, 10.4vw, 2.9rem); }

  /* First viewport at 390x844: the lede, then the selected price, action and the best-value alternate. */
  .offer { display: flex; flex-direction: column; margin-top: 14px; padding: 16px 16px 18px; }
  .offer-head { order: 0; margin-bottom: 4px; }
  .offer-pick { order: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .offer-pick-label { flex-basis: 100%; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-warm); }
  .offer-pick strong { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1.2; }
  .offer-pick-note { font-size: 0.88rem; line-height: 1.35; color: var(--text-2); }
  .offer-alt { order: 2; display: block; margin-top: 2px; font-size: 0.92rem; color: var(--text-2); }
  .offer .actions { order: 3; margin-top: 10px; }
  .offer .intervals { order: 4; margin-top: 22px; }
  .offer .offer-total { order: 5; }
  .offer .field-hint { order: 5; }
  .offer .offer-keeps { order: 6; }
  .title { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .intervals { grid-template-columns: minmax(0, 1fr); }
  .interval { min-height: 0; }
  .actions .cta { width: 100%; }
  .device { width: min(100%, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .cta_gold:hover { transform: none; }
}

@media (forced-colors: active) {
  .cta, .panel, .offer, .summary, .interval, .field-input, .device-screen { border: 1px solid CanvasText; }
  .interval:has(input:checked) { outline: 3px solid Highlight; }
}

/* Same composition; links now open the existing legal documents. */
.check-text a { color: inherit; text-underline-offset: .18em; }
:disabled { cursor: wait; }
/* An unavailable offer is a non-action, not a pending one. */
.cta[aria-disabled="true"]:disabled { cursor: not-allowed; }

/* Status updates keep their live region and focused control in place. */
[data-status-message]:empty { padding: 0; margin: 0; border: 0; min-height: 0; }
[data-status-stage] [aria-disabled="true"] { cursor: wait; opacity: .7; }

/* GOLF-249 Annual microphone: one contained address section inside the incumbent Checkout panel.
   Incumbent tokens, legend, field, hint, error and focus treatments only; State and ZIP share a row
   only while both stay whole, and wrap at narrow widths or enlarged text. */
.ship { margin: 22px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); min-width: 0; }
.ship-legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.ship-note { clear: both; margin: 0 0 16px; }
.ship-pair { display: flex; flex-wrap: wrap; gap: 0 14px; }
.ship-pair > .field { flex: 1 1 10rem; min-width: 0; }
.ship-country { margin: 0; font-size: 0.95rem; }
