/* ============================================================================
   Home, Goal Picker (Choose Your Path) — ported from site.jsx <PathChooser>
   + <GoalCard> + <FeatureCase> + <ProofChip>. Inline-style values from the
   prototype ported verbatim into scoped .lwgp- classes. Per-goal color/tint
   flow through --gp-color / --gp-tint (set inline per card + panel). Responsive
   is handled by base.css (.lw-pathtabs 3-col @<=980 / 1-col @<=640, .lw-pathcard
   1-col @<=980, .lw-beforeafter 1-col @<=640). Selected state = .lwgp-card--on
   (JS); panels toggle [hidden]. Don't redefine base.css classes.
   ============================================================================ */

.lwgp { background: transparent; scroll-margin-top: 72px; }
.lwgp-wrap { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding: clamp(56px, 8vh, 80px) clamp(20px, 5vw, 32px); }

/* ---- Section head (matches LSectionHead title override titleSize) ----
   (0,3,0) selector so the design's directive-question size actually beats
   base.css's .lw-home .lw-title calm-scale cap (0,2,0). */
.lwgp-head { max-width: 940px; margin-bottom: 30px; }
.lw-home .lwgp-head .lwgp-title { font-size: clamp(46px, 6.2vw, 84px); }
.lwgp-title { font-size: clamp(46px, 6.2vw, 84px); }
.lwgp-em { font-style: italic; color: var(--text-strong); font-weight: 600; }

/* ---- "I want to…" intro + red script instruction ---- */
.lwgp-intro { position: relative; text-align: center; max-width: 780px; margin: 0 auto 24px; }
.lwgp-iwant { font-family: var(--font-serif-display); font-style: italic; font-weight: 600; font-size: clamp(30px, 3.2vw, 46px); color: var(--text-strong); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.lwgp-tap { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.lwgp-tap-text { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(19px, 1.8vw, 23px); color: var(--leadr-red); margin: 0; line-height: 1.3; }
.lwgp-tap-arrow { flex: none; margin-top: 4px; }

/* ---- Goal cards: ballot rows (punch circle + copy + rotated icon stamp).
   Grid uses base.css .lw-pathtabs breakpoints. Row gap clears the protruding
   "That's me" stamp (-14px) on selected cards. ---- */
.lwgp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; row-gap: 20px; margin-bottom: 20px; align-items: stretch; }
.lwgp-card {
  position: relative; display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 20px 20px 20px 18px; border-radius: 10px; cursor: pointer;
  background: var(--cream-light); border: 1.5px solid var(--leadr-black);
  box-shadow: var(--shadow-card); width: 100%; font-family: var(--font-sans);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base);
}
.lwgp-card:hover,
.lwgp-card--on { box-shadow: var(--shadow-raised); transform: translateY(-3px); }

/* Sitewide reveal x interactive card: base's [data-leadr-reveal] rule would
   inherit its 680ms staggered transition into the hover lift, and .is-revealed
   pins transform:none over it. Run the entrance as a one-shot animation
   instead, keep the module's own transition, and re-assert the lift states
   at winning specificity. */
.leadr-js .lwgp-card[data-leadr-reveal] {
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base);
}
.leadr-js .lwgp-card[data-leadr-reveal].is-revealed {
  animation: lwgp-card-in var(--dur-reveal) var(--ease-out) backwards;
  animation-delay: calc(var(--reveal-i, 0) * var(--reveal-stagger));
}
.leadr-js .lwgp-card[data-leadr-reveal].is-revealed:hover,
.leadr-js .lwgp-card--on[data-leadr-reveal].is-revealed { transform: translateY(-3px); }
@keyframes lwgp-card-in {
  from { opacity: 0; transform: translateY(var(--reveal-rise)); }
}
@media (prefers-reduced-motion: reduce) {
  .leadr-js .lwgp-card[data-leadr-reveal].is-revealed { animation: none; }
}

/* Punch circle: outlined black at rest, floods the persona color when chosen */
.lwgp-card-check { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: transparent; border: 2.5px solid var(--leadr-black); transition: background var(--dur-base), border-color var(--dur-base); }
.lwgp-card-check svg { width: 15px; height: 15px; opacity: 0; }
.lwgp-card--on .lwgp-card-check { background: var(--gp-color); border-color: var(--gp-color); }
.lwgp-card--on .lwgp-card-check svg { opacity: 1; }

