/*
 * MatchTime homepage on Moments photos (resources/views/homepage-moments.blade.php).
 * Values are the MatchTime design system tokens (tokens.json); everything is scoped to .mth so the
 * shared marketing layout (nav, footer) is untouched. Dark mode follows the site's `.dark` class.
 * Hand-written on purpose: no Tailwind build step needed for this page.
 */
.mth {
  --bg-page: #ffffff; --bg-wash: #ecf3ff; --bg-card: #ffffff; --bg-raised: #e6ebf9; --bg-deep: #323e87;
  --ink: #333648; --ink-muted: #5e6a80; --ink-on-deep: #ffffff; --indigo: #3851a3; --line: #b8cae7;
  --cta: #0f8542; --cta-hover: #0f823f; --brand-lime: #1bb24b; --green-tint: #dbf4d6;
  --blue-soft: #5f8de7; --sport-tennis: #0f8542; --sport-pickleball: #3560cd; --red: #c85c5b;
  --shadow-card: 0 1px 2px rgba(51,54,72,.06), 0 8px 24px rgba(56,81,163,.10);
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;
  --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 96px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font); color: var(--ink); background: var(--bg-page); -webkit-font-smoothing: antialiased;
}
.dark .mth {
  --bg-page: #212226; --bg-wash: #1a1c20; --bg-card: #303646; --bg-raised: #3e4256; --bg-deep: #17181d;
  --ink: #ffffff; --ink-muted: #95a2b8; --indigo: #8fa4e8; --line: #3e4256;
  --cta: #18a854; --cta-hover: #26bd6b; --brand-lime: #26c568; --green-tint: #1e3a2a;
  --blue-soft: #3560cd; --sport-tennis: #26c568; --sport-pickleball: #8fa4e8; --red: #e08584;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
.mth *, .mth *::before, .mth *::after { box-sizing: border-box; }
.mth-sr { position: absolute; width: 0; height: 0; overflow: hidden; }
.mth [hidden] { display: none !important; }
.mth [data-show] { display: none; }
.mth[data-sport="tennis"] [data-show="tennis"], .mth[data-sport="pickleball"] [data-show="pickleball"] { display: inline; }

/* Same box as the layout nav (mx-auto px-3 xl:container xl:px-0): full width with 12px gutters,
   then Tailwind's container widths with no gutter, so the page lines up logo to Sign up. */
.mth-wrap { max-width: none; margin: 0 auto; padding: 0 12px; }
@media (min-width: 1280px) { .mth-wrap { max-width: 1280px; padding: 0; } }
@media (min-width: 1536px) { .mth-wrap { max-width: 1536px; } }
.mth-sec { padding: var(--space-6) 0; }
@media (min-width: 1024px) { .mth-sec { padding: var(--space-7) 0; } }
.mth-sec--wash { background: var(--bg-wash); }

/* Type */
.mth-eyebrow { font: 600 13px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin: 0 0 var(--space-2); }
.mth-eyebrow--on-deep { color: #c9d6ff; }
.mth-eyebrow--flush { margin: 0; }
.mth-h2 { font: 700 28px/1.15 var(--font); letter-spacing: -.01em; margin: 0; color: var(--ink); }
@media (min-width: 768px) { .mth-h2 { font-size: 36px; } }
.mth-h3 { font: 600 20px/1.3 var(--font); margin: 0; color: var(--ink); }
@media (min-width: 768px) { .mth-h3 { font-size: 22px; } }
.mth-lead { font: 400 17px/1.55 var(--font); color: var(--ink-muted); margin: 12px 0 0; max-width: 560px; }
@media (min-width: 768px) { .mth-lead { font-size: 19px; } }
.mth-lead--on-deep { color: rgba(255,255,255,.86); }
.mth-caption { font: 500 13px/1.45 var(--font); color: var(--ink-muted); margin: 6px 0 0; }
.mth-caption a { color: var(--indigo); }

/* Buttons */
.mth-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: 600 16px/1 var(--font);
  padding: 14px 24px; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none; transition: background-color .15s, border-color .15s; }
.mth-btn:focus-visible, .mth-switch button:focus-visible, .mth a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.mth-btn--primary { background: var(--cta); color: #ffffff; }
.mth-btn--primary:hover { background: var(--cta-hover); color: #ffffff; }
.mth-btn--ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.55); }
.mth-btn--ghost:hover { border-color: #ffffff; background: rgba(255,255,255,.08); color: #ffffff; }
.mth-btn--sm { padding: 10px 16px; font-size: 14px; }
.mth-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }

/* Sport switch */
.mth-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-raised); gap: 2px; flex-wrap: wrap; }
.mth-switch button { appearance: none; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--font); padding: 10px 16px; border-radius: 999px; color: var(--ink-muted); }
.mth-switch button svg { width: 18px; height: 18px; }
.mth-switch button[aria-pressed="true"] { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-card); }
.mth-switch button[aria-pressed="true"][data-sport="tennis"] svg { color: var(--sport-tennis); }
.mth-switch button[aria-pressed="true"][data-sport="pickleball"] svg { color: var(--sport-pickleball); }
.mth-switch--on-deep { background: rgba(255,255,255,.12); }
.mth-switch--on-deep button { color: rgba(255,255,255,.85); }

