/* Page composition for the landing page and the intake overlay. Values come from tokens.css. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.jm { margin: 0; background: var(--bg); min-height: 100vh; overflow-x: hidden; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
.jm ::selection { background: var(--rose); color: var(--on-rose); }
.jm input, .jm textarea { caret-color: var(--rose); accent-color: var(--rose); }
html { scrollbar-color: var(--border-control) var(--bg); }
.jm a:not(.jm-btn) { color: var(--rose); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.jm a:focus-visible, .jm button:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.jm .jm-btn:focus-visible { border-radius: var(--radius-pill); }
.jm img { display: block; max-width: 100%; }
.jm ul, .jm ol, .jm blockquote, .jm figure { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 200; padding: var(--space-3) var(--space-4); background: var(--rose); color: var(--on-rose) !important; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; transition: top var(--dur-hover) ease; }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * clamp(var(--space-4), 5vw, 40px)); margin-inline: auto; padding-inline: clamp(var(--space-4), 5vw, 40px); }

/* Buttons: a larger size for the closing call to action */
.jm-btn-lg { min-height: 56px; padding: 0 var(--space-6); font-size: 17px; }
.jm-btn { white-space: nowrap; transition: transform var(--dur-hover) ease, background-color var(--dur-hover) ease, color var(--dur-hover) ease; }

/* Nav */
.site-head { padding-block: var(--space-5); }
.site-head .jm-nav { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-4); }
.nav-center { justify-self: center; gap: var(--space-6); }
.nav-end { justify-self: end; }
.jm-nav-links a:not(.jm-btn) { font-size: 15px; font-weight: 500; }
.jm-nav-links a:not(.jm-btn) { position: relative; padding-block: var(--space-2); }
.jm-nav-links a:not(.jm-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.jm-nav-links a:not(.jm-btn):hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .site-head .jm-nav { grid-template-columns: minmax(0, 1fr) auto; } .nav-center { display: none; } }

/* Hero */
/* The hero and the ticker fill the first screen; the ticker sits on its bottom edge. 96px = header height. */
.first-screen { display: flex; flex-direction: column; min-height: calc(100vh - 96px); min-height: max(calc(100svh - 96px), 600px); }
.hero { flex: 1; display: flex; align-items: center; padding-block: clamp(var(--space-5), 3vw, 40px) clamp(var(--space-7), 6vw, 88px); }
@media (min-width: 761px) and (max-height: 760px) { .hero { padding-block: var(--space-4) var(--space-6); } }
.hero > .wrap { width: 100%; }
/* On desktop the portrait scales with the screen height so the hero and ticker always fit the first screen.
   96 header + 72 ticker + ~200 for padding and breathing room above the ticker. */
@media (min-width: 761px) { .hero .hero-figure { transform: translateY(-40px); max-width: min(var(--portrait-width), max(320px, calc((100svh - 96px - 72px - 200px) * .75))); } }
.hero { overflow-x: clip; }
.hero .jm-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(var(--space-6), 5vw, 72px); }
@media (max-width: 760px) { .hero .jm-hero { grid-template-columns: minmax(0, 1fr); } }
.hero .jm-hero-copy { gap: var(--space-5); }
.hero .jm-hero-copy .display-xl { margin-bottom: 8px; } /* 24px gap + 8px = 32px between title and description */
.hero-lead { max-width: 31em; }
.hero .jm-hero-copy .hero-lead { margin-bottom: 32px; } /* 24px gap + 32px = 56px above the buttons */
.hero .jm-hero-actions { margin-top: 0; }
.hero .hero-meta { margin-top: var(--space-5); }

.hero-figure { position: relative; justify-self: end; width: 100%; max-width: var(--portrait-width); }
.hero-figure::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 1px solid var(--rose-mid); opacity: .55; border-radius: var(--radius-pill) var(--radius-pill) var(--radius-lg) var(--radius-lg); pointer-events: none; }
.hero-figure .jm-arch { max-width: none; justify-self: auto; padding: var(--space-5); }
.jm-arch-cap { display: none; color: var(--ink-muted); }
.jm-arch.is-empty .jm-arch-cap { display: block; text-align: right; }
.jm-arch.is-empty::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--surface); opacity: .7; border-radius: var(--radius-pill) var(--radius-pill) 14px 14px; pointer-events: none; }
@media (max-width: 760px) {
  .hero-figure { justify-self: start; max-width: 300px; }
  .hero-figure::before { transform: translate(12px, 12px); }
}

