/* ============================================================
   VEST SELF — Waitlist landing page.
   Faithful rebuild of the Figma design in the Vest Self type
   system: Satoshi (display/body), JetBrains Mono (labels),
   Inter (buttons). Gold #E6C15A. 4px radius on controls.
   Tokens live in tokens.css.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0B0B0F; color: var(--fg-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: rgba(230,193,90,0.28); color: var(--off-white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:root {
  --shell: clamp(24px, 6.5vw, 128px);
  --maxw: 1200px;
  --mono: "JetBrains Mono", var(--font-mono);
  --woodsmoke: #0B0B0F;
}
.shell { width: 100%; max-width: calc(var(--maxw) + var(--shell) * 2); margin-inline: auto; padding-inline: var(--shell); }

/* mono label helper */
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.2px; }

/* ---------- BUTTON (gold, 4px, weight 500, -0.3125px) ---------- */
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: "Inter", var(--font-sans); font-weight: 500; font-size: 18px; line-height: 24px; letter-spacing: -0.3125px; color: #000; background: #E6C15A; border: none; cursor: pointer; padding: 16px 58px; border-radius: 4px; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast); }
.btn-gold:hover { background: #EFD076; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

/* ---------- WAITLIST FORM ---------- */
.wl-form { display: flex; gap: 12px; width: 100%; }
.wl-form .field { flex: 1; min-width: 0; display: flex; align-items: center; height: 56px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 0 20px; backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.wl-form .field:focus-within { border-color: #E6C15A; box-shadow: 0 0 0 3px rgba(230,193,90,0.32); }
.wl-form input[type=email] { flex: 1; min-width: 0; background: none; border: none; outline: none; font-family: var(--font-sans); font-size: 16px; color: var(--off-white); }
.wl-form input::placeholder { color: rgba(255,255,255,0.5); }
.wl-success { display: none; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin-inline: auto; text-align: left; padding: 18px 24px; border-radius: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.wl-success.show { display: flex; animation: rise 0.5s var(--ease-emphasized) both; }
.wl-success .ic-logo { flex: none; width: 30px; height: auto; }
.wl-success .tt i { font-size: 13px; color: #E6C15A; margin-left: 6px; vertical-align: middle; }
.wl-success .tt { font-weight: 700; font-size: 14px; color: var(--off-white); }
.wl-success .ss { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.wl-success .ss b { color: #E6C15A; }
.wl-error { display: none; margin: 12px 0 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: #E5484D; text-align: center; }
.wl-error.show { display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: transparent; backdrop-filter: none; transition: transform 0.35s var(--ease-standard), background 0.3s var(--ease-standard), backdrop-filter 0.3s var(--ease-standard); }
.header.scrolled { background: rgba(0,0,0,0.8); backdrop-filter: blur(14px); }
.header.hidden { transform: translateY(-100%); }
.header .shell { display: flex; align-items: center; justify-content: space-between; padding: 24px 40px; }
.header .brand .wm { font-size: 20px; }
.brand .wm-img { height: 16px; width: auto; display: block; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 26px; height: auto; }
.brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand .wm .b { color: #FFFCF5; }
.brand .wm .s { color: #E6C15A; }
.header .btn-gold { padding: 12px 24px; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: max(100vh, 1150px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-image: url("../assets/hero-bg.png?v=3"); background-size: cover; background-position: center top; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--woodsmoke) 0%, rgba(11,11,15,0.12) 20%, rgba(11,11,15,0) 44%, rgba(11,11,15,0) 70%, rgba(11,11,15,0.4) 100%); }
.hero-scrim { position: absolute; z-index: 1; left: 50%; top: 40%; transform: translate(-50%,-50%); width: min(1040px, 92%); height: 660px; pointer-events: none; background: radial-gradient(ellipse 58% 54% at 50% 50%, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 76%); }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 720px; padding-inline: 24px; margin-top: clamp(178px, calc(90px + 11.6vh), 242px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.hero-icon { width: 67px; height: auto; opacity: 0.4; }
.hero-stack { display: flex; flex-direction: column; align-items: center; gap: 60px; width: 100%; }
.hero-head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.hero h1 { position: relative; z-index: 1; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.6vw, 80px); line-height: 0.95; letter-spacing: -0.0225em; color: #fff; white-space: nowrap; }
.hero h1 .g { color: #E6C15A; }
.hero .sub { margin: 0; max-width: 576px; font-family: var(--font-sans); font-weight: 500; font-size: 20px; line-height: 28px; color: rgba(255,255,255,0.8); }
.hero-join { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.hero-form { width: 100%; max-width: 672px; }
.hero-form .btn-gold { padding: 16px 24px; }
.hero-microcopy { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.4; color: rgba(255,255,255,0.6); }

/* floating goal cards */
.goal-card { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: min(90vw, 460px); padding: 20px 24px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; backdrop-filter: blur(20px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.goal-card .lbl { font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.goal-card .q { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; color: #E6C15A; white-space: nowrap; }
/* staggered lower goal cards */
.goal-card.gc-left { left: 16.2%; bottom: calc(37.5% - 96px); }
.goal-card.gc-right { left: 57.3%; bottom: calc(32.7% - 96px); }

/* floating task cards (supplied Figma exports) */
.task-card { position: absolute; z-index: 2; width: 361px; max-width: 90vw; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45)); }
.task-card.tc-left { left: 19%; bottom: calc(26.8% - 96px); }
.task-card.tc-right { left: 56%; bottom: calc(22% - 96px); }

/* ============================================================
   STATS BAND — brand gradient
   ============================================================ */
.stats { background: linear-gradient(90deg, #E6C15A 0.67%, #9C3807 53.32%, #000000 100%); }
.stats .shell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; padding-block: clamp(128px, 16vh, 200px); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: 60px; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.stat .n.inf { font-size: 76px; line-height: 0.8; }
.stat .l { font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.1; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { position: relative; background: var(--woodsmoke); padding-block: clamp(128px, 16vh, 200px); overflow: hidden; isolation: isolate; }
.feat-bg { position: absolute; inset: 0; z-index: 0; background-image: url("../assets/photography/man-ropes.png"); background-size: cover; background-position: center; opacity: 0.3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 4%, #000 8%, #000 26%, transparent 32%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 4%, #000 8%, #000 26%, transparent 32%, transparent 100%); }
.features .shell { position: relative; z-index: 1; }
.feat-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 23px; }
.badge { display: inline-flex; align-items: center; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; backdrop-filter: blur(6px); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.feat-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; color: #fff; }
.feat-head p { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.7); max-width: 620px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 72px auto 0; }
.feat-card { position: relative; padding: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; backdrop-filter: blur(6px); transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-base) var(--ease-standard); }
.feat-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); transform: translateY(-3px); }
.feat-card .fi { width: 38px; height: 38px; display: grid; place-items: center; color: #E6C15A; margin-bottom: 16px; }
.feat-card .fi i { font-size: 32px; font-weight: 300; }
.feat-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.4; color: #fff; }
.feat-card p { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,0.6); }

/* ============================================================
   HOW IT WORKS — light gold gradient
   ============================================================ */
.how { background: linear-gradient(90deg, #F9F1C8 0%, #E6C15A 100%); padding-block: clamp(128px, 16vh, 200px); color: #111; }
.how-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 23px; }
.how-head .eyebrow { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(17,17,17,0.5); }
.how-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; color: #111; }
.how-divider { width: 100%; max-width: 1040px; height: 1px; background: rgba(17,17,17,0.16); margin: 48px auto 0; }
.steps { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 119px); margin-top: 72px; }
.step { display: flex; align-items: center; justify-content: center; gap: clamp(40px, 5vw, 64px); }
.step.flip { flex-direction: row-reverse; }
.step-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.04em; color: rgba(17,17,17,0.13); }
.step-text h3 { position: relative; margin: 4px 0 0; padding-bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.01em; color: #111; }
.step-text h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: #111; }
.step-text p { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 1.6; color: rgba(17,17,17,0.7); max-width: 30ch; }
.step-media { position: relative; flex: none; display: flex; justify-content: center; isolation: isolate; }
.step-media::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 120%; height: 78%; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(156,56,7,0.28), rgba(156,56,7,0) 72%); filter: blur(50px); pointer-events: none; }
.phone { position: relative; z-index: 1; height: clamp(440px, 56vh, 660px); width: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.28)); transition: transform 0.5s var(--ease-standard); }
.phone:hover { transform: translateY(-10px); }

/* per-step scroll-in: text & phone slide from opposite sides */
.step[data-reveal] { opacity: 1; transform: none; }
.step .step-text, .step .step-media { opacity: 0; transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); will-change: transform, opacity; }
.step .step-text { transform: translateX(-48px); }
.step .step-media { transform: translateX(48px); transition-delay: 0.1s; }
.step.flip .step-text { transform: translateX(48px); }
.step.flip .step-media { transform: translateX(-48px); }
.step.in .step-text, .step.in .step-media { opacity: 1; transform: none; }

/* ============================================================
   JOIN CTA
   ============================================================ */
.cta { position: relative; min-height: 100svh; padding-block: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: 0; background-image: url("../assets/cta-bg.png"); background-size: cover; background-position: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(54% 62% at 50% 46%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0) 100%),
  linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.62) 100%); }
.cta-inner { position: relative; z-index: 2; width: 100%; max-width: 672px; padding-inline: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-inner h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; color: #fff; }
.cta-inner .sub { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.cta-form { margin-top: 16px; width: 100%; max-width: 672px; }
.perks { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.perk { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.perk i { font-size: 18px; color: rgba(255,255,255,0.45); }
.perk span { font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.45); text-align: center; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--woodsmoke); border-top: 1px solid rgba(255,255,255,0.1); padding-block: 64px; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.foot-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot .brand .wm { font-size: 18px; opacity: 0.55; }
.foot .brand .b, .foot .brand .s { color: #7D7D7F; }
.foot .tag { font-size: 14px; color: rgba(255,255,255,0.5); }
.foot .cr { font-size: 12px; color: rgba(255,255,255,0.3); }
.socials { display: flex; gap: 22px; margin-top: 4px; }
.socials a { color: rgba(255,255,255,0.5); font-size: 20px; transition: color var(--dur-fast); }
.socials a:hover { color: #E6C15A; }

/* ---------- MOTION / REVEAL ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
/* hero cards slide in from their side on scroll */
.goal-card[data-reveal], .task-card[data-reveal] { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: transform, opacity; }
.gc-left[data-reveal], .tc-left[data-reveal] { transform: translateX(-28px); }
.gc-right[data-reveal], .tc-right[data-reveal] { transform: translateX(28px); }
.goal-card[data-reveal].in, .task-card[data-reveal].in { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], .step .step-text, .step .step-media { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1200px) { .goal-card, .task-card { display: none; } .hero { min-height: 100vh; } }
@media (max-width: 920px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .shell { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .step, .step.flip { flex-direction: column; text-align: center; gap: 32px; }
  .step-text { align-items: center; max-width: 100%; }
  .step-text p { max-width: 46ch; }
  .step-text h3::after { left: 50%; transform: translateX(-50%); }
  .step-num { font-size: 80px; }
}
@media (max-width: 600px) {
  .header .shell { padding: 24px 16px; }
  .header .brand .wm-img { height: 16px; }
  .wl-form { flex-direction: column; }
  .wl-form .field { width: 100%; flex: none; }
  .wl-form .btn-gold { width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats .shell { grid-template-columns: 1fr; gap: 40px; }
  .perks { flex-wrap: wrap; gap: 20px 16px; }
  .hero-bg { background-image: url("../assets/hero-bg-mobile.png?v=3"); background-position: top center; background-size: cover; }
  /* size hero to the bg image's aspect (786x2622) so it renders 1:1, no zoom/crop */
  .hero { min-height: calc(100vw * 3.3359); padding-bottom: 0; }
  .hero-icon { width: 50px; opacity: 0.4; }
  /* content + cards placed at the Figma mobile frame coordinates (393x1311) */
  .hero-inner { position: absolute; top: 20.5%; left: 0; right: 0; margin: 0; padding-inline: 16px; gap: 24px; max-width: 100%; }
  .hero-stack { gap: 40px; }
  .hero-head { gap: 16px; }
  .hero h1 { font-size: 48px; line-height: 1.0; letter-spacing: -1.8px; white-space: normal; }
  .hero .sub { font-size: 16px; line-height: 20px; }
  .hero-microcopy { font-size: 14px; line-height: 18px; }
  .goal-card { display: flex; position: absolute; bottom: auto; max-width: none; margin: 0; padding: 16px 19px; gap: 6px; }
  .goal-card .lbl { font-size: 8px; line-height: 11px; }
  .goal-card .q { font-size: 15px; line-height: 19px; }
  .task-card { display: block; position: absolute; bottom: auto; width: 271px; max-width: calc(100vw - 32px); margin: 0; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.45)); }
  .goal-card.gc-left { left: 16px; top: 63.8%; bottom: auto; }
  .task-card.tc-left { left: 16px; top: 69.8%; bottom: auto; }
  .goal-card.gc-right { left: 22.9%; right: auto; top: 79.6%; bottom: auto; }
  .task-card.tc-right { left: 26.9%; right: auto; top: 85.6%; bottom: auto; }
}
