/* HGB Mates landing page: cinematic and dark in every system theme. The mates' portraits carry the page;
   UI cards float over them to show what a mate does. Builds on style.css (Montserrat display, system text). */
.landing {
  color-scheme: dark;
  --bg: #08081c; --surface: #12132b; --surface-2: #1a1b38; --text: #f3efe8; --muted: #a9a8bd; --faint: #6f6e86; --line: #ffffff17;
  --accent: #f5a524; --accent-press: #e0931a; --accent-text: #f7b547; --on-accent: #1a1308; --amber-soft: #f5a52426;
  --glass: #08081cb8; --navy: #010124; --ok: #4ade80;
  background: var(--bg); color: var(--text); overflow-wrap: anywhere; font-optical-sizing: auto; interpolate-size: allow-keywords;
}
.landing .wrap { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.landing ul { list-style: none; margin: 0; padding: 0; }
.landing a, .landing summary, .landing button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.landing :focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
.landing h2 { font: 800 clamp(2.25rem, 5vw, 4rem)/1.02 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.landing h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.012em; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 30; padding: 0.75rem 1rem; border-radius: 999px; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.glow-text { background: linear-gradient(95deg, #f5a524 0%, #ff6b4a 55%, #e0457b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px #4ade802e; flex: none; }

/* ---------- Bar: translucent over the page; its edge shows only while content is underneath ---------- */
.landing-bar { position: sticky; top: 0; z-index: 20; background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.landing-bar::after { content: ""; position: absolute; inset: 100% 0 auto; height: 1.25rem; pointer-events: none;
  background: linear-gradient(var(--bg), transparent); opacity: 0; transition: opacity 0.25s ease-out; }
.landing-bar[data-scrolled]::after { opacity: 0.8; }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.landing-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.landing-header .wordmark { color: var(--text); min-height: 2.75rem; padding: 0; }
.landing-header nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.btn.small-pill { min-height: 2.25rem; padding-inline: 1rem; font-size: 0.875rem; }
.btn.large { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1rem; }
.btn.ghost-light { --b-bg: #ffffff0f; --b-fg: var(--text); --b-line: #ffffff26; }
.btn.ghost-light:active { --b-bg: #ffffff1a; }

/* ---------- Hero: a giant mate in rim light, the meeting floating around it ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 75% 55%, #f5a5242e, transparent 70%),
  radial-gradient(50% 60% at 95% 20%, #8b5cf633, transparent 70%), linear-gradient(180deg, var(--bg), var(--navy) 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 2rem; min-height: min(46rem, calc(100svh - 8rem)); }
.hero-copy { align-self: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); animation: rise 800ms var(--ease) both; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line);
  background: #ffffff0a; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.hero h1 { margin: 1.25rem 0 0; font: 800 clamp(3rem, 6.4vw, 5.5rem)/0.95 var(--font-display); letter-spacing: -0.055em; }
.hero-sub { margin-top: 1.75rem; max-width: 30rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-figure { position: relative; margin: 0; align-self: end; }
.hero-portrait { display: block; width: 100%; max-width: 44rem; height: auto; margin-left: auto;
  -webkit-mask-image: radial-gradient(68% 78% at 50% 72%, #000 58%, transparent 100%); mask-image: radial-gradient(68% 78% at 50% 72%, #000 58%, transparent 100%);
  animation: arrive 900ms var(--ease) 100ms both; }
.works { position: relative; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 0.9375rem; }
.works b { color: var(--muted); font-weight: 650; }

/* Floating UI: glass cards over the imagery, arriving in the order a meeting happens. */
.float { position: absolute; z-index: 2; margin: 0; border-radius: 1rem; background: #12132bd9; border: 1px solid #ffffff1f;
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 24px 60px -20px #000000b3, inset 0 1px 0 #ffffff14; }
.float.tag { top: 22%; left: 4%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 650; animation: pop 500ms var(--ease) 700ms both; }
.float.bubble { display: grid; gap: 0.625rem; max-width: 20rem; padding: 1rem 1.1rem; font-size: 0.9375rem; line-height: 1.45; }
.hero .float.bubble { top: 46%; right: -1rem; max-width: min(18rem, 48%); animation: pop 550ms var(--ease) 1.2s both; }
.float .asked { color: var(--muted); font-size: 0.8125rem; }
.float.approve .asked { margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #ffffff17; }
.float.approve { max-width: 19rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chips span { padding: 0.25rem 0.625rem; border-radius: 999px; background: #ffffff12; font-size: 0.75rem; letter-spacing: 0.01em; color: var(--accent-text); }
.float.approve { display: grid; gap: 0.25rem; min-width: 15rem; padding: 1rem 1.1rem; }
.hero .float.approve { bottom: 3%; left: 0; max-width: min(17rem, 46%); animation: pop 550ms var(--ease) 2s both; }
.approve-kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-text); }
.approve-title { font-weight: 650; }
.approve-buttons { display: flex; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 650; }
.approve-buttons span { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid #ffffff26; }
.approve-buttons .yes { background: var(--accent); border-color: transparent; color: var(--on-accent); }

/* ---------- How it works: five numbered steps ---------- */
.how { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.how .eyebrow { color: var(--accent-text); }
.how h2 { margin-top: 0.875rem; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 1.25rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--amber-soft); color: var(--accent-text); font: 750 0.9375rem/1 var(--font-display); }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Scenes: one mate, one idea, alternating sides ---------- */
.scene { --c: #14b8a6; padding-block: clamp(4rem, 9vw, 7.5rem); }
.scene.de { --c: #f43f5e; }
.scene.se { --c: #3b82f6; }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.scene.flip .scene-figure { order: 2; }
.scene-figure { position: relative; isolation: isolate; margin: 0; }
.scene-figure::before { content: ""; position: absolute; z-index: -1; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); filter: blur(50px); }
.scene-figure img { display: block; width: 100%; height: auto; border-radius: 2rem; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 40px 80px -40px #000; }
.scene .float.bubble { bottom: 8%; right: -4%; }
.scene .float.approve { bottom: 8%; left: -4%; }
.float.pr { display: grid; gap: 0.25rem; bottom: 8%; right: -4%; min-width: 16rem; padding: 1rem 1.1rem; }
.pr-state { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #93b4ff; }
.pr-title { font-weight: 650; }
.pr-check { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ok); }
.pr-check::before { content: ""; width: 0.4rem; height: 0.7rem; margin: 0 0.2rem 0.15rem; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scene-copy .eyebrow { color: color-mix(in srgb, var(--c) 60%, #fff); }
.scene-copy h2 { margin-top: 0.875rem; }
.scene-copy > p:last-child { margin-top: 1.25rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }

/* ---------- Team carousel ---------- */
.team { padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.team-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.team-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); }
.traits { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.landing .traits { margin-top: 0.875rem; }
.traits li { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--amber-soft); color: var(--accent-text); font-size: 0.875rem; font-weight: 650; }
.carousel-buttons { display: flex; gap: 0.5rem; }
.round { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: #ffffff0d; color: var(--text); font-size: 1.125rem; cursor: pointer;
  transition: background-color 0.15s ease-out, transform 0.1s ease-out; }
.round:hover { background: #ffffff1a; }
.round:active { transform: scale(0.94); }
.landing .team-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15rem, 26vw, 20rem); gap: 1rem; margin-top: 2.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(1.5rem, calc((100vw - 76rem) / 2)); padding: 0.5rem max(1.5rem, calc((100vw - 76rem) / 2)) 1.5rem;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.team-track::-webkit-scrollbar { display: none; }
.mate-card { --c: #f5a524; position: relative; overflow: hidden; scroll-snap-align: start; border-radius: 1.75rem; background: var(--navy);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 20px 50px -24px color-mix(in srgb, var(--c) 75%, transparent); }
.mate-card::after { content: ""; position: absolute; inset: 55% 0 0; pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--c) 60%, var(--navy)) 90%); }
.mate-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform 0.5s var(--ease); }
.mate-card div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.25rem 1.4rem 1.4rem; }
.mate-card h3 { color: #fff; font: 750 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.mate-card p { margin-top: 0.25rem; color: color-mix(in srgb, var(--c) 25%, #fff); font-size: 0.9375rem; font-weight: 500; }
.pm { --c: #f5a524; } .ar { --c: #14b8a6; } .de { --c: #f43f5e; } .mk { --c: #8b5cf6; } .qa { --c: #22c55e; } .se { --c: #3b82f6; }
@media (hover: hover) { .mate-card:hover img { transform: scale(1.04); } }

/* ---------- Trust ---------- */
.trust-band { padding-block: clamp(4rem, 8vw, 6rem); background: radial-gradient(50% 80% at 10% 0%, #f5a5241f, transparent 70%), #0d0e24;
  border-block: 1px solid var(--line); }
.trust-band h2 span { color: var(--accent-text); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.landing .trust { margin-top: clamp(2rem, 5vw, 3.5rem); }
.trust li { padding-top: 1rem; border-top: 2px solid var(--accent); }
.trust p { margin-top: 0.4rem; color: var(--muted); line-height: 1.5; font-size: 0.9375rem; }

/* ---------- Clear limits: what a mate can and can't do ---------- */
.limits { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.limit-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.limit-lists > div { padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.limit-lists > div:last-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.limit-lists ul { display: grid; gap: 0.625rem; margin-top: 1rem; }
.limit-lists li { position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.5; }
.limit-lists li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.limit-lists > div:last-child li::before { content: "✕"; content: "✕" / ""; color: var(--accent-text); }
.limits-more { margin-top: 1.25rem; font-size: 0.9375rem; }
.limits-more a { color: var(--accent-text); font-weight: 650; }

/* ---------- Plans, FAQ, closing ---------- */
.plans-section, .faq { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.landing .plan-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.plan-teasers article { padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.plan-teasers article:nth-child(2) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -24px #f5a52480; }
.teaser-price { font: 800 2.5rem/1.2 var(--font-display); letter-spacing: -0.04em; margin-block: 0.75rem 0.25rem; }
.teaser-price span { font: 500 0.9375rem var(--font-ui); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.plan-teasers article > p:last-child { color: var(--muted); font-size: 0.9375rem; }
.plans-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.plans-note a { color: var(--accent-text); font-weight: 650; }
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding-block: 0.75rem;
  cursor: pointer; list-style: none; font: 650 1.0625rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: 0.375rem; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: translateY(-25%) rotate(45deg); transition: transform 0.35s var(--ease-in); }
.faq details[open] summary::after { transform: translateY(20%) rotate(225deg); transition-timing-function: var(--ease); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease-in), content-visibility 0.35s var(--ease-in) allow-discrete; }
.faq details[open]::details-content { block-size: auto; transition-timing-function: var(--ease); }
.faq details p { padding-bottom: 1.25rem; color: var(--muted); line-height: 1.6; }
.final { display: grid; justify-items: center; text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.landing .final-team { display: flex; margin-bottom: 2rem; }
.final-team li { width: clamp(3.5rem, 8vw, 5rem); aspect-ratio: 1; margin-left: -0.9rem; border-radius: 50%; overflow: hidden; background: var(--navy);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.final-team li:first-child { margin-left: 0; }
.final-team img { width: 100%; height: 100%; object-fit: cover; }
.final .landing-actions { justify-content: center; width: min(40rem, calc(100% - 2.5rem)); }
.landing-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.landing-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; color: var(--muted); }

/* Instant feedback on press, for text links too. */
.nav-link, .landing-footer a, .faq summary, .plans-note a, .limits-more a { transition: opacity 0.15s ease-out; }
.nav-link:active, .landing-footer a:active, .faq summary:active, .plans-note a:active, .limits-more a:active { opacity: 0.55; transition: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 1rem; text-align: center; }
  .hero-copy .landing-actions { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-portrait { max-width: 34rem; margin-inline: auto; }
  .hero .float.bubble { right: 2%; max-width: 16rem; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .scene.flip .scene-figure { order: 0; }
  .scene-figure { max-width: 34rem; }
  .scene .float.bubble, .float.pr { right: 2%; }
  .scene .float.approve { left: 2%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 40rem) {
  .landing .wrap { width: calc(100% - 2.5rem); }
  .landing-actions .btn { flex: 1 1 10rem; }
  .float.tag { font-size: 0.75rem; }
  .hero .float.bubble { max-width: 13rem; font-size: 0.8125rem; top: 30%; }
  .float.approve, .float.pr { min-width: 0; font-size: 0.875rem; }
  .landing .plan-teasers, .trust, .steps, .limit-lists { grid-template-columns: minmax(0, 1fr); }
  .carousel-buttons { display: none; }
}

/* Reduced motion keeps the order of events as short cross-fades, without movement. */
@media (prefers-reduced-motion: reduce) {
  .landing .hero-copy, .landing .hero-portrait { animation: fade-in 250ms ease-out both !important; }
  .landing .hero .float { animation: fade-in 250ms ease-out 300ms both !important; }
  .landing .faq summary::after, .landing .faq details::details-content, .mate-card img, .round { transition: none; }
  .mate-card:hover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .landing-bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .float { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .landing { --muted: var(--text); --line: #ffffff80; }
  .landing-bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .float { background: var(--surface); border-color: #ffffffb3; }
}
@media (forced-colors: active) {
  .landing .btn, .float, .mate-card, .round { border: 1px solid ButtonText; }
}