/* Moment photo */
.mth-moment { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); background-color: var(--bg-raised);
  background-size: cover; background-position: center; isolation: isolate; }
.mth-moment picture, .mth-moment > img { display: block; width: 100%; height: 100%; }
.mth-moment img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.mth-moment--lg { border-radius: var(--radius-lg); }
.mth-moment__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.mth-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--bg-card); color: var(--ink); }
.mth-badge svg { width: 14px; height: 14px; }
.mth-badge--tennis svg { color: var(--sport-tennis); }
.mth-badge--pickleball svg { color: var(--sport-pickleball); }
.mth-moment__credit { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 32px 16px 14px; color: #ffffff;
  background: linear-gradient(to top, rgba(18,20,30,.78), rgba(18,20,30,0)); }
.mth-moment__credit strong { display: block; font: 600 14px/1.3 var(--font); }
.mth-moment__credit span { display: block; font: 500 12px/1.4 var(--font); opacity: .88; }

/* Hero */
.mth-hero { background: var(--bg-deep); color: var(--ink-on-deep); padding: 40px 0 96px; }
.mth-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .mth-hero { padding: 56px 0 104px; } .mth-hero__grid { grid-template-columns: 1fr 1.12fr; gap: 56px; } }
.mth-hero h1 { font: 700 40px/1.04 var(--font); letter-spacing: -.02em; margin: 0 0 18px; color: #ffffff; }
@media (min-width: 768px) { .mth-hero h1 { font-size: 56px; } }
@media (min-width: 1280px) { .mth-hero h1 { font-size: 64px; } }
.mth-hero h1 sup { font-size: .3em; font-weight: 500; vertical-align: super; }
.mth-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.mth-hero__stats dt { font: 700 24px/1 var(--font); color: #ffffff; }
@media (min-width: 768px) { .mth-hero__stats dt { font-size: 28px; } }
.mth-hero__stats dd { margin: 4px 0 0; font: 500 13px/1.4 var(--font); color: rgba(255,255,255,.75); }
/* Every frame is exactly its crop's shape (portrait 3:4, landscape 4:3), so what the admin sees in
   Moments admin is what shows, nothing trimmed. The big photo is B wide and 4B/3 tall; two stacked 4:3
   tiles of width T are 1.5T + gap tall. Equal heights with mosaic width W and gap g give
   B = (W − g/3) × 9/17; the tiles take the rest. */
.mth-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); align-items: start; }
.mth-mosaic .mth-moment { aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.mth-mosaic .mth-mosaic__big { grid-column: 1 / -1; aspect-ratio: 3 / 4; }
.mth-mosaic .mth-moment img { object-position: center; }
@media (min-width: 640px) {
  .mth-mosaic { grid-template-columns: calc((100% - var(--space-2) / 3) * 9 / 17) 1fr; }
  .mth-mosaic .mth-mosaic__big { grid-column: 1; grid-row: 1 / 3; }
}
@media (min-width: 1280px) { .mth-hero__grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
@media (min-width: 1536px) { .mth-hero__grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.mth-shared-by { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font: 500 13px/1.4 var(--font); color: rgba(255,255,255,.8); }
.mth-shared-by i { width: 8px; height: 8px; border-radius: 999px; background: var(--brand-lime); flex: none; }

/* Live stats */
.mth-live { position: relative; z-index: 3; margin-top: -56px; padding-bottom: var(--space-5); }
.mth-live__card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line); overflow: hidden; }
.mth-live__top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px 0; }
.mth-live__top > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .mth-live__top { grid-template-columns: 250px repeat(3, 1fr); gap: var(--space-4); align-items: center; padding: 28px 40px 0; } .mth-live__top > div:first-child { grid-column: auto; } }
.mth-live__tag { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mth-live__dot { position: relative; width: 10px; height: 10px; border-radius: 999px; background: var(--red); }
.mth-live__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--red); opacity: 0; animation: mth-ping 2s ease-out infinite; }
@keyframes mth-ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.mth-live__num b { display: block; font: 700 28px/1.05 var(--font); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .mth-live__num b { font-size: 40px; } }
.mth-live__num span { display: block; margin-top: 6px; font: 600 12px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.mth-live__bar { padding: 24px 20px 24px; }
@media (min-width: 900px) { .mth-live__bar { padding: 24px 40px 28px; } }
.mth-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg-raised); gap: 3px; }
.mth-bar i { display: block; height: 100%; }
.mth-bar__won { background: var(--cta); border-radius: 999px 0 0 999px; }
.mth-bar__lost { background: var(--blue-soft); flex: 1; border-radius: 0 999px 999px 0; }
.mth-bar__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-top: 12px; font: 500 15px/1.4 var(--font); color: var(--ink); }
.mth-bar__legend b { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 6px; }
.mth-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.mth-key--won { background: var(--cta); } .mth-key--lost { background: var(--blue-soft); }
.mth-live__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--space-4); padding: 18px 20px; background: var(--bg-wash); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .mth-live__foot { padding: 18px 40px; } }
.mth-live__foot p { margin: 0; font: 500 15px/1.5 var(--font); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mth-live__dot::after { animation: none; } }