/* Section rhythm */
.why, .packages, .cta, .reels { padding-block: clamp(56px, 8vw, 112px); }
.section-head, .why-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-5) var(--space-7); align-items: end; margin-bottom: clamp(var(--space-6), 5vw, 64px); }
.section-head .lead, .why-head .lead { max-width: 30em; }
@media (max-width: 760px) { .section-head, .why-head { grid-template-columns: minmax(0, 1fr); } }

/* Why me */
.why .jm-points { gap: var(--space-6) clamp(var(--space-6), 6vw, 80px); }
.why .jm-point { padding-top: var(--space-5); }
.why .jm-point .body { max-width: 34em; }
.why .why-quote { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(var(--space-7), 7vw, 96px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--space-4) var(--space-7); }
.why-quote p { grid-column: 2; max-width: 28em; text-wrap: pretty; }
.why-quote footer { grid-column: 2; grid-row: 2; letter-spacing: .02em; }
.why-quote footer::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: var(--space-3); vertical-align: middle; background: var(--rose); }
@media (max-width: 760px) { .why .why-quote { grid-template-columns: minmax(0, 1fr); } .why-quote p, .why-quote footer { grid-column: 1; } }

/* Packages */
.packages .jm-card { padding: clamp(var(--space-5), 3vw, var(--space-6)); }
.packages .jm-card.is-featured { position: relative; }
@media (min-width: 981px) {
  .packages .jm-cards { align-items: stretch; }
  .packages .jm-card.is-featured { margin-block: calc(-1 * var(--space-4)); padding-block: calc(var(--space-6) + var(--space-4)); }
}
.packages .jm-price { margin-top: var(--space-2); }
.packages .jm-card .jm-btn { width: 100%; margin-top: auto; }
.packages .jm-list { margin-bottom: var(--space-2); }

.how { margin-top: clamp(var(--space-7), 6vw, 80px); display: grid; gap: var(--space-5); }
.how-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); counter-reset: none; }
.how-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding-top: var(--space-4); border-top: 1px solid var(--border-control); }
.how-steps .title { margin-bottom: var(--space-1); }
.how-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rose); color: var(--rose); font-family: var(--font-display); font-size: 24px; line-height: 1; }
@media (max-width: 860px) { .how-steps { grid-template-columns: minmax(0, 1fr); } }

