/* Lead funnel pages - member.joindomas.com + pro.joindomas.com (2026-09-04).
   Loads AFTER style.css: tokens, .btn-link, .display-heading, .pp-* form
   and .faq-* all come from there so the form is the SAME one as
   joindomas.com/#join and /pros/#apply. This file only adds the funnel
   chrome: no site nav, form in the hero, proof beside it, one CTA. */

.fn-body { background: var(--sage); }
.fn-body.fn-dark { background: var(--ink-2); }

/* ---- Top bar: logo + one small exit. Not the site nav on purpose. ---- */
.fn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7%;
}
.fn-bar-logo { height: 34px; width: auto; display: block; filter: invert(1) brightness(2); }
.fn-bar-login { font-size: 15px; color: var(--body-light); }
.fn-bar-login:hover { color: var(--white); }

/* ---- Hero: copy + proof on one side, the form on the other ---- */
/* Same hero photo as joindomas.com, ink-2 100% -> 85% -> 0% left to right. */
.fn-top { position: relative; background: var(--ink-2); }
.fn-top .photo-overlay-img { object-position: 70% 50%; }
.fn-top-scrim { background: linear-gradient(to right, rgb(47 58 54 / 100%), rgb(47 58 54 / 85%), rgb(47 58 54 / 0%)); } /* --ink-2 */
.fn-bar, .fn-hero { position: relative; z-index: 1; }
.fn-hero { padding: 24px 7% 90px; }
.fn-hero-grid { display: grid; grid-template-columns: 1fr; grid-template-areas: "left" "card"; gap: 36px; align-items: start; }
.fn-left { grid-area: left; display: flex; flex-direction: column; gap: 36px; }
.fn-copy { display: flex; flex-direction: column; gap: 22px; }
.fn-proof-wrap { display: flex; flex-direction: column; gap: 22px; }
.fn-card { grid-area: card; }
.fn-eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--light-green); }
.fn-hero h1 { margin: 0; color: var(--white); line-height: 1.02; }
.fn-hero h1 em { font-style: normal; color: var(--light-green); }
.fn-sub { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--sage); opacity: 0.9; }

/* Proof rows sit right next to the form, not in a footer */
.fn-proof { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fn-proof li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--sage); }
.fn-proof svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: var(--light-green); }
.fn-proof strong { font-weight: 600; }

