/* ============================================================
   Synch — public landing page (Views/Home/Landing.cshtml)

   Loaded only by the landing view through _LayoutFrontend's Head
   section, the same way MatchingPage.cshtml loads synch.css. The
   admin bundle is never loaded here, so this file is self-contained:
   it declares its own Poppins faces (same self-hosted files the
   admin uses) and carries hex copies of the brand tokens from
   wwwroot/Content/site/overrides/tokens.css.

   Visual language: the auth pages' door — indigo canvas, white-ink
   lockup — extended to a full page. The brand gradient is spent
   exactly once, on the "thread" that joins the two hero sentences;
   every action stays solid brand blue like the rest of the product.
   ============================================================ */

/* Poppins — headings and buttons only; body copy stays on the system
   UI stack (tokens.css does the same: Poppins below 15px gives up
   legibility for nothing). Files are the ones fonts.css already ships. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../site/fonts/Poppins-SemiBold.woff2) format("woff2"),
       url(../site/fonts/Poppins-SemiBold.woff) format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../site/fonts/Poppins-Bold.woff2) format("woff2"),
       url(../site/fonts/Poppins-Bold.woff) format("woff");
}

:root {
  /* Token source: tokens.css — --s-brand-* and --header-font. */
  --ld-blue:   #007BFF;
  --ld-violet: #6F42C1;
  --ld-orange: #FD7E14;
  --ld-pink:   #E83E8C;
  --ld-indigo: #1A1D2D;

  --ld-ink:   #ffffff;
  --ld-mist:  rgba(255, 255, 255, 0.72);
  --ld-faint: rgba(255, 255, 255, 0.46);
  --ld-line:  rgba(255, 255, 255, 0.10);
  --ld-glass: rgba(255, 255, 255, 0.045);

  --ld-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, Helvetica, Arial, sans-serif;
  --ld-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* This stylesheet loads on the landing page alone, so styling body
   directly is safe — there is no other page to leak into. */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 50% -10%, rgba(111, 66, 193, 0.20), transparent 62%),
    var(--ld-indigo);
  color: var(--ld-ink);
  font-family: var(--ld-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing { min-height: 100dvh; display: flex; flex-direction: column; }
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }

/* Sections carry .ld-wrap plus their own vertical padding on the same element,
   so the section rules below use padding-block only — a padding shorthand there
   would silently zero this inline padding. */
.ld-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 1.375rem; }

.landing a { color: inherit; }
.landing :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ─────────────────────────────────────────────────── */
.ld-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.375rem 0.5rem;
}
.ld-top__logo img { display: block; }
.ld-signin {
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--ld-mist);
  text-decoration: none;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ld-signin:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Hero ───────────────────────────────────────────────────── */
.ld-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 3.25rem 4.5rem;
}
.ld-hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--ld-display);
  font-weight: 700;
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
/* The second promise reads as the spoken afterthought it is. */
.ld-hero h1 .ld-h1-quiet { display: block; color: var(--ld-faint); }
.ld-hero__sub {
  margin: 0 0 2rem;
  max-width: 33em;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ld-mist);
}

.ld-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.ld-guest-form { display: contents; }

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  padding: 0 1.65rem;
  border: 0;
  border-radius: 12px;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.9688rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  /* The brand sweep, same stops as tokens.css --s-brand-gradient — the CTA wears the
     theme itself, matching the shell's .btn--brand and the auth doors. */
  background: linear-gradient(100deg,
    var(--ld-blue) 0%, var(--ld-violet) 34%, var(--ld-orange) 70%, var(--ld-pink) 100%);
  box-shadow: 0 10px 24px rgba(111, 66, 193, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease,
              box-shadow 0.15s ease, border-color 0.15s ease;
}
.ld-btn:hover {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(111, 66, 193, 0.42);
}
.ld-btn:active { transform: translateY(0); filter: brightness(0.98); }
.ld-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ld-indigo), 0 0 0 6px rgba(255, 255, 255, 0.85);
}
.ld-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
  color: var(--ld-mist);
}
.ld-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: none;
}