/* CTA */
.cta .jm-cta { padding: clamp(var(--space-6), 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.cta .jm-cta-copy { gap: var(--space-4); }
.cta .jm-cta-copy .body { max-width: 34em; }
@media (max-width: 760px) { .cta .jm-btn-lg { width: 100%; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.foot-link { color: var(--ink) !important; text-decoration: none; }
.foot-link:hover { color: var(--rose) !important; text-decoration: underline; }

/* Hero entrance: the page's one authored moment. Content is visible by default; motion only runs with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: rise 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--d, 0) * 90ms); }
  .js .reveal-arch .jm-arch { animation: unveil 1200ms var(--ease-out) both 120ms; }
  .js .reveal-arch::before { animation: drift 1400ms var(--ease-out) both 260ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 180px 180px 24px 24px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 0); transform: none; } }
@keyframes drift { from { opacity: 0; transform: translate(0, 0); } to { opacity: .55; } }

/* Intake overlay */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--bg); }
.overlay[hidden] { display: none; }
.overlay-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: calc(var(--space-4) + env(safe-area-inset-top)) clamp(var(--space-4), 5vw, 40px) var(--space-4); border-bottom: 1px solid var(--line); }
.overlay-bar .wordmark { font-size: 24px; }
.overlay-bar .wordmark em { font-style: italic; color: var(--rose); }
.overlay-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.overlay-body { min-height: 100%; display: grid; justify-items: center; align-content: start; padding: clamp(var(--space-5), 5vw, 64px) clamp(var(--space-4), 5vw, 40px) calc(var(--space-8) + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) {
  .overlay.is-opening { animation: fade-in 320ms var(--ease-out) both; }
  .overlay.is-opening .overlay-body > :not([hidden]) { animation: rise 520ms var(--ease-out) both 60ms; }
  .overlay.is-closing { animation: fade-out 220ms ease both; }
  .jm-step.is-entering { animation: step-in var(--dur-step) var(--ease-out) both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.jm-bar > i { transition: width 420ms var(--ease-out); }
.jm-step legend, .jm-step fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.jm-step fieldset { display: grid; gap: var(--space-3); }
.jm-step fieldset > legend { margin-bottom: var(--space-3); float: left; width: 100%; }
.jm-step fieldset > legend + * { clear: both; }
.step-head { display: grid; gap: var(--space-2); }
.step-head h3:focus { outline: none; }
.step-intro { margin-bottom: var(--space-2); }
.jm-choices.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jm-choices.is-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.jm-choices.is-days .jm-choice label { padding: var(--space-3) 0; text-align: center; }
.jm-choices.is-days .jm-choice label::before, .jm-choices.is-days .jm-choice label::after { display: none; }
.jm-choice label { min-height: 48px; display: flex; flex-direction: column; justify-content: center; transition: border-color var(--dur-hover) ease, background-color var(--dur-hover) ease; }
.jm-choice input:checked + label { font-weight: 600; }
/* Components set display: grid/flex, which beats the browser's [hidden] rule. Keep hidden things hidden:
   this is what makes the form show one step per page. */
.jm [hidden] { display: none !important; }
.jm-field.is-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--space-4); }
.send-error { margin-top: var(--space-5); }
.jm-actions .jm-btn { min-width: 140px; }
.jm-actions .jm-btn[hidden] { display: none; }
.jm-actions.is-first { justify-content: flex-end; }
@media (max-width: 560px) {
  .jm-choices.is-grid { grid-template-columns: minmax(0, 1fr); }
  .jm-choices.is-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
}
.jm-btn.is-sending { cursor: progress; }


/* =========================================================
   Icons, decoration and interaction
   ========================================================= */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-btn { width: 18px; height: 18px; margin-right: -4px; transition: transform 220ms var(--ease-out); }
.jm-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .jm-btn:hover .ic-btn { transform: translateX(3px); } }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; inset: -10% 0 auto auto; width: min(760px, 70vw); aspect-ratio: 1; background: radial-gradient(closest-side, var(--surface-rose), transparent 72%); opacity: .9; pointer-events: none; }
.hero-accent { position: relative; display: inline-block; white-space: nowrap; }
.swash { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; }
.swash path { fill: none; stroke: var(--rose-mid); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: var(--space-2); padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); }
.hero-meta .ic { width: 16px; height: 16px; color: var(--rose); }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: 0 12px 32px -12px rgba(42, 26, 32, .22); }
.chip .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--rose-tint); color: var(--rose); }
.chip b { display: block; font: 600 14px/1.2 var(--font-body); color: var(--ink); white-space: nowrap; }
.chip small { display: block; font: 400 12px/1.3 var(--font-body); color: var(--ink-muted); white-space: nowrap; }
.chip-a { left: -64px; top: 40%; padding: 10px 22px 10px 10px; }
.chip-b { right: -76px; bottom: calc(12% + 80px); padding: 10px 34px 10px 10px; }
.chip-b b { line-height: 1.3; }
.seal { position: absolute; z-index: 2; left: -36px; bottom: -22px; width: 101px; height: 101px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: var(--on-rose); }
.seal svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { fill: currentColor; font: 600 10px var(--font-body); text-transform: uppercase; }
.seal-ic { width: 29px; height: 29px; stroke-width: 1.5; }
@media (hover: hover) { .hero-figure:hover .seal svg:first-child { animation-duration: 7s; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .chip-b { animation: float 8s ease-in-out infinite -3s; }
  .js .reveal-arch .chip, .js .reveal-arch .seal { opacity: 0; animation-name: pop, float; animation-duration: 700ms, 7s; animation-timing-function: var(--ease-out), ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
  .chip-a { animation: float 7s ease-in-out infinite; }
  .js .reveal-arch .chip-a { animation-delay: 700ms, 1400ms; }
  .js .reveal-arch .chip-b { animation-delay: 850ms, 1600ms; }
  .js .reveal-arch .seal { animation-name: pop; animation-duration: 700ms; animation-delay: 1000ms; animation-iteration-count: 1; }
  .js .swash { clip-path: inset(-12px 100% -12px -12px); animation: wipe 900ms var(--ease-out) forwards 650ms; }
}
@media (prefers-reduced-motion: reduce) { .seal svg:first-child { animation: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(-12px -12px -12px -12px); } }
@media (max-width: 1240px) { .chip-a { left: -48px; } .chip-b { right: -56px; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .hero .jm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); }
  .chip-a { left: -28px; } .chip-b { right: -4px; }
}
@media (max-width: 980px) and (min-width: 761px) { .chip-a { left: -20px; } .chip-b { right: -4px; } }
@media (max-width: 760px) {
  .hero-figure { margin: var(--space-7) auto var(--space-6); justify-self: center; max-width: min(320px, 78vw); }
  .hero .jm-hero-copy .hero-lead { margin-bottom: 0; }
  .chip-a { left: -28px; top: calc(46% - 54px); bottom: auto; }
  .chip-b { right: -32px; bottom: calc(12% + 60px); }
  .seal { width: 86px; height: 86px; left: -12px; right: auto; bottom: -22px; top: auto; }

  /* Header: the wordmark only. */
  .nav-end { display: none; }
  .site-head .jm-nav { grid-template-columns: minmax(0, 1fr); }

  /* Quote: the signature comes after the quote. */
  .why-quote footer { grid-row: auto; }

  /* Instagram: the reels first, then the follow button underneath. */
  .reels { display: flex; flex-direction: column; --pad: clamp(var(--space-4), 5vw, 40px); }
  .reels > .wrap, .reels .reels-head { display: contents; }
  .reels .reels-copy { order: 1; padding-inline: var(--pad); margin-bottom: var(--space-5); }
  .reel-rail { order: 2; }
  .reels .reels-ctrl { order: 3; padding-inline: var(--pad); width: auto; justify-content: flex-start; }
}
@media (max-width: 560px) { .chip small { display: none; } .chip { padding-right: 14px; } .chip b { font-size: 13px; } }

/* Ticker */
.ticker { flex: none; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; color: var(--ink); white-space: nowrap; }
.ticker-track span:nth-of-type(even) { font-style: italic; color: var(--rose); }
.ticker .tk { width: 18px; height: 18px; color: var(--rose-mid); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: marquee 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Why me points with icons */
.pt-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-2); border-radius: 16px; background: var(--surface-rose); color: var(--rose); transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 240ms var(--ease-out); }
.pt-ic .ic { width: 24px; height: 24px; }
.why .jm-point { position: relative; }
.why .jm-point::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--rose); transition: width 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .why .jm-point:hover .pt-ic { background: var(--rose); color: var(--on-rose); transform: rotate(-6deg); }
  .why .jm-point:hover::before { width: 100%; }
}
.why .why-quote { position: relative; }
.quote-mark { grid-column: 1; grid-row: 1 / span 2; width: clamp(52px, 6vw, 76px); height: auto; aspect-ratio: 48 / 40; justify-self: end; margin-top: 6px; color: var(--rose-tint); fill: currentColor; stroke: none; }
.sig { font-family: var(--font-display); font-weight: var(--display-weight); font-style: italic; font-size: 24px; color: var(--rose); letter-spacing: 0; }
@media (max-width: 760px) { .quote-mark { grid-row: auto; justify-self: start; } }