/* The 1%-locked offer tile (pro page). Gated by JS on the backend's exact cutoff. */
.fn-offer {
  display: flex; align-items: center; gap: 18px;
  margin-top: 6px; padding: 18px 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
}
.fn-offer-pct { font-family: var(--font-heading); font-weight: 200; font-size: 56px; line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.fn-offer-copy { display: flex; flex-direction: column; gap: 4px; color: var(--white); font-size: 15px; line-height: 1.4; }
.fn-offer-copy strong { font-weight: 600; }
.fn-offer-copy span { color: var(--body-light); }

/* ---- Form card. Reuses .pp-form untouched; this is just the frame. ---- */
.fn-card {
  background: hsl(0deg 0% 100% / 95%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 28px;
}
.fn-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.fn-card-head h2 { margin: 0; font-family: var(--font-heading); font-weight: 300; font-size: 28px; letter-spacing: -0.01em; color: var(--ink); }
.fn-card-free { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.fn-card .pp-label-gap { margin-top: 22px; }
.fn-card .pp-checkbox-row { margin-top: 22px; }
.fn-card .pp-form-nav { margin-top: 12px; }
.fn-card .pp-form-done h3 { font-family: var(--font-heading); font-weight: 300; font-size: 32px; }
.fn-card-foot { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.fn-card-foot svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
/* Progress reads as a bar, not three dots, so step 1 feels 1/2 done */
.fn-card .pp-dots { gap: 6px; }
.fn-card .pp-dot { width: 26px; height: 4px; border-radius: 2px; }

/* ---- Steps band: centered head, one card per step, the real app screen for that
   step rising out of the bottom of its card (clipped by the card) ---- */
.fn-steps { background: var(--moss); padding: 72px 7% 0; overflow: hidden; }
.fn-dark .fn-steps { background: var(--sage); }
.fn-steps-head { text-align: center; max-width: 720px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.fn-steps .fn-eyebrow { color: var(--sage); opacity: 0.8; }
.fn-dark .fn-steps .fn-eyebrow { color: var(--accent); opacity: 1; }
.fn-steps h2 { margin: 0; color: var(--white); }
.fn-dark .fn-steps h2 { color: var(--ink-2); }
.fn-steps-sub { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--sage); opacity: 0.9; }
.fn-dark .fn-steps-sub { color: var(--ink-3); opacity: 1; }
.fn-steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }
.fn-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 36px 28px 0;
  border-radius: var(--radius);
  overflow: visible; /* phone bleeds past the card; .fn-steps below is the one real clip boundary */
}
.fn-step:not(:has(.fn-step-phone)) { padding-bottom: 36px; }
.fn-steps:not(:has(.fn-step-phone)) { padding-bottom: 100px; }
.fn-dark .fn-step { background: rgb(26 26 26 / 4%); border-color: rgb(26 26 26 / 10%); }
.fn-step-num {
  font-family: var(--font-heading); font-weight: 200; font-size: 64px; line-height: 1; letter-spacing: -0.03em;
  color: var(--light-green);
}
.fn-dark .fn-step-num { color: var(--accent); }
.fn-step h3 { margin: 4px 0 0; color: var(--white); }
.fn-dark .fn-step h3 { color: var(--ink-2); }
.fn-step p { margin: 0 0 32px; font-size: 16px; line-height: 1.55; color: var(--white); opacity: 0.92; }
.fn-dark .fn-step p { color: var(--ink-3); opacity: 1; }
/* Real iPhone mockup (Figma community kit uyYXaRJ9L5lgnKZDzo8IfY, node 31:180 - frame
   exported with its screen layer hidden, so images/iphone-frame.webp has a genuine
   transparent cutout, not a fake border). Our screenshot sits behind the frame image,
   positioned to the frame's real screen-window geometry (measured off the Figma node,
   not guessed) so it's masked by the frame's own rounded hole - no border-radius needed
   on the shot itself. margin-top:auto is the actual fix for the old gap: cards are equal
   height (grid default stretch), so a shorter-copy card has leftover space above where
   the phone sits - margin-top:auto eats that space instead of leaving it below the
   phone, so all three phones' bottoms land on the same line regardless of copy length. */
.fn-step-phone {
  position: relative;
  width: 100%; max-width: 380px;
  aspect-ratio: 482.04 / 974;
  margin: auto auto 0;
  filter: drop-shadow(0 -14px 34px rgb(0 0 0 / 24%));
  transition: transform 0.4s ease;
}
.fn-step-phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.fn-step-phone-shot {
  position: absolute;
  left: 5.2545%; top: 1.9456%; width: 89.4783%; height: 95.8931%;
  object-fit: cover; object-position: top;
  z-index: 1;
}
.fn-step:hover .fn-step-phone { transform: translateY(-8px); }
.fn-steps-grid + * { margin-top: 0; }

/* ---- Numbers row (pro) ---- */
.fn-nums { background: var(--card); padding: 80px 7%; }
.fn-nums-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.fn-num { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding-top: 18px; }
.fn-num strong { display: block; font-family: var(--font-heading); font-weight: 200; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.fn-num strong .fn-num-old { font-size: 0.45em; color: var(--body-light); text-decoration: line-through; margin-left: 10px; vertical-align: middle; }
.fn-num span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-3); max-width: 30ch; }

/* ---- FAQ reuses .faq-* from style.css; only the wrapper is ours ---- */
.fn-faq { background: var(--card); padding: 90px 7%; }
.fn-faq h2 { margin: 0 0 30px; color: var(--ink-2); }
.fn-faq-inside { max-width: 66%; margin: 0 auto; }

/* ---- Last CTA: send them back up to the one form ---- */
.fn-final { background: var(--sage); padding: 90px 7%; text-align: center; }
.fn-dark .fn-final { background: var(--ink-2); }
.fn-final h2 { margin: 0 0 10px; color: var(--ink); }
.fn-dark .fn-final h2 { color: var(--white); }
.fn-final p { margin: 0 auto 30px; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--ink-3); }
.fn-dark .fn-final p { color: var(--body-light); }
.fn-final h3 { margin: 0 auto 20px; }
.fn-dark .fn-final h3 { color: var(--body-light); }