/* ── The synch moment — the page's one gradient spend ───────── */
.ld-synch { margin: 0; display: grid; justify-items: start; }
.ld-bubble {
  margin: 0;
  max-width: 21rem;
  padding: 0.85rem 1.15rem;
  background: var(--ld-glass);
  border: 1px solid var(--ld-line);
  border-radius: 14px;
  font-size: 0.9688rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.ld-bubble--a { border-bottom-left-radius: 4px; }
.ld-bubble--b { justify-self: end; border-top-right-radius: 4px; }
.ld-thread {
  position: relative;
  justify-self: center;
  width: 2px;
  height: 3.5rem;
  margin: 0.35rem 0;
  border-radius: 2px;
  /* The brand sweep, blue → violet → orange → pink, in the mark's
     own order (tokens.css). Spent here and nowhere else on the page. */
  background: linear-gradient(180deg,
    var(--ld-blue) 0%, var(--ld-violet) 34%,
    var(--ld-orange) 70%, var(--ld-pink) 100%);
}
.ld-thread::before, .ld-thread::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
}
.ld-thread::before { top: -3px; background: var(--ld-blue); }
.ld-thread::after { bottom: -3px; background: var(--ld-pink); }
.ld-synch figcaption {
  justify-self: center;
  margin-top: 1.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ld-faint);
  text-align: center;
}

/* Load sequence: first sentence, the thread draws, the answer lands. */
@keyframes ld-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ld-draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.ld-bubble--a { animation: ld-rise 0.5s ease 0.1s backwards; }
.ld-thread { transform-origin: top; animation: ld-draw 0.4s ease 0.5s backwards; }
.ld-bubble--b { animation: ld-rise 0.5s ease 0.8s backwards; }
.ld-synch figcaption { animation: ld-rise 0.5s ease 1.1s backwards; }

/* ── How it works — a real sequence, so the numbers mean it ─── */
.ld-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-faint);
}
.ld-steps { padding-block: 3.5rem; border-top: 1px solid var(--ld-line); }
.ld-steps h2, .ld-close h2 {
  margin: 0 0 2rem;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ld-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.ld-step { border-top: 1px solid var(--ld-line); padding-top: 1.25rem; }
.ld-step__n {
  display: block;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ld-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.6rem;
}
.ld-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.ld-step p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ld-mist); }

/* ── Trust strip — the three promises ───────────────────────── */
.ld-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-block: 0 4rem;
}
.ld-trust__card {
  background: var(--ld-glass);
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.65rem;
}
.ld-trust__card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--ld-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.ld-trust__card p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ld-mist); }

/* ── Closing invitation ─────────────────────────────────────── */
.ld-close {
  text-align: center;
  padding-block: 4rem 4.75rem;
  border-top: 1px solid var(--ld-line);
}
.ld-close h2 { margin-bottom: 0.6rem; }
.ld-close p { margin: 0 0 1.85rem; color: var(--ld-mist); }
.ld-close .ld-cta-row { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────── */
.ld-foot { border-top: 1px solid var(--ld-line); padding: 1.75rem 0 2.25rem; }
.ld-foot .ld-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.ld-foot__logo img { display: block; opacity: 0.85; }
.ld-foot nav { display: flex; gap: 1.5rem; }
.ld-foot a {
  font-size: 0.875rem;
  color: var(--ld-mist);
  text-decoration: none;
}
.ld-foot a:hover { color: #fff; text-decoration: underline; }
.ld-foot__copy { margin: 0; font-size: 0.8125rem; color: var(--ld-faint); }

/* ── Desktop ────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .ld-top { padding-top: 1.75rem; }
  .ld-hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    padding-block: 4.5rem 5.5rem;
  }
  .ld-steps ol { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .ld-trust { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* One orchestrated load moment is the page's whole motion budget;
   with reduced motion preferred there is none at all. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-bubble--a, .ld-bubble--b, .ld-thread, .ld-synch figcaption { animation: none; }
  .ld-btn, .ld-btn:hover { transform: none; transition: none; }
}

/* ---- Legal documents (/terms, /privacy) --------------------------------
   The landing page's own shell, narrowed to a reading measure. No new
   stylesheet: these pages are a heading scale and a column of prose, and
   landing.css already owns both. */
.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem 6rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 0.5rem; }
.legal__meta { color: var(--ld-faint, #8b8fa3); font-size: 0.9rem; margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.25rem; }
.legal a { color: inherit; text-underline-offset: 0.2em; }