/* Packages */
.packages { position: relative; overflow: hidden; isolation: isolate; }
.card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-rose); color: var(--rose); }
.card-ic .ic { width: 22px; height: 22px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.is-featured .card-ic { background: var(--rose); color: var(--on-rose); }
.packages .jm-card { transition: transform 320ms var(--ease-out), border-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .packages .jm-card:hover { transform: translateY(-6px); border-color: var(--rose-mid); box-shadow: 0 24px 48px -28px rgba(156, 75, 99, .45); }
  .packages .jm-card.is-featured:hover { border-color: var(--rose); }
}
.packages .jm-card.is-featured { background: linear-gradient(180deg, var(--surface-rose) 0%, var(--surface) 38%); }
.packages .jm-badge { align-self: auto; }
.packages .badge-top { position: absolute; z-index: 2; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--rose); border-color: var(--rose); color: var(--on-rose); white-space: nowrap; }

.how-steps { position: relative; }
.how-steps li { border-top: 0; padding-top: 0; }
.how-ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rose-tint); color: var(--rose); }
.how-ic .ic { width: 24px; height: 24px; }
.how-ic i { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: var(--on-rose); font: 600 12px/1 var(--font-body); font-style: normal; }
@media (min-width: 861px) {
  .how-steps::before { content: ""; position: absolute; z-index: 0; left: 56px; right: calc(33.33% - 24px); top: 28px; border-top: 1.5px dashed var(--rose-mid); opacity: .6; transform-origin: left; }
  .how-steps.will-reveal::before { transform: scaleX(0); transition: transform 1200ms var(--ease-out) 200ms; }
  .how-steps.is-in::before { transform: scaleX(1); }
  .how-steps li { grid-template-columns: minmax(0, 1fr); }
  .how-ic { z-index: 1; }
}