.fn-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding: 26px 7% 34px; font-size: 13px; color: var(--text-muted); background: var(--sage); }
.fn-dark .fn-footer { background: var(--ink-2); color: var(--body-light); }
.fn-footer nav { display: flex; gap: 18px; }
.fn-footer a { color: inherit; }
.fn-footer a:hover { color: var(--accent-hover); }
.fn-dark .fn-footer a:hover { color: var(--white); }

@media (min-width: 900px) {
  .fn-hero { padding: 40px 7% 110px; min-height: calc(100svh - 80px); display: flex; align-items: center; }
  .fn-hero-grid { grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "left card"; gap: 72px; align-items: center; width: 100%; }
  .fn-copy { gap: 28px; }
  .fn-card { padding: 40px 40px 34px; }
  .fn-steps { padding-top: 84px; }
  .fn-steps-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .fn-steps-grid.fn-steps-4 { grid-template-columns: repeat(4, 1fr); }
  .fn-step { padding: 28px 20px 0; }
  /* Hangs past the card on desktop only (stacked cards on mobile would overlap the next one); .fn-steps overflow:hidden makes the cut */
  .fn-step-phone { margin-bottom: -14%; }
  .fn-step:not(:has(.fn-step-phone)) { padding-bottom: 44px; }
  .fn-nums-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---- Mobile (mirrors the main site's <=860px treatment: 7% gutters, tighter section
   padding, one column everywhere). Desktop rules above are min-width so these only
   apply below 900px. ---- */
@media (max-width: 899px) {
  .fn-bar { padding: 18px 7%; }
  .fn-bar-logo { height: 28px; }
  .fn-bar-login { font-size: 14px; }
  /* Copy spans the full width on a phone, so the left-right gradient alone leaves the
     right half of the headline on bare photo - flat ink-2 wash here instead. */
  .fn-top-scrim { background: rgb(47 58 54 / 88%); }
  .fn-hero { padding: 16px 7% 64px; }
  .fn-hero-grid { gap: 28px; }
  .fn-left { gap: 28px; }
  .fn-card { padding: 28px 20px 24px; }
  .fn-steps { padding: 15% 7% 0; }
  .fn-steps-head { margin-bottom: 8px; }
  .fn-steps-grid { gap: 0; }
  /* Each card clips its own phone on mobile: only the top ~62% shows, same "rising
     out" cut as desktop but per card, so three stacked phones don't triple the page. */
  .fn-step { padding: 36px 0 0; overflow: hidden; }
  .fn-step-num { font-size: 52px; }
  .fn-step p { margin-bottom: 24px; }
  .fn-step-phone { width: 68%; margin-bottom: -38%; filter: drop-shadow(0 -8px 22px rgb(0 0 0 / 22%)); }
  .fn-step:hover .fn-step-phone { transform: none; }
  .fn-nums { padding: 15% 7%; }
  .fn-faq { padding: 15% 7%; }
  .fn-faq-inside { max-width: 100%; }
  .fn-final { padding: 15% 7%; }
  .fn-final h2 { font-size: clamp(32px, 9vw, 40px); }
  .fn-footer { flex-direction: column; align-items: flex-start; padding: 24px 7% 32px; }
  .fn-footer nav { flex-wrap: wrap; gap: 10px 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fn-copy > * { animation: fn-rise 0.6s ease both; }
  .fn-copy > :nth-child(2) { animation-delay: 0.06s; }
  .fn-copy > :nth-child(3) { animation-delay: 0.12s; }
  .fn-proof-wrap { animation: fn-rise 0.6s 0.18s ease both; }
  .fn-card { animation: fn-rise 0.7s 0.15s ease both; }
  @keyframes fn-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
