/* Next Role Accelerator, photo-hero variation: Instrument Serif display (as in
   the first landing page) over Geist, Caveat for the handwritten note, the
   near-black ink, the yellow gradient CTA and the masked photo treatment. */

:root {
  /* ── colours (from cg-public-site/src/app/globals.css) ── */
  --cg-yellow: #ffdf20;
  --cg-yellow-50: #fefce8;
  --cg-yellow-200: #fff085;
  --cg-yellow-500: #f0b100;
  --cg-green: #4ade80;           /* trust icons (tailwind green-400) */
  --ink: color-mix(in srgb, var(--cg-yellow) 1.5%, #060606);   /* .page-ink */
  --text: #ffffff;
  --text-2: rgb(255 255 255 / 0.62);
  --text-3: rgb(255 255 255 / 0.48);
  --line: rgb(255 255 255 / 0.12);

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --wrap: 1280px;
  --pad: 40px;
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* the site's photo mask (Hero-photo.tsx: eased radial ∩ left ∩ bottom) */
  --ease-stops: #000 0%, #000 55%, rgb(0 0 0 / 0.85) 66%, rgb(0 0 0 / 0.6) 76%, rgb(0 0 0 / 0.34) 85%, rgb(0 0 0 / 0.14) 93%, transparent 100%;
  --mask-left: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.15) 6%, rgb(0 0 0 / 0.45) 13%, rgb(0 0 0 / 0.8) 20%, #000 27%);
  --mask-bottom: linear-gradient(to top, transparent 0%, rgb(0 0 0 / 0.35) 10%, #000 30%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img { display: block; max-width: 100%; }
::selection { background: #fae4c137; }
:focus-visible { outline: 2px solid var(--cg-yellow); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 8px 16px; border-radius: 999px; background: var(--cg-yellow); color: #111; }
.skip:focus-visible { top: 16px; }

svg { flex-shrink: 0; }
.trust svg, .btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── nav (overlay, like the home page) ─────────────────── */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }
.wordmark { font: 400 30px/1 var(--font-display); letter-spacing: -0.01em; color: var(--text); text-decoration: none; }

/* ── buttons (.btn-primary / secondary from globals.css) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-family: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.btn:active { transform: scale(0.95); }
.btn svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.btn--primary { padding: 16px 32px; font-size: 15.5px; color: #171717; border: 1px solid var(--cg-yellow); background: linear-gradient(to bottom right, var(--cg-yellow-200), var(--cg-yellow), var(--cg-yellow-500)); box-shadow: inset 0 1px 0 #fff, 0 10px 40px -12px var(--cg-yellow); }
.btn--primary:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 60px -12px var(--cg-yellow); }
.btn--primary:hover svg { transform: translateX(4px); }

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(100dvh, 760px); display: flex; align-items: center; padding-block: calc(var(--nav-h) + 24px) 64px; }
.hero__inner { position: relative; }
.copy { max-width: 600px; }

.hero__ambient { position: absolute; inset: 0; z-index: -20; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
  background: radial-gradient(ellipse 55% 60% at 8% 0%, rgb(79 70 229 / 0.16), transparent 70%), radial-gradient(ellipse 45% 50% at 42% 12%, rgb(147 51 234 / 0.10), transparent 70%), radial-gradient(ellipse 40% 45% at 12% 95%, rgb(255 223 32 / 0.06), transparent 70%); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 50% 60% at 22% 40%, #000, transparent); mask-image: radial-gradient(ellipse 50% 60% at 22% 40%, #000, transparent); }
.hero__fade { position: absolute; inset: auto 0 0; z-index: -5; height: 128px; pointer-events: none; background: linear-gradient(to top, var(--ink), transparent); }

/* photo, bled to the right edge */
.photo { position: absolute; inset: 0 0 0 auto; width: 55%; z-index: -10; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; pointer-events: none; }
.photo__glow { inset: -10% 0 -10% -35% !important; width: 135% !important; height: 120% !important; opacity: 0.3; transform: scale(1.1); filter: blur(70px) saturate(1.5);
  -webkit-mask-image: radial-gradient(ellipse 58% 70% at 62% 40%, var(--ease-stops)), var(--mask-left); -webkit-mask-composite: source-in; mask-image: radial-gradient(ellipse 58% 70% at 62% 40%, var(--ease-stops)), var(--mask-left); mask-composite: intersect; }
.photo__soft { filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse 110% 115% at 62% 38%, var(--ease-stops)), var(--mask-left), var(--mask-bottom); -webkit-mask-composite: source-in; mask-image: radial-gradient(ellipse 110% 115% at 62% 38%, var(--ease-stops)), var(--mask-left), var(--mask-bottom); mask-composite: intersect; }
.photo__sharp {
  -webkit-mask-image: radial-gradient(ellipse 95% 100% at 62% 38%, var(--ease-stops)), var(--mask-left), var(--mask-bottom); -webkit-mask-composite: source-in; mask-image: radial-gradient(ellipse 95% 100% at 62% 38%, var(--ease-stops)), var(--mask-left), var(--mask-bottom); mask-composite: intersect; }

.photo__note { position: absolute; top: calc(22% - 30px); right: 9%; text-align: right; color: var(--text); text-shadow: 0 1px 10px rgb(0 0 0 / 0.7); transform: rotate(-6deg); animation: note-in 500ms ease-out 800ms both; }
.photo__note p { margin: 0; font: 500 28px/1.9rem var(--font-hand); white-space: nowrap; }
.photo__note span { display: block; }
.photo__note svg { position: absolute; top: 100%; left: -64px; margin-top: 4px; width: 90px; height: 70px; }
@keyframes note-in { from { opacity: 0; transform: rotate(0deg); } }

/* headline (h1: font-bold tracking-tight, .text-gradient for the payoff) */
h1 { margin: 0; font: 400 clamp(3.25rem, 3.6vw + 1.8rem, 5.5rem)/0.98 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; max-width: 11ch; }
.gold { background: linear-gradient(to bottom, var(--cg-yellow-50), var(--cg-yellow), var(--cg-yellow-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px 0 0; max-width: 34ch; font-size: 20px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* the three outcomes, numbered like the first landing page */
.wins { display: grid; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: win; max-width: 36rem; border-top: 1px solid var(--line); }
.wins li { counter-increment: win; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding-block: 14px; border-bottom: 1px solid var(--line); }
.wins li::before { content: counter(win, decimal-leading-zero); padding-top: 2px; font-size: 14px; color: var(--cg-yellow); font-variant-numeric: tabular-nums; }
.wins strong { display: block; font-size: 17px; font-weight: 500; color: var(--text); }
.wins span { display: block; margin-top: 2px; font-size: 15px; color: var(--text-3); }

.actions { display: grid; justify-items: start; gap: 18px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: rgb(255 255 255 / 0.65); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--cg-green); }

/* ── footer ───────────────────────────────────────────── */
.footer { border-top: 1px dashed #27272a; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; }
.footer p { margin: 0; font-size: 14px; color: var(--text-3); }
.footer p:first-child { max-width: 70ch; }

/* ── under 1024px: photo stacks above the copy ─────────── */
@media (max-width: 64rem) {
  :root { --pad: 20px; }
  .wordmark { font-size: 24px; }
  .hero { display: block; min-height: 0; padding: 0 0 40px; }
  .hero__ambient, .hero__fade { display: none; }
  .photo { position: relative; width: 100%; height: 440px; overflow: hidden; }
  .photo__sharp, .photo__soft { transform: scale(1.35); transform-origin: 70% 18%; }
  .photo::after { content: ""; position: absolute; inset: auto 0 0; height: 112px; background: linear-gradient(to top, var(--ink), color-mix(in srgb, var(--ink) 60%, transparent), transparent); }
  .photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 112px; z-index: 1; background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 80%, transparent), transparent); }
  .photo__note { top: 26%; right: 16px; z-index: 2; }
  .photo__note p { font-size: 20px; line-height: 1.3rem; }
  .photo__note svg { left: -40px; width: 56px; height: 44px; }
  .hero__inner { margin-top: -24px; }
  .btn--primary { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 26rem) { h1 { font-size: 2.9rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── the daylight photo (assets/rakesh2.jpeg) ── */
.photo img { object-position: 56% 30%; }
/* the photo is bright: pull it down a touch so it sits in the dark page */
.photo__sharp, .photo__soft { filter: brightness(0.86) contrast(1.04); }
.photo__soft { filter: brightness(0.86) blur(10px); }
/* note on the shirt, bottom right of the torso, arrow curving up to the face */
.photo__note { top: auto; bottom: 15%; right: 17%; }
.photo__note svg { top: auto; bottom: 100%; left: 0; margin: 0 0 6px; }
@media (max-width: 64rem) {
  .photo img { object-position: 58% 0%; }
  .photo__sharp, .photo__soft { transform: none; }
  .photo__note { top: auto; bottom: 16%; right: 14px; }
  .photo__note svg { left: 0; width: 56px; height: 44px; }
}

/* ── mobile tightening: get the Apply button closer to the first screen ── */
@media (max-width: 64rem) {
  .photo { height: clamp(300px, 82vw, 440px); }
  .photo__note { right: 26px; bottom: 14%; }
  .photo__note p { font-size: 19px; line-height: 1.2rem; }
  .hero__inner { margin-top: -36px; }
  .lead { margin-top: 14px; font-size: 17px; line-height: 1.55; }
  .wins { margin-top: 24px; }
  .wins li { padding-block: 12px; }
  .wins strong { font-size: 16px; }
  .wins span { font-size: 14px; line-height: 1.5; }
  .actions { margin-top: 28px; gap: 14px; }
  .btn--primary { max-width: 26rem; min-height: 56px; }
  .trust { gap: 8px 16px; }
}