/* Reels */
.reels { overflow: hidden; }
.reels-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5) var(--space-7); flex-wrap: wrap; margin-bottom: clamp(var(--space-5), 4vw, 48px); }
.reels-copy { display: grid; gap: var(--space-4); }
.reels-copy h2 { white-space: nowrap; }
@media (max-width: 760px) { .reels-copy h2 { font-size: clamp(22px, 6.6vw, 34px); } }
.reels-ctrl { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.social-btn .ic { width: 18px; height: 18px; }
.arrows { display: flex; gap: var(--space-2); }
.round { appearance: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-control); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform var(--dur-hover) ease; }
.round:hover:not(:disabled) { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.round:active:not(:disabled) { transform: scale(.94); }
.round:disabled { opacity: .4; cursor: default; }
.round:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 50% !important; }

.reel-rail { --gut: max(clamp(var(--space-4), 5vw, 40px), calc((100vw - var(--container)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px); gap: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) var(--space-5); scrollbar-width: none; }
.reel-rail::-webkit-scrollbar { display: none; }
.reel-rail:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }
.reel { scroll-snap-align: start; display: grid; gap: var(--space-2); text-decoration: none; color: var(--ink) !important; }
.reel-media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 20px; background: var(--surface-rose); border: 1px solid var(--line); }
.reel-media video, .reel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.reel-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .86); color: #9c4b63; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 300ms var(--ease-out), opacity 300ms ease; }
.reel-play .ic { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.reel-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(42, 26, 32, .55); color: #fff; font: 600 12px/1 var(--font-body); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel-cap { padding-inline: 2px; }
.reel:has(video) .reel-play { opacity: .0; }
@media (hover: hover) and (pointer: fine) {
  .reel:hover .reel-media video, .reel:hover .reel-media img { transform: scale(1.04); }
  .reel:hover .reel-play { transform: scale(1.08); opacity: 1; }
}
.reel:focus-visible .reel-media { outline: 2px solid var(--rose); outline-offset: 3px; }
.reel:focus-visible { outline: none; }
/* Placeholder tiles until real reels are added in js/config.js */
.reel.is-placeholder .reel-media { border: 0; }
.reel.is-placeholder .reel-media::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 20% 10%, var(--rose-tint), transparent 60%),
  radial-gradient(90% 60% at 90% 100%, var(--rose-mid), transparent 70%), var(--surface-rose); }