.lwgp-card-text { flex: 1; min-width: 0; }
.lwgp-card-verb { display: block; font-family: var(--font-serif-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); color: var(--text-strong); line-height: 1.15; margin-bottom: 4px; }
.lwgp-card-sub { display: block; font-size: var(--text-sm); color: var(--text-body); line-height: 1.4; }

/* Icon stamp: rotated white tile, black glyph, persona corner dot; the tint
   shadow flips to the persona color when chosen */
.lwgp-card-stamp { position: relative; width: 46px; height: 46px; flex: none; border: 2px solid var(--leadr-black); border-radius: 8px; background: var(--surface-white); display: flex; align-items: center; justify-content: center; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--gray-line); transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base); }
.lwgp-card:nth-child(even) .lwgp-card-stamp { transform: rotate(2.5deg); }
.lwgp-card:hover .lwgp-card-stamp,
.lwgp-card--on .lwgp-card-stamp { transform: rotate(-3deg) scale(1.07); }
.lwgp-card:nth-child(even):hover .lwgp-card-stamp,
.lwgp-card--on:nth-child(even) .lwgp-card-stamp { transform: rotate(2.5deg) scale(1.07); }
.lwgp-card--on .lwgp-card-stamp { box-shadow: 3px 3px 0 var(--gp-color); }
.lwgp-card-stamp svg { width: 22px; height: 22px; stroke: var(--leadr-black); flex: none; }
.lwgp-stamp-dot { position: absolute; top: -6px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gp-color); border: 2px solid #fff; }

/* "That's me" stamp on the selected card. color-mix keeps the small text AA
   on the gold persona; the pure-persona fallback still reads at 800 weight. */
.lwgp-thatsme { display: none; position: absolute; top: -14px; right: -10px; transform: rotate(-7deg); border: 3px solid var(--gp-color); color: var(--gp-color); color: color-mix(in srgb, var(--gp-color) 80%, black); background: rgba(247,244,240,0.94); font-family: var(--font-sans); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.lwgp-card--on .lwgp-thatsme { display: inline-block; }

/* ---- Below-grid script line (flips text + persona color via JS hooks) ---- */
.lwgp-below { text-align: center; margin: 0 0 22px; }
.lwgp-below-inner { display: inline-flex; align-items: center; gap: 11px; color: var(--text-body); transition: color var(--dur-base); }
.lwgp-below-text { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; }
.lwgp-below-arrow { flex: none; color: var(--text-muted); transition: color var(--dur-base); }
/* color-mix keeps the italic line AA on cream for every persona (pure gold
   is 2.9:1); browsers without color-mix keep the pure-persona fallback. */
.lwgp-step--2.lwgp-step--on { color: var(--gp-color); color: color-mix(in srgb, var(--gp-color) 75%, black); }
.lwgp-step--2.lwgp-step--on .lwgp-below-arrow { color: var(--gp-color); color: color-mix(in srgb, var(--gp-color) 75%, black); }

/* ---- Empty state (dashed "Your path appears here") ---- */
.lwgp-empty { position: relative; background: var(--cream-light); border: 1.5px dashed var(--gray-line); border-radius: var(--radius-md); padding: clamp(44px, 6vw, 64px) 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lwgp-empty-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--red-100); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.lwgp-empty-icon svg { width: 26px; height: 26px; }
.lwgp-empty-title { font-family: var(--font-serif-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); color: var(--text-strong); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.1; }
.lwgp-empty-copy { font-size: var(--text-lg); color: var(--text-body); line-height: 1.5; max-width: 540px; margin: 0 0 24px; }

/* Gold quiz button (empty-state) — mirrors the prototype's inline #F2B12A pill */
.lwgp-quiz-btn { display: inline-flex; align-items: center; gap: 12px; background: #F2B12A; border: 1px solid rgba(27,19,16,0.16); border-radius: 999px; padding: 16px 28px; cursor: pointer; font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-bold); color: #1B1310; box-shadow: 0 14px 44px rgba(184,134,47,0.45); text-decoration: none; transition: background var(--dur-base); }
.lwgp-quiz-btn:hover { background: #DE9E12; color: #1B1310; text-decoration: none; }
.lwgp-quiz-btn svg { width: 20px; height: 20px; flex: none; }

/* ---- Selected panel ---- */
.lwgp-panel { background: var(--surface-white); border: 1px solid var(--border-hairline); border-top: 3px solid var(--gp-color); border-radius: var(--radius-md); box-shadow: var(--shadow-raised); overflow: hidden; }
.lwgp-pathcard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr); align-items: stretch; }
.lwgp-panel-main { padding: 40px 44px 36px; }
.lwgp-panel-eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-color); margin-bottom: 14px; }
.lwgp-panel-hook { font-family: var(--font-serif-display); font-style: italic; font-weight: 600; font-size: clamp(24px, 2.2vw, 33px); color: var(--text-strong); margin: 0 0 30px; line-height: 1.22; letter-spacing: -0.01em; }