/* Trust */
.mth-trust { border-bottom: 1px solid var(--line); }
.mth-trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.mth-trust p { margin: 0; font: 500 14px/1.4 var(--font); color: var(--ink-muted); }
.mth-trust ul { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.mth-trust li { font: 700 16px/1 var(--font); color: var(--ink-muted); letter-spacing: .02em; }

/* Section head */
.mth-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }

/* Audiences: stacked on phones would be long, so a swipe row under 640px */
.mth-aud { display: grid; gap: var(--space-4); grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.mth-aud > * { scroll-snap-align: start; }
@media (min-width: 640px) { .mth-aud { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; } }
@media (min-width: 1024px) { .mth-aud { grid-template-columns: repeat(3, 1fr); } }
.mth-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.mth-card__photo { aspect-ratio: 4 / 3; border-radius: 0; }
/* Product screens on the audience cards: the whole screen on a tinted stage, never cropped. */
.mth-card__stage { aspect-ratio: 4 / 3; display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
  padding: 7% var(--space-4) 0; background: linear-gradient(160deg, var(--bg-wash), var(--bg-raised)); }
.mth-card__stage--browser { align-items: center; padding: var(--space-4); }
.mth-card__stage--phone .mth-screen { width: 64%; flex: none; }  /* top of the phone; the rest runs off the stage */

/* Device frames, drawn in CSS so they stay sharp and follow the theme */
.mth-screen { position: relative; background: #fff; box-shadow: 0 18px 40px rgba(26,33,80,.22); }
.mth-screen picture, .mth-screen img { display: block; width: 100%; height: auto; }
.mth-screen--phone { border: 7px solid #1d2030; border-radius: 30px; overflow: hidden; }
.mth-screen--phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30%; height: 10px; transform: translateX(-50%);
  border-radius: 999px; background: #1d2030; z-index: 1; }
.mth-screen--phone picture { padding-top: 14px; background: #fff; }
.mth-screen--browser { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mth-screen__bar { display: flex; gap: 6px; padding: 8px 10px; background: #eef1f8; border-bottom: 1px solid #dfe4f0; }
.mth-screen__bar i { width: 9px; height: 9px; border-radius: 999px; background: #c9cfdd; }
/* Dark: a lighter bezel (#6b7290: ≥3:1 against the lightest stage pixel) with a faint outer ring so the frame reads on the dark stage, a dark title
   bar, and the (light-UI) screenshots dimmed a touch so they don't glare. */
.dark .mth .mth-card__stage { background: linear-gradient(160deg, #2a2e3d, #1c1e26); }
.dark .mth .mth-screen { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.55); }
.dark .mth .mth-screen--phone { border-color: #6b7290; }
.dark .mth .mth-screen--phone::before { background: #6b7290; }
.dark .mth .mth-screen--browser { border-color: #6b7290; }
.dark .mth .mth-screen__bar { background: #303646; border-bottom-color: #3e4256; }
.dark .mth .mth-screen__bar i { background: #565c74; }
.dark .mth .mth-screen img { filter: brightness(.88); }
.mth-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mth-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mth-card li { display: flex; gap: 10px; font: 400 15px/1.5 var(--font); color: var(--ink); }
.mth-card li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--cta); }
.mth-card__more { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
.mth-card__more a { font: 600 14px/1.3 var(--font); color: var(--indigo); text-decoration: none; }
.mth-card__more a:hover { text-decoration: underline; }

/* Moments wall (masonry by columns; tile height follows the crop) */
.mth-wall { columns: 2; column-gap: var(--space-2); }
@media (min-width: 640px) { .mth-wall { columns: 3; } }
@media (min-width: 1024px) { .mth-wall { columns: 4; } }
.mth-wall .mth-moment { break-inside: avoid; margin-bottom: var(--space-2); }
.mth-wall .mth-moment picture, .mth-wall .mth-moment img { height: auto; }
.mth-wall__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5);
  padding: var(--space-4); border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); }

/* App */
.mth-app { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .mth-app { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mth-feat { display: grid; grid-template-columns: 1fr; gap: 18px 28px; margin: 28px 0 32px; }
@media (min-width: 640px) { .mth-feat { grid-template-columns: 1fr 1fr; } }
.mth-feat dt { font: 600 16px/1.3 var(--font); color: var(--ink); margin-bottom: 4px; }
.mth-feat dd { margin: 0; font: 400 14px/1.5 var(--font); color: var(--ink-muted); }
.mth-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.mth-store { display: inline-flex; flex-direction: column; justify-content: center; height: 48px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg-page); text-decoration: none; }
.mth-store small { font: 500 10px/1 var(--font); opacity: .8; }
.mth-store b { font: 600 15px/1.2 var(--font); }
.mth-app__visual { position: relative; padding-bottom: 8%; }
.mth-app__visual .mth-moment { aspect-ratio: 4 / 3; width: 88%; }
.mth-app__phone { position: absolute; right: 0; bottom: 0; width: 40%; }

/* Testimonial */
.mth-quote { display: grid; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .mth-quote { grid-template-columns: 420px 1fr; } }
.mth-quote .mth-moment { border-radius: 0; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .mth-quote .mth-moment { align-self: center; } }
.mth-quote__body { padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
@media (min-width: 900px) { .mth-quote__body { padding: 56px; } }
.mth-quote blockquote { margin: 0; }
.mth-quote blockquote p { margin: 0; font: 500 20px/1.45 var(--font); color: var(--ink); }
@media (min-width: 900px) { .mth-quote blockquote p { font-size: 24px; } }
.mth-quote figcaption { font: 600 15px/1.4 var(--font); color: var(--indigo); }
.mth-quote figcaption span { display: block; font-weight: 400; color: var(--ink-muted); }

/* Closing CTA */
.mth-close { background: var(--bg-deep); color: var(--ink-on-deep); padding: var(--space-6) 0; }
@media (min-width: 1024px) { .mth-close { padding: 80px 0; } }
.mth-close__grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .mth-close__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.mth-close h2 { font: 700 34px/1.1 var(--font); margin: 0 0 16px; color: #ffffff; letter-spacing: -.01em; }
@media (min-width: 768px) { .mth-close h2 { font-size: 44px; } }
.mth-close p { margin: 0; font: 400 18px/1.55 var(--font); color: rgba(255,255,255,.86); }
.mth-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.mth-strip .mth-moment { aspect-ratio: 3 / 4; }
.mth-strip .mth-moment:nth-child(2) { margin-top: 32px; }

/* Gear */
.mth-gear { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); background: var(--bg-page); }
@media (min-width: 1024px) { .mth-gear { padding: var(--space-6) 0; } }
.mth-gear__title { margin: 6px 0 6px; font: 700 22px/1.25 var(--font); color: var(--ink); letter-spacing: -.01em; }
.mth-gear__grid { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 640px) { .mth-gear__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mth-gear__grid { grid-template-columns: 260px repeat(3, 1fr); gap: var(--space-4); } }
.mth-gear__card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-card); text-decoration: none; }
.mth-gear__card:hover { border-color: var(--indigo); }
.mth-gear__img { width: 56px; height: 56px; border-radius: 10px; background: #ffffff; flex: none; overflow: hidden; }
.mth-gear__img img { width: 100%; height: 100%; object-fit: contain; }
.mth-gear__img--blank { background: var(--bg-raised); }
.mth-gear__img--more { display: flex; align-items: center; justify-content: center; background: var(--bg-raised); color: var(--indigo); }
.mth-gear__img--more svg { width: 28px; height: 28px; }
.mth-gear__card b { display: block; font: 600 14px/1.3 var(--font); color: var(--ink); }
.mth-gear__card > span > span { font: 500 12px/1.3 var(--font); color: var(--ink-muted); }