.reel.is-placeholder .reel-media::after { content: ""; position: absolute; left: 18%; right: 18%; top: 22%; bottom: 22%; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px 999px 18px 18px; }
.reel.tone-2 .reel-media::before { filter: hue-rotate(-12deg) saturate(.9); transform: scaleX(-1); }
.reel.tone-3 .reel-media::before { filter: brightness(.96); transform: scaleY(-1); }
.reel.tone-4 .reel-media::before { filter: saturate(1.15); transform: rotate(180deg); }
.reel.tone-5 .reel-media::before { filter: hue-rotate(10deg); }
.reel.tone-6 .reel-media::before { filter: brightness(.94) saturate(1.1); transform: scaleX(-1); }
@media (max-width: 760px) { .reels-ctrl { width: 100%; justify-content: space-between; } .reel-rail { grid-auto-columns: 62vw; } }
/* Four reels (or fewer) share the page width on desktop; on phones they scroll. */
@media (min-width: 761px) { .reel-rail.is-fit { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-x: visible; scroll-snap-type: none; } }
.reels .arrows[hidden] { display: none; }

/* CTA */
.cta .jm-cta { gap: var(--space-6); }
.cta-facts { list-style: none; padding: 0; margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--ink); }
.cta-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.cta-facts .ic { width: 18px; height: 18px; color: var(--rose); }

/* Footer */
.site-foot { padding-block: clamp(var(--space-7), 6vw, 80px) calc(var(--space-5) + env(safe-area-inset-bottom)); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) clamp(var(--space-6), 6vw, 96px); align-items: start; }
.foot-brand { display: grid; gap: var(--space-3); max-width: 30em; }
.foot-nav { display: grid; gap: var(--space-2); }
.foot-nav a { color: var(--ink) !important; text-decoration: none; width: fit-content; }
.foot-nav a:hover { color: var(--rose) !important; }
.foot-social { display: flex; gap: var(--space-3); }
.social { display: flex; align-items: center; gap: var(--space-3); padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink) !important; background: var(--bg); transition: border-color var(--dur-hover) ease, transform 240ms var(--ease-out); }
.social-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-rose); color: var(--rose); transition: background-color 240ms ease, color 240ms ease; }
.social b { display: block; font: 600 15px/1.2 var(--font-body); }
.social small { display: block; font: 400 13px/1.3 var(--font-body); color: var(--ink-muted); }
@media (hover: hover) and (pointer: fine) {
  .social:hover { border-color: var(--rose); transform: translateY(-2px); }
  .social:hover .social-ic { background: var(--rose); color: var(--on-rose); }
}
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: clamp(var(--space-6), 5vw, 64px); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted) !important; text-decoration: none; }
.to-top:hover { color: var(--rose) !important; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Scroll reveal: groups rise in with a short stagger */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal:not([data-stagger]) { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .will-reveal:not([data-stagger]).is-in { opacity: 1; transform: none; }
  [data-stagger].will-reveal > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  [data-stagger].will-reveal > :nth-child(2) { transition-delay: 70ms; }
  [data-stagger].will-reveal > :nth-child(3) { transition-delay: 140ms; }
  [data-stagger].will-reveal > :nth-child(4) { transition-delay: 210ms; }
  [data-stagger].is-in > * { opacity: 1; transform: none; }
}

/* Good to know: its own section after the CTA */
.cta { padding-block: clamp(var(--space-7), 6vw, 88px) 0; }
.reels { padding-bottom: 0; }
.know { padding-block: clamp(var(--space-7), 6vw, 88px) clamp(56px, 8vw, 112px); }
.know h2 { margin-bottom: clamp(var(--space-5), 3vw, 40px); }
.know-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.know-card { position: relative; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6) var(--space-5) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; transition: border-color 240ms ease, transform 240ms var(--ease-out); }
.know-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--surface-rose); color: var(--rose); }
.know-ic .ic { width: 24px; height: 24px; }
@media (hover: hover) { .know-card:hover { border-color: var(--rose-tint); transform: translateY(-3px); } }
@media (max-width: 860px) { .know-list { grid-template-columns: minmax(0, 1fr); } .know-card { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); padding: var(--space-5); } .know-ic { grid-row: span 2; margin: 0; } }

.foot-print { max-width: 34em; }