/* ---- Before -> after grid (base.css .lw-beforeafter -> 1-col @<=640) ---- */
.lwgp-beforeafter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 26px; align-items: stretch; }
.lwgp-ba-head { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.lwgp-ba-head--muted { color: var(--text-muted); }
.lwgp-ba-head--accent { color: var(--gp-color); }
.lwgp-ba-before { font-size: var(--text-base); color: var(--text-body); line-height: 1.6; margin: 0 0 10px; }
.lwgp-ba-after { font-size: var(--text-md); color: var(--text-strong); font-weight: var(--weight-semibold); line-height: 1.55; margin: 0 0 12px; }
.lwgp-ba-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.lwgp-ba-bridge svg { width: 26px; height: 26px; flex: none; }
.lwgp-bridge-pill { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--gp-color); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

/* ---- Proof chips (ProofChip) ---- */
.lwgp-chips { display: flex; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border-hairline); margin-top: 24px; padding-top: 22px; }
.lwgp-chip { display: flex; align-items: baseline; gap: 10px; text-decoration: none; padding: 10px 14px; background: var(--cream-light); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); }
.lwgp-chip:hover { text-decoration: none; }
.lwgp-chip-stat { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 700; color: var(--gp-color); white-space: nowrap; }
.lwgp-chip-label { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.35; }
.lwgp-chip-label strong { color: var(--text-strong); }