/* No single-word last lines: browsers that support it rebalance paragraphs; js/site.js also keeps the last two words together. */
.jm p, .jm li, .jm label, .jm legend, .jm blockquote, .jm .title { text-wrap: pretty; }
.jm h1, .jm h2, .jm h3 { text-wrap: balance; }


/* =========================================================
   Intake form: open layout, bottom bar, unboxed choices
   ========================================================= */
.overlay-body { padding-bottom: var(--space-8); }
.intake { width: 100%; max-width: 680px; }
.intake .jm-step { gap: 44px; margin-top: 0; }
.intake .step-head { gap: var(--space-3); }
.intake .step-head h3 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.intake .jm-note { background: var(--surface-rose); }

/* Questions: bold, a little closer to their answers */
.q-label { display: block; font: 600 17px/1.4 var(--font-body); color: var(--ink); }
.intake .req { margin-left: 3px; color: var(--rose); font-weight: 600; }
.q-label .jm-hint { margin-left: 6px; font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.intake .jm-field { gap: 12px; }
.intake fieldset.jm-field { gap: 0; }
.intake .jm-step fieldset > legend { margin-bottom: 14px; float: none; width: auto; }

/* Choices without boxes: an indicator and a label */
.intake .jm-choices { display: grid; gap: 14px 28px; grid-template-columns: minmax(0, 1fr); }
.intake .jm-choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intake .jm-choices.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intake .jm-choices.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.intake .jm-choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intake .jm-choice label { display: block; min-height: 0; padding: 2px 0 2px 34px; background: none; border: 0; border-radius: 6px; font: 400 16px/1.45 var(--font-body); color: var(--ink); cursor: pointer; transition: color var(--dur-hover) ease; }
.intake .jm-choice label small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-muted); }
.intake .jm-choice label::before { left: 0; top: 3px; margin-top: 0; width: 20px; height: 20px; border: 1.5px solid var(--border-control); background: transparent; transition: border-color var(--dur-hover) ease, background-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease; }
.intake .jm-choice.is-check label::before { border-radius: 6px; }
.intake .jm-choice input:checked + label { background: none; font-weight: 400; }
.intake .jm-choice input:checked + label::before { background: var(--rose); border-color: var(--rose); box-shadow: inset 0 0 0 4px var(--bg); }
.intake .jm-choice.is-check input:checked + label::before { box-shadow: none; }
.intake .jm-choice.is-check input:checked + label::after { left: 5px; top: 8px; margin-top: 0; width: 10px; height: 5px; border-color: var(--on-rose); }
@media (hover: hover) and (pointer: fine) {
  .intake .jm-choice:hover label { color: var(--rose); }
  .intake .jm-choice:hover label::before { border-color: var(--rose); }
}
/* Keyboard focus rings the marker only, not the whole option */
.intake .jm-choice input:focus-visible + label, .intake .jm-choice.is-focus label { outline: none; }
.intake .jm-choice input:focus-visible + label::before { outline: 2px solid var(--rose); outline-offset: 3px; }
.intake .jm-choices.is-days .jm-choice input:focus-visible + label { outline: 2px solid var(--rose); outline-offset: 3px; }
.intake .jm-field.has-error .jm-choice label { border: 0; }
.intake .jm-field.has-error .jm-choice label::before { border-color: var(--danger); }
.intake .jm-other { margin-top: 14px; }
.intake fieldset > .jm-error { margin-top: 10px; }