/* ---- Panel CTAs ---- */
.lwgp-panel-ctas { display: flex; gap: 14px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.lwgp-apply { gap: 8px; }
.lwgp-quiz-link { background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--accent); padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.lwgp-quiz-link:hover { color: var(--accent-hover); }

/* ---- Featured client (FeatureCase) ---- */
.lwgp-feature-wrap { border-left: 1px solid var(--border-hairline); background: var(--cream-light); padding: 18px; display: flex; }
.lwgp-feature { display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--surface-white); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.lwgp-feature-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; background: var(--gp-tint); }
.lwgp-feature-eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-color); }
.lwgp-feature-verb { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.lwgp-feature-media { position: relative; display: block; height: 192px; background: var(--leadr-black); overflow: hidden; flex: none; }
.lwgp-feature-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; transition: opacity var(--dur-base), transform var(--dur-base); }
.lwgp-feature-media:hover .lwgp-feature-img { opacity: 1; transform: scale(1.03); }
/* Photo depth (motion kit): the photo settles from --depth-scale to 1 as it
   crosses the viewport. It animates the individual `scale` property, not
   transform, so the hover scale(1.03) above still composes. view() binds to
   the nearest scroll container and overflow: hidden makes one, so the three
   clipping boxes switch to overflow: clip (same clip, no scroll container). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lwgp-panel, .lwgp-feature, .lwgp-feature-media { overflow: clip; }
    .lwgp-feature { min-width: 0; } /* clip is no scroll container, so restore hidden's flex shrink */
    .lwgp-feature-img { animation: lwgp-depth linear both; animation-timeline: view(); }
  }
}
@keyframes lwgp-depth {
  from { scale: var(--depth-scale); }
  to { scale: 1; }
}
.lwgp-feature-placeholder { position: absolute; inset: 0; background: var(--stage-glow); opacity: 0.6; }
.lwgp-feature-play { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(171,44,33,0.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(5,7,3,0.4); }

.lwgp-feature-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.lwgp-feature-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.lwgp-feature-id { min-width: 0; }
.lwgp-feature-name { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-strong); }
.lwgp-feature-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.lwgp-feature-stat-wrap { text-align: right; flex: none; }
.lwgp-feature-stat { font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: 700; color: var(--gp-color); line-height: 1; letter-spacing: -0.02em; }
.lwgp-feature-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; max-width: 150px; margin-left: auto; }
.lwgp-feature-quote { font-family: var(--font-sans); font-style: normal; font-size: var(--text-sm); color: var(--text-body); line-height: 1.5; margin: 12px 0 0; }
.lwgp-feature-quote--talk { font-family: var(--font-serif); font-style: italic; }
.lwgp-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-hairline); margin-top: auto; padding-top: 13px; }
.lwgp-feature-cta { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--accent); text-decoration: none; }
.lwgp-feature-cta:hover { text-decoration: none; color: var(--accent-hover); }
.lwgp-feature-cta svg { width: 14px; height: 14px; flex: none; }
.lwgp-feature-wall { font-size: var(--text-xs); color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---- Reveal animation for the selected panel (JS adds --shown) ----
   Timed to the sitewide motion tokens so the switch matches the scroll reveals. */
.lwgp-panel { opacity: 0; transform: translateY(var(--reveal-rise)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.lwgp-panel.lwgp-panel--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lwgp-panel { transition: none; transform: none; }
}

/* Tighten the feature wrap when the .lw-pathcard collapses to one column (<=980) */
@media (max-width: 980px) {
  .lwgp-feature-wrap { border-left: none; border-top: 1px solid var(--border-hairline); }
}

/* ---- Mobile (<=640): base.css drops .lw-pathtabs to a single column. The
   whole section was running several screens tall (Marc: keep it within the
   viewport), so everything compacts hard: smaller head + intro, slim ballot
   rows (~56px each) so all six goals + the header read in one phone screen. ---- */
@media (max-width: 640px) {
  .lwgp-wrap { padding: 40px clamp(20px, 5vw, 32px); }
  .lwgp-head { margin-bottom: 14px; }
  /* (0,3,0) beats base.css's .lw-home .lw-title (0,2,0) — reviewer WARN */
  .lw-home .lwgp-head .lwgp-title { font-size: clamp(31px, 8.6vw, 38px); }
  .lwgp-intro { margin-bottom: 14px; }
  .lwgp-iwant { font-size: 23px; }
  .lwgp-tap { margin-top: 8px; gap: 8px; }
  .lwgp-tap-text { font-size: 15.5px; }
  .lwgp-tap-arrow { width: 26px; height: 31px; margin-top: 2px; }
  .lwgp-tabs { gap: 8px; row-gap: 12px; margin-bottom: 14px; }
  .lwgp-card { gap: 10px; padding: 10px 12px 10px 10px; border-radius: 9px; }
  .lwgp-card:hover, .lwgp-card--on { transform: none; }
  /* keep the lift off on phones (the re-asserted reveal rules above would
     otherwise out-rank this block's transform: none) */
  .leadr-js .lwgp-card[data-leadr-reveal].is-revealed:hover,
  .leadr-js .lwgp-card--on[data-leadr-reveal].is-revealed { transform: none; }
  .lwgp-card-check { width: 22px; height: 22px; border-width: 2px; }
  .lwgp-card-check svg { width: 12px; height: 12px; }
  .lwgp-card-verb { font-size: 16.5px; margin-bottom: 2px; }
  .lwgp-card-sub { font-size: 12.5px; line-height: 1.3; }
  .lwgp-card-stamp { width: 34px; height: 34px; border-radius: 7px; }
  .lwgp-card-stamp svg { width: 17px; height: 17px; }
  .lwgp-stamp-dot { width: 10px; height: 10px; top: -5px; right: -5px; }
  .lwgp-thatsme { right: 4px; top: -12px; font-size: 10px; padding: 4px 7px; border-width: 2.5px; }
  .lwgp-below { margin-bottom: 16px; }
  .lwgp-below-text { font-size: 15.5px; }
  .lwgp-empty { padding: 30px 20px; }
  .lwgp-empty-icon { width: 46px; height: 46px; margin-bottom: 14px; }
  .lwgp-empty-icon svg { width: 20px; height: 20px; }
  .lwgp-empty-title { font-size: 23px; }
  .lwgp-empty-copy { font-size: var(--text-sm); margin-bottom: 16px; }
  .lwgp-quiz-btn { padding: 13px 20px; font-size: var(--text-sm); }
}