/* Days: compact pills, the one place a box helps */
.intake .jm-choices.is-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.intake .jm-choices.is-days .jm-choice label { padding: 10px 0; text-align: center; font-weight: 500; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.intake .jm-choices.is-days .jm-choice input:checked + label { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
@media (hover: hover) and (pointer: fine) { .intake .jm-choices.is-days .jm-choice:hover label { border-color: var(--rose); } .intake .jm-choices.is-days .jm-choice input:checked + label { color: var(--on-rose); } }

/* Text inputs keep their field, softened to sit on the background */
.intake .jm-input, .intake .jm-textarea { background: var(--surface); border-color: var(--line); }
.intake .jm-input:hover, .intake .jm-textarea:hover { border-color: var(--border-control); }

/* Consent: a plain checkbox line */
.intake .consent-field .jm-choice label { font-size: 15px; color: var(--ink); }
.intake .consent-field + .consent-field { margin-top: -26px; }

/* Bottom bar mirrors the top bar: progress line, step count left, buttons right */
.overlay-foot { flex: none; position: relative; border-top: 1px solid var(--line); background: var(--bg); padding: var(--space-4) clamp(var(--space-4), 5vw, 40px) calc(var(--space-4) + env(safe-area-inset-bottom)); }
.overlay-foot[hidden] { display: none; }
.foot-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; margin: 0; border-radius: 0; background: transparent; }
.foot-progress > i { border-radius: 0 2px 2px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.foot-meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; font: 400 15px/1.3 var(--font-body); color: var(--ink-muted); }
.foot-meta b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.foot-meta span::before { content: "·"; margin-right: 10px; color: var(--border-control); }
.overlay-foot .jm-actions { margin: 0; flex-wrap: nowrap; gap: var(--space-3); }
.overlay-foot .jm-actions .jm-btn { min-width: 0; padding-inline: var(--space-5); }
.overlay-foot .jm-actions.is-first { justify-content: flex-end; }
@media (max-width: 560px) {
  .q-label .jm-hint { display: block; margin: 2px 0 0; }
  .intake .jm-choices.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake .jm-choices.cols-2, .intake .jm-choices.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .intake .jm-choices.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake .jm-choices.is-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-meta span { display: none; }
  .overlay-foot .jm-actions .jm-btn { padding-inline: 18px; }
}
#hero-title { text-wrap: wrap; }

/* Tooltips: an info mark next to a question or option; tap, hover or focus to read */
.tip { position: relative; display: inline-flex; vertical-align: -3px; margin-left: 6px; }
.tip-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--ink-muted); cursor: help; transition: color var(--dur-hover) ease; }
.tip-btn .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.tip-btn:hover, .tip.is-open .tip-btn { color: var(--rose); }
.tip-btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.tip-bubble { position: absolute; z-index: 6; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: min(260px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 400 14px/1.45 var(--font-body); text-align: left; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--dx, 0px)), 4px); transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 150ms; }
.tip-bubble::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--dx, 0px)); transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.tip.tip-below .tip-bubble { bottom: auto; top: calc(100% + 10px); transform: translate(calc(-50% + var(--dx, 0px)), -4px); }
.tip.tip-below .tip-bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
.tip.is-open .tip-bubble, .tip-btn:focus-visible + .tip-bubble { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--dx, 0px)), 0); }
@media (hover: hover) and (pointer: fine) { .tip:hover .tip-bubble { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--dx, 0px)), 0); } }
@media (prefers-reduced-motion: reduce) { .tip-bubble { transition: none; } }
.intake .jm-choice label .tip { margin-left: 8px; }

/* Phone: country code picker beside the number */
.phone-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.cc { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 16px/1 var(--font-body); white-space: nowrap; transition: border-color var(--dur-hover) ease; }
.cc:hover { border-color: var(--border-control); }
.cc:focus-within { outline: 2px solid var(--rose); outline-offset: 1px; border-color: var(--rose); }
.cc-shown b { font-weight: 600; margin-left: 4px; }
.cc-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.chev, .select-wrap::after { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted); transform: rotate(45deg); pointer-events: none; }
.jm-field.has-error .cc { border-color: var(--danger); }

/* Country dropdown */
.select-wrap { position: relative; }
.select-wrap::after { content: ""; }
.jm-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; min-height: 48px; }
.sub-label { display: block; font: 500 14px/1.4 var(--font-body); color: var(--ink-muted); }
.intake .field-pair .jm-field { gap: 8px; }
.intake .jm-field.has-error .jm-select { border-color: var(--line); }

/* Wordmark: two colours everywhere (name in ink, surname in rose italics). */
.jm a.jm-wordmark { color: var(--ink); }
.jm a.jm-wordmark em { color: var(--rose); }

/* Thank-you screen: room above the button. */
.jm-thanks .jm-btn { margin-top: var(--space-5); }

/* Small print at the end of a step, as quiet as the footer note. */
.form-fine { margin-top: var(--space-5); }
